blob: 13d40faa018f36fbf32bf5d019e91ee3cc550b70 [file] [log] [blame]
cristy3ed852e2009-09-05 21:47:34 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
cristyb36feb22010-03-26 16:54:37 +00003# Generated by GNU Autoconf 2.65 for ImageMagick 6.6.1.
cristy3ed852e2009-09-05 21:47:34 +00004#
5# Report bugs to <http://www.imagemagick.org>.
6#
cristycd4c5312009-11-22 01:19:08 +00007#
cristy3ed852e2009-09-05 21:47:34 +00008# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
cristycd4c5312009-11-22 01:19:08 +00009# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
10# Inc.
11#
cristy8b350f62009-11-15 23:12:43 +000012#
cristy3ed852e2009-09-05 21:47:34 +000013# This configure script is free software; the Free Software Foundation
14# gives unlimited permission to copy, distribute and modify it.
cristy8b350f62009-11-15 23:12:43 +000015## -------------------- ##
16## M4sh Initialization. ##
17## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000018
19# Be more Bourne compatible
20DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000021if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000022 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28else
cristy8b350f62009-11-15 23:12:43 +000029 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
cristy3ed852e2009-09-05 21:47:34 +000034esac
cristy3ed852e2009-09-05 21:47:34 +000035fi
36
37
cristy3ed852e2009-09-05 21:47:34 +000038as_nl='
39'
40export as_nl
41# Printing a long string crashes Solaris 7 /usr/bin/printf.
42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000045# Prefer a ksh shell builtin over an external printf program on Solaris,
46# but without wasting forks for bash or zsh.
47if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000052 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000062 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000063 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 '
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
71 fi
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
74fi
75
76# The user is always right.
77if test "${PATH_SEPARATOR+set}" != set; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
82 }
83fi
84
cristy3ed852e2009-09-05 21:47:34 +000085
86# IFS
87# We need space, tab and new line, in precisely that order. Quoting is
88# there to prevent editors from complaining about space-tab.
89# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90# splitting by setting IFS to empty value.)
91IFS=" "" $as_nl"
92
93# Find who we are. Look in the path if we contain no directory separator.
cristy8b350f62009-11-15 23:12:43 +000094case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000095 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97for as_dir in $PATH
98do
99 IFS=$as_save_IFS
100 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +0000101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102 done
cristy3ed852e2009-09-05 21:47:34 +0000103IFS=$as_save_IFS
104
105 ;;
106esac
107# We did not find ourselves, most probably we were run as `sh COMMAND'
108# in which case we are not to be found in the path.
109if test "x$as_myself" = x; then
110 as_myself=$0
111fi
112if test ! -f "$as_myself"; then
113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +0000114 exit 1
cristy3ed852e2009-09-05 21:47:34 +0000115fi
116
cristy8b350f62009-11-15 23:12:43 +0000117# Unset variables that we do not need and which cause bugs (e.g. in
118# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119# suppresses any "Segmentation fault" message there. '((' could
120# trigger a bug in pdksh 5.2.14.
121for as_var in BASH_ENV ENV MAIL MAILPATH
122do eval test x\${$as_var+set} = xset \
123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +0000124done
125PS1='$ '
126PS2='> '
127PS4='+ '
128
129# NLS nuisances.
130LC_ALL=C
131export LC_ALL
132LANGUAGE=C
133export LANGUAGE
134
cristy8b350f62009-11-15 23:12:43 +0000135# CDPATH.
136(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138if test "x$CONFIG_SHELL" = x; then
139 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140 emulate sh
141 NULLCMD=:
142 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143 # is contrary to our usage. Disable this feature.
144 alias -g '\${1+\"\$@\"}'='\"\$@\"'
145 setopt NO_GLOB_SUBST
146else
147 case \`(set -o) 2>/dev/null\` in #(
148 *posix*) :
149 set -o posix ;; #(
150 *) :
151 ;;
152esac
153fi
154"
155 as_required="as_fn_return () { (exit \$1); }
156as_fn_success () { as_fn_return 0; }
157as_fn_failure () { as_fn_return 1; }
158as_fn_ret_success () { return 0; }
159as_fn_ret_failure () { return 1; }
160
161exitcode=0
162as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167
168else
169 exitcode=1; echo positional parameters were not saved.
170fi
171test x\$exitcode = x0 || exit 1"
172 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
cristy18304f92009-11-22 15:48:26 +0000176test \$(( 1 + 1 )) = 2 || exit 1"
cristy8b350f62009-11-15 23:12:43 +0000177 if (eval "$as_required") 2>/dev/null; then :
178 as_have_required=yes
179else
180 as_have_required=no
181fi
182 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183
184else
185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
186as_found=false
187for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188do
189 IFS=$as_save_IFS
190 test -z "$as_dir" && as_dir=.
191 as_found=:
192 case $as_dir in #(
193 /*)
194 for as_base in sh bash ksh sh5; do
195 # Try only shells that exist, to save several forks.
196 as_shell=$as_dir/$as_base
197 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 CONFIG_SHELL=$as_shell as_have_required=yes
200 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
201 break 2
202fi
203fi
204 done;;
205 esac
206 as_found=false
207done
208$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210 CONFIG_SHELL=$SHELL as_have_required=yes
211fi; }
212IFS=$as_save_IFS
213
214
215 if test "x$CONFIG_SHELL" != x; then :
216 # We cannot yet assume a decent shell, so we have to provide a
217 # neutralization value for shells without unset; and this also
218 # works around shells that cannot unset nonexistent variables.
219 BASH_ENV=/dev/null
220 ENV=/dev/null
221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222 export CONFIG_SHELL
223 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224fi
225
226 if test x$as_have_required = xno; then :
227 $as_echo "$0: This script requires a shell more modern than all"
228 $as_echo "$0: the shells that I found on your system."
229 if test x${ZSH_VERSION+set} = xset ; then
230 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
232 else
233 $as_echo "$0: Please tell bug-autoconf@gnu.org and
234$0: http://www.imagemagick.org about your system, including
235$0: any error possibly output before this message. Then
236$0: install a modern shell, or manually run the script
237$0: under such a shell if you do have one."
238 fi
239 exit 1
240fi
241fi
242fi
243SHELL=${CONFIG_SHELL-/bin/sh}
244export SHELL
245# Unset more variables known to interfere with behavior of common tools.
246CLICOLOR_FORCE= GREP_OPTIONS=
247unset CLICOLOR_FORCE GREP_OPTIONS
248
249## --------------------- ##
250## M4sh Shell Functions. ##
251## --------------------- ##
252# as_fn_unset VAR
253# ---------------
254# Portably unset VAR.
255as_fn_unset ()
256{
257 { eval $1=; unset $1;}
258}
259as_unset=as_fn_unset
260
261# as_fn_set_status STATUS
262# -----------------------
263# Set $? to STATUS, without forking.
264as_fn_set_status ()
265{
266 return $1
267} # as_fn_set_status
268
269# as_fn_exit STATUS
270# -----------------
271# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
272as_fn_exit ()
273{
274 set +e
275 as_fn_set_status $1
276 exit $1
277} # as_fn_exit
278
279# as_fn_mkdir_p
280# -------------
281# Create "$as_dir" as a directory, including parents if necessary.
282as_fn_mkdir_p ()
283{
284
285 case $as_dir in #(
286 -*) as_dir=./$as_dir;;
287 esac
288 test -d "$as_dir" || eval $as_mkdir_p || {
289 as_dirs=
290 while :; do
291 case $as_dir in #(
292 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
293 *) as_qdir=$as_dir;;
294 esac
295 as_dirs="'$as_qdir' $as_dirs"
296 as_dir=`$as_dirname -- "$as_dir" ||
297$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
298 X"$as_dir" : 'X\(//\)[^/]' \| \
299 X"$as_dir" : 'X\(//\)$' \| \
300 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
301$as_echo X"$as_dir" |
302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
303 s//\1/
304 q
305 }
306 /^X\(\/\/\)[^/].*/{
307 s//\1/
308 q
309 }
310 /^X\(\/\/\)$/{
311 s//\1/
312 q
313 }
314 /^X\(\/\).*/{
315 s//\1/
316 q
317 }
318 s/.*/./; q'`
319 test -d "$as_dir" && break
320 done
321 test -z "$as_dirs" || eval "mkdir $as_dirs"
322 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
323
324
325} # as_fn_mkdir_p
326# as_fn_append VAR VALUE
327# ----------------------
328# Append the text in VALUE to the end of the definition contained in VAR. Take
329# advantage of any shell optimizations that allow amortized linear growth over
330# repeated appends, instead of the typical quadratic growth present in naive
331# implementations.
332if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
333 eval 'as_fn_append ()
334 {
335 eval $1+=\$2
336 }'
337else
338 as_fn_append ()
339 {
340 eval $1=\$$1\$2
341 }
342fi # as_fn_append
343
344# as_fn_arith ARG...
345# ------------------
346# Perform arithmetic evaluation on the ARGs, and store the result in the
347# global $as_val. Take advantage of shells that can avoid forks. The arguments
348# must be portable across $(()) and expr.
349if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
350 eval 'as_fn_arith ()
351 {
352 as_val=$(( $* ))
353 }'
354else
355 as_fn_arith ()
356 {
357 as_val=`expr "$@" || test $? -eq 1`
358 }
359fi # as_fn_arith
360
361
362# as_fn_error ERROR [LINENO LOG_FD]
363# ---------------------------------
364# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
365# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
366# script with status $?, using 1 if that was 0.
367as_fn_error ()
368{
369 as_status=$?; test $as_status -eq 0 && as_status=1
370 if test "$3"; then
371 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
373 fi
374 $as_echo "$as_me: error: $1" >&2
375 as_fn_exit $as_status
376} # as_fn_error
377
cristy3ed852e2009-09-05 21:47:34 +0000378if expr a : '\(a\)' >/dev/null 2>&1 &&
379 test "X`expr 00001 : '.*\(...\)'`" = X001; then
380 as_expr=expr
381else
382 as_expr=false
383fi
384
385if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386 as_basename=basename
387else
388 as_basename=false
389fi
390
cristy8b350f62009-11-15 23:12:43 +0000391if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
392 as_dirname=dirname
393else
394 as_dirname=false
395fi
cristy3ed852e2009-09-05 21:47:34 +0000396
cristy3ed852e2009-09-05 21:47:34 +0000397as_me=`$as_basename -- "$0" ||
398$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
399 X"$0" : 'X\(//\)$' \| \
400 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
401$as_echo X/"$0" |
402 sed '/^.*\/\([^/][^/]*\)\/*$/{
403 s//\1/
404 q
405 }
406 /^X\/\(\/\/\)$/{
407 s//\1/
408 q
409 }
410 /^X\/\(\/\).*/{
411 s//\1/
412 q
413 }
414 s/.*/./; q'`
415
cristy8b350f62009-11-15 23:12:43 +0000416# Avoid depending upon Character Ranges.
417as_cr_letters='abcdefghijklmnopqrstuvwxyz'
418as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
419as_cr_Letters=$as_cr_letters$as_cr_LETTERS
420as_cr_digits='0123456789'
421as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +0000422
423
cristy8b350f62009-11-15 23:12:43 +0000424 as_lineno_1=$LINENO as_lineno_1a=$LINENO
425 as_lineno_2=$LINENO as_lineno_2a=$LINENO
426 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
427 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
428 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
cristy3ed852e2009-09-05 21:47:34 +0000429 sed -n '
430 p
431 /[$]LINENO/=
432 ' <$as_myself |
433 sed '
434 s/[$]LINENO.*/&-/
435 t lineno
436 b
437 :lineno
438 N
439 :loop
440 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
441 t loop
442 s/-\n.*//
443 ' >$as_me.lineno &&
444 chmod +x "$as_me.lineno" ||
cristy8b350f62009-11-15 23:12:43 +0000445 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
cristy3ed852e2009-09-05 21:47:34 +0000446
447 # Don't try to exec as it changes $[0], causing all sort of problems
448 # (the dirname of $[0] is not the place where we might find the
449 # original and so on. Autoconf is especially sensitive to this).
450 . "./$as_me.lineno"
451 # Exit status is that of the last command.
452 exit
453}
454
cristy3ed852e2009-09-05 21:47:34 +0000455ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +0000456case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +0000457-n*)
cristy8b350f62009-11-15 23:12:43 +0000458 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +0000459 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +0000460 xy) ECHO_C='\c';;
461 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
462 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +0000463 esac;;
464*)
465 ECHO_N='-n';;
466esac
cristy3ed852e2009-09-05 21:47:34 +0000467
468rm -f conf$$ conf$$.exe conf$$.file
469if test -d conf$$.dir; then
470 rm -f conf$$.dir/conf$$.file
471else
472 rm -f conf$$.dir
473 mkdir conf$$.dir 2>/dev/null
474fi
475if (echo >conf$$.file) 2>/dev/null; then
476 if ln -s conf$$.file conf$$ 2>/dev/null; then
477 as_ln_s='ln -s'
478 # ... but there are two gotchas:
479 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
480 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
481 # In both cases, we have to default to `cp -p'.
482 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
483 as_ln_s='cp -p'
484 elif ln conf$$.file conf$$ 2>/dev/null; then
485 as_ln_s=ln
486 else
487 as_ln_s='cp -p'
488 fi
489else
490 as_ln_s='cp -p'
491fi
492rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
493rmdir conf$$.dir 2>/dev/null
494
495if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +0000496 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +0000497else
498 test -d ./-p && rmdir ./-p
499 as_mkdir_p=false
500fi
501
502if test -x / >/dev/null 2>&1; then
503 as_test_x='test -x'
504else
505 if ls -dL / >/dev/null 2>&1; then
506 as_ls_L_option=L
507 else
508 as_ls_L_option=
509 fi
510 as_test_x='
511 eval sh -c '\''
512 if test -d "$1"; then
513 test -d "$1/.";
514 else
cristy8b350f62009-11-15 23:12:43 +0000515 case $1 in #(
cristy3ed852e2009-09-05 21:47:34 +0000516 -*)set "./$1";;
517 esac;
cristy8b350f62009-11-15 23:12:43 +0000518 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
cristy3ed852e2009-09-05 21:47:34 +0000519 ???[sx]*):;;*)false;;esac;fi
520 '\'' sh
521 '
522fi
523as_executable_p=$as_test_x
524
525# Sed expression to map a string onto a valid CPP name.
526as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
527
528# Sed expression to map a string onto a valid variable name.
529as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
530
cristy18304f92009-11-22 15:48:26 +0000531
532
533# Check that we are running under the correct shell.
cristy3ed852e2009-09-05 21:47:34 +0000534SHELL=${CONFIG_SHELL-/bin/sh}
535
cristy18304f92009-11-22 15:48:26 +0000536case X$lt_ECHO in
537X*--fallback-echo)
538 # Remove one level of quotation (which was required for Make).
539 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
540 ;;
541esac
542
543ECHO=${lt_ECHO-echo}
544if test "X$1" = X--no-reexec; then
545 # Discard the --no-reexec flag, and continue.
546 shift
547elif test "X$1" = X--fallback-echo; then
548 # Avoid inline document here, it may be left over
549 :
550elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
551 # Yippee, $ECHO works!
552 :
553else
554 # Restart under the correct shell.
555 exec $SHELL "$0" --no-reexec ${1+"$@"}
556fi
557
558if test "X$1" = X--fallback-echo; then
559 # used as fallback echo
560 shift
561 cat <<_LT_EOF
562$*
563_LT_EOF
564 exit 0
565fi
566
567# The HP-UX ksh and POSIX shell print the target directory to stdout
568# if CDPATH is set.
569(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
570
571if test -z "$lt_ECHO"; then
572 if test "X${echo_test_string+set}" != Xset; then
573 # find a string as large as possible, as long as the shell can cope with it
574 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
575 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
576 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
577 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
578 then
579 break
580 fi
581 done
582 fi
583
584 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
585 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
586 test "X$echo_testing_string" = "X$echo_test_string"; then
587 :
588 else
589 # The Solaris, AIX, and Digital Unix default echo programs unquote
590 # backslashes. This makes it impossible to quote backslashes using
591 # echo "$something" | sed 's/\\/\\\\/g'
592 #
593 # So, first we look for a working echo in the user's PATH.
594
595 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
596 for dir in $PATH /usr/ucb; do
597 IFS="$lt_save_ifs"
598 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
599 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
600 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
601 test "X$echo_testing_string" = "X$echo_test_string"; then
602 ECHO="$dir/echo"
603 break
604 fi
605 done
606 IFS="$lt_save_ifs"
607
608 if test "X$ECHO" = Xecho; then
609 # We didn't find a better echo, so look for alternatives.
610 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
611 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
612 test "X$echo_testing_string" = "X$echo_test_string"; then
613 # This shell has a builtin print -r that does the trick.
614 ECHO='print -r'
615 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
616 test "X$CONFIG_SHELL" != X/bin/ksh; then
617 # If we have ksh, try running configure again with it.
618 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
619 export ORIGINAL_CONFIG_SHELL
620 CONFIG_SHELL=/bin/ksh
621 export CONFIG_SHELL
622 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
623 else
624 # Try using printf.
625 ECHO='printf %s\n'
626 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
627 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
628 test "X$echo_testing_string" = "X$echo_test_string"; then
629 # Cool, printf works
630 :
631 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
632 test "X$echo_testing_string" = 'X\t' &&
633 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
634 test "X$echo_testing_string" = "X$echo_test_string"; then
635 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
636 export CONFIG_SHELL
637 SHELL="$CONFIG_SHELL"
638 export SHELL
639 ECHO="$CONFIG_SHELL $0 --fallback-echo"
640 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
641 test "X$echo_testing_string" = 'X\t' &&
642 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
643 test "X$echo_testing_string" = "X$echo_test_string"; then
644 ECHO="$CONFIG_SHELL $0 --fallback-echo"
645 else
646 # maybe with a smaller string...
647 prev=:
648
649 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
650 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
651 then
652 break
653 fi
654 prev="$cmd"
655 done
656
657 if test "$prev" != 'sed 50q "$0"'; then
658 echo_test_string=`eval $prev`
659 export echo_test_string
660 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
661 else
662 # Oops. We lost completely, so just stick with echo.
663 ECHO=echo
664 fi
665 fi
666 fi
667 fi
668 fi
669fi
670
671# Copy echo and quote the copy suitably for passing to libtool from
672# the Makefile, instead of quoting the original, which is used later.
673lt_ECHO=$ECHO
674if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
675 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
676fi
677
678
679
680
cristy3ed852e2009-09-05 21:47:34 +0000681lt_ltdl_dir='ltdl'
682
683lt_dlopen_dir="$lt_ltdl_dir"; lt_libobj_prefix="$lt_ltdl_dir/"
684
cristycd4c5312009-11-22 01:19:08 +0000685test -n "$DJDIR" || exec 7<&0 </dev/null
686exec 6>&1
cristy3ed852e2009-09-05 21:47:34 +0000687
688# Name of the host.
689# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
690# so uname gets run too.
691ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
692
693#
694# Initializations.
695#
696ac_default_prefix=/usr/local
697ac_clean_files=
698ac_config_libobj_dir=.
699LIBOBJS=
700cross_compiling=no
701subdirs=
702MFLAGS=
703MAKEFLAGS=
cristy3ed852e2009-09-05 21:47:34 +0000704
705# Identity of this package.
706PACKAGE_NAME='ImageMagick'
707PACKAGE_TARNAME='ImageMagick'
cristyb36feb22010-03-26 16:54:37 +0000708PACKAGE_VERSION='6.6.1'
709PACKAGE_STRING='ImageMagick 6.6.1'
cristy3ed852e2009-09-05 21:47:34 +0000710PACKAGE_BUGREPORT='http://www.imagemagick.org'
cristy8b350f62009-11-15 23:12:43 +0000711PACKAGE_URL=''
cristy3ed852e2009-09-05 21:47:34 +0000712
713ac_unique_file="magick/MagickCore.h"
714ac_config_libobj_dir=ltdl
715# Factoring default headers for most tests.
716ac_includes_default="\
717#include <stdio.h>
718#ifdef HAVE_SYS_TYPES_H
719# include <sys/types.h>
720#endif
721#ifdef HAVE_SYS_STAT_H
722# include <sys/stat.h>
723#endif
724#ifdef STDC_HEADERS
725# include <stdlib.h>
726# include <stddef.h>
727#else
728# ifdef HAVE_STDLIB_H
729# include <stdlib.h>
730# endif
731#endif
732#ifdef HAVE_STRING_H
733# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
734# include <memory.h>
735# endif
736# include <string.h>
737#endif
738#ifdef HAVE_STRINGS_H
739# include <strings.h>
740#endif
741#ifdef HAVE_INTTYPES_H
742# include <inttypes.h>
743#endif
744#ifdef HAVE_STDINT_H
745# include <stdint.h>
746#endif
747#ifdef HAVE_UNISTD_H
748# include <unistd.h>
749#endif"
750
cristycd4c5312009-11-22 01:19:08 +0000751ac_header_list=
cristy3ed852e2009-09-05 21:47:34 +0000752ac_subst_vars='ltdl_LTLIBOBJS
753ltdl_LIBOBJS
754am__EXEEXT_FALSE
755am__EXEEXT_TRUE
756LTLIBOBJS
757MAGICK_LIBS
758MAGICK_LDFLAGS
759MAGICK_PCFLAGS
760MAGICK_CPPFLAGS
761MAGICK_CXXFLAGS
762MAGICK_CFLAGS
763MAGICK_DEP_LIBS
764MAGICK_LTDLDEPS
765MAGICK_LIBLTDL
766OSX_GCOV_LDFLAG
767DELEGATES
768MAGICKCORE_PATH
769PERL_SUPPORTS_DESTDIR
770WITH_PERL_DYNAMIC_FALSE
771WITH_PERL_DYNAMIC_TRUE
772WITH_PERL_STATIC_FALSE
773WITH_PERL_STATIC_TRUE
774WITH_PERL_FALSE
775WITH_PERL_TRUE
cristy964cb7f2010-04-25 23:18:00 +0000776PERL_VERSION
cristy3ed852e2009-09-05 21:47:34 +0000777GSVersion
778GSPSDevice
779GSPDFDevice
780GSMonoDevice
781GSEPSDevice
782GSColorDevice
783GSCMYKDevice
784GSAlphaDevice
785XPSVersion
786XPSCMYKDevice
787XPSColorDevice
788XPSMonoDevice
789PCLVersion
790PCLCMYKDevice
791PCLColorDevice
792PCLMonoDevice
793ZIP_DELEGATE_FALSE
794ZIP_DELEGATE_TRUE
795ZIP
796P7ZIP_DELEGATE_FALSE
797P7ZIP_DELEGATE_TRUE
798P7ZIP
799RPM_DELEGATE_FALSE
800RPM_DELEGATE_TRUE
801RPM
802PERL
803TAR
804ShowImageDelegate
805type_include_files
806ghostscript_font_dir
807windows_font_dir
cristy430a7312010-01-21 20:44:04 +0000808dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +0000809PrintDelegate
810ZipDelegate
811XPSDelegate
812WWWDecodeDelegate
813WMFDecodeDelegate
814TXTDelegate
815SCANDecodeDelegate
cristy4689cf02010-02-17 21:15:45 +0000816RSVGDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000817RMDelegate
818RLEEncodeDelegate
819PSDelegate
820POVDelegate
821PGPDecodeDelegate
822PCLDelegate
823MVDelegate
824MPEGEncodeDelegate
825MPEGDecodeDelegate
826MANDelegate
827LaunchDelegate
828LZWEncodeDelegate
829LZWDecodeDelegate
830LPRDelegate
831LPDelegate
832ILBMEncodeDelegate
833ILBMDecodeDelegate
834HTMLDecodeDelegate
835HPGLDecodeDelegate
836HDRDecodeDelegate
837GnuplotDecodeDelegate
838MogrifyDelegate
839DisplayDelegate
840ConvertDelegate
841FIGDecodeDelegate
842EditorDelegate
843EchoDelegate
844DVIDecodeDelegate
845GVCDecodeDelegate
846DNGDecodeDelegate
847CatDelegate
848CGMDecodeDelegate
849BrowseDelegate
850BZIPDelegate
851BlenderDecodeDelegate
852AVIDecodeDelegate
853AutotraceDecodeDelegate
854SHARE_CONFIGURE_PATH
855SHARE_PATH
856DOCUMENTATION_PATH
857FILTER_PATH
858CODER_PATH
859CONFIGURE_PATH
860LIBRARY_PATH
861EXECUTABLE_PATH
862PERLMAINCC
863XML_LIBS
864XML_DELEGATE_FALSE
865XML_DELEGATE_TRUE
866xml2_config
cristy3ed852e2009-09-05 21:47:34 +0000867WMF_LIBS
868WMF_DELEGATE_FALSE
869WMF_DELEGATE_TRUE
870TIFF_LIBS
871TIFF_DELEGATE_FALSE
872TIFF_DELEGATE_TRUE
873CAIRO_DELEGATE_FALSE
874CAIRO_DELEGATE_TRUE
875RSVG_DELEGATE_FALSE
876RSVG_DELEGATE_TRUE
877CAIRO_SVG_LIBS
878CAIRO_SVG_CFLAGS
879RSVG_LIBS
880RSVG_CFLAGS
881PNG_LIBS
882PNG_DELEGATE_FALSE
883PNG_DELEGATE_TRUE
884OPENEXR_DELEGATE_FALSE
885OPENEXR_DELEGATE_TRUE
886OPENEXR_LIBS
887OPENEXR_CFLAGS
888LQR_DELEGATE_FALSE
889LQR_DELEGATE_TRUE
890LQR_LIBS
891LQR_CFLAGS
892LCMS_LIBS
893LCMS_DELEGATE_FALSE
894LCMS_DELEGATE_TRUE
895JP2_LIBS
896JP2_DELEGATE_FALSE
897JP2_DELEGATE_TRUE
898JPEG_LIBS
899JPEG_DELEGATE_FALSE
900JPEG_DELEGATE_TRUE
901JBIG_LIBS
902JBIG_DELEGATE_FALSE
903JBIG_DELEGATE_TRUE
904GVC_DELEGATE_FALSE
905GVC_DELEGATE_TRUE
906GVC_LIBS
907GVC_CFLAGS
908GS_LIBS
909GS_DELEGATE_FALSE
910GS_DELEGATE_TRUE
911FREETYPE_LIBS
912FREETYPE_DELEGATE_FALSE
913FREETYPE_DELEGATE_TRUE
914freetype_config
915FONTCONFIG_DELEGATE_FALSE
916FONTCONFIG_DELEGATE_TRUE
917FONTCONFIG_LIBS
918FONTCONFIG_CFLAGS
919FPX_LIBS
920FPX_DELEGATE_FALSE
921FPX_DELEGATE_TRUE
922FFTW_LIBS
923FFTW_DELEGATE_FALSE
924FFTW_DELEGATE_TRUE
925DJVU_LIBS
926DJVU_DELEGATE_FALSE
927DJVU_DELEGATE_TRUE
928DPS_LIBS
929DPS_DELEGATE_FALSE
930DPS_DELEGATE_TRUE
931AUTOTRACE_DELEGATE_FALSE
932AUTOTRACE_DELEGATE_TRUE
933AUTOTRACE_LIBS
934AUTOTRACE_CFLAGS
935LIB_DL
936ZLIB_LIBS
937ZLIB_DELEGATE_FALSE
938ZLIB_DELEGATE_TRUE
939XEXT_LIBS
940X11_LIBS
941X11_DELEGATE_FALSE
942X11_DELEGATE_TRUE
943X_EXTRA_LIBS
944X_LIBS
945X_PRE_LIBS
946X_CFLAGS
cristyc7083c12009-10-14 03:16:55 +0000947XMKMF
cristy3ed852e2009-09-05 21:47:34 +0000948BZLIB_LIBS
949BZLIB_DELEGATE_FALSE
950BZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000951CCMALLOCDelegate
952UMEM_LIBS
953HasUMEM_FALSE
954HasUMEM_TRUE
955THREAD_LIBS
956GOMP_LIBS
957WITH_MAGICK_PLUS_PLUS_FALSE
958WITH_MAGICK_PLUS_PLUS_TRUE
959OPENMP_CXXFLAGS
cristy161b9262010-03-20 19:34:32 +0000960MATH_LIBS
cristy3ed852e2009-09-05 21:47:34 +0000961POW_LIB
962LIBOBJS
963UINTPTR_T
964UINTMAX_T
965UINT64_T
966INT64_T
967UINT32_T
968INT32_T
969UINT16_T
970INT16_T
971UINT8_T
972INT8_T
973LIBRARY_EXTRA_CPPFLAGS
974MODULE_EXTRA_CPPFLAGS
975LIBSTDCLDFLAGS
976PERL_MAKE_OPTIONS
977QUANTUM_DEPTH
978MAINT
979MAINTAINER_MODE_FALSE
980MAINTAINER_MODE_TRUE
981MAGICK_HDRI
982DLLDFLAGS
983WITH_LTDL_FALSE
984WITH_LTDL_TRUE
985WITH_MODULES_FALSE
986WITH_MODULES_TRUE
cristyfa112112010-01-04 17:48:07 +0000987WITH_SHARED_LIBS_FALSE
988WITH_SHARED_LIBS_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000989LTDLOPEN
990LT_CONFIG_H
991CONVENIENCE_LTDL_FALSE
992CONVENIENCE_LTDL_TRUE
993INSTALL_LTDL_FALSE
994INSTALL_LTDL_TRUE
995ARGZ_H
996sys_symbol_underscore
997LIBADD_DL
998LT_DLPREOPEN
999LIBADD_DLD_LINK
1000LIBADD_SHL_LOAD
1001LIBADD_DLOPEN
1002LT_DLLOADERS
1003INCLTDL
1004LTDLINCL
1005LTDLDEPS
1006LIBLTDL
1007LIBTOOL_DEPS
1008CXXCPP
1009OTOOL64
1010OTOOL
1011LIPO
1012NMEDIT
1013DSYMUTIL
cristy18304f92009-11-22 15:48:26 +00001014lt_ECHO
cristy4dc44432009-12-30 23:30:06 +00001015RANLIB
cristy3ed852e2009-09-05 21:47:34 +00001016AR
1017NM
1018ac_ct_DUMPBIN
1019DUMPBIN
1020LIBTOOL
1021OBJDUMP
1022DLLTOOL
1023AS
1024LFS_CPPFLAGS
cristy736173a2009-09-20 21:18:22 +00001025CL_LIBS
1026CL_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +00001027OPENMP_CFLAGS
1028PTHREAD_CFLAGS
1029PTHREAD_LIBS
cristy3ed852e2009-09-05 21:47:34 +00001030PTHREAD_CC
cristy964cb7f2010-04-25 23:18:00 +00001031ax_pthread_config
cristy3ed852e2009-09-05 21:47:34 +00001032WinPathScript
1033USING_CL_FALSE
1034USING_CL_TRUE
1035CYGWIN_BUILD_FALSE
1036CYGWIN_BUILD_TRUE
1037WIN32_NATIVE_BUILD_FALSE
1038WIN32_NATIVE_BUILD_TRUE
1039WINGDI32_DELEGATE_FALSE
1040WINGDI32_DELEGATE_TRUE
1041GDI32_LIBS
1042PKG_CONFIG
1043LN_S
cristy3ed852e2009-09-05 21:47:34 +00001044LD
1045FGREP
cristy3ed852e2009-09-05 21:47:34 +00001046SED
cristy95646052009-11-28 23:05:30 +00001047am__fastdepCXX_FALSE
1048am__fastdepCXX_TRUE
1049CXXDEPMODE
1050ac_ct_CXX
1051CXXFLAGS
1052CXX
cristya0b81c32010-01-22 02:54:33 +00001053EGREP
1054GREP
1055CPP
cristy3ed852e2009-09-05 21:47:34 +00001056am__fastdepCC_FALSE
1057am__fastdepCC_TRUE
1058CCDEPMODE
1059AMDEPBACKSLASH
1060AMDEP_FALSE
1061AMDEP_TRUE
1062am__quote
1063am__include
1064DEPDIR
1065OBJEXT
1066EXEEXT
1067ac_ct_CC
1068CPPFLAGS
1069LDFLAGS
1070CFLAGS
1071CC
1072DIRSEP
1073MAGICK_FILTER_MODULE_PATH
1074MAGICK_CONFIGURE_BUILD_PATH
1075MAGICK_CONFIGURE_SRC_PATH
1076MAGICK_CODER_MODULE_PATH
1077MAN_DIR
1078INFO_DIR
1079PERSISTINCLUDE_DIR
1080INCLUDE_DIR
1081LIB_DIR
1082LOCALSTATE_DIR
1083SHAREDSTATE_DIR
1084SYSCONF_DIR
1085DATA_DIR
1086LIBEXEC_DIR
1087SBIN_DIR
1088BIN_DIR
1089EXEC_PREFIX_DIR
1090PREFIX_DIR
1091CONFIG_STATUS_DEPENDENCIES
1092MAGICK_LIB_VERSION_NUMBER
1093MAGICK_LIB_VERSION_TEXT
1094MAGICK_LIB_VERSION
1095AM_BACKSLASH
1096AM_DEFAULT_VERBOSITY
1097am__untar
1098am__tar
1099AMTAR
1100am__leading_dot
1101SET_MAKE
1102AWK
1103mkdir_p
1104MKDIR_P
1105INSTALL_STRIP_PROGRAM
1106STRIP
1107install_sh
1108MAKEINFO
1109AUTOHEADER
1110AUTOMAKE
1111AUTOCONF
1112ACLOCAL
1113VERSION
1114PACKAGE
1115CYGPATH_W
1116am__isrc
1117INSTALL_DATA
1118INSTALL_SCRIPT
1119INSTALL_PROGRAM
cristy15a88782010-01-31 23:24:49 +00001120PACKAGE_VERSION_ADDENDUM
cristy3ed852e2009-09-05 21:47:34 +00001121PACKAGE_RELEASE_DATE
1122PACKAGE_LIB_VERSION_NUMBER
1123PACKAGE_LIB_VERSION
1124PACKAGE_CHANGE_DATE
1125PACKAGE_RELEASE
cristybab87c32010-02-09 20:54:22 +00001126MAGICK_LIBRARY_VERSION_INFO
1127MAGICK_LIBRARY_CURRENT_MIN
cristy3ed852e2009-09-05 21:47:34 +00001128MAGICK_LIBRARY_AGE
1129MAGICK_LIBRARY_REVISION
1130MAGICK_LIBRARY_CURRENT
cristy3225a072010-04-17 01:47:28 +00001131MAGICK_TARGET_OS
1132MAGICK_TARGET_VENDOR
1133MAGICK_TARGET_CPU
cristy3ed852e2009-09-05 21:47:34 +00001134target_os
1135target_vendor
1136target_cpu
1137target
1138host_os
1139host_vendor
1140host_cpu
1141host
1142build_os
1143build_vendor
1144build_cpu
1145build
1146CONFIGURE_ARGS
1147DISTCHECK_CONFIG_FLAGS
1148target_alias
1149host_alias
1150build_alias
1151LIBS
1152ECHO_T
1153ECHO_N
1154ECHO_C
1155DEFS
1156mandir
1157localedir
1158libdir
1159psdir
1160pdfdir
1161dvidir
1162htmldir
1163infodir
1164docdir
1165oldincludedir
1166includedir
1167localstatedir
1168sharedstatedir
1169sysconfdir
1170datadir
1171datarootdir
1172libexecdir
1173sbindir
1174bindir
1175program_transform_name
1176prefix
1177exec_prefix
cristy8b350f62009-11-15 23:12:43 +00001178PACKAGE_URL
cristy3ed852e2009-09-05 21:47:34 +00001179PACKAGE_BUGREPORT
1180PACKAGE_STRING
1181PACKAGE_VERSION
1182PACKAGE_TARNAME
1183PACKAGE_NAME
1184PATH_SEPARATOR
1185SHELL'
1186ac_subst_files=''
1187ac_user_opts='
1188enable_option_checking
1189enable_silent_rules
1190enable_dependency_tracking
1191with_gnu_ld
cristy3ed852e2009-09-05 21:47:34 +00001192with_dmalloc
1193enable_bounds_checking
1194enable_osx_universal_binary
1195with_threads
1196enable_openmp
cristy43596fe2010-01-21 16:46:08 +00001197enable_opencl
cristy3ed852e2009-09-05 21:47:34 +00001198enable_largefile
1199enable_shared
1200enable_static
1201with_pic
1202enable_fast_install
1203enable_libtool_lock
1204with_included_ltdl
1205with_ltdl_include
1206with_ltdl_lib
1207enable_ltdl_install
1208with_modules
1209enable_delegate_build
1210enable_deprecated
1211enable_installed
1212enable_cipher
1213enable_embeddable
1214enable_hdri
cristy3ed852e2009-09-05 21:47:34 +00001215enable_assert
1216enable_maintainer_mode
1217enable_ccmalloc
1218enable_efence
1219enable_prof
1220enable_gprof
1221enable_gcov
1222with_method_prefix
1223with_quantum_depth
1224with_cache
1225with_frozenpaths
1226with_magick_plus_plus
1227with_perl
1228with_perl_options
1229with_umem
1230with_libstdc
1231with_bzlib
cristyc7083c12009-10-14 03:16:55 +00001232with_x
cristy3ed852e2009-09-05 21:47:34 +00001233with_zlib
1234with_autotrace
1235with_dps
1236with_djvu
cristy430a7312010-01-21 20:44:04 +00001237with_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +00001238with_fftw
1239with_fpx
1240with_fontconfig
1241with_freetype
1242with_gslib
1243with_fontpath
1244with_gs_font_dir
1245with_gvc
1246with_jbig
1247with_jpeg
1248with_jp2
1249with_lcms
1250with_lqr
1251with_openexr
1252with_png
1253with_rsvg
1254with_tiff
1255with_windows_font_dir
1256with_wmf
1257with_xml
1258'
1259 ac_precious_vars='build_alias
1260host_alias
1261target_alias
1262CC
1263CFLAGS
1264LDFLAGS
1265LIBS
1266CPPFLAGS
cristya0b81c32010-01-22 02:54:33 +00001267CPP
cristy3ed852e2009-09-05 21:47:34 +00001268CXX
1269CXXFLAGS
1270CCC
1271PKG_CONFIG
cristy736173a2009-09-20 21:18:22 +00001272CXXCPP
cristyc7083c12009-10-14 03:16:55 +00001273XMKMF
cristy3ed852e2009-09-05 21:47:34 +00001274AUTOTRACE_CFLAGS
1275AUTOTRACE_LIBS
1276FONTCONFIG_CFLAGS
1277FONTCONFIG_LIBS
1278GVC_CFLAGS
1279GVC_LIBS
1280LQR_CFLAGS
1281LQR_LIBS
1282OPENEXR_CFLAGS
1283OPENEXR_LIBS
1284RSVG_CFLAGS
1285RSVG_LIBS
1286CAIRO_SVG_CFLAGS
1287CAIRO_SVG_LIBS'
1288
1289
1290# Initialize some variables set by options.
1291ac_init_help=
1292ac_init_version=false
1293ac_unrecognized_opts=
1294ac_unrecognized_sep=
1295# The variables have the same names as the options, with
1296# dashes changed to underlines.
1297cache_file=/dev/null
1298exec_prefix=NONE
1299no_create=
1300no_recursion=
1301prefix=NONE
1302program_prefix=NONE
1303program_suffix=NONE
1304program_transform_name=s,x,x,
1305silent=
1306site=
1307srcdir=
1308verbose=
1309x_includes=NONE
1310x_libraries=NONE
1311
1312# Installation directory options.
1313# These are left unexpanded so users can "make install exec_prefix=/foo"
1314# and all the variables that are supposed to be based on exec_prefix
1315# by default will actually change.
1316# Use braces instead of parens because sh, perl, etc. also accept them.
1317# (The list follows the same order as the GNU Coding Standards.)
1318bindir='${exec_prefix}/bin'
1319sbindir='${exec_prefix}/sbin'
1320libexecdir='${exec_prefix}/libexec'
1321datarootdir='${prefix}/share'
1322datadir='${datarootdir}'
1323sysconfdir='${prefix}/etc'
1324sharedstatedir='${prefix}/com'
1325localstatedir='${prefix}/var'
1326includedir='${prefix}/include'
1327oldincludedir='/usr/include'
1328docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1329infodir='${datarootdir}/info'
1330htmldir='${docdir}'
1331dvidir='${docdir}'
1332pdfdir='${docdir}'
1333psdir='${docdir}'
1334libdir='${exec_prefix}/lib'
1335localedir='${datarootdir}/locale'
1336mandir='${datarootdir}/man'
1337
1338ac_prev=
1339ac_dashdash=
1340for ac_option
1341do
1342 # If the previous option needs an argument, assign it.
1343 if test -n "$ac_prev"; then
1344 eval $ac_prev=\$ac_option
1345 ac_prev=
1346 continue
1347 fi
1348
1349 case $ac_option in
1350 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1351 *) ac_optarg=yes ;;
1352 esac
1353
1354 # Accept the important Cygnus configure options, so we can diagnose typos.
1355
1356 case $ac_dashdash$ac_option in
1357 --)
1358 ac_dashdash=yes ;;
1359
1360 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1361 ac_prev=bindir ;;
1362 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1363 bindir=$ac_optarg ;;
1364
1365 -build | --build | --buil | --bui | --bu)
1366 ac_prev=build_alias ;;
1367 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1368 build_alias=$ac_optarg ;;
1369
1370 -cache-file | --cache-file | --cache-fil | --cache-fi \
1371 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1372 ac_prev=cache_file ;;
1373 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1374 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1375 cache_file=$ac_optarg ;;
1376
1377 --config-cache | -C)
1378 cache_file=config.cache ;;
1379
1380 -datadir | --datadir | --datadi | --datad)
1381 ac_prev=datadir ;;
1382 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1383 datadir=$ac_optarg ;;
1384
1385 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1386 | --dataroo | --dataro | --datar)
1387 ac_prev=datarootdir ;;
1388 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1389 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1390 datarootdir=$ac_optarg ;;
1391
1392 -disable-* | --disable-*)
1393 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1394 # Reject names that are not valid shell variable names.
1395 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy8b350f62009-11-15 23:12:43 +00001396 as_fn_error "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001397 ac_useropt_orig=$ac_useropt
1398 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1399 case $ac_user_opts in
1400 *"
1401"enable_$ac_useropt"
1402"*) ;;
1403 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1404 ac_unrecognized_sep=', ';;
1405 esac
1406 eval enable_$ac_useropt=no ;;
1407
1408 -docdir | --docdir | --docdi | --doc | --do)
1409 ac_prev=docdir ;;
1410 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1411 docdir=$ac_optarg ;;
1412
1413 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1414 ac_prev=dvidir ;;
1415 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1416 dvidir=$ac_optarg ;;
1417
1418 -enable-* | --enable-*)
1419 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1420 # Reject names that are not valid shell variable names.
1421 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy8b350f62009-11-15 23:12:43 +00001422 as_fn_error "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001423 ac_useropt_orig=$ac_useropt
1424 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1425 case $ac_user_opts in
1426 *"
1427"enable_$ac_useropt"
1428"*) ;;
1429 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1430 ac_unrecognized_sep=', ';;
1431 esac
1432 eval enable_$ac_useropt=\$ac_optarg ;;
1433
1434 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1435 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1436 | --exec | --exe | --ex)
1437 ac_prev=exec_prefix ;;
1438 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1439 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1440 | --exec=* | --exe=* | --ex=*)
1441 exec_prefix=$ac_optarg ;;
1442
1443 -gas | --gas | --ga | --g)
1444 # Obsolete; use --with-gas.
1445 with_gas=yes ;;
1446
1447 -help | --help | --hel | --he | -h)
1448 ac_init_help=long ;;
1449 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1450 ac_init_help=recursive ;;
1451 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1452 ac_init_help=short ;;
1453
1454 -host | --host | --hos | --ho)
1455 ac_prev=host_alias ;;
1456 -host=* | --host=* | --hos=* | --ho=*)
1457 host_alias=$ac_optarg ;;
1458
1459 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1460 ac_prev=htmldir ;;
1461 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1462 | --ht=*)
1463 htmldir=$ac_optarg ;;
1464
1465 -includedir | --includedir | --includedi | --included | --include \
1466 | --includ | --inclu | --incl | --inc)
1467 ac_prev=includedir ;;
1468 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1469 | --includ=* | --inclu=* | --incl=* | --inc=*)
1470 includedir=$ac_optarg ;;
1471
1472 -infodir | --infodir | --infodi | --infod | --info | --inf)
1473 ac_prev=infodir ;;
1474 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1475 infodir=$ac_optarg ;;
1476
1477 -libdir | --libdir | --libdi | --libd)
1478 ac_prev=libdir ;;
1479 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1480 libdir=$ac_optarg ;;
1481
1482 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1483 | --libexe | --libex | --libe)
1484 ac_prev=libexecdir ;;
1485 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1486 | --libexe=* | --libex=* | --libe=*)
1487 libexecdir=$ac_optarg ;;
1488
1489 -localedir | --localedir | --localedi | --localed | --locale)
1490 ac_prev=localedir ;;
1491 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1492 localedir=$ac_optarg ;;
1493
1494 -localstatedir | --localstatedir | --localstatedi | --localstated \
1495 | --localstate | --localstat | --localsta | --localst | --locals)
1496 ac_prev=localstatedir ;;
1497 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1498 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1499 localstatedir=$ac_optarg ;;
1500
1501 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1502 ac_prev=mandir ;;
1503 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1504 mandir=$ac_optarg ;;
1505
1506 -nfp | --nfp | --nf)
1507 # Obsolete; use --without-fp.
1508 with_fp=no ;;
1509
1510 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1511 | --no-cr | --no-c | -n)
1512 no_create=yes ;;
1513
1514 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1515 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1516 no_recursion=yes ;;
1517
1518 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1519 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1520 | --oldin | --oldi | --old | --ol | --o)
1521 ac_prev=oldincludedir ;;
1522 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1523 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1524 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1525 oldincludedir=$ac_optarg ;;
1526
1527 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1528 ac_prev=prefix ;;
1529 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1530 prefix=$ac_optarg ;;
1531
1532 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1533 | --program-pre | --program-pr | --program-p)
1534 ac_prev=program_prefix ;;
1535 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1536 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1537 program_prefix=$ac_optarg ;;
1538
1539 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1540 | --program-suf | --program-su | --program-s)
1541 ac_prev=program_suffix ;;
1542 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1543 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1544 program_suffix=$ac_optarg ;;
1545
1546 -program-transform-name | --program-transform-name \
1547 | --program-transform-nam | --program-transform-na \
1548 | --program-transform-n | --program-transform- \
1549 | --program-transform | --program-transfor \
1550 | --program-transfo | --program-transf \
1551 | --program-trans | --program-tran \
1552 | --progr-tra | --program-tr | --program-t)
1553 ac_prev=program_transform_name ;;
1554 -program-transform-name=* | --program-transform-name=* \
1555 | --program-transform-nam=* | --program-transform-na=* \
1556 | --program-transform-n=* | --program-transform-=* \
1557 | --program-transform=* | --program-transfor=* \
1558 | --program-transfo=* | --program-transf=* \
1559 | --program-trans=* | --program-tran=* \
1560 | --progr-tra=* | --program-tr=* | --program-t=*)
1561 program_transform_name=$ac_optarg ;;
1562
1563 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1564 ac_prev=pdfdir ;;
1565 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1566 pdfdir=$ac_optarg ;;
1567
1568 -psdir | --psdir | --psdi | --psd | --ps)
1569 ac_prev=psdir ;;
1570 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1571 psdir=$ac_optarg ;;
1572
1573 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1574 | -silent | --silent | --silen | --sile | --sil)
1575 silent=yes ;;
1576
1577 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1578 ac_prev=sbindir ;;
1579 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1580 | --sbi=* | --sb=*)
1581 sbindir=$ac_optarg ;;
1582
1583 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1584 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1585 | --sharedst | --shareds | --shared | --share | --shar \
1586 | --sha | --sh)
1587 ac_prev=sharedstatedir ;;
1588 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1589 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1590 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1591 | --sha=* | --sh=*)
1592 sharedstatedir=$ac_optarg ;;
1593
1594 -site | --site | --sit)
1595 ac_prev=site ;;
1596 -site=* | --site=* | --sit=*)
1597 site=$ac_optarg ;;
1598
1599 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1600 ac_prev=srcdir ;;
1601 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1602 srcdir=$ac_optarg ;;
1603
1604 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1605 | --syscon | --sysco | --sysc | --sys | --sy)
1606 ac_prev=sysconfdir ;;
1607 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1608 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1609 sysconfdir=$ac_optarg ;;
1610
1611 -target | --target | --targe | --targ | --tar | --ta | --t)
1612 ac_prev=target_alias ;;
1613 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1614 target_alias=$ac_optarg ;;
1615
1616 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1617 verbose=yes ;;
1618
1619 -version | --version | --versio | --versi | --vers | -V)
1620 ac_init_version=: ;;
1621
1622 -with-* | --with-*)
1623 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1624 # Reject names that are not valid shell variable names.
1625 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy8b350f62009-11-15 23:12:43 +00001626 as_fn_error "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001627 ac_useropt_orig=$ac_useropt
1628 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1629 case $ac_user_opts in
1630 *"
1631"with_$ac_useropt"
1632"*) ;;
1633 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1634 ac_unrecognized_sep=', ';;
1635 esac
1636 eval with_$ac_useropt=\$ac_optarg ;;
1637
1638 -without-* | --without-*)
1639 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1640 # Reject names that are not valid shell variable names.
1641 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy8b350f62009-11-15 23:12:43 +00001642 as_fn_error "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001643 ac_useropt_orig=$ac_useropt
1644 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1645 case $ac_user_opts in
1646 *"
1647"with_$ac_useropt"
1648"*) ;;
1649 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1650 ac_unrecognized_sep=', ';;
1651 esac
1652 eval with_$ac_useropt=no ;;
1653
1654 --x)
1655 # Obsolete; use --with-x.
1656 with_x=yes ;;
1657
1658 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1659 | --x-incl | --x-inc | --x-in | --x-i)
1660 ac_prev=x_includes ;;
1661 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1662 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1663 x_includes=$ac_optarg ;;
1664
1665 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1666 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1667 ac_prev=x_libraries ;;
1668 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1669 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1670 x_libraries=$ac_optarg ;;
1671
cristy8b350f62009-11-15 23:12:43 +00001672 -*) as_fn_error "unrecognized option: \`$ac_option'
1673Try \`$0 --help' for more information."
cristy3ed852e2009-09-05 21:47:34 +00001674 ;;
1675
1676 *=*)
1677 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1678 # Reject names that are not valid shell variable names.
cristy8b350f62009-11-15 23:12:43 +00001679 case $ac_envvar in #(
1680 '' | [0-9]* | *[!_$as_cr_alnum]* )
1681 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1682 esac
cristy3ed852e2009-09-05 21:47:34 +00001683 eval $ac_envvar=\$ac_optarg
1684 export $ac_envvar ;;
1685
1686 *)
1687 # FIXME: should be removed in autoconf 3.0.
1688 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1689 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1690 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1691 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1692 ;;
1693
1694 esac
1695done
1696
1697if test -n "$ac_prev"; then
1698 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
cristy8b350f62009-11-15 23:12:43 +00001699 as_fn_error "missing argument to $ac_option"
cristy3ed852e2009-09-05 21:47:34 +00001700fi
1701
1702if test -n "$ac_unrecognized_opts"; then
1703 case $enable_option_checking in
1704 no) ;;
cristy8b350f62009-11-15 23:12:43 +00001705 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
cristy3ed852e2009-09-05 21:47:34 +00001706 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1707 esac
1708fi
1709
1710# Check all directory arguments for consistency.
1711for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1712 datadir sysconfdir sharedstatedir localstatedir includedir \
1713 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1714 libdir localedir mandir
1715do
1716 eval ac_val=\$$ac_var
1717 # Remove trailing slashes.
1718 case $ac_val in
1719 */ )
1720 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1721 eval $ac_var=\$ac_val;;
1722 esac
1723 # Be sure to have absolute directory names.
1724 case $ac_val in
1725 [\\/$]* | ?:[\\/]* ) continue;;
1726 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1727 esac
cristy8b350f62009-11-15 23:12:43 +00001728 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
cristy3ed852e2009-09-05 21:47:34 +00001729done
1730
1731# There might be people who depend on the old broken behavior: `$host'
1732# used to hold the argument of --host etc.
1733# FIXME: To remove some day.
1734build=$build_alias
1735host=$host_alias
1736target=$target_alias
1737
1738# FIXME: To remove some day.
1739if test "x$host_alias" != x; then
1740 if test "x$build_alias" = x; then
1741 cross_compiling=maybe
1742 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1743 If a cross compiler is detected then cross compile mode will be used." >&2
1744 elif test "x$build_alias" != "x$host_alias"; then
1745 cross_compiling=yes
1746 fi
1747fi
1748
1749ac_tool_prefix=
1750test -n "$host_alias" && ac_tool_prefix=$host_alias-
1751
1752test "$silent" = yes && exec 6>/dev/null
1753
1754
1755ac_pwd=`pwd` && test -n "$ac_pwd" &&
1756ac_ls_di=`ls -di .` &&
1757ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
cristy8b350f62009-11-15 23:12:43 +00001758 as_fn_error "working directory cannot be determined"
cristy3ed852e2009-09-05 21:47:34 +00001759test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
cristy8b350f62009-11-15 23:12:43 +00001760 as_fn_error "pwd does not report name of working directory"
cristy3ed852e2009-09-05 21:47:34 +00001761
1762
1763# Find the source files, if location was not specified.
1764if test -z "$srcdir"; then
1765 ac_srcdir_defaulted=yes
1766 # Try the directory containing this script, then the parent directory.
1767 ac_confdir=`$as_dirname -- "$as_myself" ||
1768$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1769 X"$as_myself" : 'X\(//\)[^/]' \| \
1770 X"$as_myself" : 'X\(//\)$' \| \
1771 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1772$as_echo X"$as_myself" |
1773 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1774 s//\1/
1775 q
1776 }
1777 /^X\(\/\/\)[^/].*/{
1778 s//\1/
1779 q
1780 }
1781 /^X\(\/\/\)$/{
1782 s//\1/
1783 q
1784 }
1785 /^X\(\/\).*/{
1786 s//\1/
1787 q
1788 }
1789 s/.*/./; q'`
1790 srcdir=$ac_confdir
1791 if test ! -r "$srcdir/$ac_unique_file"; then
1792 srcdir=..
1793 fi
1794else
1795 ac_srcdir_defaulted=no
1796fi
1797if test ! -r "$srcdir/$ac_unique_file"; then
1798 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
cristy8b350f62009-11-15 23:12:43 +00001799 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
cristy3ed852e2009-09-05 21:47:34 +00001800fi
1801ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1802ac_abs_confdir=`(
cristy8b350f62009-11-15 23:12:43 +00001803 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
cristy3ed852e2009-09-05 21:47:34 +00001804 pwd)`
1805# When building in place, set srcdir=.
1806if test "$ac_abs_confdir" = "$ac_pwd"; then
1807 srcdir=.
1808fi
1809# Remove unnecessary trailing slashes from srcdir.
1810# Double slashes in file names in object file debugging info
1811# mess up M-x gdb in Emacs.
1812case $srcdir in
1813*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1814esac
1815for ac_var in $ac_precious_vars; do
1816 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1817 eval ac_env_${ac_var}_value=\$${ac_var}
1818 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1819 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1820done
1821
1822#
1823# Report the --help message.
1824#
1825if test "$ac_init_help" = "long"; then
1826 # Omit some internal or obsolete options to make the list less imposing.
1827 # This message is too long to be a string in the A/UX 3.1 sh.
1828 cat <<_ACEOF
cristyb36feb22010-03-26 16:54:37 +00001829\`configure' configures ImageMagick 6.6.1 to adapt to many kinds of systems.
cristy3ed852e2009-09-05 21:47:34 +00001830
1831Usage: $0 [OPTION]... [VAR=VALUE]...
1832
1833To assign environment variables (e.g., CC, CFLAGS...), specify them as
1834VAR=VALUE. See below for descriptions of some of the useful variables.
1835
1836Defaults for the options are specified in brackets.
1837
1838Configuration:
1839 -h, --help display this help and exit
1840 --help=short display options specific to this package
1841 --help=recursive display the short help of all the included packages
1842 -V, --version display version information and exit
1843 -q, --quiet, --silent do not print \`checking...' messages
1844 --cache-file=FILE cache test results in FILE [disabled]
1845 -C, --config-cache alias for \`--cache-file=config.cache'
1846 -n, --no-create do not create output files
1847 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1848
1849Installation directories:
1850 --prefix=PREFIX install architecture-independent files in PREFIX
1851 [$ac_default_prefix]
1852 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1853 [PREFIX]
1854
1855By default, \`make install' will install all the files in
1856\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1857an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1858for instance \`--prefix=\$HOME'.
1859
1860For better control, use the options below.
1861
1862Fine tuning of the installation directories:
1863 --bindir=DIR user executables [EPREFIX/bin]
1864 --sbindir=DIR system admin executables [EPREFIX/sbin]
1865 --libexecdir=DIR program executables [EPREFIX/libexec]
1866 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1867 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1868 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1869 --libdir=DIR object code libraries [EPREFIX/lib]
1870 --includedir=DIR C header files [PREFIX/include]
1871 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1872 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1873 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1874 --infodir=DIR info documentation [DATAROOTDIR/info]
1875 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1876 --mandir=DIR man documentation [DATAROOTDIR/man]
1877 --docdir=DIR documentation root [DATAROOTDIR/doc/ImageMagick]
1878 --htmldir=DIR html documentation [DOCDIR]
1879 --dvidir=DIR dvi documentation [DOCDIR]
1880 --pdfdir=DIR pdf documentation [DOCDIR]
1881 --psdir=DIR ps documentation [DOCDIR]
1882_ACEOF
1883
1884 cat <<\_ACEOF
1885
1886Program names:
1887 --program-prefix=PREFIX prepend PREFIX to installed program names
1888 --program-suffix=SUFFIX append SUFFIX to installed program names
1889 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1890
1891X features:
1892 --x-includes=DIR X include files are in DIR
1893 --x-libraries=DIR X library files are in DIR
1894
1895System types:
1896 --build=BUILD configure for building on BUILD [guessed]
1897 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1898 --target=TARGET configure for building compilers for TARGET [HOST]
1899_ACEOF
1900fi
1901
1902if test -n "$ac_init_help"; then
1903 case $ac_init_help in
cristyb36feb22010-03-26 16:54:37 +00001904 short | recursive ) echo "Configuration of ImageMagick 6.6.1:";;
cristy3ed852e2009-09-05 21:47:34 +00001905 esac
1906 cat <<\_ACEOF
1907
1908Optional Features:
1909 --disable-option-checking ignore unrecognized --enable/--with options
1910 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1911 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1912 --enable-silent-rules less verbose build output (undo: `make V=1')
1913 --disable-silent-rules verbose build output (undo: `make V=0')
1914 --disable-dependency-tracking speeds up one-time build
1915 --enable-dependency-tracking do not reject slow dependency extractors
1916 --bounds-checking enable run-time bounds-checking
1917 --enable-osx-universal-binary
cristycd4c5312009-11-22 01:19:08 +00001918 build universal binary on OS X [[default=no]]
cristy3ed852e2009-09-05 21:47:34 +00001919 --disable-openmp do not use OpenMP
cristy43596fe2010-01-21 16:46:08 +00001920 --disable-opencl do not use OpenCL
cristy3ed852e2009-09-05 21:47:34 +00001921 --disable-largefile omit support for large files
1922 --enable-shared[=PKGS] build shared libraries [default=yes]
1923 --enable-static[=PKGS] build static libraries [default=yes]
1924 --enable-fast-install[=PKGS]
1925 optimize for fast installation [default=yes]
1926 --disable-libtool-lock avoid locking (might break parallel builds)
1927 --enable-ltdl-install install libltdl
1928 --enable-delegate-build look for delegate libraries in build directory
1929 --disable-deprecated exclude deprecated methods in MagickCore and
1930 MagickWand API's
1931 --disable-installed Formally install ImageMagick under PREFIX
1932 --disable-cipher disable enciphering and deciphering image pixels
1933 --enable-embeddable enable self-contained, embeddable,
1934 zero-configuration ImageMagick
1935 --enable-hdri accurately represent the wide range of intensity
1936 levels found in real scenes
cristy3ed852e2009-09-05 21:47:34 +00001937 --disable-assert disable assert() statements in build
1938 --enable-maintainer-mode enable make rules and dependencies not useful
1939 (and sometimes confusing) to the casual installer
1940 --enable-ccmalloc enable 'ccmalloc' memory debug support
1941 --enable-efence enable 'efence' memory debug support
1942 --enable-prof enable 'prof' profiling support
1943 --enable-gprof enable 'gprof' profiling support
1944 --enable-gcov enable 'gcov' profiling support
cristya0b81c32010-01-22 02:54:33 +00001945 --disable-assert turn off assertions
cristy3ed852e2009-09-05 21:47:34 +00001946
1947Optional Packages:
1948 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1949 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1950 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
cristy3ed852e2009-09-05 21:47:34 +00001951 --with-dmalloc use dmalloc, as in
1952 http://www.dmalloc.com/dmalloc.tar.gz
1953 --without-threads disable threads support
1954 --with-pic try to use only PIC/non-PIC objects [default=use
1955 both]
1956 --with-included-ltdl use the GNU ltdl sources included here
1957 --with-ltdl-include=DIR use the ltdl headers installed in DIR
1958 --with-ltdl-lib=DIR use the libltdl.la installed in DIR
1959 --with-modules enable building dynamically loadable modules
1960 --with-method-prefix=PREFIX
1961 prefix MagickCore API methods
1962 --with-quantum-depth=DEPTH
1963 number of bits in a pixel quantum (default 16)
1964 --with-cache=THRESHOLD set pixel cache threshhold in MB (default available
1965 memory)
1966 --with-frozenpaths freeze delegate paths
1967 --without-magick-plus-plus
1968 disable build/install of Magick++
1969 --with-perl enable build/install of PerlMagick
1970 --with-perl-options=OPTIONS
1971 options to pass on command-line when generating
1972 PerlMagick's build file
1973 --with-umem enable umem memory allocation library support
1974 --with-libstdc=DIR use libstdc++ in DIR (for GNU C++)
1975 --without-bzlib disable BZLIB support
cristyc7083c12009-10-14 03:16:55 +00001976 --with-x use the X Window System
cristy3ed852e2009-09-05 21:47:34 +00001977 --without-zlib disable ZLIB support
1978 --with-autotrace enable autotrace support
1979 --without-dps disable Display Postscript support
1980 --without-djvu disable DjVu support
cristy430a7312010-01-21 20:44:04 +00001981 --with-dejavu-font-dir=DIR
1982 DejaVu font directory
cristy3ed852e2009-09-05 21:47:34 +00001983 --without-fftw disable FFTW support
1984 --without-fpx disable FlashPIX support
1985 --without-fontconfig disable fontconfig support
1986 --without-freetype disable Freetype support
1987 --without-gslib enable Ghostscript library support
1988 --with-fontpath=DIR prepend to default font search path
1989 --with-gs-font-dir=DIR Ghostscript font directory
1990 --without-gvc disable GVC support
1991 --without-jbig disable JBIG support
1992 --without-jpeg disable JPEG support
1993 --without-jp2 disable JPEG-2000 support
1994 --without-lcms disable LCMS support
cristyf0c78232010-03-15 12:53:40 +00001995 --without-lqr disable Liquid Rescale support
cristy3ed852e2009-09-05 21:47:34 +00001996 --without-openexr disable OpenEXR support
1997 --without-png disable PNG support
1998 --without-rsvg disable RSVG support
1999 --without-tiff disable TIFF support
2000 --with-windows-font-dir=DIR
2001 directory containing MS-Windows fonts
2002 --without-wmf disable WMF support
2003 --without-xml disable XML support
2004
2005Some influential environment variables:
2006 CC C compiler command
2007 CFLAGS C compiler flags
2008 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2009 nonstandard directory <lib dir>
2010 LIBS libraries to pass to the linker, e.g. -l<library>
cristycd4c5312009-11-22 01:19:08 +00002011 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
cristy3ed852e2009-09-05 21:47:34 +00002012 you have headers in a nonstandard directory <include dir>
cristya0b81c32010-01-22 02:54:33 +00002013 CPP C preprocessor
cristy3ed852e2009-09-05 21:47:34 +00002014 CXX C++ compiler command
2015 CXXFLAGS C++ compiler flags
2016 PKG_CONFIG path to pkg-config utility
cristy736173a2009-09-20 21:18:22 +00002017 CXXCPP C++ preprocessor
cristyc7083c12009-10-14 03:16:55 +00002018 XMKMF Path to xmkmf, Makefile generator for X Window System
cristy3ed852e2009-09-05 21:47:34 +00002019 AUTOTRACE_CFLAGS
2020 C compiler flags for AUTOTRACE, overriding pkg-config
2021 AUTOTRACE_LIBS
2022 linker flags for AUTOTRACE, overriding pkg-config
2023 FONTCONFIG_CFLAGS
2024 C compiler flags for FONTCONFIG, overriding pkg-config
2025 FONTCONFIG_LIBS
2026 linker flags for FONTCONFIG, overriding pkg-config
2027 GVC_CFLAGS C compiler flags for GVC, overriding pkg-config
2028 GVC_LIBS linker flags for GVC, overriding pkg-config
2029 LQR_CFLAGS C compiler flags for LQR, overriding pkg-config
2030 LQR_LIBS linker flags for LQR, overriding pkg-config
2031 OPENEXR_CFLAGS
2032 C compiler flags for OPENEXR, overriding pkg-config
2033 OPENEXR_LIBS
2034 linker flags for OPENEXR, overriding pkg-config
2035 RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
2036 RSVG_LIBS linker flags for RSVG, overriding pkg-config
2037 CAIRO_SVG_CFLAGS
2038 C compiler flags for CAIRO_SVG, overriding pkg-config
2039 CAIRO_SVG_LIBS
2040 linker flags for CAIRO_SVG, overriding pkg-config
2041
2042Use these variables to override the choices made by `configure' or to help
2043it to find libraries and programs with nonstandard names/locations.
2044
2045Report bugs to <http://www.imagemagick.org>.
2046_ACEOF
2047ac_status=$?
2048fi
2049
2050if test "$ac_init_help" = "recursive"; then
2051 # If there are subdirs, report their specific --help.
2052 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2053 test -d "$ac_dir" ||
2054 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2055 continue
2056 ac_builddir=.
2057
2058case "$ac_dir" in
2059.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2060*)
2061 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2062 # A ".." for each directory in $ac_dir_suffix.
2063 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2064 case $ac_top_builddir_sub in
2065 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2066 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2067 esac ;;
2068esac
2069ac_abs_top_builddir=$ac_pwd
2070ac_abs_builddir=$ac_pwd$ac_dir_suffix
2071# for backward compatibility:
2072ac_top_builddir=$ac_top_build_prefix
2073
2074case $srcdir in
2075 .) # We are building in place.
2076 ac_srcdir=.
2077 ac_top_srcdir=$ac_top_builddir_sub
2078 ac_abs_top_srcdir=$ac_pwd ;;
2079 [\\/]* | ?:[\\/]* ) # Absolute name.
2080 ac_srcdir=$srcdir$ac_dir_suffix;
2081 ac_top_srcdir=$srcdir
2082 ac_abs_top_srcdir=$srcdir ;;
2083 *) # Relative name.
2084 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2085 ac_top_srcdir=$ac_top_build_prefix$srcdir
2086 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2087esac
2088ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2089
2090 cd "$ac_dir" || { ac_status=$?; continue; }
2091 # Check for guested configure.
2092 if test -f "$ac_srcdir/configure.gnu"; then
2093 echo &&
2094 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2095 elif test -f "$ac_srcdir/configure"; then
2096 echo &&
2097 $SHELL "$ac_srcdir/configure" --help=recursive
2098 else
2099 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2100 fi || ac_status=$?
2101 cd "$ac_pwd" || { ac_status=$?; break; }
2102 done
2103fi
2104
2105test -n "$ac_init_help" && exit $ac_status
2106if $ac_init_version; then
2107 cat <<\_ACEOF
cristyb36feb22010-03-26 16:54:37 +00002108ImageMagick configure 6.6.1
cristycd4c5312009-11-22 01:19:08 +00002109generated by GNU Autoconf 2.65
cristy3ed852e2009-09-05 21:47:34 +00002110
cristy8b350f62009-11-15 23:12:43 +00002111Copyright (C) 2009 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +00002112This configure script is free software; the Free Software Foundation
2113gives unlimited permission to copy, distribute and modify it.
2114_ACEOF
2115 exit
2116fi
cristy8b350f62009-11-15 23:12:43 +00002117
2118## ------------------------ ##
2119## Autoconf initialization. ##
2120## ------------------------ ##
2121
2122# ac_fn_c_try_compile LINENO
2123# --------------------------
2124# Try to compile conftest.$ac_ext, and return whether this succeeded.
2125ac_fn_c_try_compile ()
2126{
2127 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2128 rm -f conftest.$ac_objext
2129 if { { ac_try="$ac_compile"
2130case "(($ac_try" in
2131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2132 *) ac_try_echo=$ac_try;;
2133esac
2134eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2135$as_echo "$ac_try_echo"; } >&5
2136 (eval "$ac_compile") 2>conftest.err
2137 ac_status=$?
2138 if test -s conftest.err; then
2139 grep -v '^ *+' conftest.err >conftest.er1
2140 cat conftest.er1 >&5
2141 mv -f conftest.er1 conftest.err
2142 fi
2143 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2144 test $ac_status = 0; } && {
2145 test -z "$ac_c_werror_flag" ||
2146 test ! -s conftest.err
2147 } && test -s conftest.$ac_objext; then :
2148 ac_retval=0
2149else
2150 $as_echo "$as_me: failed program was:" >&5
2151sed 's/^/| /' conftest.$ac_ext >&5
2152
2153 ac_retval=1
2154fi
2155 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002156 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002157
2158} # ac_fn_c_try_compile
2159
cristy95646052009-11-28 23:05:30 +00002160# ac_fn_c_try_cpp LINENO
2161# ----------------------
2162# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2163ac_fn_c_try_cpp ()
2164{
2165 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2166 if { { ac_try="$ac_cpp conftest.$ac_ext"
2167case "(($ac_try" in
2168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2169 *) ac_try_echo=$ac_try;;
2170esac
2171eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2172$as_echo "$ac_try_echo"; } >&5
2173 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2174 ac_status=$?
2175 if test -s conftest.err; then
2176 grep -v '^ *+' conftest.err >conftest.er1
2177 cat conftest.er1 >&5
2178 mv -f conftest.er1 conftest.err
2179 fi
2180 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2181 test $ac_status = 0; } >/dev/null && {
2182 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2183 test ! -s conftest.err
2184 }; then :
2185 ac_retval=0
2186else
2187 $as_echo "$as_me: failed program was:" >&5
2188sed 's/^/| /' conftest.$ac_ext >&5
2189
2190 ac_retval=1
2191fi
2192 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2193 as_fn_set_status $ac_retval
2194
2195} # ac_fn_c_try_cpp
2196
cristy8b350f62009-11-15 23:12:43 +00002197# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2198# -------------------------------------------------------
2199# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2200# the include files in INCLUDES and setting the cache variable VAR
2201# accordingly.
2202ac_fn_c_check_header_mongrel ()
2203{
2204 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2205 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2207$as_echo_n "checking for $2... " >&6; }
2208if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2209 $as_echo_n "(cached) " >&6
2210fi
2211eval ac_res=\$$3
2212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2213$as_echo "$ac_res" >&6; }
2214else
2215 # Is the header compilable?
2216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2217$as_echo_n "checking $2 usability... " >&6; }
2218cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2219/* end confdefs.h. */
2220$4
2221#include <$2>
2222_ACEOF
2223if ac_fn_c_try_compile "$LINENO"; then :
2224 ac_header_compiler=yes
2225else
2226 ac_header_compiler=no
2227fi
2228rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2230$as_echo "$ac_header_compiler" >&6; }
2231
2232# Is the header present?
2233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2234$as_echo_n "checking $2 presence... " >&6; }
2235cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2236/* end confdefs.h. */
2237#include <$2>
2238_ACEOF
2239if ac_fn_c_try_cpp "$LINENO"; then :
2240 ac_header_preproc=yes
2241else
2242 ac_header_preproc=no
2243fi
2244rm -f conftest.err conftest.$ac_ext
2245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2246$as_echo "$ac_header_preproc" >&6; }
2247
2248# So? What about this header?
2249case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2250 yes:no: )
2251 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2252$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2253 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2254$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2255 ;;
2256 no:yes:* )
2257 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2258$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2259 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2260$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2261 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2262$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2263 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2264$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2265 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2266$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2267( cat <<\_ASBOX
2268## ----------------------------------------- ##
2269## Report this to http://www.imagemagick.org ##
2270## ----------------------------------------- ##
2271_ASBOX
2272 ) | sed "s/^/$as_me: WARNING: /" >&2
2273 ;;
2274esac
2275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2276$as_echo_n "checking for $2... " >&6; }
2277if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2278 $as_echo_n "(cached) " >&6
2279else
2280 eval "$3=\$ac_header_compiler"
2281fi
2282eval ac_res=\$$3
2283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2284$as_echo "$ac_res" >&6; }
2285fi
2286 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2287
2288} # ac_fn_c_check_header_mongrel
2289
2290# ac_fn_c_try_run LINENO
2291# ----------------------
2292# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2293# that executables *can* be run.
2294ac_fn_c_try_run ()
2295{
2296 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2297 if { { ac_try="$ac_link"
2298case "(($ac_try" in
2299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2300 *) ac_try_echo=$ac_try;;
2301esac
2302eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2303$as_echo "$ac_try_echo"; } >&5
2304 (eval "$ac_link") 2>&5
2305 ac_status=$?
2306 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2307 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2308 { { case "(($ac_try" in
2309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2310 *) ac_try_echo=$ac_try;;
2311esac
2312eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2313$as_echo "$ac_try_echo"; } >&5
2314 (eval "$ac_try") 2>&5
2315 ac_status=$?
2316 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2317 test $ac_status = 0; }; }; then :
2318 ac_retval=0
2319else
2320 $as_echo "$as_me: program exited with status $ac_status" >&5
2321 $as_echo "$as_me: failed program was:" >&5
2322sed 's/^/| /' conftest.$ac_ext >&5
2323
2324 ac_retval=$ac_status
2325fi
2326 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2327 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002328 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002329
2330} # ac_fn_c_try_run
2331
2332# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2333# -------------------------------------------------------
2334# Tests whether HEADER exists and can be compiled using the include files in
2335# INCLUDES, setting the cache variable VAR accordingly.
2336ac_fn_c_check_header_compile ()
2337{
2338 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2340$as_echo_n "checking for $2... " >&6; }
2341if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2342 $as_echo_n "(cached) " >&6
2343else
2344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2345/* end confdefs.h. */
2346$4
2347#include <$2>
2348_ACEOF
2349if ac_fn_c_try_compile "$LINENO"; then :
2350 eval "$3=yes"
2351else
2352 eval "$3=no"
2353fi
2354rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2355fi
2356eval ac_res=\$$3
2357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2358$as_echo "$ac_res" >&6; }
2359 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2360
2361} # ac_fn_c_check_header_compile
2362
cristya0b81c32010-01-22 02:54:33 +00002363# ac_fn_cxx_try_compile LINENO
2364# ----------------------------
2365# Try to compile conftest.$ac_ext, and return whether this succeeded.
2366ac_fn_cxx_try_compile ()
2367{
2368 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2369 rm -f conftest.$ac_objext
2370 if { { ac_try="$ac_compile"
2371case "(($ac_try" in
2372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2373 *) ac_try_echo=$ac_try;;
2374esac
2375eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2376$as_echo "$ac_try_echo"; } >&5
2377 (eval "$ac_compile") 2>conftest.err
2378 ac_status=$?
2379 if test -s conftest.err; then
2380 grep -v '^ *+' conftest.err >conftest.er1
2381 cat conftest.er1 >&5
2382 mv -f conftest.er1 conftest.err
2383 fi
2384 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2385 test $ac_status = 0; } && {
2386 test -z "$ac_cxx_werror_flag" ||
2387 test ! -s conftest.err
2388 } && test -s conftest.$ac_objext; then :
2389 ac_retval=0
2390else
2391 $as_echo "$as_me: failed program was:" >&5
2392sed 's/^/| /' conftest.$ac_ext >&5
2393
2394 ac_retval=1
2395fi
2396 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2397 as_fn_set_status $ac_retval
2398
2399} # ac_fn_cxx_try_compile
2400
cristy8b350f62009-11-15 23:12:43 +00002401# ac_fn_c_try_link LINENO
2402# -----------------------
2403# Try to link conftest.$ac_ext, and return whether this succeeded.
2404ac_fn_c_try_link ()
2405{
2406 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2407 rm -f conftest.$ac_objext conftest$ac_exeext
2408 if { { ac_try="$ac_link"
2409case "(($ac_try" in
2410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2411 *) ac_try_echo=$ac_try;;
2412esac
2413eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2414$as_echo "$ac_try_echo"; } >&5
2415 (eval "$ac_link") 2>conftest.err
2416 ac_status=$?
2417 if test -s conftest.err; then
2418 grep -v '^ *+' conftest.err >conftest.er1
2419 cat conftest.er1 >&5
2420 mv -f conftest.er1 conftest.err
2421 fi
2422 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2423 test $ac_status = 0; } && {
2424 test -z "$ac_c_werror_flag" ||
2425 test ! -s conftest.err
2426 } && test -s conftest$ac_exeext && {
2427 test "$cross_compiling" = yes ||
2428 $as_test_x conftest$ac_exeext
2429 }; then :
2430 ac_retval=0
2431else
2432 $as_echo "$as_me: failed program was:" >&5
2433sed 's/^/| /' conftest.$ac_ext >&5
2434
2435 ac_retval=1
2436fi
2437 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2438 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2439 # interfere with the next link command; also delete a directory that is
2440 # left behind by Apple's compiler. We do this before executing the actions.
2441 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2442 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002443 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002444
2445} # ac_fn_c_try_link
2446
2447# ac_fn_c_check_func LINENO FUNC VAR
2448# ----------------------------------
2449# Tests whether FUNC exists, setting the cache variable VAR accordingly
2450ac_fn_c_check_func ()
2451{
2452 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2454$as_echo_n "checking for $2... " >&6; }
2455if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2456 $as_echo_n "(cached) " >&6
2457else
2458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2459/* end confdefs.h. */
2460/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2461 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2462#define $2 innocuous_$2
2463
2464/* System header to define __stub macros and hopefully few prototypes,
2465 which can conflict with char $2 (); below.
2466 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2467 <limits.h> exists even on freestanding compilers. */
2468
2469#ifdef __STDC__
2470# include <limits.h>
2471#else
2472# include <assert.h>
2473#endif
2474
2475#undef $2
2476
2477/* Override any GCC internal prototype to avoid an error.
2478 Use char because int might match the return type of a GCC
2479 builtin and then its argument prototype would still apply. */
2480#ifdef __cplusplus
2481extern "C"
2482#endif
2483char $2 ();
2484/* The GNU C library defines this for functions which it implements
2485 to always fail with ENOSYS. Some functions are actually named
2486 something starting with __ and the normal name is an alias. */
2487#if defined __stub_$2 || defined __stub___$2
2488choke me
2489#endif
2490
2491int
2492main ()
2493{
2494return $2 ();
2495 ;
2496 return 0;
2497}
2498_ACEOF
2499if ac_fn_c_try_link "$LINENO"; then :
2500 eval "$3=yes"
2501else
2502 eval "$3=no"
2503fi
2504rm -f core conftest.err conftest.$ac_objext \
2505 conftest$ac_exeext conftest.$ac_ext
2506fi
2507eval ac_res=\$$3
2508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2509$as_echo "$ac_res" >&6; }
2510 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2511
2512} # ac_fn_c_check_func
2513
2514# ac_fn_cxx_try_cpp LINENO
2515# ------------------------
2516# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2517ac_fn_cxx_try_cpp ()
2518{
2519 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2520 if { { ac_try="$ac_cpp conftest.$ac_ext"
2521case "(($ac_try" in
2522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2523 *) ac_try_echo=$ac_try;;
2524esac
2525eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2526$as_echo "$ac_try_echo"; } >&5
2527 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2528 ac_status=$?
2529 if test -s conftest.err; then
2530 grep -v '^ *+' conftest.err >conftest.er1
2531 cat conftest.er1 >&5
2532 mv -f conftest.er1 conftest.err
2533 fi
2534 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2535 test $ac_status = 0; } >/dev/null && {
2536 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2537 test ! -s conftest.err
2538 }; then :
2539 ac_retval=0
2540else
2541 $as_echo "$as_me: failed program was:" >&5
2542sed 's/^/| /' conftest.$ac_ext >&5
2543
2544 ac_retval=1
2545fi
2546 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002547 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002548
2549} # ac_fn_cxx_try_cpp
2550
2551# ac_fn_cxx_try_link LINENO
2552# -------------------------
2553# Try to link conftest.$ac_ext, and return whether this succeeded.
2554ac_fn_cxx_try_link ()
2555{
2556 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2557 rm -f conftest.$ac_objext conftest$ac_exeext
2558 if { { ac_try="$ac_link"
2559case "(($ac_try" in
2560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2561 *) ac_try_echo=$ac_try;;
2562esac
2563eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2564$as_echo "$ac_try_echo"; } >&5
2565 (eval "$ac_link") 2>conftest.err
2566 ac_status=$?
2567 if test -s conftest.err; then
2568 grep -v '^ *+' conftest.err >conftest.er1
2569 cat conftest.er1 >&5
2570 mv -f conftest.er1 conftest.err
2571 fi
2572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2573 test $ac_status = 0; } && {
2574 test -z "$ac_cxx_werror_flag" ||
2575 test ! -s conftest.err
2576 } && test -s conftest$ac_exeext && {
2577 test "$cross_compiling" = yes ||
2578 $as_test_x conftest$ac_exeext
2579 }; then :
2580 ac_retval=0
2581else
2582 $as_echo "$as_me: failed program was:" >&5
2583sed 's/^/| /' conftest.$ac_ext >&5
2584
2585 ac_retval=1
2586fi
2587 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2588 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2589 # interfere with the next link command; also delete a directory that is
2590 # left behind by Apple's compiler. We do this before executing the actions.
2591 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2592 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002593 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002594
2595} # ac_fn_cxx_try_link
2596
2597# ac_fn_c_check_decl LINENO SYMBOL VAR
2598# ------------------------------------
2599# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2600ac_fn_c_check_decl ()
2601{
2602 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2604$as_echo_n "checking whether $2 is declared... " >&6; }
2605if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2606 $as_echo_n "(cached) " >&6
2607else
2608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2609/* end confdefs.h. */
2610$4
2611int
2612main ()
2613{
2614#ifndef $2
2615 (void) $2;
2616#endif
2617
2618 ;
2619 return 0;
2620}
2621_ACEOF
2622if ac_fn_c_try_compile "$LINENO"; then :
2623 eval "$3=yes"
2624else
2625 eval "$3=no"
2626fi
2627rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2628fi
2629eval ac_res=\$$3
2630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2631$as_echo "$ac_res" >&6; }
2632 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2633
2634} # ac_fn_c_check_decl
2635
2636# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2637# -------------------------------------------
2638# Tests whether TYPE exists after having included INCLUDES, setting cache
2639# variable VAR accordingly.
2640ac_fn_c_check_type ()
2641{
2642 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2644$as_echo_n "checking for $2... " >&6; }
2645if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2646 $as_echo_n "(cached) " >&6
2647else
2648 eval "$3=no"
2649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2650/* end confdefs.h. */
2651$4
2652int
2653main ()
2654{
2655if (sizeof ($2))
2656 return 0;
2657 ;
2658 return 0;
2659}
2660_ACEOF
2661if ac_fn_c_try_compile "$LINENO"; then :
2662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2663/* end confdefs.h. */
2664$4
2665int
2666main ()
2667{
2668if (sizeof (($2)))
2669 return 0;
2670 ;
2671 return 0;
2672}
2673_ACEOF
2674if ac_fn_c_try_compile "$LINENO"; then :
2675
2676else
2677 eval "$3=yes"
2678fi
2679rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2680fi
2681rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2682fi
2683eval ac_res=\$$3
2684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2685$as_echo "$ac_res" >&6; }
2686 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2687
2688} # ac_fn_c_check_type
2689
cristy92703d82010-04-26 00:18:18 +00002690# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2691# ----------------------------------------------------
2692# Tries to find if the field MEMBER exists in type AGGR, after including
2693# INCLUDES, setting cache variable VAR accordingly.
2694ac_fn_c_check_member ()
2695{
2696 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2698$as_echo_n "checking for $2.$3... " >&6; }
2699if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2700 $as_echo_n "(cached) " >&6
2701else
2702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2703/* end confdefs.h. */
2704$5
2705int
2706main ()
2707{
2708static $2 ac_aggr;
2709if (ac_aggr.$3)
2710return 0;
2711 ;
2712 return 0;
2713}
2714_ACEOF
2715if ac_fn_c_try_compile "$LINENO"; then :
2716 eval "$4=yes"
2717else
2718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2719/* end confdefs.h. */
2720$5
2721int
2722main ()
2723{
2724static $2 ac_aggr;
2725if (sizeof ac_aggr.$3)
2726return 0;
2727 ;
2728 return 0;
2729}
2730_ACEOF
2731if ac_fn_c_try_compile "$LINENO"; then :
2732 eval "$4=yes"
2733else
2734 eval "$4=no"
2735fi
2736rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2737fi
2738rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2739fi
2740eval ac_res=\$$4
2741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2742$as_echo "$ac_res" >&6; }
2743 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2744
2745} # ac_fn_c_check_member
2746
cristy8b350f62009-11-15 23:12:43 +00002747# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2748# --------------------------------------------
2749# Tries to find the compile-time value of EXPR in a program that includes
2750# INCLUDES, setting VAR accordingly. Returns whether the value could be
2751# computed
2752ac_fn_c_compute_int ()
2753{
2754 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2755 if test "$cross_compiling" = yes; then
2756 # Depending upon the size, compute the lo and hi bounds.
2757cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2758/* end confdefs.h. */
2759$4
2760int
2761main ()
2762{
2763static int test_array [1 - 2 * !(($2) >= 0)];
2764test_array [0] = 0
2765
2766 ;
2767 return 0;
2768}
2769_ACEOF
2770if ac_fn_c_try_compile "$LINENO"; then :
2771 ac_lo=0 ac_mid=0
2772 while :; do
2773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2774/* end confdefs.h. */
2775$4
2776int
2777main ()
2778{
2779static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2780test_array [0] = 0
2781
2782 ;
2783 return 0;
2784}
2785_ACEOF
2786if ac_fn_c_try_compile "$LINENO"; then :
2787 ac_hi=$ac_mid; break
2788else
2789 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2790 if test $ac_lo -le $ac_mid; then
2791 ac_lo= ac_hi=
2792 break
2793 fi
2794 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2795fi
2796rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2797 done
2798else
2799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2800/* end confdefs.h. */
2801$4
2802int
2803main ()
2804{
2805static int test_array [1 - 2 * !(($2) < 0)];
2806test_array [0] = 0
2807
2808 ;
2809 return 0;
2810}
2811_ACEOF
2812if ac_fn_c_try_compile "$LINENO"; then :
2813 ac_hi=-1 ac_mid=-1
2814 while :; do
2815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2816/* end confdefs.h. */
2817$4
2818int
2819main ()
2820{
2821static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2822test_array [0] = 0
2823
2824 ;
2825 return 0;
2826}
2827_ACEOF
2828if ac_fn_c_try_compile "$LINENO"; then :
2829 ac_lo=$ac_mid; break
2830else
2831 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2832 if test $ac_mid -le $ac_hi; then
2833 ac_lo= ac_hi=
2834 break
2835 fi
2836 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2837fi
2838rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2839 done
2840else
2841 ac_lo= ac_hi=
2842fi
2843rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2844fi
2845rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2846# Binary search between lo and hi bounds.
2847while test "x$ac_lo" != "x$ac_hi"; do
2848 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2850/* end confdefs.h. */
2851$4
2852int
2853main ()
2854{
2855static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2856test_array [0] = 0
2857
2858 ;
2859 return 0;
2860}
2861_ACEOF
2862if ac_fn_c_try_compile "$LINENO"; then :
2863 ac_hi=$ac_mid
2864else
2865 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2866fi
2867rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2868done
2869case $ac_lo in #((
2870?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2871'') ac_retval=1 ;;
2872esac
2873 else
2874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2875/* end confdefs.h. */
2876$4
2877static long int longval () { return $2; }
2878static unsigned long int ulongval () { return $2; }
2879#include <stdio.h>
2880#include <stdlib.h>
2881int
2882main ()
2883{
2884
2885 FILE *f = fopen ("conftest.val", "w");
2886 if (! f)
2887 return 1;
2888 if (($2) < 0)
2889 {
2890 long int i = longval ();
2891 if (i != ($2))
2892 return 1;
2893 fprintf (f, "%ld", i);
2894 }
2895 else
2896 {
2897 unsigned long int i = ulongval ();
2898 if (i != ($2))
2899 return 1;
2900 fprintf (f, "%lu", i);
2901 }
2902 /* Do not output a trailing newline, as this causes \r\n confusion
2903 on some platforms. */
2904 return ferror (f) || fclose (f) != 0;
2905
2906 ;
2907 return 0;
2908}
2909_ACEOF
2910if ac_fn_c_try_run "$LINENO"; then :
2911 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2912else
2913 ac_retval=1
2914fi
2915rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2916 conftest.$ac_objext conftest.beam conftest.$ac_ext
2917rm -f conftest.val
2918
2919 fi
2920 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002921 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002922
2923} # ac_fn_c_compute_int
2924
2925# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2926# ---------------------------------------------------------
2927# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2928# the include files in INCLUDES and setting the cache variable VAR
2929# accordingly.
2930ac_fn_cxx_check_header_mongrel ()
2931{
2932 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2933 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2935$as_echo_n "checking for $2... " >&6; }
2936if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2937 $as_echo_n "(cached) " >&6
2938fi
2939eval ac_res=\$$3
2940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2941$as_echo "$ac_res" >&6; }
2942else
2943 # Is the header compilable?
2944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2945$as_echo_n "checking $2 usability... " >&6; }
2946cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2947/* end confdefs.h. */
2948$4
2949#include <$2>
2950_ACEOF
2951if ac_fn_cxx_try_compile "$LINENO"; then :
2952 ac_header_compiler=yes
2953else
2954 ac_header_compiler=no
2955fi
2956rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2958$as_echo "$ac_header_compiler" >&6; }
2959
2960# Is the header present?
2961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2962$as_echo_n "checking $2 presence... " >&6; }
2963cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2964/* end confdefs.h. */
2965#include <$2>
2966_ACEOF
2967if ac_fn_cxx_try_cpp "$LINENO"; then :
2968 ac_header_preproc=yes
2969else
2970 ac_header_preproc=no
2971fi
2972rm -f conftest.err conftest.$ac_ext
2973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2974$as_echo "$ac_header_preproc" >&6; }
2975
2976# So? What about this header?
2977case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2978 yes:no: )
2979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2980$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2982$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2983 ;;
2984 no:yes:* )
2985 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2986$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2988$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2990$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2992$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2994$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2995( cat <<\_ASBOX
2996## ----------------------------------------- ##
2997## Report this to http://www.imagemagick.org ##
2998## ----------------------------------------- ##
2999_ASBOX
3000 ) | sed "s/^/$as_me: WARNING: /" >&2
3001 ;;
3002esac
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3004$as_echo_n "checking for $2... " >&6; }
3005if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
3006 $as_echo_n "(cached) " >&6
3007else
3008 eval "$3=\$ac_header_compiler"
3009fi
3010eval ac_res=\$$3
3011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3012$as_echo "$ac_res" >&6; }
3013fi
3014 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
3015
3016} # ac_fn_cxx_check_header_mongrel
cristy3ed852e2009-09-05 21:47:34 +00003017cat >config.log <<_ACEOF
3018This file contains any messages produced by compilers while
3019running configure, to aid debugging if configure makes a mistake.
3020
cristyb36feb22010-03-26 16:54:37 +00003021It was created by ImageMagick $as_me 6.6.1, which was
cristycd4c5312009-11-22 01:19:08 +00003022generated by GNU Autoconf 2.65. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +00003023
3024 $ $0 $@
3025
3026_ACEOF
3027exec 5>>config.log
3028{
3029cat <<_ASUNAME
3030## --------- ##
3031## Platform. ##
3032## --------- ##
3033
3034hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3035uname -m = `(uname -m) 2>/dev/null || echo unknown`
3036uname -r = `(uname -r) 2>/dev/null || echo unknown`
3037uname -s = `(uname -s) 2>/dev/null || echo unknown`
3038uname -v = `(uname -v) 2>/dev/null || echo unknown`
3039
3040/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3041/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3042
3043/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3044/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3045/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3046/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3047/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3048/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3049/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3050
3051_ASUNAME
3052
3053as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3054for as_dir in $PATH
3055do
3056 IFS=$as_save_IFS
3057 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003058 $as_echo "PATH: $as_dir"
3059 done
cristy3ed852e2009-09-05 21:47:34 +00003060IFS=$as_save_IFS
3061
3062} >&5
3063
3064cat >&5 <<_ACEOF
3065
3066
3067## ----------- ##
3068## Core tests. ##
3069## ----------- ##
3070
3071_ACEOF
3072
3073
3074# Keep a trace of the command line.
3075# Strip out --no-create and --no-recursion so they do not pile up.
3076# Strip out --silent because we don't want to record it for future runs.
3077# Also quote any args containing shell meta-characters.
3078# Make two passes to allow for proper duplicate-argument suppression.
3079ac_configure_args=
3080ac_configure_args0=
3081ac_configure_args1=
3082ac_must_keep_next=false
3083for ac_pass in 1 2
3084do
3085 for ac_arg
3086 do
3087 case $ac_arg in
3088 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3089 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3090 | -silent | --silent | --silen | --sile | --sil)
3091 continue ;;
3092 *\'*)
3093 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3094 esac
3095 case $ac_pass in
cristy8b350f62009-11-15 23:12:43 +00003096 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003097 2)
cristy8b350f62009-11-15 23:12:43 +00003098 as_fn_append ac_configure_args1 " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003099 if test $ac_must_keep_next = true; then
3100 ac_must_keep_next=false # Got value, back to normal.
3101 else
3102 case $ac_arg in
3103 *=* | --config-cache | -C | -disable-* | --disable-* \
3104 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3105 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3106 | -with-* | --with-* | -without-* | --without-* | --x)
3107 case "$ac_configure_args0 " in
3108 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3109 esac
3110 ;;
3111 -* ) ac_must_keep_next=true ;;
3112 esac
3113 fi
cristy8b350f62009-11-15 23:12:43 +00003114 as_fn_append ac_configure_args " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003115 ;;
3116 esac
3117 done
3118done
cristy8b350f62009-11-15 23:12:43 +00003119{ ac_configure_args0=; unset ac_configure_args0;}
3120{ ac_configure_args1=; unset ac_configure_args1;}
cristy3ed852e2009-09-05 21:47:34 +00003121
3122# When interrupted or exit'd, cleanup temporary files, and complete
3123# config.log. We remove comments because anyway the quotes in there
3124# would cause problems or look ugly.
3125# WARNING: Use '\'' to represent an apostrophe within the trap.
3126# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3127trap 'exit_status=$?
3128 # Save into config.log some information that might help in debugging.
3129 {
3130 echo
3131
3132 cat <<\_ASBOX
3133## ---------------- ##
3134## Cache variables. ##
3135## ---------------- ##
3136_ASBOX
3137 echo
3138 # The following way of writing the cache mishandles newlines in values,
3139(
3140 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3141 eval ac_val=\$$ac_var
3142 case $ac_val in #(
3143 *${as_nl}*)
3144 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +00003145 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +00003146$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3147 esac
3148 case $ac_var in #(
3149 _ | IFS | as_nl) ;; #(
3150 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +00003151 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +00003152 esac ;;
3153 esac
3154 done
3155 (set) 2>&1 |
3156 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3157 *${as_nl}ac_space=\ *)
3158 sed -n \
3159 "s/'\''/'\''\\\\'\'''\''/g;
3160 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3161 ;; #(
3162 *)
3163 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3164 ;;
3165 esac |
3166 sort
3167)
3168 echo
3169
3170 cat <<\_ASBOX
3171## ----------------- ##
3172## Output variables. ##
3173## ----------------- ##
3174_ASBOX
3175 echo
3176 for ac_var in $ac_subst_vars
3177 do
3178 eval ac_val=\$$ac_var
3179 case $ac_val in
3180 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3181 esac
3182 $as_echo "$ac_var='\''$ac_val'\''"
3183 done | sort
3184 echo
3185
3186 if test -n "$ac_subst_files"; then
3187 cat <<\_ASBOX
3188## ------------------- ##
3189## File substitutions. ##
3190## ------------------- ##
3191_ASBOX
3192 echo
3193 for ac_var in $ac_subst_files
3194 do
3195 eval ac_val=\$$ac_var
3196 case $ac_val in
3197 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3198 esac
3199 $as_echo "$ac_var='\''$ac_val'\''"
3200 done | sort
3201 echo
3202 fi
3203
3204 if test -s confdefs.h; then
3205 cat <<\_ASBOX
3206## ----------- ##
3207## confdefs.h. ##
3208## ----------- ##
3209_ASBOX
3210 echo
3211 cat confdefs.h
3212 echo
3213 fi
3214 test "$ac_signal" != 0 &&
3215 $as_echo "$as_me: caught signal $ac_signal"
3216 $as_echo "$as_me: exit $exit_status"
3217 } >&5
3218 rm -f core *.core core.conftest.* &&
3219 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3220 exit $exit_status
3221' 0
3222for ac_signal in 1 2 13 15; do
cristy8b350f62009-11-15 23:12:43 +00003223 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
cristy3ed852e2009-09-05 21:47:34 +00003224done
3225ac_signal=0
3226
3227# confdefs.h avoids OS command line length limits that DEFS can exceed.
3228rm -f -r conftest* confdefs.h
3229
cristy8b350f62009-11-15 23:12:43 +00003230$as_echo "/* confdefs.h */" > confdefs.h
3231
cristy3ed852e2009-09-05 21:47:34 +00003232# Predefined preprocessor variables.
3233
3234cat >>confdefs.h <<_ACEOF
3235#define PACKAGE_NAME "$PACKAGE_NAME"
3236_ACEOF
3237
cristy3ed852e2009-09-05 21:47:34 +00003238cat >>confdefs.h <<_ACEOF
3239#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3240_ACEOF
3241
cristy3ed852e2009-09-05 21:47:34 +00003242cat >>confdefs.h <<_ACEOF
3243#define PACKAGE_VERSION "$PACKAGE_VERSION"
3244_ACEOF
3245
cristy3ed852e2009-09-05 21:47:34 +00003246cat >>confdefs.h <<_ACEOF
3247#define PACKAGE_STRING "$PACKAGE_STRING"
3248_ACEOF
3249
cristy3ed852e2009-09-05 21:47:34 +00003250cat >>confdefs.h <<_ACEOF
3251#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3252_ACEOF
3253
cristy8b350f62009-11-15 23:12:43 +00003254cat >>confdefs.h <<_ACEOF
3255#define PACKAGE_URL "$PACKAGE_URL"
3256_ACEOF
3257
cristy3ed852e2009-09-05 21:47:34 +00003258
3259# Let the site file select an alternate cache file if it wants to.
3260# Prefer an explicitly selected file to automatically selected ones.
3261ac_site_file1=NONE
3262ac_site_file2=NONE
3263if test -n "$CONFIG_SITE"; then
3264 ac_site_file1=$CONFIG_SITE
3265elif test "x$prefix" != xNONE; then
3266 ac_site_file1=$prefix/share/config.site
3267 ac_site_file2=$prefix/etc/config.site
3268else
3269 ac_site_file1=$ac_default_prefix/share/config.site
3270 ac_site_file2=$ac_default_prefix/etc/config.site
3271fi
3272for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3273do
3274 test "x$ac_site_file" = xNONE && continue
cristycd4c5312009-11-22 01:19:08 +00003275 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
cristy8b350f62009-11-15 23:12:43 +00003276 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003277$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3278 sed 's/^/| /' "$ac_site_file" >&5
3279 . "$ac_site_file"
3280 fi
3281done
3282
3283if test -r "$cache_file"; then
cristycd4c5312009-11-22 01:19:08 +00003284 # Some versions of bash will fail to source /dev/null (special files
3285 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3286 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
cristy8b350f62009-11-15 23:12:43 +00003287 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003288$as_echo "$as_me: loading cache $cache_file" >&6;}
3289 case $cache_file in
3290 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3291 *) . "./$cache_file";;
3292 esac
3293 fi
3294else
cristy8b350f62009-11-15 23:12:43 +00003295 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003296$as_echo "$as_me: creating cache $cache_file" >&6;}
3297 >$cache_file
3298fi
3299
cristycd4c5312009-11-22 01:19:08 +00003300as_fn_append ac_header_list " stdlib.h"
3301as_fn_append ac_header_list " unistd.h"
3302as_fn_append ac_header_list " sys/param.h"
cristy3ed852e2009-09-05 21:47:34 +00003303# Check that the precious variables saved in the cache have kept the same
3304# value.
3305ac_cache_corrupted=false
3306for ac_var in $ac_precious_vars; do
3307 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3308 eval ac_new_set=\$ac_env_${ac_var}_set
3309 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3310 eval ac_new_val=\$ac_env_${ac_var}_value
3311 case $ac_old_set,$ac_new_set in
3312 set,)
cristy8b350f62009-11-15 23:12:43 +00003313 { $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 +00003314$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3315 ac_cache_corrupted=: ;;
3316 ,set)
cristy8b350f62009-11-15 23:12:43 +00003317 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
cristy3ed852e2009-09-05 21:47:34 +00003318$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3319 ac_cache_corrupted=: ;;
3320 ,);;
3321 *)
3322 if test "x$ac_old_val" != "x$ac_new_val"; then
3323 # differences in whitespace do not lead to failure.
3324 ac_old_val_w=`echo x $ac_old_val`
3325 ac_new_val_w=`echo x $ac_new_val`
3326 if test "$ac_old_val_w" != "$ac_new_val_w"; then
cristy8b350f62009-11-15 23:12:43 +00003327 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
cristy3ed852e2009-09-05 21:47:34 +00003328$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3329 ac_cache_corrupted=:
3330 else
cristy8b350f62009-11-15 23:12:43 +00003331 { $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 +00003332$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3333 eval $ac_var=\$ac_old_val
3334 fi
cristy8b350f62009-11-15 23:12:43 +00003335 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003336$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003337 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003338$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3339 fi;;
3340 esac
3341 # Pass precious variables to config.status.
3342 if test "$ac_new_set" = set; then
3343 case $ac_new_val in
3344 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3345 *) ac_arg=$ac_var=$ac_new_val ;;
3346 esac
3347 case " $ac_configure_args " in
3348 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
cristy8b350f62009-11-15 23:12:43 +00003349 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003350 esac
3351 fi
3352done
3353if $ac_cache_corrupted; then
cristy8b350f62009-11-15 23:12:43 +00003354 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00003355$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003356 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003357$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003358 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003359fi
cristy8b350f62009-11-15 23:12:43 +00003360## -------------------- ##
3361## Main body of script. ##
3362## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003363
3364ac_ext=c
3365ac_cpp='$CPP $CPPFLAGS'
3366ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3367ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3368ac_compiler_gnu=$ac_cv_c_compiler_gnu
3369
3370
3371
3372ac_aux_dir=
3373for ac_dir in config "$srcdir"/config; do
cristy8b350f62009-11-15 23:12:43 +00003374 for ac_t in install-sh install.sh shtool; do
3375 if test -f "$ac_dir/$ac_t"; then
3376 ac_aux_dir=$ac_dir
3377 ac_install_sh="$ac_aux_dir/$ac_t -c"
3378 break 2
3379 fi
3380 done
cristy3ed852e2009-09-05 21:47:34 +00003381done
3382if test -z "$ac_aux_dir"; then
cristy8b350f62009-11-15 23:12:43 +00003383 as_fn_error "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003384fi
3385
3386# These three variables are undocumented and unsupported,
3387# and are intended to be withdrawn in a future Autoconf release.
3388# They can cause serious problems if a builder's source tree is in a directory
3389# whose full name contains unusual characters.
3390ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3391ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3392ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3393
3394
3395
3396
3397ac_config_headers="$ac_config_headers config/config.h"
3398
3399ac_config_commands="$ac_config_commands magick/magick-config.h"
3400
cristy430a7312010-01-21 20:44:04 +00003401ac_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 +00003402
3403
3404#
3405# Save initial user-tunable values
3406#
3407USER_LIBS=$LIBS
3408for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
3409 eval isset=\${$var+set}
3410 if test "$isset" = 'set'; then
3411 eval val=$`echo $var`
3412 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
3413 fi
3414done
3415
3416
3417CONFIGURE_ARGS="$0 ${ac_configure_args}"
3418
3419
3420# Source file containing package/library versioning information.
3421. ${srcdir}/version.sh
3422
cristy15a88782010-01-31 23:24:49 +00003423echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
cristy3ed852e2009-09-05 21:47:34 +00003424# Make sure we can run config.sub.
3425$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
cristy8b350f62009-11-15 23:12:43 +00003426 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003427
cristy8b350f62009-11-15 23:12:43 +00003428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003429$as_echo_n "checking build system type... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003430if test "${ac_cv_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003431 $as_echo_n "(cached) " >&6
3432else
3433 ac_build_alias=$build_alias
3434test "x$ac_build_alias" = x &&
3435 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3436test "x$ac_build_alias" = x &&
cristy8b350f62009-11-15 23:12:43 +00003437 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003438ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
cristy8b350f62009-11-15 23:12:43 +00003439 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003440
3441fi
cristy8b350f62009-11-15 23:12:43 +00003442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003443$as_echo "$ac_cv_build" >&6; }
3444case $ac_cv_build in
3445*-*-*) ;;
cristy8b350f62009-11-15 23:12:43 +00003446*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003447esac
3448build=$ac_cv_build
3449ac_save_IFS=$IFS; IFS='-'
3450set x $ac_cv_build
3451shift
3452build_cpu=$1
3453build_vendor=$2
3454shift; shift
3455# Remember, the first character of IFS is used to create $*,
3456# except with old shells:
3457build_os=$*
3458IFS=$ac_save_IFS
3459case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3460
3461
cristy8b350f62009-11-15 23:12:43 +00003462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003463$as_echo_n "checking host system type... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003464if test "${ac_cv_host+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003465 $as_echo_n "(cached) " >&6
3466else
3467 if test "x$host_alias" = x; then
3468 ac_cv_host=$ac_cv_build
3469else
3470 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
cristy8b350f62009-11-15 23:12:43 +00003471 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003472fi
3473
3474fi
cristy8b350f62009-11-15 23:12:43 +00003475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
cristy3ed852e2009-09-05 21:47:34 +00003476$as_echo "$ac_cv_host" >&6; }
3477case $ac_cv_host in
3478*-*-*) ;;
cristy8b350f62009-11-15 23:12:43 +00003479*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003480esac
3481host=$ac_cv_host
3482ac_save_IFS=$IFS; IFS='-'
3483set x $ac_cv_host
3484shift
3485host_cpu=$1
3486host_vendor=$2
3487shift; shift
3488# Remember, the first character of IFS is used to create $*,
3489# except with old shells:
3490host_os=$*
3491IFS=$ac_save_IFS
3492case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3493
3494
cristy8b350f62009-11-15 23:12:43 +00003495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003496$as_echo_n "checking target system type... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003497if test "${ac_cv_target+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003498 $as_echo_n "(cached) " >&6
3499else
3500 if test "x$target_alias" = x; then
3501 ac_cv_target=$ac_cv_host
3502else
3503 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
cristy8b350f62009-11-15 23:12:43 +00003504 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003505fi
3506
3507fi
cristy8b350f62009-11-15 23:12:43 +00003508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
cristy3ed852e2009-09-05 21:47:34 +00003509$as_echo "$ac_cv_target" >&6; }
3510case $ac_cv_target in
3511*-*-*) ;;
cristy8b350f62009-11-15 23:12:43 +00003512*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003513esac
3514target=$ac_cv_target
3515ac_save_IFS=$IFS; IFS='-'
3516set x $ac_cv_target
3517shift
3518target_cpu=$1
3519target_vendor=$2
3520shift; shift
3521# Remember, the first character of IFS is used to create $*,
3522# except with old shells:
3523target_os=$*
3524IFS=$ac_save_IFS
3525case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3526
3527
3528# The aliases save the names the user supplied, while $host etc.
3529# will get canonicalized.
3530test -n "$target_alias" &&
3531 test "$program_prefix$program_suffix$program_transform_name" = \
3532 NONENONEs,x,x, &&
3533 program_prefix=${target_alias}-
3534
cristy837d6dc2010-02-27 01:16:57 +00003535
3536
3537
3538
cristy3225a072010-04-17 01:47:28 +00003539MAGICK_TARGET_CPU=$target_cpu
3540
3541
3542MAGICK_TARGET_VENDOR=$target_vendor
3543
3544
3545MAGICK_TARGET_OS=$target_os
3546
3547
cristy3ed852e2009-09-05 21:47:34 +00003548# Substitute library versioning
cristybab87c32010-02-09 20:54:22 +00003549MAGICK_LIBRARY_CURRENT_MIN=`expr $MAGICK_LIBRARY_CURRENT - $MAGICK_LIBRARY_AGE`
3550
3551MAGICK_LIBRARY_VERSION_INFO=$MAGICK_LIBRARY_CURRENT:$MAGICK_LIBRARY_REVISION:$MAGICK_LIBRARY_AGE
3552
cristy3ed852e2009-09-05 21:47:34 +00003553
3554
3555# Ensure that make can run correctly
cristy8b350f62009-11-15 23:12:43 +00003556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
cristy3ed852e2009-09-05 21:47:34 +00003557$as_echo_n "checking whether build environment is sane... " >&6; }
3558# Just in case
3559sleep 1
3560echo timestamp > conftest.file
3561# Reject unsafe characters in $srcdir or the absolute working directory
3562# name. Accept space and tab only in the latter.
3563am_lf='
3564'
3565case `pwd` in
3566 *[\\\"\#\$\&\'\`$am_lf]*)
cristy8b350f62009-11-15 23:12:43 +00003567 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003568esac
3569case $srcdir in
3570 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
cristy8b350f62009-11-15 23:12:43 +00003571 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003572esac
3573
3574# Do `set' in a subshell so we don't clobber the current shell's
3575# arguments. Must try -L first in case configure is actually a
3576# symlink; some systems play weird games with the mod time of symlinks
3577# (eg FreeBSD returns the mod time of the symlink's containing
3578# directory).
3579if (
3580 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3581 if test "$*" = "X"; then
3582 # -L didn't work.
3583 set X `ls -t "$srcdir/configure" conftest.file`
3584 fi
3585 rm -f conftest.file
3586 if test "$*" != "X $srcdir/configure conftest.file" \
3587 && test "$*" != "X conftest.file $srcdir/configure"; then
3588
3589 # If neither matched, then we have a broken ls. This can happen
3590 # if, for instance, CONFIG_SHELL is bash and it inherits a
3591 # broken ls alias from the environment. This has actually
3592 # happened. Such a system could not be considered "sane".
cristy8b350f62009-11-15 23:12:43 +00003593 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3594alias in your environment" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003595 fi
3596
3597 test "$2" = conftest.file
3598 )
3599then
3600 # Ok.
3601 :
3602else
cristy8b350f62009-11-15 23:12:43 +00003603 as_fn_error "newly created file is older than distributed files!
3604Check your system clock" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003605fi
cristy8b350f62009-11-15 23:12:43 +00003606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00003607$as_echo "yes" >&6; }
3608
3609am__api_version='1.11'
3610
3611# Find a good install program. We prefer a C program (faster),
3612# so one script is as good as another. But avoid the broken or
3613# incompatible versions:
3614# SysV /etc/install, /usr/sbin/install
3615# SunOS /usr/etc/install
3616# IRIX /sbin/install
3617# AIX /bin/install
3618# AmigaOS /C/install, which installs bootblocks on floppy discs
3619# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3620# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3621# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3622# OS/2's system install, which has a completely different semantic
3623# ./install, which can be erroneously created by make from ./install.sh.
3624# Reject install programs that cannot install multiple files.
cristy8b350f62009-11-15 23:12:43 +00003625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
cristy3ed852e2009-09-05 21:47:34 +00003626$as_echo_n "checking for a BSD-compatible install... " >&6; }
3627if test -z "$INSTALL"; then
cristy8b350f62009-11-15 23:12:43 +00003628if test "${ac_cv_path_install+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003629 $as_echo_n "(cached) " >&6
3630else
3631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3632for as_dir in $PATH
3633do
3634 IFS=$as_save_IFS
3635 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003636 # Account for people who put trailing slashes in PATH elements.
3637case $as_dir/ in #((
3638 ./ | .// | /[cC]/* | \
cristy3ed852e2009-09-05 21:47:34 +00003639 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
cristy8b350f62009-11-15 23:12:43 +00003640 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
cristy3ed852e2009-09-05 21:47:34 +00003641 /usr/ucb/* ) ;;
3642 *)
3643 # OSF1 and SCO ODT 3.0 have their own names for install.
3644 # Don't use installbsd from OSF since it installs stuff as root
3645 # by default.
3646 for ac_prog in ginstall scoinst install; do
3647 for ac_exec_ext in '' $ac_executable_extensions; do
3648 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3649 if test $ac_prog = install &&
3650 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3651 # AIX install. It has an incompatible calling convention.
3652 :
3653 elif test $ac_prog = install &&
3654 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3655 # program-specific install script used by HP pwplus--don't use.
3656 :
3657 else
3658 rm -rf conftest.one conftest.two conftest.dir
3659 echo one > conftest.one
3660 echo two > conftest.two
3661 mkdir conftest.dir
3662 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3663 test -s conftest.one && test -s conftest.two &&
3664 test -s conftest.dir/conftest.one &&
3665 test -s conftest.dir/conftest.two
3666 then
3667 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3668 break 3
3669 fi
3670 fi
3671 fi
3672 done
3673 done
3674 ;;
3675esac
3676
cristy8b350f62009-11-15 23:12:43 +00003677 done
cristy3ed852e2009-09-05 21:47:34 +00003678IFS=$as_save_IFS
3679
3680rm -rf conftest.one conftest.two conftest.dir
3681
3682fi
3683 if test "${ac_cv_path_install+set}" = set; then
3684 INSTALL=$ac_cv_path_install
3685 else
3686 # As a last resort, use the slow shell script. Don't cache a
3687 # value for INSTALL within a source directory, because that will
3688 # break other packages using the cache if that directory is
3689 # removed, or if the value is a relative name.
3690 INSTALL=$ac_install_sh
3691 fi
3692fi
cristy8b350f62009-11-15 23:12:43 +00003693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
cristy3ed852e2009-09-05 21:47:34 +00003694$as_echo "$INSTALL" >&6; }
3695
3696# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3697# It thinks the first close brace ends the variable substitution.
3698test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3699
3700test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3701
3702test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3703
3704test "$program_prefix" != NONE &&
3705 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3706# Use a double $ so make ignores it.
3707test "$program_suffix" != NONE &&
3708 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3709# Double any \ or $.
3710# By default was `s,x,x', remove it if useless.
3711ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3712program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3713
3714# expand $ac_aux_dir to an absolute path
3715am_aux_dir=`cd $ac_aux_dir && pwd`
3716
3717if test x"${MISSING+set}" != xset; then
3718 case $am_aux_dir in
3719 *\ * | *\ *)
3720 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3721 *)
3722 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3723 esac
3724fi
3725# Use eval to expand $SHELL
3726if eval "$MISSING --run true"; then
3727 am_missing_run="$MISSING --run "
3728else
3729 am_missing_run=
cristy8b350f62009-11-15 23:12:43 +00003730 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
cristy3ed852e2009-09-05 21:47:34 +00003731$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3732fi
3733
3734if test x"${install_sh}" != xset; then
3735 case $am_aux_dir in
3736 *\ * | *\ *)
3737 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3738 *)
3739 install_sh="\${SHELL} $am_aux_dir/install-sh"
3740 esac
3741fi
3742
3743# Installed binaries are usually stripped using `strip' when the user
3744# run `make install-strip'. However `strip' might not be the right
3745# tool to use in cross-compilation environments, therefore Automake
3746# will honor the `STRIP' environment variable to overrule this program.
3747if test "$cross_compiling" != no; then
3748 if test -n "$ac_tool_prefix"; then
3749 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3750set dummy ${ac_tool_prefix}strip; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00003751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00003752$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003753if test "${ac_cv_prog_STRIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003754 $as_echo_n "(cached) " >&6
3755else
3756 if test -n "$STRIP"; then
3757 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3758else
3759as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3760for as_dir in $PATH
3761do
3762 IFS=$as_save_IFS
3763 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003764 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00003765 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3766 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
cristy8b350f62009-11-15 23:12:43 +00003767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00003768 break 2
3769 fi
3770done
cristy8b350f62009-11-15 23:12:43 +00003771 done
cristy3ed852e2009-09-05 21:47:34 +00003772IFS=$as_save_IFS
3773
3774fi
3775fi
3776STRIP=$ac_cv_prog_STRIP
3777if test -n "$STRIP"; then
cristy8b350f62009-11-15 23:12:43 +00003778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
cristy3ed852e2009-09-05 21:47:34 +00003779$as_echo "$STRIP" >&6; }
3780else
cristy8b350f62009-11-15 23:12:43 +00003781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00003782$as_echo "no" >&6; }
3783fi
3784
3785
3786fi
3787if test -z "$ac_cv_prog_STRIP"; then
3788 ac_ct_STRIP=$STRIP
3789 # Extract the first word of "strip", so it can be a program name with args.
3790set dummy strip; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00003791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00003792$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003793if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003794 $as_echo_n "(cached) " >&6
3795else
3796 if test -n "$ac_ct_STRIP"; then
3797 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3798else
3799as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3800for as_dir in $PATH
3801do
3802 IFS=$as_save_IFS
3803 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003804 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00003805 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3806 ac_cv_prog_ac_ct_STRIP="strip"
cristy8b350f62009-11-15 23:12:43 +00003807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00003808 break 2
3809 fi
3810done
cristy8b350f62009-11-15 23:12:43 +00003811 done
cristy3ed852e2009-09-05 21:47:34 +00003812IFS=$as_save_IFS
3813
3814fi
3815fi
3816ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3817if test -n "$ac_ct_STRIP"; then
cristy8b350f62009-11-15 23:12:43 +00003818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
cristy3ed852e2009-09-05 21:47:34 +00003819$as_echo "$ac_ct_STRIP" >&6; }
3820else
cristy8b350f62009-11-15 23:12:43 +00003821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00003822$as_echo "no" >&6; }
3823fi
3824
3825 if test "x$ac_ct_STRIP" = x; then
3826 STRIP=":"
3827 else
3828 case $cross_compiling:$ac_tool_warned in
3829yes:)
cristy8b350f62009-11-15 23:12:43 +00003830{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00003831$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3832ac_tool_warned=yes ;;
3833esac
3834 STRIP=$ac_ct_STRIP
3835 fi
3836else
3837 STRIP="$ac_cv_prog_STRIP"
3838fi
3839
3840fi
3841INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3842
cristy8b350f62009-11-15 23:12:43 +00003843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
cristy3ed852e2009-09-05 21:47:34 +00003844$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3845if test -z "$MKDIR_P"; then
cristy8b350f62009-11-15 23:12:43 +00003846 if test "${ac_cv_path_mkdir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003847 $as_echo_n "(cached) " >&6
3848else
3849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3850for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3851do
3852 IFS=$as_save_IFS
3853 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003854 for ac_prog in mkdir gmkdir; do
cristy3ed852e2009-09-05 21:47:34 +00003855 for ac_exec_ext in '' $ac_executable_extensions; do
3856 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3857 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3858 'mkdir (GNU coreutils) '* | \
3859 'mkdir (coreutils) '* | \
3860 'mkdir (fileutils) '4.1*)
3861 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3862 break 3;;
3863 esac
3864 done
3865 done
cristy8b350f62009-11-15 23:12:43 +00003866 done
cristy3ed852e2009-09-05 21:47:34 +00003867IFS=$as_save_IFS
3868
3869fi
3870
cristycd4c5312009-11-22 01:19:08 +00003871 test -d ./--version && rmdir ./--version
cristy3ed852e2009-09-05 21:47:34 +00003872 if test "${ac_cv_path_mkdir+set}" = set; then
3873 MKDIR_P="$ac_cv_path_mkdir -p"
3874 else
3875 # As a last resort, use the slow shell script. Don't cache a
3876 # value for MKDIR_P within a source directory, because that will
3877 # break other packages using the cache if that directory is
3878 # removed, or if the value is a relative name.
cristy3ed852e2009-09-05 21:47:34 +00003879 MKDIR_P="$ac_install_sh -d"
3880 fi
3881fi
cristy8b350f62009-11-15 23:12:43 +00003882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
cristy3ed852e2009-09-05 21:47:34 +00003883$as_echo "$MKDIR_P" >&6; }
3884
3885mkdir_p="$MKDIR_P"
3886case $mkdir_p in
3887 [\\/$]* | ?:[\\/]*) ;;
3888 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3889esac
3890
3891for ac_prog in gawk mawk nawk awk
3892do
3893 # Extract the first word of "$ac_prog", so it can be a program name with args.
3894set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00003895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00003896$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003897if test "${ac_cv_prog_AWK+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003898 $as_echo_n "(cached) " >&6
3899else
3900 if test -n "$AWK"; then
3901 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3902else
3903as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3904for as_dir in $PATH
3905do
3906 IFS=$as_save_IFS
3907 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003908 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00003909 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3910 ac_cv_prog_AWK="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00003911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00003912 break 2
3913 fi
3914done
cristy8b350f62009-11-15 23:12:43 +00003915 done
cristy3ed852e2009-09-05 21:47:34 +00003916IFS=$as_save_IFS
3917
3918fi
3919fi
3920AWK=$ac_cv_prog_AWK
3921if test -n "$AWK"; then
cristy8b350f62009-11-15 23:12:43 +00003922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
cristy3ed852e2009-09-05 21:47:34 +00003923$as_echo "$AWK" >&6; }
3924else
cristy8b350f62009-11-15 23:12:43 +00003925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00003926$as_echo "no" >&6; }
3927fi
3928
3929
3930 test -n "$AWK" && break
3931done
3932
cristy8b350f62009-11-15 23:12:43 +00003933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
cristy3ed852e2009-09-05 21:47:34 +00003934$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3935set x ${MAKE-make}
3936ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristy8b350f62009-11-15 23:12:43 +00003937if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
cristy3ed852e2009-09-05 21:47:34 +00003938 $as_echo_n "(cached) " >&6
3939else
3940 cat >conftest.make <<\_ACEOF
3941SHELL = /bin/sh
3942all:
3943 @echo '@@@%%%=$(MAKE)=@@@%%%'
3944_ACEOF
3945# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3946case `${MAKE-make} -f conftest.make 2>/dev/null` in
3947 *@@@%%%=?*=@@@%%%*)
3948 eval ac_cv_prog_make_${ac_make}_set=yes;;
3949 *)
3950 eval ac_cv_prog_make_${ac_make}_set=no;;
3951esac
3952rm -f conftest.make
3953fi
3954if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
cristy8b350f62009-11-15 23:12:43 +00003955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00003956$as_echo "yes" >&6; }
3957 SET_MAKE=
3958else
cristy8b350f62009-11-15 23:12:43 +00003959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00003960$as_echo "no" >&6; }
3961 SET_MAKE="MAKE=${MAKE-make}"
3962fi
3963
3964rm -rf .tst 2>/dev/null
3965mkdir .tst 2>/dev/null
3966if test -d .tst; then
3967 am__leading_dot=.
3968else
3969 am__leading_dot=_
3970fi
3971rmdir .tst 2>/dev/null
3972
3973if test "`cd $srcdir && pwd`" != "`pwd`"; then
3974 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3975 # is not polluted with repeated "-I."
3976 am__isrc=' -I$(srcdir)'
3977 # test to see if srcdir already configured
3978 if test -f $srcdir/config.status; then
cristy8b350f62009-11-15 23:12:43 +00003979 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003980 fi
3981fi
3982
3983# test whether we have cygpath
3984if test -z "$CYGPATH_W"; then
3985 if (cygpath --version) >/dev/null 2>/dev/null; then
3986 CYGPATH_W='cygpath -w'
3987 else
3988 CYGPATH_W=echo
3989 fi
3990fi
3991
3992
3993# Define the identity of the package.
3994 PACKAGE=$PACKAGE_NAME
cristy15a88782010-01-31 23:24:49 +00003995 VERSION="${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
cristy3ed852e2009-09-05 21:47:34 +00003996
3997
3998# Some tools Automake needs.
3999
4000ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4001
4002
4003AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4004
4005
4006AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4007
4008
4009AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4010
4011
4012MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4013
4014# We need awk for the "check" target. The system "awk" is bad on
4015# some platforms.
4016# Always define AMTAR for backward compatibility.
4017
4018AMTAR=${AMTAR-"${am_missing_run}tar"}
4019
4020am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4021
4022
4023
4024
4025
4026
4027# Enable support for silent build rules
4028# Check whether --enable-silent-rules was given.
cristy8b350f62009-11-15 23:12:43 +00004029if test "${enable_silent_rules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004030 enableval=$enable_silent_rules;
4031fi
4032
4033case $enable_silent_rules in
4034yes) AM_DEFAULT_VERBOSITY=0;;
4035no) AM_DEFAULT_VERBOSITY=1;;
4036*) AM_DEFAULT_VERBOSITY=0;;
4037esac
4038AM_BACKSLASH='\'
4039
4040
4041MAGICK_LIB_VERSION="0x"
4042if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
4043 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4044fi
4045MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
4046if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
4047 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4048fi
4049MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
4050if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
4051 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4052fi
4053MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
4054
4055
4056# Definition used to define MagickLibVersionText in version.h
4057MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
4058
4059
4060# Definition used to define MagickLibVersionNumber in version.h
4061MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
4062
4063
4064# Regenerate config.status if ChangeLog or version.sh is updated.
4065CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
4066
4067
4068PERLMAINCC=$CC
4069
4070MAGICK_CFLAGS=''
4071MAGICK_CPPFLAGS=$CPPFLAGS_USER
4072MAGICK_PCFLAGS=$CPPFLAGS_USER
4073MAGICK_LDFLAGS=''
4074MAGICK_LIBS=''
4075
4076#
4077# Evaluate shell variable equivalents to Makefile directory variables
4078#
4079if test "x$prefix" = xNONE; then
4080 prefix=$ac_default_prefix
4081fi
4082# Let make expand exec_prefix.
4083if test "x$exec_prefix" = xNONE; then
4084 exec_prefix='${prefix}'
4085fi
4086
4087#
4088eval "eval PREFIX_DIR=${prefix}"
4089
4090eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
4091
4092eval "eval BIN_DIR=$bindir"
4093
4094eval "eval SBIN_DIR=$sbindir"
4095
4096eval "eval LIBEXEC_DIR=$libexecdir"
4097
4098eval "eval DATA_DIR=$datadir"
4099
4100eval "eval SYSCONF_DIR=$sysconfdir"
4101
4102eval "eval SHAREDSTATE_DIR=$sharedstatedir"
4103
4104eval "eval LOCALSTATE_DIR=$localstatedir"
4105
4106eval "eval LIB_DIR=$libdir"
4107
4108eval "eval INCLUDE_DIR=$includedir"
4109
4110eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
4111
4112eval "eval INFO_DIR=$infodir"
4113
4114eval "eval MAN_DIR=$mandir"
4115
4116
4117# Get full paths to source and build directories
4118srcdirfull="`cd $srcdir && pwd`"
4119builddir="`pwd`"
4120
4121#
4122# Compute variables useful for running uninstalled software.
4123#
4124MAGICK_CODER_MODULE_PATH="${builddir}/coders"
4125MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
4126MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
4127MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
4128DIRSEP=':'
4129case "${build_os}" in
4130 mingw* )
4131 MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
4132 MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
4133 MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
4134 MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
4135 DIRSEP=';'
4136 ;;
4137esac
4138case "${host_os}" in
4139 mingw* )
4140 DIRSEP=';'
4141 ;;
4142esac
4143
4144
4145
4146
4147
4148
cristya0b81c32010-01-22 02:54:33 +00004149
4150#
4151# Enable OS features.
4152#
4153DEPDIR="${am__leading_dot}deps"
4154
4155ac_config_commands="$ac_config_commands depfiles"
4156
4157
4158am_make=${MAKE-make}
4159cat > confinc << 'END'
4160am__doit:
4161 @echo this is the am__doit target
4162.PHONY: am__doit
4163END
4164# If we don't find an include directive, just comment out the code.
4165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4166$as_echo_n "checking for style of include used by $am_make... " >&6; }
4167am__include="#"
4168am__quote=
4169_am_result=none
4170# First try GNU make style include.
4171echo "include confinc" > confmf
4172# Ignore all kinds of additional output from `make'.
4173case `$am_make -s -f confmf 2> /dev/null` in #(
4174*the\ am__doit\ target*)
4175 am__include=include
4176 am__quote=
4177 _am_result=GNU
4178 ;;
4179esac
4180# Now try BSD make style include.
4181if test "$am__include" = "#"; then
4182 echo '.include "confinc"' > confmf
4183 case `$am_make -s -f confmf 2> /dev/null` in #(
4184 *the\ am__doit\ target*)
4185 am__include=.include
4186 am__quote="\""
4187 _am_result=BSD
4188 ;;
4189 esac
4190fi
4191
4192
4193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4194$as_echo "$_am_result" >&6; }
4195rm -f confinc confmf
4196
4197# Check whether --enable-dependency-tracking was given.
4198if test "${enable_dependency_tracking+set}" = set; then :
4199 enableval=$enable_dependency_tracking;
4200fi
4201
4202if test "x$enable_dependency_tracking" != xno; then
4203 am_depcomp="$ac_aux_dir/depcomp"
4204 AMDEPBACKSLASH='\'
4205fi
4206 if test "x$enable_dependency_tracking" != xno; then
4207 AMDEP_TRUE=
4208 AMDEP_FALSE='#'
4209else
4210 AMDEP_TRUE='#'
4211 AMDEP_FALSE=
4212fi
4213
4214
cristy3ed852e2009-09-05 21:47:34 +00004215ac_ext=c
4216ac_cpp='$CPP $CPPFLAGS'
4217ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4218ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4219ac_compiler_gnu=$ac_cv_c_compiler_gnu
4220if test -n "$ac_tool_prefix"; then
4221 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4222set dummy ${ac_tool_prefix}gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004224$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004225if test "${ac_cv_prog_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004226 $as_echo_n "(cached) " >&6
4227else
4228 if test -n "$CC"; then
4229 ac_cv_prog_CC="$CC" # Let the user override the test.
4230else
4231as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4232for as_dir in $PATH
4233do
4234 IFS=$as_save_IFS
4235 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004236 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4238 ac_cv_prog_CC="${ac_tool_prefix}gcc"
cristy8b350f62009-11-15 23:12:43 +00004239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004240 break 2
4241 fi
4242done
cristy8b350f62009-11-15 23:12:43 +00004243 done
cristy3ed852e2009-09-05 21:47:34 +00004244IFS=$as_save_IFS
4245
4246fi
4247fi
4248CC=$ac_cv_prog_CC
4249if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004251$as_echo "$CC" >&6; }
4252else
cristy8b350f62009-11-15 23:12:43 +00004253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004254$as_echo "no" >&6; }
4255fi
4256
4257
4258fi
4259if test -z "$ac_cv_prog_CC"; then
4260 ac_ct_CC=$CC
4261 # Extract the first word of "gcc", so it can be a program name with args.
4262set dummy gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004264$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004265if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004266 $as_echo_n "(cached) " >&6
4267else
4268 if test -n "$ac_ct_CC"; then
4269 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4270else
4271as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4272for as_dir in $PATH
4273do
4274 IFS=$as_save_IFS
4275 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004276 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4278 ac_cv_prog_ac_ct_CC="gcc"
cristy8b350f62009-11-15 23:12:43 +00004279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004280 break 2
4281 fi
4282done
cristy8b350f62009-11-15 23:12:43 +00004283 done
cristy3ed852e2009-09-05 21:47:34 +00004284IFS=$as_save_IFS
4285
4286fi
4287fi
4288ac_ct_CC=$ac_cv_prog_ac_ct_CC
4289if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004291$as_echo "$ac_ct_CC" >&6; }
4292else
cristy8b350f62009-11-15 23:12:43 +00004293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004294$as_echo "no" >&6; }
4295fi
4296
4297 if test "x$ac_ct_CC" = x; then
4298 CC=""
4299 else
4300 case $cross_compiling:$ac_tool_warned in
4301yes:)
cristy8b350f62009-11-15 23:12:43 +00004302{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004303$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4304ac_tool_warned=yes ;;
4305esac
4306 CC=$ac_ct_CC
4307 fi
4308else
4309 CC="$ac_cv_prog_CC"
4310fi
4311
4312if test -z "$CC"; then
4313 if test -n "$ac_tool_prefix"; then
4314 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4315set dummy ${ac_tool_prefix}cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004317$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004318if test "${ac_cv_prog_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004319 $as_echo_n "(cached) " >&6
4320else
4321 if test -n "$CC"; then
4322 ac_cv_prog_CC="$CC" # Let the user override the test.
4323else
4324as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4325for as_dir in $PATH
4326do
4327 IFS=$as_save_IFS
4328 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004329 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4331 ac_cv_prog_CC="${ac_tool_prefix}cc"
cristy8b350f62009-11-15 23:12:43 +00004332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004333 break 2
4334 fi
4335done
cristy8b350f62009-11-15 23:12:43 +00004336 done
cristy3ed852e2009-09-05 21:47:34 +00004337IFS=$as_save_IFS
4338
4339fi
4340fi
4341CC=$ac_cv_prog_CC
4342if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004344$as_echo "$CC" >&6; }
4345else
cristy8b350f62009-11-15 23:12:43 +00004346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004347$as_echo "no" >&6; }
4348fi
4349
4350
4351 fi
4352fi
4353if test -z "$CC"; then
4354 # Extract the first word of "cc", so it can be a program name with args.
4355set dummy cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004357$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004358if test "${ac_cv_prog_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004359 $as_echo_n "(cached) " >&6
4360else
4361 if test -n "$CC"; then
4362 ac_cv_prog_CC="$CC" # Let the user override the test.
4363else
4364 ac_prog_rejected=no
4365as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4366for as_dir in $PATH
4367do
4368 IFS=$as_save_IFS
4369 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004370 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4372 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4373 ac_prog_rejected=yes
4374 continue
4375 fi
4376 ac_cv_prog_CC="cc"
cristy8b350f62009-11-15 23:12:43 +00004377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004378 break 2
4379 fi
4380done
cristy8b350f62009-11-15 23:12:43 +00004381 done
cristy3ed852e2009-09-05 21:47:34 +00004382IFS=$as_save_IFS
4383
4384if test $ac_prog_rejected = yes; then
4385 # We found a bogon in the path, so make sure we never use it.
4386 set dummy $ac_cv_prog_CC
4387 shift
4388 if test $# != 0; then
4389 # We chose a different compiler from the bogus one.
4390 # However, it has the same basename, so the bogon will be chosen
4391 # first if we set CC to just the basename; use the full file name.
4392 shift
4393 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4394 fi
4395fi
4396fi
4397fi
4398CC=$ac_cv_prog_CC
4399if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004401$as_echo "$CC" >&6; }
4402else
cristy8b350f62009-11-15 23:12:43 +00004403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004404$as_echo "no" >&6; }
4405fi
4406
4407
4408fi
4409if test -z "$CC"; then
4410 if test -n "$ac_tool_prefix"; then
4411 for ac_prog in cl.exe
4412 do
4413 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4414set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004416$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004417if test "${ac_cv_prog_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004418 $as_echo_n "(cached) " >&6
4419else
4420 if test -n "$CC"; then
4421 ac_cv_prog_CC="$CC" # Let the user override the test.
4422else
4423as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4424for as_dir in $PATH
4425do
4426 IFS=$as_save_IFS
4427 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004428 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004429 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4430 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004432 break 2
4433 fi
4434done
cristy8b350f62009-11-15 23:12:43 +00004435 done
cristy3ed852e2009-09-05 21:47:34 +00004436IFS=$as_save_IFS
4437
4438fi
4439fi
4440CC=$ac_cv_prog_CC
4441if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004443$as_echo "$CC" >&6; }
4444else
cristy8b350f62009-11-15 23:12:43 +00004445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004446$as_echo "no" >&6; }
4447fi
4448
4449
4450 test -n "$CC" && break
4451 done
4452fi
4453if test -z "$CC"; then
4454 ac_ct_CC=$CC
4455 for ac_prog in cl.exe
4456do
4457 # Extract the first word of "$ac_prog", so it can be a program name with args.
4458set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004460$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004461if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004462 $as_echo_n "(cached) " >&6
4463else
4464 if test -n "$ac_ct_CC"; then
4465 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4466else
4467as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4468for as_dir in $PATH
4469do
4470 IFS=$as_save_IFS
4471 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004472 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004473 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4474 ac_cv_prog_ac_ct_CC="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004475 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004476 break 2
4477 fi
4478done
cristy8b350f62009-11-15 23:12:43 +00004479 done
cristy3ed852e2009-09-05 21:47:34 +00004480IFS=$as_save_IFS
4481
4482fi
4483fi
4484ac_ct_CC=$ac_cv_prog_ac_ct_CC
4485if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004487$as_echo "$ac_ct_CC" >&6; }
4488else
cristy8b350f62009-11-15 23:12:43 +00004489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004490$as_echo "no" >&6; }
4491fi
4492
4493
4494 test -n "$ac_ct_CC" && break
4495done
4496
4497 if test "x$ac_ct_CC" = x; then
4498 CC=""
4499 else
4500 case $cross_compiling:$ac_tool_warned in
4501yes:)
cristy8b350f62009-11-15 23:12:43 +00004502{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004503$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4504ac_tool_warned=yes ;;
4505esac
4506 CC=$ac_ct_CC
4507 fi
4508fi
4509
4510fi
4511
4512
cristy8b350f62009-11-15 23:12:43 +00004513test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004514$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00004515as_fn_error "no acceptable C compiler found in \$PATH
4516See \`config.log' for more details." "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004517
4518# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +00004519$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +00004520set X $ac_compile
4521ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +00004522for ac_option in --version -v -V -qversion; do
4523 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +00004524case "(($ac_try" in
4525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4526 *) ac_try_echo=$ac_try;;
4527esac
cristy8b350f62009-11-15 23:12:43 +00004528eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4529$as_echo "$ac_try_echo"; } >&5
4530 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +00004531 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004532 if test -s conftest.err; then
4533 sed '10a\
4534... rest of stderr output deleted ...
4535 10q' conftest.err >conftest.er1
4536 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +00004537 fi
cristycd4c5312009-11-22 01:19:08 +00004538 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +00004539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4540 test $ac_status = 0; }
4541done
cristy3ed852e2009-09-05 21:47:34 +00004542
cristy8b350f62009-11-15 23:12:43 +00004543cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004544/* end confdefs.h. */
cristycd4c5312009-11-22 01:19:08 +00004545
cristy3ed852e2009-09-05 21:47:34 +00004546int
4547main ()
4548{
4549
4550 ;
4551 return 0;
4552}
4553_ACEOF
4554ac_clean_files_save=$ac_clean_files
cristycd4c5312009-11-22 01:19:08 +00004555ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
cristy3ed852e2009-09-05 21:47:34 +00004556# Try to create an executable without -o first, disregard a.out.
4557# It will help us diagnose broken compilers, and finding out an intuition
4558# of exeext.
cristycd4c5312009-11-22 01:19:08 +00004559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4560$as_echo_n "checking whether the C compiler works... " >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004561ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4562
4563# The possible output files:
4564ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4565
4566ac_rmfiles=
4567for ac_file in $ac_files
4568do
4569 case $ac_file in
4570 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4571 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4572 esac
4573done
4574rm -f $ac_rmfiles
4575
cristy8b350f62009-11-15 23:12:43 +00004576if { { ac_try="$ac_link_default"
cristy3ed852e2009-09-05 21:47:34 +00004577case "(($ac_try" in
4578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4579 *) ac_try_echo=$ac_try;;
4580esac
cristy8b350f62009-11-15 23:12:43 +00004581eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4582$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004583 (eval "$ac_link_default") 2>&5
4584 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4586 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004587 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4588# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4589# in a Makefile. We should not override ac_cv_exeext if it was cached,
4590# so that the user can short-circuit this test for compilers unknown to
4591# Autoconf.
4592for ac_file in $ac_files ''
4593do
4594 test -f "$ac_file" || continue
4595 case $ac_file in
4596 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4597 ;;
4598 [ab].out )
4599 # We found the default executable, but exeext='' is most
4600 # certainly right.
4601 break;;
4602 *.* )
cristy8b350f62009-11-15 23:12:43 +00004603 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
cristy3ed852e2009-09-05 21:47:34 +00004604 then :; else
4605 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4606 fi
4607 # We set ac_cv_exeext here because the later test for it is not
4608 # safe: cross compilers may not add the suffix if given an `-o'
4609 # argument, so we may need to know it at that point already.
4610 # Even if this section looks crufty: it has the advantage of
4611 # actually working.
4612 break;;
4613 * )
4614 break;;
4615 esac
4616done
4617test "$ac_cv_exeext" = no && ac_cv_exeext=
4618
4619else
4620 ac_file=''
4621fi
cristy8b350f62009-11-15 23:12:43 +00004622if test -z "$ac_file"; then :
cristycd4c5312009-11-22 01:19:08 +00004623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4624$as_echo "no" >&6; }
4625$as_echo "$as_me: failed program was:" >&5
cristy3ed852e2009-09-05 21:47:34 +00004626sed 's/^/| /' conftest.$ac_ext >&5
4627
cristy8b350f62009-11-15 23:12:43 +00004628{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004629$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00004630{ as_fn_set_status 77
4631as_fn_error "C compiler cannot create executables
4632See \`config.log' for more details." "$LINENO" 5; }; }
cristycd4c5312009-11-22 01:19:08 +00004633else
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4635$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004636fi
cristycd4c5312009-11-22 01:19:08 +00004637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4638$as_echo_n "checking for C compiler default output file name... " >&6; }
4639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4640$as_echo "$ac_file" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004641ac_exeext=$ac_cv_exeext
4642
cristycd4c5312009-11-22 01:19:08 +00004643rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
cristy3ed852e2009-09-05 21:47:34 +00004644ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
cristy3ed852e2009-09-05 21:47:34 +00004646$as_echo_n "checking for suffix of executables... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004647if { { ac_try="$ac_link"
cristy3ed852e2009-09-05 21:47:34 +00004648case "(($ac_try" in
4649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4650 *) ac_try_echo=$ac_try;;
4651esac
cristy8b350f62009-11-15 23:12:43 +00004652eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4653$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004654 (eval "$ac_link") 2>&5
4655 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004656 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4657 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004658 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4659# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4660# work properly (i.e., refer to `conftest.exe'), while it won't with
4661# `rm'.
4662for ac_file in conftest.exe conftest conftest.*; do
4663 test -f "$ac_file" || continue
4664 case $ac_file in
4665 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4666 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4667 break;;
4668 * ) break;;
4669 esac
4670done
4671else
cristy8b350f62009-11-15 23:12:43 +00004672 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004673$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00004674as_fn_error "cannot compute suffix of executables: cannot compile and link
4675See \`config.log' for more details." "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004676fi
cristycd4c5312009-11-22 01:19:08 +00004677rm -f conftest conftest$ac_cv_exeext
cristy8b350f62009-11-15 23:12:43 +00004678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004679$as_echo "$ac_cv_exeext" >&6; }
4680
4681rm -f conftest.$ac_ext
4682EXEEXT=$ac_cv_exeext
4683ac_exeext=$EXEEXT
cristycd4c5312009-11-22 01:19:08 +00004684cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4685/* end confdefs.h. */
4686#include <stdio.h>
4687int
4688main ()
4689{
4690FILE *f = fopen ("conftest.out", "w");
4691 return ferror (f) || fclose (f) != 0;
4692
4693 ;
4694 return 0;
4695}
4696_ACEOF
4697ac_clean_files="$ac_clean_files conftest.out"
4698# Check that the compiler produces executables we can run. If not, either
4699# the compiler is broken, or we cross compile.
4700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4701$as_echo_n "checking whether we are cross compiling... " >&6; }
4702if test "$cross_compiling" != yes; then
4703 { { ac_try="$ac_link"
4704case "(($ac_try" in
4705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4706 *) ac_try_echo=$ac_try;;
4707esac
4708eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4709$as_echo "$ac_try_echo"; } >&5
4710 (eval "$ac_link") 2>&5
4711 ac_status=$?
4712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4713 test $ac_status = 0; }
4714 if { ac_try='./conftest$ac_cv_exeext'
4715 { { case "(($ac_try" in
4716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4717 *) ac_try_echo=$ac_try;;
4718esac
4719eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4720$as_echo "$ac_try_echo"; } >&5
4721 (eval "$ac_try") 2>&5
4722 ac_status=$?
4723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4724 test $ac_status = 0; }; }; then
4725 cross_compiling=no
4726 else
4727 if test "$cross_compiling" = maybe; then
4728 cross_compiling=yes
4729 else
4730 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4731$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4732as_fn_error "cannot run C compiled programs.
4733If you meant to cross compile, use \`--host'.
4734See \`config.log' for more details." "$LINENO" 5; }
4735 fi
4736 fi
4737fi
4738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4739$as_echo "$cross_compiling" >&6; }
4740
4741rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4742ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00004744$as_echo_n "checking for suffix of object files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004745if test "${ac_cv_objext+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004746 $as_echo_n "(cached) " >&6
4747else
cristy8b350f62009-11-15 23:12:43 +00004748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004749/* end confdefs.h. */
4750
4751int
4752main ()
4753{
4754
4755 ;
4756 return 0;
4757}
4758_ACEOF
4759rm -f conftest.o conftest.obj
cristy8b350f62009-11-15 23:12:43 +00004760if { { ac_try="$ac_compile"
cristy3ed852e2009-09-05 21:47:34 +00004761case "(($ac_try" in
4762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4763 *) ac_try_echo=$ac_try;;
4764esac
cristy8b350f62009-11-15 23:12:43 +00004765eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4766$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004767 (eval "$ac_compile") 2>&5
4768 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4770 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004771 for ac_file in conftest.o conftest.obj conftest.*; do
4772 test -f "$ac_file" || continue;
4773 case $ac_file in
4774 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4775 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4776 break;;
4777 esac
4778done
4779else
4780 $as_echo "$as_me: failed program was:" >&5
4781sed 's/^/| /' conftest.$ac_ext >&5
4782
cristy8b350f62009-11-15 23:12:43 +00004783{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004784$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00004785as_fn_error "cannot compute suffix of object files: cannot compile
4786See \`config.log' for more details." "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004787fi
cristy3ed852e2009-09-05 21:47:34 +00004788rm -f conftest.$ac_cv_objext conftest.$ac_ext
4789fi
cristy8b350f62009-11-15 23:12:43 +00004790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004791$as_echo "$ac_cv_objext" >&6; }
4792OBJEXT=$ac_cv_objext
4793ac_objext=$OBJEXT
cristy8b350f62009-11-15 23:12:43 +00004794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +00004795$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004796if test "${ac_cv_c_compiler_gnu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004797 $as_echo_n "(cached) " >&6
4798else
cristy8b350f62009-11-15 23:12:43 +00004799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004800/* end confdefs.h. */
4801
4802int
4803main ()
4804{
4805#ifndef __GNUC__
4806 choke me
4807#endif
4808
4809 ;
4810 return 0;
4811}
4812_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004813if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004814 ac_compiler_gnu=yes
4815else
cristy8b350f62009-11-15 23:12:43 +00004816 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +00004817fi
cristy3ed852e2009-09-05 21:47:34 +00004818rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4819ac_cv_c_compiler_gnu=$ac_compiler_gnu
4820
4821fi
cristy8b350f62009-11-15 23:12:43 +00004822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +00004823$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4824if test $ac_compiler_gnu = yes; then
4825 GCC=yes
4826else
4827 GCC=
4828fi
4829ac_test_CFLAGS=${CFLAGS+set}
4830ac_save_CFLAGS=$CFLAGS
cristy8b350f62009-11-15 23:12:43 +00004831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +00004832$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004833if test "${ac_cv_prog_cc_g+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004834 $as_echo_n "(cached) " >&6
4835else
4836 ac_save_c_werror_flag=$ac_c_werror_flag
4837 ac_c_werror_flag=yes
4838 ac_cv_prog_cc_g=no
4839 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00004840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004841/* end confdefs.h. */
4842
4843int
4844main ()
4845{
4846
4847 ;
4848 return 0;
4849}
4850_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004851if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004852 ac_cv_prog_cc_g=yes
4853else
cristy8b350f62009-11-15 23:12:43 +00004854 CFLAGS=""
4855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004856/* end confdefs.h. */
4857
4858int
4859main ()
4860{
4861
4862 ;
4863 return 0;
4864}
4865_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004866if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004867
cristy8b350f62009-11-15 23:12:43 +00004868else
4869 ac_c_werror_flag=$ac_save_c_werror_flag
cristy3ed852e2009-09-05 21:47:34 +00004870 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00004871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004872/* end confdefs.h. */
4873
4874int
4875main ()
4876{
4877
4878 ;
4879 return 0;
4880}
4881_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004882if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004883 ac_cv_prog_cc_g=yes
cristy3ed852e2009-09-05 21:47:34 +00004884fi
cristy3ed852e2009-09-05 21:47:34 +00004885rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4886fi
cristy3ed852e2009-09-05 21:47:34 +00004887rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4888fi
cristy3ed852e2009-09-05 21:47:34 +00004889rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4890 ac_c_werror_flag=$ac_save_c_werror_flag
4891fi
cristy8b350f62009-11-15 23:12:43 +00004892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
cristy3ed852e2009-09-05 21:47:34 +00004893$as_echo "$ac_cv_prog_cc_g" >&6; }
4894if test "$ac_test_CFLAGS" = set; then
4895 CFLAGS=$ac_save_CFLAGS
4896elif test $ac_cv_prog_cc_g = yes; then
4897 if test "$GCC" = yes; then
4898 CFLAGS="-g -O2"
4899 else
4900 CFLAGS="-g"
4901 fi
4902else
4903 if test "$GCC" = yes; then
4904 CFLAGS="-O2"
4905 else
4906 CFLAGS=
4907 fi
4908fi
cristy8b350f62009-11-15 23:12:43 +00004909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00004910$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004911if test "${ac_cv_prog_cc_c89+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004912 $as_echo_n "(cached) " >&6
4913else
4914 ac_cv_prog_cc_c89=no
4915ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00004916cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004917/* end confdefs.h. */
4918#include <stdarg.h>
4919#include <stdio.h>
4920#include <sys/types.h>
4921#include <sys/stat.h>
4922/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4923struct buf { int x; };
4924FILE * (*rcsopen) (struct buf *, struct stat *, int);
4925static char *e (p, i)
4926 char **p;
4927 int i;
4928{
4929 return p[i];
4930}
4931static char *f (char * (*g) (char **, int), char **p, ...)
4932{
4933 char *s;
4934 va_list v;
4935 va_start (v,p);
4936 s = g (p, va_arg (v,int));
4937 va_end (v);
4938 return s;
4939}
4940
4941/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4942 function prototypes and stuff, but not '\xHH' hex character constants.
4943 These don't provoke an error unfortunately, instead are silently treated
4944 as 'x'. The following induces an error, until -std is added to get
4945 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4946 array size at least. It's necessary to write '\x00'==0 to get something
4947 that's true only with -std. */
4948int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4949
4950/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4951 inside strings and character constants. */
4952#define FOO(x) 'x'
4953int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4954
4955int test (int i, double x);
4956struct s1 {int (*f) (int a);};
4957struct s2 {int (*f) (double a);};
4958int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4959int argc;
4960char **argv;
4961int
4962main ()
4963{
4964return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4965 ;
4966 return 0;
4967}
4968_ACEOF
4969for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4970 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4971do
4972 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00004973 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004974 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00004975fi
cristy3ed852e2009-09-05 21:47:34 +00004976rm -f core conftest.err conftest.$ac_objext
4977 test "x$ac_cv_prog_cc_c89" != "xno" && break
4978done
4979rm -f conftest.$ac_ext
4980CC=$ac_save_CC
4981
4982fi
4983# AC_CACHE_VAL
4984case "x$ac_cv_prog_cc_c89" in
4985 x)
cristy8b350f62009-11-15 23:12:43 +00004986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00004987$as_echo "none needed" >&6; } ;;
4988 xno)
cristy8b350f62009-11-15 23:12:43 +00004989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00004990$as_echo "unsupported" >&6; } ;;
4991 *)
4992 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00004993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00004994$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4995esac
cristy8b350f62009-11-15 23:12:43 +00004996if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00004997
cristy8b350f62009-11-15 23:12:43 +00004998fi
cristy3ed852e2009-09-05 21:47:34 +00004999
5000ac_ext=c
5001ac_cpp='$CPP $CPPFLAGS'
5002ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5003ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5004ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy3ed852e2009-09-05 21:47:34 +00005005
cristya0b81c32010-01-22 02:54:33 +00005006depcc="$CC" am_compiler_list=
cristy3ed852e2009-09-05 21:47:34 +00005007
cristya0b81c32010-01-22 02:54:33 +00005008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5009$as_echo_n "checking dependency style of $depcc... " >&6; }
5010if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5011 $as_echo_n "(cached) " >&6
cristy3ed852e2009-09-05 21:47:34 +00005012else
cristya0b81c32010-01-22 02:54:33 +00005013 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5014 # We make a subdir and do the tests there. Otherwise we can end up
5015 # making bogus files that we don't know about and never remove. For
5016 # instance it was reported that on HP-UX the gcc test will end up
5017 # making a dummy file named `D' -- because `-MD' means `put the output
5018 # in D'.
5019 mkdir conftest.dir
5020 # Copy depcomp to subdir because otherwise we won't find it if we're
5021 # using a relative directory.
5022 cp "$am_depcomp" conftest.dir
5023 cd conftest.dir
5024 # We will build objects and dependencies in a subdirectory because
5025 # it helps to detect inapplicable dependency modes. For instance
5026 # both Tru64's cc and ICC support -MD to output dependencies as a
5027 # side effect of compilation, but ICC will put the dependencies in
5028 # the current directory while Tru64 will put them in the object
5029 # directory.
5030 mkdir sub
5031
5032 am_cv_CC_dependencies_compiler_type=none
5033 if test "$am_compiler_list" = ""; then
5034 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5035 fi
5036 am__universal=false
5037 case " $depcc " in #(
5038 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5039 esac
5040
5041 for depmode in $am_compiler_list; do
5042 # Setup a source with many dependencies, because some compilers
5043 # like to wrap large dependency lists on column 80 (with \), and
5044 # we should not choose a depcomp mode which is confused by this.
5045 #
5046 # We need to recreate these files for each test, as the compiler may
5047 # overwrite some of them when testing with obscure command lines.
5048 # This happens at least with the AIX C compiler.
5049 : > sub/conftest.c
5050 for i in 1 2 3 4 5 6; do
5051 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5052 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5053 # Solaris 8's {/usr,}/bin/sh.
5054 touch sub/conftst$i.h
5055 done
5056 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5057
5058 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5059 # mode. It turns out that the SunPro C++ compiler does not properly
5060 # handle `-M -o', and we need to detect this. Also, some Intel
5061 # versions had trouble with output in subdirs
5062 am__obj=sub/conftest.${OBJEXT-o}
5063 am__minus_obj="-o $am__obj"
5064 case $depmode in
5065 gcc)
5066 # This depmode causes a compiler race in universal mode.
5067 test "$am__universal" = false || continue
5068 ;;
5069 nosideeffect)
5070 # after this tag, mechanisms are not by side-effect, so they'll
5071 # only be used when explicitly requested
5072 if test "x$enable_dependency_tracking" = xyes; then
5073 continue
5074 else
5075 break
5076 fi
5077 ;;
5078 msvisualcpp | msvcmsys)
5079 # This compiler won't grok `-c -o', but also, the minuso test has
5080 # not run yet. These depmodes are late enough in the game, and
5081 # so weak that their functioning should not be impacted.
5082 am__obj=conftest.${OBJEXT-o}
5083 am__minus_obj=
5084 ;;
5085 none) break ;;
5086 esac
5087 if depmode=$depmode \
5088 source=sub/conftest.c object=$am__obj \
5089 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5090 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5091 >/dev/null 2>conftest.err &&
5092 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5093 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5094 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5095 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5096 # icc doesn't choke on unknown options, it will just issue warnings
5097 # or remarks (even with -Werror). So we grep stderr for any message
5098 # that says an option was ignored or not supported.
5099 # When given -MP, icc 7.0 and 7.1 complain thusly:
5100 # icc: Command line warning: ignoring option '-M'; no argument required
5101 # The diagnosis changed in icc 8.0:
5102 # icc: Command line remark: option '-MP' not supported
5103 if (grep 'ignoring option' conftest.err ||
5104 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5105 am_cv_CC_dependencies_compiler_type=$depmode
5106 break
5107 fi
5108 fi
5109 done
5110
5111 cd ..
5112 rm -rf conftest.dir
5113else
5114 am_cv_CC_dependencies_compiler_type=none
5115fi
5116
5117fi
5118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5119$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5120CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5121
5122 if
5123 test "x$enable_dependency_tracking" != xno \
5124 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5125 am__fastdepCC_TRUE=
5126 am__fastdepCC_FALSE='#'
5127else
5128 am__fastdepCC_TRUE='#'
5129 am__fastdepCC_FALSE=
cristy3ed852e2009-09-05 21:47:34 +00005130fi
5131
5132
5133
cristya0b81c32010-01-22 02:54:33 +00005134ac_ext=c
5135ac_cpp='$CPP $CPPFLAGS'
5136ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5137ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5138ac_compiler_gnu=$ac_cv_c_compiler_gnu
5139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5140$as_echo_n "checking how to run the C preprocessor... " >&6; }
5141# On Suns, sometimes $CPP names a directory.
5142if test -n "$CPP" && test -d "$CPP"; then
5143 CPP=
5144fi
5145if test -z "$CPP"; then
5146 if test "${ac_cv_prog_CPP+set}" = set; then :
5147 $as_echo_n "(cached) " >&6
5148else
5149 # Double quotes because CPP needs to be expanded
5150 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5151 do
5152 ac_preproc_ok=false
5153for ac_c_preproc_warn_flag in '' yes
5154do
5155 # Use a header file that comes with gcc, so configuring glibc
5156 # with a fresh cross-compiler works.
5157 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5158 # <limits.h> exists even on freestanding compilers.
5159 # On the NeXT, cc -E runs the code through the compiler's parser,
5160 # not just through cpp. "Syntax error" is here to catch this case.
5161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5162/* end confdefs.h. */
5163#ifdef __STDC__
5164# include <limits.h>
5165#else
5166# include <assert.h>
5167#endif
5168 Syntax error
5169_ACEOF
5170if ac_fn_c_try_cpp "$LINENO"; then :
5171
5172else
5173 # Broken: fails on valid input.
5174continue
5175fi
5176rm -f conftest.err conftest.$ac_ext
5177
5178 # OK, works on sane cases. Now check whether nonexistent headers
5179 # can be detected and how.
5180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5181/* end confdefs.h. */
5182#include <ac_nonexistent.h>
5183_ACEOF
5184if ac_fn_c_try_cpp "$LINENO"; then :
5185 # Broken: success on invalid input.
5186continue
5187else
5188 # Passes both tests.
5189ac_preproc_ok=:
5190break
5191fi
5192rm -f conftest.err conftest.$ac_ext
5193
5194done
5195# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5196rm -f conftest.err conftest.$ac_ext
5197if $ac_preproc_ok; then :
5198 break
5199fi
5200
5201 done
5202 ac_cv_prog_CPP=$CPP
5203
5204fi
5205 CPP=$ac_cv_prog_CPP
5206else
5207 ac_cv_prog_CPP=$CPP
5208fi
5209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5210$as_echo "$CPP" >&6; }
5211ac_preproc_ok=false
5212for ac_c_preproc_warn_flag in '' yes
5213do
5214 # Use a header file that comes with gcc, so configuring glibc
5215 # with a fresh cross-compiler works.
5216 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5217 # <limits.h> exists even on freestanding compilers.
5218 # On the NeXT, cc -E runs the code through the compiler's parser,
5219 # not just through cpp. "Syntax error" is here to catch this case.
5220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5221/* end confdefs.h. */
5222#ifdef __STDC__
5223# include <limits.h>
5224#else
5225# include <assert.h>
5226#endif
5227 Syntax error
5228_ACEOF
5229if ac_fn_c_try_cpp "$LINENO"; then :
5230
5231else
5232 # Broken: fails on valid input.
5233continue
5234fi
5235rm -f conftest.err conftest.$ac_ext
5236
5237 # OK, works on sane cases. Now check whether nonexistent headers
5238 # can be detected and how.
5239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5240/* end confdefs.h. */
5241#include <ac_nonexistent.h>
5242_ACEOF
5243if ac_fn_c_try_cpp "$LINENO"; then :
5244 # Broken: success on invalid input.
5245continue
5246else
5247 # Passes both tests.
5248ac_preproc_ok=:
5249break
5250fi
5251rm -f conftest.err conftest.$ac_ext
5252
5253done
5254# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5255rm -f conftest.err conftest.$ac_ext
5256if $ac_preproc_ok; then :
5257
5258else
5259 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5260$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5261as_fn_error "C preprocessor \"$CPP\" fails sanity check
5262See \`config.log' for more details." "$LINENO" 5; }
5263fi
5264
5265ac_ext=c
5266ac_cpp='$CPP $CPPFLAGS'
5267ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5268ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5269ac_compiler_gnu=$ac_cv_c_compiler_gnu
5270
5271
5272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5273$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5274if test "${ac_cv_path_GREP+set}" = set; then :
5275 $as_echo_n "(cached) " >&6
5276else
5277 if test -z "$GREP"; then
5278 ac_path_GREP_found=false
5279 # Loop through the user's path and test for each of PROGNAME-LIST
5280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5281for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5282do
5283 IFS=$as_save_IFS
5284 test -z "$as_dir" && as_dir=.
5285 for ac_prog in grep ggrep; do
5286 for ac_exec_ext in '' $ac_executable_extensions; do
5287 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5288 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5289# Check for GNU ac_path_GREP and select it if it is found.
5290 # Check for GNU $ac_path_GREP
5291case `"$ac_path_GREP" --version 2>&1` in
5292*GNU*)
5293 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5294*)
5295 ac_count=0
5296 $as_echo_n 0123456789 >"conftest.in"
5297 while :
5298 do
5299 cat "conftest.in" "conftest.in" >"conftest.tmp"
5300 mv "conftest.tmp" "conftest.in"
5301 cp "conftest.in" "conftest.nl"
5302 $as_echo 'GREP' >> "conftest.nl"
5303 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5304 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5305 as_fn_arith $ac_count + 1 && ac_count=$as_val
5306 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5307 # Best one so far, save it but keep looking for a better one
5308 ac_cv_path_GREP="$ac_path_GREP"
5309 ac_path_GREP_max=$ac_count
5310 fi
5311 # 10*(2^10) chars as input seems more than enough
5312 test $ac_count -gt 10 && break
5313 done
5314 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5315esac
5316
5317 $ac_path_GREP_found && break 3
5318 done
5319 done
5320 done
5321IFS=$as_save_IFS
5322 if test -z "$ac_cv_path_GREP"; then
5323 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5324 fi
5325else
5326 ac_cv_path_GREP=$GREP
5327fi
5328
5329fi
5330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5331$as_echo "$ac_cv_path_GREP" >&6; }
5332 GREP="$ac_cv_path_GREP"
5333
5334
5335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5336$as_echo_n "checking for egrep... " >&6; }
5337if test "${ac_cv_path_EGREP+set}" = set; then :
5338 $as_echo_n "(cached) " >&6
5339else
5340 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5341 then ac_cv_path_EGREP="$GREP -E"
5342 else
5343 if test -z "$EGREP"; then
5344 ac_path_EGREP_found=false
5345 # Loop through the user's path and test for each of PROGNAME-LIST
5346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5347for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5348do
5349 IFS=$as_save_IFS
5350 test -z "$as_dir" && as_dir=.
5351 for ac_prog in egrep; do
5352 for ac_exec_ext in '' $ac_executable_extensions; do
5353 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5354 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5355# Check for GNU ac_path_EGREP and select it if it is found.
5356 # Check for GNU $ac_path_EGREP
5357case `"$ac_path_EGREP" --version 2>&1` in
5358*GNU*)
5359 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5360*)
5361 ac_count=0
5362 $as_echo_n 0123456789 >"conftest.in"
5363 while :
5364 do
5365 cat "conftest.in" "conftest.in" >"conftest.tmp"
5366 mv "conftest.tmp" "conftest.in"
5367 cp "conftest.in" "conftest.nl"
5368 $as_echo 'EGREP' >> "conftest.nl"
5369 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5370 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5371 as_fn_arith $ac_count + 1 && ac_count=$as_val
5372 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5373 # Best one so far, save it but keep looking for a better one
5374 ac_cv_path_EGREP="$ac_path_EGREP"
5375 ac_path_EGREP_max=$ac_count
5376 fi
5377 # 10*(2^10) chars as input seems more than enough
5378 test $ac_count -gt 10 && break
5379 done
5380 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5381esac
5382
5383 $ac_path_EGREP_found && break 3
5384 done
5385 done
5386 done
5387IFS=$as_save_IFS
5388 if test -z "$ac_cv_path_EGREP"; then
5389 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5390 fi
5391else
5392 ac_cv_path_EGREP=$EGREP
5393fi
5394
5395 fi
5396fi
5397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5398$as_echo "$ac_cv_path_EGREP" >&6; }
5399 EGREP="$ac_cv_path_EGREP"
5400
5401
5402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5403$as_echo_n "checking for ANSI C header files... " >&6; }
5404if test "${ac_cv_header_stdc+set}" = set; then :
5405 $as_echo_n "(cached) " >&6
5406else
5407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5408/* end confdefs.h. */
5409#include <stdlib.h>
5410#include <stdarg.h>
5411#include <string.h>
5412#include <float.h>
5413
5414int
5415main ()
5416{
5417
5418 ;
5419 return 0;
5420}
5421_ACEOF
5422if ac_fn_c_try_compile "$LINENO"; then :
5423 ac_cv_header_stdc=yes
5424else
5425 ac_cv_header_stdc=no
5426fi
5427rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5428
5429if test $ac_cv_header_stdc = yes; then
5430 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5432/* end confdefs.h. */
5433#include <string.h>
5434
5435_ACEOF
5436if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5437 $EGREP "memchr" >/dev/null 2>&1; then :
5438
5439else
5440 ac_cv_header_stdc=no
5441fi
5442rm -f conftest*
5443
5444fi
5445
5446if test $ac_cv_header_stdc = yes; then
5447 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5449/* end confdefs.h. */
5450#include <stdlib.h>
5451
5452_ACEOF
5453if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5454 $EGREP "free" >/dev/null 2>&1; then :
5455
5456else
5457 ac_cv_header_stdc=no
5458fi
5459rm -f conftest*
5460
5461fi
5462
5463if test $ac_cv_header_stdc = yes; then
5464 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5465 if test "$cross_compiling" = yes; then :
5466 :
5467else
5468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5469/* end confdefs.h. */
5470#include <ctype.h>
5471#include <stdlib.h>
5472#if ((' ' & 0x0FF) == 0x020)
5473# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5474# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5475#else
5476# define ISLOWER(c) \
5477 (('a' <= (c) && (c) <= 'i') \
5478 || ('j' <= (c) && (c) <= 'r') \
5479 || ('s' <= (c) && (c) <= 'z'))
5480# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5481#endif
5482
5483#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5484int
5485main ()
5486{
5487 int i;
5488 for (i = 0; i < 256; i++)
5489 if (XOR (islower (i), ISLOWER (i))
5490 || toupper (i) != TOUPPER (i))
5491 return 2;
5492 return 0;
5493}
5494_ACEOF
5495if ac_fn_c_try_run "$LINENO"; then :
5496
5497else
5498 ac_cv_header_stdc=no
5499fi
5500rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5501 conftest.$ac_objext conftest.beam conftest.$ac_ext
5502fi
5503
5504fi
5505fi
5506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5507$as_echo "$ac_cv_header_stdc" >&6; }
5508if test $ac_cv_header_stdc = yes; then
5509
5510$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5511
5512fi
5513
5514# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5515for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5516 inttypes.h stdint.h unistd.h
5517do :
5518 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5519ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5520"
5521eval as_val=\$$as_ac_Header
5522 if test "x$as_val" = x""yes; then :
5523 cat >>confdefs.h <<_ACEOF
5524#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5525_ACEOF
5526
5527fi
5528
5529done
5530
5531
5532
5533 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5534if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5535 MINIX=yes
5536else
5537 MINIX=
5538fi
5539
5540
5541 if test "$MINIX" = yes; then
5542
5543$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5544
5545
5546$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5547
5548
5549$as_echo "#define _MINIX 1" >>confdefs.h
5550
5551 fi
5552
5553
5554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5555$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5556if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5557 $as_echo_n "(cached) " >&6
5558else
5559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5560/* end confdefs.h. */
5561
5562# define __EXTENSIONS__ 1
5563 $ac_includes_default
5564int
5565main ()
5566{
5567
5568 ;
5569 return 0;
5570}
5571_ACEOF
5572if ac_fn_c_try_compile "$LINENO"; then :
5573 ac_cv_safe_to_define___extensions__=yes
5574else
5575 ac_cv_safe_to_define___extensions__=no
5576fi
5577rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5578fi
5579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5580$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5581 test $ac_cv_safe_to_define___extensions__ = yes &&
5582 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5583
5584 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5585
5586 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5587
5588 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5589
5590 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5591
5592
5593
5594# Check for programs
5595ac_ext=c
5596ac_cpp='$CPP $CPPFLAGS'
5597ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5598ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5599ac_compiler_gnu=$ac_cv_c_compiler_gnu
5600if test -n "$ac_tool_prefix"; then
5601 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5602set dummy ${ac_tool_prefix}gcc; ac_word=$2
5603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5604$as_echo_n "checking for $ac_word... " >&6; }
5605if test "${ac_cv_prog_CC+set}" = set; then :
5606 $as_echo_n "(cached) " >&6
5607else
5608 if test -n "$CC"; then
5609 ac_cv_prog_CC="$CC" # Let the user override the test.
5610else
5611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5612for as_dir in $PATH
5613do
5614 IFS=$as_save_IFS
5615 test -z "$as_dir" && as_dir=.
5616 for ac_exec_ext in '' $ac_executable_extensions; do
5617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5618 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5620 break 2
5621 fi
5622done
5623 done
5624IFS=$as_save_IFS
5625
5626fi
5627fi
5628CC=$ac_cv_prog_CC
5629if test -n "$CC"; then
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5631$as_echo "$CC" >&6; }
5632else
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5634$as_echo "no" >&6; }
5635fi
5636
5637
5638fi
5639if test -z "$ac_cv_prog_CC"; then
5640 ac_ct_CC=$CC
5641 # Extract the first word of "gcc", so it can be a program name with args.
5642set dummy gcc; ac_word=$2
5643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5644$as_echo_n "checking for $ac_word... " >&6; }
5645if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5646 $as_echo_n "(cached) " >&6
5647else
5648 if test -n "$ac_ct_CC"; then
5649 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5650else
5651as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5652for as_dir in $PATH
5653do
5654 IFS=$as_save_IFS
5655 test -z "$as_dir" && as_dir=.
5656 for ac_exec_ext in '' $ac_executable_extensions; do
5657 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5658 ac_cv_prog_ac_ct_CC="gcc"
5659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5660 break 2
5661 fi
5662done
5663 done
5664IFS=$as_save_IFS
5665
5666fi
5667fi
5668ac_ct_CC=$ac_cv_prog_ac_ct_CC
5669if test -n "$ac_ct_CC"; then
5670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5671$as_echo "$ac_ct_CC" >&6; }
5672else
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5674$as_echo "no" >&6; }
5675fi
5676
5677 if test "x$ac_ct_CC" = x; then
5678 CC=""
5679 else
5680 case $cross_compiling:$ac_tool_warned in
5681yes:)
5682{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5683$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5684ac_tool_warned=yes ;;
5685esac
5686 CC=$ac_ct_CC
5687 fi
5688else
5689 CC="$ac_cv_prog_CC"
5690fi
5691
5692if test -z "$CC"; then
5693 if test -n "$ac_tool_prefix"; then
5694 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5695set dummy ${ac_tool_prefix}cc; ac_word=$2
5696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5697$as_echo_n "checking for $ac_word... " >&6; }
5698if test "${ac_cv_prog_CC+set}" = set; then :
5699 $as_echo_n "(cached) " >&6
5700else
5701 if test -n "$CC"; then
5702 ac_cv_prog_CC="$CC" # Let the user override the test.
5703else
5704as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5705for as_dir in $PATH
5706do
5707 IFS=$as_save_IFS
5708 test -z "$as_dir" && as_dir=.
5709 for ac_exec_ext in '' $ac_executable_extensions; do
5710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5711 ac_cv_prog_CC="${ac_tool_prefix}cc"
5712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5713 break 2
5714 fi
5715done
5716 done
5717IFS=$as_save_IFS
5718
5719fi
5720fi
5721CC=$ac_cv_prog_CC
5722if test -n "$CC"; then
5723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5724$as_echo "$CC" >&6; }
5725else
5726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5727$as_echo "no" >&6; }
5728fi
5729
5730
5731 fi
5732fi
5733if test -z "$CC"; then
5734 # Extract the first word of "cc", so it can be a program name with args.
5735set dummy cc; ac_word=$2
5736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5737$as_echo_n "checking for $ac_word... " >&6; }
5738if test "${ac_cv_prog_CC+set}" = set; then :
5739 $as_echo_n "(cached) " >&6
5740else
5741 if test -n "$CC"; then
5742 ac_cv_prog_CC="$CC" # Let the user override the test.
5743else
5744 ac_prog_rejected=no
5745as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5746for as_dir in $PATH
5747do
5748 IFS=$as_save_IFS
5749 test -z "$as_dir" && as_dir=.
5750 for ac_exec_ext in '' $ac_executable_extensions; do
5751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5752 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5753 ac_prog_rejected=yes
5754 continue
5755 fi
5756 ac_cv_prog_CC="cc"
5757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5758 break 2
5759 fi
5760done
5761 done
5762IFS=$as_save_IFS
5763
5764if test $ac_prog_rejected = yes; then
5765 # We found a bogon in the path, so make sure we never use it.
5766 set dummy $ac_cv_prog_CC
5767 shift
5768 if test $# != 0; then
5769 # We chose a different compiler from the bogus one.
5770 # However, it has the same basename, so the bogon will be chosen
5771 # first if we set CC to just the basename; use the full file name.
5772 shift
5773 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5774 fi
5775fi
5776fi
5777fi
5778CC=$ac_cv_prog_CC
5779if test -n "$CC"; then
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5781$as_echo "$CC" >&6; }
5782else
5783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5784$as_echo "no" >&6; }
5785fi
5786
5787
5788fi
5789if test -z "$CC"; then
5790 if test -n "$ac_tool_prefix"; then
5791 for ac_prog in cl.exe
5792 do
5793 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5794set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5796$as_echo_n "checking for $ac_word... " >&6; }
5797if test "${ac_cv_prog_CC+set}" = set; then :
5798 $as_echo_n "(cached) " >&6
5799else
5800 if test -n "$CC"; then
5801 ac_cv_prog_CC="$CC" # Let the user override the test.
5802else
5803as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5804for as_dir in $PATH
5805do
5806 IFS=$as_save_IFS
5807 test -z "$as_dir" && as_dir=.
5808 for ac_exec_ext in '' $ac_executable_extensions; do
5809 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5810 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5812 break 2
5813 fi
5814done
5815 done
5816IFS=$as_save_IFS
5817
5818fi
5819fi
5820CC=$ac_cv_prog_CC
5821if test -n "$CC"; then
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5823$as_echo "$CC" >&6; }
5824else
5825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5826$as_echo "no" >&6; }
5827fi
5828
5829
5830 test -n "$CC" && break
5831 done
5832fi
5833if test -z "$CC"; then
5834 ac_ct_CC=$CC
5835 for ac_prog in cl.exe
5836do
5837 # Extract the first word of "$ac_prog", so it can be a program name with args.
5838set dummy $ac_prog; ac_word=$2
5839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5840$as_echo_n "checking for $ac_word... " >&6; }
5841if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5842 $as_echo_n "(cached) " >&6
5843else
5844 if test -n "$ac_ct_CC"; then
5845 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5846else
5847as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5848for as_dir in $PATH
5849do
5850 IFS=$as_save_IFS
5851 test -z "$as_dir" && as_dir=.
5852 for ac_exec_ext in '' $ac_executable_extensions; do
5853 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5854 ac_cv_prog_ac_ct_CC="$ac_prog"
5855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5856 break 2
5857 fi
5858done
5859 done
5860IFS=$as_save_IFS
5861
5862fi
5863fi
5864ac_ct_CC=$ac_cv_prog_ac_ct_CC
5865if test -n "$ac_ct_CC"; then
5866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5867$as_echo "$ac_ct_CC" >&6; }
5868else
5869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5870$as_echo "no" >&6; }
5871fi
5872
5873
5874 test -n "$ac_ct_CC" && break
5875done
5876
5877 if test "x$ac_ct_CC" = x; then
5878 CC=""
5879 else
5880 case $cross_compiling:$ac_tool_warned in
5881yes:)
5882{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5883$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5884ac_tool_warned=yes ;;
5885esac
5886 CC=$ac_ct_CC
5887 fi
5888fi
5889
5890fi
5891
5892
5893test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5894$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5895as_fn_error "no acceptable C compiler found in \$PATH
5896See \`config.log' for more details." "$LINENO" 5; }
5897
5898# Provide some information about the compiler.
5899$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5900set X $ac_compile
5901ac_compiler=$2
5902for ac_option in --version -v -V -qversion; do
5903 { { ac_try="$ac_compiler $ac_option >&5"
5904case "(($ac_try" in
5905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5906 *) ac_try_echo=$ac_try;;
5907esac
5908eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5909$as_echo "$ac_try_echo"; } >&5
5910 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5911 ac_status=$?
5912 if test -s conftest.err; then
5913 sed '10a\
5914... rest of stderr output deleted ...
5915 10q' conftest.err >conftest.er1
5916 cat conftest.er1 >&5
5917 fi
5918 rm -f conftest.er1 conftest.err
5919 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5920 test $ac_status = 0; }
5921done
5922
5923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5924$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5925if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5926 $as_echo_n "(cached) " >&6
5927else
5928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5929/* end confdefs.h. */
5930
5931int
5932main ()
5933{
5934#ifndef __GNUC__
5935 choke me
5936#endif
5937
5938 ;
5939 return 0;
5940}
5941_ACEOF
5942if ac_fn_c_try_compile "$LINENO"; then :
5943 ac_compiler_gnu=yes
5944else
5945 ac_compiler_gnu=no
5946fi
5947rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5948ac_cv_c_compiler_gnu=$ac_compiler_gnu
5949
5950fi
5951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5952$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5953if test $ac_compiler_gnu = yes; then
5954 GCC=yes
5955else
5956 GCC=
5957fi
5958ac_test_CFLAGS=${CFLAGS+set}
5959ac_save_CFLAGS=$CFLAGS
5960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5961$as_echo_n "checking whether $CC accepts -g... " >&6; }
5962if test "${ac_cv_prog_cc_g+set}" = set; then :
5963 $as_echo_n "(cached) " >&6
5964else
5965 ac_save_c_werror_flag=$ac_c_werror_flag
5966 ac_c_werror_flag=yes
5967 ac_cv_prog_cc_g=no
5968 CFLAGS="-g"
5969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5970/* end confdefs.h. */
5971
5972int
5973main ()
5974{
5975
5976 ;
5977 return 0;
5978}
5979_ACEOF
5980if ac_fn_c_try_compile "$LINENO"; then :
5981 ac_cv_prog_cc_g=yes
5982else
5983 CFLAGS=""
5984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5985/* end confdefs.h. */
5986
5987int
5988main ()
5989{
5990
5991 ;
5992 return 0;
5993}
5994_ACEOF
5995if ac_fn_c_try_compile "$LINENO"; then :
5996
5997else
5998 ac_c_werror_flag=$ac_save_c_werror_flag
5999 CFLAGS="-g"
6000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6001/* end confdefs.h. */
6002
6003int
6004main ()
6005{
6006
6007 ;
6008 return 0;
6009}
6010_ACEOF
6011if ac_fn_c_try_compile "$LINENO"; then :
6012 ac_cv_prog_cc_g=yes
6013fi
6014rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6015fi
6016rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6017fi
6018rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6019 ac_c_werror_flag=$ac_save_c_werror_flag
6020fi
6021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6022$as_echo "$ac_cv_prog_cc_g" >&6; }
6023if test "$ac_test_CFLAGS" = set; then
6024 CFLAGS=$ac_save_CFLAGS
6025elif test $ac_cv_prog_cc_g = yes; then
6026 if test "$GCC" = yes; then
6027 CFLAGS="-g -O2"
6028 else
6029 CFLAGS="-g"
6030 fi
6031else
6032 if test "$GCC" = yes; then
6033 CFLAGS="-O2"
6034 else
6035 CFLAGS=
6036 fi
6037fi
6038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6039$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6040if test "${ac_cv_prog_cc_c89+set}" = set; then :
6041 $as_echo_n "(cached) " >&6
6042else
6043 ac_cv_prog_cc_c89=no
6044ac_save_CC=$CC
6045cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6046/* end confdefs.h. */
6047#include <stdarg.h>
6048#include <stdio.h>
6049#include <sys/types.h>
6050#include <sys/stat.h>
6051/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6052struct buf { int x; };
6053FILE * (*rcsopen) (struct buf *, struct stat *, int);
6054static char *e (p, i)
6055 char **p;
6056 int i;
6057{
6058 return p[i];
6059}
6060static char *f (char * (*g) (char **, int), char **p, ...)
6061{
6062 char *s;
6063 va_list v;
6064 va_start (v,p);
6065 s = g (p, va_arg (v,int));
6066 va_end (v);
6067 return s;
6068}
6069
6070/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6071 function prototypes and stuff, but not '\xHH' hex character constants.
6072 These don't provoke an error unfortunately, instead are silently treated
6073 as 'x'. The following induces an error, until -std is added to get
6074 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6075 array size at least. It's necessary to write '\x00'==0 to get something
6076 that's true only with -std. */
6077int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6078
6079/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6080 inside strings and character constants. */
6081#define FOO(x) 'x'
6082int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6083
6084int test (int i, double x);
6085struct s1 {int (*f) (int a);};
6086struct s2 {int (*f) (double a);};
6087int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6088int argc;
6089char **argv;
6090int
6091main ()
6092{
6093return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6094 ;
6095 return 0;
6096}
6097_ACEOF
6098for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6099 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6100do
6101 CC="$ac_save_CC $ac_arg"
6102 if ac_fn_c_try_compile "$LINENO"; then :
6103 ac_cv_prog_cc_c89=$ac_arg
6104fi
6105rm -f core conftest.err conftest.$ac_objext
6106 test "x$ac_cv_prog_cc_c89" != "xno" && break
6107done
6108rm -f conftest.$ac_ext
6109CC=$ac_save_CC
6110
6111fi
6112# AC_CACHE_VAL
6113case "x$ac_cv_prog_cc_c89" in
6114 x)
6115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6116$as_echo "none needed" >&6; } ;;
6117 xno)
6118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6119$as_echo "unsupported" >&6; } ;;
6120 *)
6121 CC="$CC $ac_cv_prog_cc_c89"
6122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6123$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6124esac
6125if test "x$ac_cv_prog_cc_c89" != xno; then :
6126
6127fi
6128
6129ac_ext=c
6130ac_cpp='$CPP $CPPFLAGS'
6131ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6132ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6133ac_compiler_gnu=$ac_cv_c_compiler_gnu
6134
cristy3ed852e2009-09-05 21:47:34 +00006135depcc="$CC" am_compiler_list=
6136
cristy8b350f62009-11-15 23:12:43 +00006137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
cristy3ed852e2009-09-05 21:47:34 +00006138$as_echo_n "checking dependency style of $depcc... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006139if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006140 $as_echo_n "(cached) " >&6
6141else
6142 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6143 # We make a subdir and do the tests there. Otherwise we can end up
6144 # making bogus files that we don't know about and never remove. For
6145 # instance it was reported that on HP-UX the gcc test will end up
6146 # making a dummy file named `D' -- because `-MD' means `put the output
6147 # in D'.
6148 mkdir conftest.dir
6149 # Copy depcomp to subdir because otherwise we won't find it if we're
6150 # using a relative directory.
6151 cp "$am_depcomp" conftest.dir
6152 cd conftest.dir
6153 # We will build objects and dependencies in a subdirectory because
6154 # it helps to detect inapplicable dependency modes. For instance
6155 # both Tru64's cc and ICC support -MD to output dependencies as a
6156 # side effect of compilation, but ICC will put the dependencies in
6157 # the current directory while Tru64 will put them in the object
6158 # directory.
6159 mkdir sub
6160
6161 am_cv_CC_dependencies_compiler_type=none
6162 if test "$am_compiler_list" = ""; then
6163 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6164 fi
6165 am__universal=false
6166 case " $depcc " in #(
6167 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6168 esac
6169
6170 for depmode in $am_compiler_list; do
6171 # Setup a source with many dependencies, because some compilers
6172 # like to wrap large dependency lists on column 80 (with \), and
6173 # we should not choose a depcomp mode which is confused by this.
6174 #
6175 # We need to recreate these files for each test, as the compiler may
6176 # overwrite some of them when testing with obscure command lines.
6177 # This happens at least with the AIX C compiler.
6178 : > sub/conftest.c
6179 for i in 1 2 3 4 5 6; do
6180 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6181 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6182 # Solaris 8's {/usr,}/bin/sh.
6183 touch sub/conftst$i.h
6184 done
6185 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6186
6187 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6188 # mode. It turns out that the SunPro C++ compiler does not properly
6189 # handle `-M -o', and we need to detect this. Also, some Intel
6190 # versions had trouble with output in subdirs
6191 am__obj=sub/conftest.${OBJEXT-o}
6192 am__minus_obj="-o $am__obj"
6193 case $depmode in
6194 gcc)
6195 # This depmode causes a compiler race in universal mode.
6196 test "$am__universal" = false || continue
6197 ;;
6198 nosideeffect)
6199 # after this tag, mechanisms are not by side-effect, so they'll
6200 # only be used when explicitly requested
6201 if test "x$enable_dependency_tracking" = xyes; then
6202 continue
6203 else
6204 break
6205 fi
6206 ;;
6207 msvisualcpp | msvcmsys)
6208 # This compiler won't grok `-c -o', but also, the minuso test has
6209 # not run yet. These depmodes are late enough in the game, and
6210 # so weak that their functioning should not be impacted.
6211 am__obj=conftest.${OBJEXT-o}
6212 am__minus_obj=
6213 ;;
6214 none) break ;;
6215 esac
6216 if depmode=$depmode \
6217 source=sub/conftest.c object=$am__obj \
6218 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6219 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6220 >/dev/null 2>conftest.err &&
6221 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6222 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6223 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6224 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6225 # icc doesn't choke on unknown options, it will just issue warnings
6226 # or remarks (even with -Werror). So we grep stderr for any message
6227 # that says an option was ignored or not supported.
6228 # When given -MP, icc 7.0 and 7.1 complain thusly:
6229 # icc: Command line warning: ignoring option '-M'; no argument required
6230 # The diagnosis changed in icc 8.0:
6231 # icc: Command line remark: option '-MP' not supported
6232 if (grep 'ignoring option' conftest.err ||
6233 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6234 am_cv_CC_dependencies_compiler_type=$depmode
6235 break
6236 fi
6237 fi
6238 done
6239
6240 cd ..
6241 rm -rf conftest.dir
6242else
6243 am_cv_CC_dependencies_compiler_type=none
6244fi
6245
6246fi
cristy8b350f62009-11-15 23:12:43 +00006247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
cristy3ed852e2009-09-05 21:47:34 +00006248$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6249CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6250
6251 if
6252 test "x$enable_dependency_tracking" != xno \
6253 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6254 am__fastdepCC_TRUE=
6255 am__fastdepCC_FALSE='#'
6256else
6257 am__fastdepCC_TRUE='#'
6258 am__fastdepCC_FALSE=
6259fi
6260
6261
cristy95646052009-11-28 23:05:30 +00006262ac_ext=cpp
6263ac_cpp='$CXXCPP $CPPFLAGS'
6264ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6265ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6266ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6267if test -z "$CXX"; then
6268 if test -n "$CCC"; then
6269 CXX=$CCC
6270 else
6271 if test -n "$ac_tool_prefix"; then
6272 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6273 do
6274 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6275set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6277$as_echo_n "checking for $ac_word... " >&6; }
6278if test "${ac_cv_prog_CXX+set}" = set; then :
6279 $as_echo_n "(cached) " >&6
6280else
6281 if test -n "$CXX"; then
6282 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6283else
6284as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6285for as_dir in $PATH
6286do
6287 IFS=$as_save_IFS
6288 test -z "$as_dir" && as_dir=.
6289 for ac_exec_ext in '' $ac_executable_extensions; do
6290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6291 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6293 break 2
6294 fi
6295done
6296 done
6297IFS=$as_save_IFS
6298
6299fi
6300fi
6301CXX=$ac_cv_prog_CXX
6302if test -n "$CXX"; then
6303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6304$as_echo "$CXX" >&6; }
6305else
6306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6307$as_echo "no" >&6; }
6308fi
6309
6310
6311 test -n "$CXX" && break
6312 done
6313fi
6314if test -z "$CXX"; then
6315 ac_ct_CXX=$CXX
6316 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6317do
6318 # Extract the first word of "$ac_prog", so it can be a program name with args.
6319set dummy $ac_prog; ac_word=$2
6320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6321$as_echo_n "checking for $ac_word... " >&6; }
6322if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
6323 $as_echo_n "(cached) " >&6
6324else
6325 if test -n "$ac_ct_CXX"; then
6326 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6327else
6328as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6329for as_dir in $PATH
6330do
6331 IFS=$as_save_IFS
6332 test -z "$as_dir" && as_dir=.
6333 for ac_exec_ext in '' $ac_executable_extensions; do
6334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6335 ac_cv_prog_ac_ct_CXX="$ac_prog"
6336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6337 break 2
6338 fi
6339done
6340 done
6341IFS=$as_save_IFS
6342
6343fi
6344fi
6345ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6346if test -n "$ac_ct_CXX"; then
6347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6348$as_echo "$ac_ct_CXX" >&6; }
6349else
6350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6351$as_echo "no" >&6; }
6352fi
6353
6354
6355 test -n "$ac_ct_CXX" && break
6356done
6357
6358 if test "x$ac_ct_CXX" = x; then
6359 CXX="g++"
6360 else
6361 case $cross_compiling:$ac_tool_warned in
6362yes:)
6363{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6364$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6365ac_tool_warned=yes ;;
6366esac
6367 CXX=$ac_ct_CXX
6368 fi
6369fi
6370
6371 fi
6372fi
6373# Provide some information about the compiler.
6374$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6375set X $ac_compile
6376ac_compiler=$2
6377for ac_option in --version -v -V -qversion; do
6378 { { ac_try="$ac_compiler $ac_option >&5"
6379case "(($ac_try" in
6380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6381 *) ac_try_echo=$ac_try;;
6382esac
6383eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6384$as_echo "$ac_try_echo"; } >&5
6385 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6386 ac_status=$?
6387 if test -s conftest.err; then
6388 sed '10a\
6389... rest of stderr output deleted ...
6390 10q' conftest.err >conftest.er1
6391 cat conftest.er1 >&5
6392 fi
6393 rm -f conftest.er1 conftest.err
6394 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6395 test $ac_status = 0; }
6396done
6397
6398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6399$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
6400if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
6401 $as_echo_n "(cached) " >&6
6402else
6403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6404/* end confdefs.h. */
6405
6406int
6407main ()
6408{
6409#ifndef __GNUC__
6410 choke me
6411#endif
6412
6413 ;
6414 return 0;
6415}
6416_ACEOF
6417if ac_fn_cxx_try_compile "$LINENO"; then :
6418 ac_compiler_gnu=yes
6419else
6420 ac_compiler_gnu=no
6421fi
6422rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6423ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6424
6425fi
6426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6427$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6428if test $ac_compiler_gnu = yes; then
6429 GXX=yes
6430else
6431 GXX=
6432fi
6433ac_test_CXXFLAGS=${CXXFLAGS+set}
6434ac_save_CXXFLAGS=$CXXFLAGS
6435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6436$as_echo_n "checking whether $CXX accepts -g... " >&6; }
6437if test "${ac_cv_prog_cxx_g+set}" = set; then :
6438 $as_echo_n "(cached) " >&6
6439else
6440 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6441 ac_cxx_werror_flag=yes
6442 ac_cv_prog_cxx_g=no
6443 CXXFLAGS="-g"
6444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6445/* end confdefs.h. */
6446
6447int
6448main ()
6449{
6450
6451 ;
6452 return 0;
6453}
6454_ACEOF
6455if ac_fn_cxx_try_compile "$LINENO"; then :
6456 ac_cv_prog_cxx_g=yes
6457else
6458 CXXFLAGS=""
6459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6460/* end confdefs.h. */
6461
6462int
6463main ()
6464{
6465
6466 ;
6467 return 0;
6468}
6469_ACEOF
6470if ac_fn_cxx_try_compile "$LINENO"; then :
6471
6472else
6473 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6474 CXXFLAGS="-g"
6475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6476/* end confdefs.h. */
6477
6478int
6479main ()
6480{
6481
6482 ;
6483 return 0;
6484}
6485_ACEOF
6486if ac_fn_cxx_try_compile "$LINENO"; then :
6487 ac_cv_prog_cxx_g=yes
6488fi
6489rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6490fi
6491rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6492fi
6493rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6494 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6495fi
6496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6497$as_echo "$ac_cv_prog_cxx_g" >&6; }
6498if test "$ac_test_CXXFLAGS" = set; then
6499 CXXFLAGS=$ac_save_CXXFLAGS
6500elif test $ac_cv_prog_cxx_g = yes; then
6501 if test "$GXX" = yes; then
6502 CXXFLAGS="-g -O2"
6503 else
6504 CXXFLAGS="-g"
6505 fi
6506else
6507 if test "$GXX" = yes; then
6508 CXXFLAGS="-O2"
6509 else
6510 CXXFLAGS=
6511 fi
6512fi
6513ac_ext=c
6514ac_cpp='$CPP $CPPFLAGS'
6515ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6516ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6517ac_compiler_gnu=$ac_cv_c_compiler_gnu
6518
6519depcc="$CXX" am_compiler_list=
6520
6521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6522$as_echo_n "checking dependency style of $depcc... " >&6; }
6523if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
6524 $as_echo_n "(cached) " >&6
6525else
6526 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6527 # We make a subdir and do the tests there. Otherwise we can end up
6528 # making bogus files that we don't know about and never remove. For
6529 # instance it was reported that on HP-UX the gcc test will end up
6530 # making a dummy file named `D' -- because `-MD' means `put the output
6531 # in D'.
6532 mkdir conftest.dir
6533 # Copy depcomp to subdir because otherwise we won't find it if we're
6534 # using a relative directory.
6535 cp "$am_depcomp" conftest.dir
6536 cd conftest.dir
6537 # We will build objects and dependencies in a subdirectory because
6538 # it helps to detect inapplicable dependency modes. For instance
6539 # both Tru64's cc and ICC support -MD to output dependencies as a
6540 # side effect of compilation, but ICC will put the dependencies in
6541 # the current directory while Tru64 will put them in the object
6542 # directory.
6543 mkdir sub
6544
6545 am_cv_CXX_dependencies_compiler_type=none
6546 if test "$am_compiler_list" = ""; then
6547 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6548 fi
6549 am__universal=false
6550 case " $depcc " in #(
6551 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6552 esac
6553
6554 for depmode in $am_compiler_list; do
6555 # Setup a source with many dependencies, because some compilers
6556 # like to wrap large dependency lists on column 80 (with \), and
6557 # we should not choose a depcomp mode which is confused by this.
6558 #
6559 # We need to recreate these files for each test, as the compiler may
6560 # overwrite some of them when testing with obscure command lines.
6561 # This happens at least with the AIX C compiler.
6562 : > sub/conftest.c
6563 for i in 1 2 3 4 5 6; do
6564 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6565 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6566 # Solaris 8's {/usr,}/bin/sh.
6567 touch sub/conftst$i.h
6568 done
6569 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6570
6571 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6572 # mode. It turns out that the SunPro C++ compiler does not properly
6573 # handle `-M -o', and we need to detect this. Also, some Intel
6574 # versions had trouble with output in subdirs
6575 am__obj=sub/conftest.${OBJEXT-o}
6576 am__minus_obj="-o $am__obj"
6577 case $depmode in
6578 gcc)
6579 # This depmode causes a compiler race in universal mode.
6580 test "$am__universal" = false || continue
6581 ;;
6582 nosideeffect)
6583 # after this tag, mechanisms are not by side-effect, so they'll
6584 # only be used when explicitly requested
6585 if test "x$enable_dependency_tracking" = xyes; then
6586 continue
6587 else
6588 break
6589 fi
6590 ;;
6591 msvisualcpp | msvcmsys)
6592 # This compiler won't grok `-c -o', but also, the minuso test has
6593 # not run yet. These depmodes are late enough in the game, and
6594 # so weak that their functioning should not be impacted.
6595 am__obj=conftest.${OBJEXT-o}
6596 am__minus_obj=
6597 ;;
6598 none) break ;;
6599 esac
6600 if depmode=$depmode \
6601 source=sub/conftest.c object=$am__obj \
6602 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6603 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6604 >/dev/null 2>conftest.err &&
6605 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6606 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6607 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6608 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6609 # icc doesn't choke on unknown options, it will just issue warnings
6610 # or remarks (even with -Werror). So we grep stderr for any message
6611 # that says an option was ignored or not supported.
6612 # When given -MP, icc 7.0 and 7.1 complain thusly:
6613 # icc: Command line warning: ignoring option '-M'; no argument required
6614 # The diagnosis changed in icc 8.0:
6615 # icc: Command line remark: option '-MP' not supported
6616 if (grep 'ignoring option' conftest.err ||
6617 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6618 am_cv_CXX_dependencies_compiler_type=$depmode
6619 break
6620 fi
6621 fi
6622 done
6623
6624 cd ..
6625 rm -rf conftest.dir
6626else
6627 am_cv_CXX_dependencies_compiler_type=none
6628fi
6629
6630fi
6631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6632$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6633CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6634
6635 if
6636 test "x$enable_dependency_tracking" != xno \
6637 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6638 am__fastdepCXX_TRUE=
6639 am__fastdepCXX_FALSE='#'
6640else
6641 am__fastdepCXX_TRUE='#'
6642 am__fastdepCXX_FALSE=
6643fi
6644
6645
cristy8b350f62009-11-15 23:12:43 +00006646 case $ac_cv_prog_cc_stdc in #(
6647 no) :
6648 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6649 *) :
6650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
cristy3ed852e2009-09-05 21:47:34 +00006651$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006652if test "${ac_cv_prog_cc_c99+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006653 $as_echo_n "(cached) " >&6
6654else
6655 ac_cv_prog_cc_c99=no
6656ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00006657cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006658/* end confdefs.h. */
6659#include <stdarg.h>
6660#include <stdbool.h>
6661#include <stdlib.h>
6662#include <wchar.h>
6663#include <stdio.h>
6664
6665// Check varargs macros. These examples are taken from C99 6.10.3.5.
6666#define debug(...) fprintf (stderr, __VA_ARGS__)
6667#define showlist(...) puts (#__VA_ARGS__)
6668#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6669static void
6670test_varargs_macros (void)
6671{
6672 int x = 1234;
6673 int y = 5678;
6674 debug ("Flag");
6675 debug ("X = %d\n", x);
6676 showlist (The first, second, and third items.);
6677 report (x>y, "x is %d but y is %d", x, y);
6678}
6679
6680// Check long long types.
6681#define BIG64 18446744073709551615ull
6682#define BIG32 4294967295ul
6683#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6684#if !BIG_OK
6685 your preprocessor is broken;
6686#endif
6687#if BIG_OK
6688#else
6689 your preprocessor is broken;
6690#endif
6691static long long int bignum = -9223372036854775807LL;
6692static unsigned long long int ubignum = BIG64;
6693
6694struct incomplete_array
6695{
6696 int datasize;
6697 double data[];
6698};
6699
6700struct named_init {
6701 int number;
6702 const wchar_t *name;
6703 double average;
6704};
6705
6706typedef const char *ccp;
6707
6708static inline int
6709test_restrict (ccp restrict text)
6710{
6711 // See if C++-style comments work.
6712 // Iterate through items via the restricted pointer.
6713 // Also check for declarations in for loops.
6714 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6715 continue;
6716 return 0;
6717}
6718
6719// Check varargs and va_copy.
6720static void
6721test_varargs (const char *format, ...)
6722{
6723 va_list args;
6724 va_start (args, format);
6725 va_list args_copy;
6726 va_copy (args_copy, args);
6727
6728 const char *str;
6729 int number;
6730 float fnumber;
6731
6732 while (*format)
6733 {
6734 switch (*format++)
6735 {
6736 case 's': // string
6737 str = va_arg (args_copy, const char *);
6738 break;
6739 case 'd': // int
6740 number = va_arg (args_copy, int);
6741 break;
6742 case 'f': // float
6743 fnumber = va_arg (args_copy, double);
6744 break;
6745 default:
6746 break;
6747 }
6748 }
6749 va_end (args_copy);
6750 va_end (args);
6751}
6752
6753int
6754main ()
6755{
6756
6757 // Check bool.
6758 _Bool success = false;
6759
6760 // Check restrict.
6761 if (test_restrict ("String literal") == 0)
6762 success = true;
6763 char *restrict newvar = "Another string";
6764
6765 // Check varargs.
6766 test_varargs ("s, d' f .", "string", 65, 34.234);
6767 test_varargs_macros ();
6768
6769 // Check flexible array members.
6770 struct incomplete_array *ia =
6771 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6772 ia->datasize = 10;
6773 for (int i = 0; i < ia->datasize; ++i)
6774 ia->data[i] = i * 1.234;
6775
6776 // Check named initializers.
6777 struct named_init ni = {
6778 .number = 34,
6779 .name = L"Test wide string",
6780 .average = 543.34343,
6781 };
6782
6783 ni.number = 58;
6784
6785 int dynamic_array[ni.number];
6786 dynamic_array[ni.number - 1] = 543;
6787
6788 // work around unused variable warnings
6789 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6790 || dynamic_array[ni.number - 1] != 543);
6791
6792 ;
6793 return 0;
6794}
6795_ACEOF
6796for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
6797do
6798 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00006799 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006800 ac_cv_prog_cc_c99=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00006801fi
cristy3ed852e2009-09-05 21:47:34 +00006802rm -f core conftest.err conftest.$ac_objext
6803 test "x$ac_cv_prog_cc_c99" != "xno" && break
6804done
6805rm -f conftest.$ac_ext
6806CC=$ac_save_CC
6807
6808fi
6809# AC_CACHE_VAL
6810case "x$ac_cv_prog_cc_c99" in
6811 x)
cristy8b350f62009-11-15 23:12:43 +00006812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00006813$as_echo "none needed" >&6; } ;;
6814 xno)
cristy8b350f62009-11-15 23:12:43 +00006815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00006816$as_echo "unsupported" >&6; } ;;
6817 *)
6818 CC="$CC $ac_cv_prog_cc_c99"
cristy8b350f62009-11-15 23:12:43 +00006819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
cristy3ed852e2009-09-05 21:47:34 +00006820$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6821esac
cristy8b350f62009-11-15 23:12:43 +00006822if test "x$ac_cv_prog_cc_c99" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00006823 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
6824else
cristy8b350f62009-11-15 23:12:43 +00006825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00006826$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006827if test "${ac_cv_prog_cc_c89+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006828 $as_echo_n "(cached) " >&6
6829else
6830 ac_cv_prog_cc_c89=no
6831ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00006832cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006833/* end confdefs.h. */
6834#include <stdarg.h>
6835#include <stdio.h>
6836#include <sys/types.h>
6837#include <sys/stat.h>
6838/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6839struct buf { int x; };
6840FILE * (*rcsopen) (struct buf *, struct stat *, int);
6841static char *e (p, i)
6842 char **p;
6843 int i;
6844{
6845 return p[i];
6846}
6847static char *f (char * (*g) (char **, int), char **p, ...)
6848{
6849 char *s;
6850 va_list v;
6851 va_start (v,p);
6852 s = g (p, va_arg (v,int));
6853 va_end (v);
6854 return s;
6855}
6856
6857/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6858 function prototypes and stuff, but not '\xHH' hex character constants.
6859 These don't provoke an error unfortunately, instead are silently treated
6860 as 'x'. The following induces an error, until -std is added to get
6861 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6862 array size at least. It's necessary to write '\x00'==0 to get something
6863 that's true only with -std. */
6864int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6865
6866/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6867 inside strings and character constants. */
6868#define FOO(x) 'x'
6869int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6870
6871int test (int i, double x);
6872struct s1 {int (*f) (int a);};
6873struct s2 {int (*f) (double a);};
6874int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6875int argc;
6876char **argv;
6877int
6878main ()
6879{
6880return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6881 ;
6882 return 0;
6883}
6884_ACEOF
6885for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6886 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6887do
6888 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00006889 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006890 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00006891fi
cristy3ed852e2009-09-05 21:47:34 +00006892rm -f core conftest.err conftest.$ac_objext
6893 test "x$ac_cv_prog_cc_c89" != "xno" && break
6894done
6895rm -f conftest.$ac_ext
6896CC=$ac_save_CC
6897
6898fi
6899# AC_CACHE_VAL
6900case "x$ac_cv_prog_cc_c89" in
6901 x)
cristy8b350f62009-11-15 23:12:43 +00006902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00006903$as_echo "none needed" >&6; } ;;
6904 xno)
cristy8b350f62009-11-15 23:12:43 +00006905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00006906$as_echo "unsupported" >&6; } ;;
6907 *)
6908 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00006909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00006910$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6911esac
cristy8b350f62009-11-15 23:12:43 +00006912if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00006913 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
6914else
6915 ac_cv_prog_cc_stdc=no
6916fi
6917
cristy3ed852e2009-09-05 21:47:34 +00006918fi
cristy3ed852e2009-09-05 21:47:34 +00006919 ;;
6920esac
cristy8b350f62009-11-15 23:12:43 +00006921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
cristy3ed852e2009-09-05 21:47:34 +00006922$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006923 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006924 $as_echo_n "(cached) " >&6
6925fi
6926
cristy8b350f62009-11-15 23:12:43 +00006927 case $ac_cv_prog_cc_stdc in #(
6928 no) :
6929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6930$as_echo "unsupported" >&6; } ;; #(
6931 '') :
6932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6933$as_echo "none needed" >&6; } ;; #(
6934 *) :
6935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +00006936$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
6937esac
6938
cristy3ed852e2009-09-05 21:47:34 +00006939ac_ext=c
6940ac_cpp='$CPP $CPPFLAGS'
6941ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6942ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6943ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy8b350f62009-11-15 23:12:43 +00006944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
cristy3ed852e2009-09-05 21:47:34 +00006945$as_echo_n "checking how to run the C preprocessor... " >&6; }
6946# On Suns, sometimes $CPP names a directory.
6947if test -n "$CPP" && test -d "$CPP"; then
6948 CPP=
6949fi
6950if test -z "$CPP"; then
cristy8b350f62009-11-15 23:12:43 +00006951 if test "${ac_cv_prog_CPP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006952 $as_echo_n "(cached) " >&6
6953else
6954 # Double quotes because CPP needs to be expanded
6955 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6956 do
6957 ac_preproc_ok=false
6958for ac_c_preproc_warn_flag in '' yes
6959do
6960 # Use a header file that comes with gcc, so configuring glibc
6961 # with a fresh cross-compiler works.
6962 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6963 # <limits.h> exists even on freestanding compilers.
6964 # On the NeXT, cc -E runs the code through the compiler's parser,
6965 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00006966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006967/* end confdefs.h. */
6968#ifdef __STDC__
6969# include <limits.h>
6970#else
6971# include <assert.h>
6972#endif
6973 Syntax error
6974_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006975if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006976
cristy8b350f62009-11-15 23:12:43 +00006977else
cristy3ed852e2009-09-05 21:47:34 +00006978 # Broken: fails on valid input.
6979continue
6980fi
cristy3ed852e2009-09-05 21:47:34 +00006981rm -f conftest.err conftest.$ac_ext
6982
6983 # OK, works on sane cases. Now check whether nonexistent headers
6984 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00006985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006986/* end confdefs.h. */
6987#include <ac_nonexistent.h>
6988_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006989if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006990 # Broken: success on invalid input.
6991continue
6992else
cristy3ed852e2009-09-05 21:47:34 +00006993 # Passes both tests.
6994ac_preproc_ok=:
6995break
6996fi
cristy3ed852e2009-09-05 21:47:34 +00006997rm -f conftest.err conftest.$ac_ext
6998
6999done
7000# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7001rm -f conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007002if $ac_preproc_ok; then :
cristy3ed852e2009-09-05 21:47:34 +00007003 break
7004fi
7005
7006 done
7007 ac_cv_prog_CPP=$CPP
7008
7009fi
7010 CPP=$ac_cv_prog_CPP
7011else
7012 ac_cv_prog_CPP=$CPP
7013fi
cristy8b350f62009-11-15 23:12:43 +00007014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
cristy3ed852e2009-09-05 21:47:34 +00007015$as_echo "$CPP" >&6; }
7016ac_preproc_ok=false
7017for ac_c_preproc_warn_flag in '' yes
7018do
7019 # Use a header file that comes with gcc, so configuring glibc
7020 # with a fresh cross-compiler works.
7021 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7022 # <limits.h> exists even on freestanding compilers.
7023 # On the NeXT, cc -E runs the code through the compiler's parser,
7024 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007026/* end confdefs.h. */
7027#ifdef __STDC__
7028# include <limits.h>
7029#else
7030# include <assert.h>
7031#endif
7032 Syntax error
7033_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007034if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007035
cristy8b350f62009-11-15 23:12:43 +00007036else
cristy3ed852e2009-09-05 21:47:34 +00007037 # Broken: fails on valid input.
7038continue
7039fi
cristy3ed852e2009-09-05 21:47:34 +00007040rm -f conftest.err conftest.$ac_ext
7041
7042 # OK, works on sane cases. Now check whether nonexistent headers
7043 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007045/* end confdefs.h. */
7046#include <ac_nonexistent.h>
7047_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007048if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007049 # Broken: success on invalid input.
7050continue
7051else
cristy3ed852e2009-09-05 21:47:34 +00007052 # Passes both tests.
7053ac_preproc_ok=:
7054break
7055fi
cristy3ed852e2009-09-05 21:47:34 +00007056rm -f conftest.err conftest.$ac_ext
7057
7058done
7059# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7060rm -f conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007061if $ac_preproc_ok; then :
7062
cristy3ed852e2009-09-05 21:47:34 +00007063else
cristy8b350f62009-11-15 23:12:43 +00007064 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00007065$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00007066as_fn_error "C preprocessor \"$CPP\" fails sanity check
7067See \`config.log' for more details." "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00007068fi
7069
7070ac_ext=c
7071ac_cpp='$CPP $CPPFLAGS'
7072ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7073ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7074ac_compiler_gnu=$ac_cv_c_compiler_gnu
7075
cristy8b350f62009-11-15 23:12:43 +00007076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
cristy3ed852e2009-09-05 21:47:34 +00007077$as_echo_n "checking for a sed that does not truncate output... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007078if test "${ac_cv_path_SED+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007079 $as_echo_n "(cached) " >&6
7080else
7081 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7082 for ac_i in 1 2 3 4 5 6 7; do
7083 ac_script="$ac_script$as_nl$ac_script"
7084 done
7085 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
cristy8b350f62009-11-15 23:12:43 +00007086 { ac_script=; unset ac_script;}
cristy3ed852e2009-09-05 21:47:34 +00007087 if test -z "$SED"; then
7088 ac_path_SED_found=false
7089 # Loop through the user's path and test for each of PROGNAME-LIST
7090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7091for as_dir in $PATH
7092do
7093 IFS=$as_save_IFS
7094 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00007095 for ac_prog in sed gsed; do
cristy3ed852e2009-09-05 21:47:34 +00007096 for ac_exec_ext in '' $ac_executable_extensions; do
7097 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7098 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
7099# Check for GNU ac_path_SED and select it if it is found.
7100 # Check for GNU $ac_path_SED
7101case `"$ac_path_SED" --version 2>&1` in
7102*GNU*)
7103 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7104*)
7105 ac_count=0
7106 $as_echo_n 0123456789 >"conftest.in"
7107 while :
7108 do
7109 cat "conftest.in" "conftest.in" >"conftest.tmp"
7110 mv "conftest.tmp" "conftest.in"
7111 cp "conftest.in" "conftest.nl"
7112 $as_echo '' >> "conftest.nl"
7113 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7114 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
cristy8b350f62009-11-15 23:12:43 +00007115 as_fn_arith $ac_count + 1 && ac_count=$as_val
cristy3ed852e2009-09-05 21:47:34 +00007116 if test $ac_count -gt ${ac_path_SED_max-0}; then
7117 # Best one so far, save it but keep looking for a better one
7118 ac_cv_path_SED="$ac_path_SED"
7119 ac_path_SED_max=$ac_count
7120 fi
7121 # 10*(2^10) chars as input seems more than enough
7122 test $ac_count -gt 10 && break
7123 done
7124 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7125esac
7126
7127 $ac_path_SED_found && break 3
7128 done
7129 done
cristy8b350f62009-11-15 23:12:43 +00007130 done
cristy3ed852e2009-09-05 21:47:34 +00007131IFS=$as_save_IFS
7132 if test -z "$ac_cv_path_SED"; then
cristy8b350f62009-11-15 23:12:43 +00007133 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00007134 fi
7135else
7136 ac_cv_path_SED=$SED
7137fi
7138
7139fi
cristy8b350f62009-11-15 23:12:43 +00007140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
cristy3ed852e2009-09-05 21:47:34 +00007141$as_echo "$ac_cv_path_SED" >&6; }
7142 SED="$ac_cv_path_SED"
7143 rm -f conftest.sed
7144
7145test -z "$SED" && SED=sed
7146Xsed="$SED -e 1s/^X//"
7147
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157
cristy8b350f62009-11-15 23:12:43 +00007158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
cristy3ed852e2009-09-05 21:47:34 +00007159$as_echo_n "checking for fgrep... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007160if test "${ac_cv_path_FGREP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007161 $as_echo_n "(cached) " >&6
7162else
7163 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7164 then ac_cv_path_FGREP="$GREP -F"
7165 else
7166 if test -z "$FGREP"; then
7167 ac_path_FGREP_found=false
7168 # Loop through the user's path and test for each of PROGNAME-LIST
7169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7170for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7171do
7172 IFS=$as_save_IFS
7173 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00007174 for ac_prog in fgrep; do
cristy3ed852e2009-09-05 21:47:34 +00007175 for ac_exec_ext in '' $ac_executable_extensions; do
7176 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7177 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
7178# Check for GNU ac_path_FGREP and select it if it is found.
7179 # Check for GNU $ac_path_FGREP
7180case `"$ac_path_FGREP" --version 2>&1` in
7181*GNU*)
7182 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7183*)
7184 ac_count=0
7185 $as_echo_n 0123456789 >"conftest.in"
7186 while :
7187 do
7188 cat "conftest.in" "conftest.in" >"conftest.tmp"
7189 mv "conftest.tmp" "conftest.in"
7190 cp "conftest.in" "conftest.nl"
7191 $as_echo 'FGREP' >> "conftest.nl"
7192 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7193 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
cristy8b350f62009-11-15 23:12:43 +00007194 as_fn_arith $ac_count + 1 && ac_count=$as_val
cristy3ed852e2009-09-05 21:47:34 +00007195 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7196 # Best one so far, save it but keep looking for a better one
7197 ac_cv_path_FGREP="$ac_path_FGREP"
7198 ac_path_FGREP_max=$ac_count
7199 fi
7200 # 10*(2^10) chars as input seems more than enough
7201 test $ac_count -gt 10 && break
7202 done
7203 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7204esac
7205
7206 $ac_path_FGREP_found && break 3
7207 done
7208 done
cristy8b350f62009-11-15 23:12:43 +00007209 done
cristy3ed852e2009-09-05 21:47:34 +00007210IFS=$as_save_IFS
7211 if test -z "$ac_cv_path_FGREP"; then
cristy8b350f62009-11-15 23:12:43 +00007212 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00007213 fi
7214else
7215 ac_cv_path_FGREP=$FGREP
7216fi
7217
7218 fi
7219fi
cristy8b350f62009-11-15 23:12:43 +00007220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
cristy3ed852e2009-09-05 21:47:34 +00007221$as_echo "$ac_cv_path_FGREP" >&6; }
7222 FGREP="$ac_cv_path_FGREP"
7223
7224
7225test -z "$GREP" && GREP=grep
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238
7239
7240
7241
7242
7243
7244
7245# Check whether --with-gnu-ld was given.
cristy8b350f62009-11-15 23:12:43 +00007246if test "${with_gnu_ld+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007247 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7248else
7249 with_gnu_ld=no
7250fi
7251
7252ac_prog=ld
7253if test "$GCC" = yes; then
7254 # Check if gcc -print-prog-name=ld gives a path.
cristy8b350f62009-11-15 23:12:43 +00007255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00007256$as_echo_n "checking for ld used by $CC... " >&6; }
7257 case $host in
7258 *-*-mingw*)
7259 # gcc leaves a trailing carriage return which upsets mingw
7260 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7261 *)
7262 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7263 esac
7264 case $ac_prog in
7265 # Accept absolute paths.
7266 [\\/]* | ?:[\\/]*)
7267 re_direlt='/[^/][^/]*/\.\./'
7268 # Canonicalize the pathname of ld
7269 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7270 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7271 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7272 done
7273 test -z "$LD" && LD="$ac_prog"
7274 ;;
7275 "")
7276 # If it fails, then pretend we aren't using GCC.
7277 ac_prog=ld
7278 ;;
7279 *)
7280 # If it is relative, then search for the first ld in PATH.
7281 with_gnu_ld=unknown
7282 ;;
7283 esac
7284elif test "$with_gnu_ld" = yes; then
cristy8b350f62009-11-15 23:12:43 +00007285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +00007286$as_echo_n "checking for GNU ld... " >&6; }
7287else
cristy8b350f62009-11-15 23:12:43 +00007288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +00007289$as_echo_n "checking for non-GNU ld... " >&6; }
7290fi
cristy8b350f62009-11-15 23:12:43 +00007291if test "${lt_cv_path_LD+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007292 $as_echo_n "(cached) " >&6
7293else
7294 if test -z "$LD"; then
7295 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7296 for ac_dir in $PATH; do
7297 IFS="$lt_save_ifs"
7298 test -z "$ac_dir" && ac_dir=.
7299 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7300 lt_cv_path_LD="$ac_dir/$ac_prog"
7301 # Check to see if the program is GNU ld. I'd rather use --version,
7302 # but apparently some variants of GNU ld only accept -v.
7303 # Break only if it was the GNU/non-GNU ld that we prefer.
7304 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7305 *GNU* | *'with BFD'*)
7306 test "$with_gnu_ld" != no && break
7307 ;;
7308 *)
7309 test "$with_gnu_ld" != yes && break
7310 ;;
7311 esac
7312 fi
7313 done
7314 IFS="$lt_save_ifs"
7315else
7316 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7317fi
7318fi
7319
7320LD="$lt_cv_path_LD"
7321if test -n "$LD"; then
cristy8b350f62009-11-15 23:12:43 +00007322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
cristy3ed852e2009-09-05 21:47:34 +00007323$as_echo "$LD" >&6; }
7324else
cristy8b350f62009-11-15 23:12:43 +00007325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007326$as_echo "no" >&6; }
7327fi
cristy8b350f62009-11-15 23:12:43 +00007328test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
7329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +00007330$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007331if test "${lt_cv_prog_gnu_ld+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007332 $as_echo_n "(cached) " >&6
7333else
7334 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7335case `$LD -v 2>&1 </dev/null` in
7336*GNU* | *'with BFD'*)
7337 lt_cv_prog_gnu_ld=yes
7338 ;;
7339*)
7340 lt_cv_prog_gnu_ld=no
7341 ;;
7342esac
7343fi
cristy8b350f62009-11-15 23:12:43 +00007344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
cristy3ed852e2009-09-05 21:47:34 +00007345$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7346with_gnu_ld=$lt_cv_prog_gnu_ld
7347
7348
7349
7350
7351
7352
7353
7354
7355
cristy3ed852e2009-09-05 21:47:34 +00007356
cristy837d6dc2010-02-27 01:16:57 +00007357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
7358$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
7359if test "${ac_cv_prog_cc_c99+set}" = set; then :
7360 $as_echo_n "(cached) " >&6
7361else
7362 ac_cv_prog_cc_c99=no
7363ac_save_CC=$CC
7364cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7365/* end confdefs.h. */
7366#include <stdarg.h>
7367#include <stdbool.h>
7368#include <stdlib.h>
7369#include <wchar.h>
7370#include <stdio.h>
7371
7372// Check varargs macros. These examples are taken from C99 6.10.3.5.
7373#define debug(...) fprintf (stderr, __VA_ARGS__)
7374#define showlist(...) puts (#__VA_ARGS__)
7375#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7376static void
7377test_varargs_macros (void)
7378{
7379 int x = 1234;
7380 int y = 5678;
7381 debug ("Flag");
7382 debug ("X = %d\n", x);
7383 showlist (The first, second, and third items.);
7384 report (x>y, "x is %d but y is %d", x, y);
7385}
7386
7387// Check long long types.
7388#define BIG64 18446744073709551615ull
7389#define BIG32 4294967295ul
7390#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7391#if !BIG_OK
7392 your preprocessor is broken;
7393#endif
7394#if BIG_OK
7395#else
7396 your preprocessor is broken;
7397#endif
7398static long long int bignum = -9223372036854775807LL;
7399static unsigned long long int ubignum = BIG64;
7400
7401struct incomplete_array
7402{
7403 int datasize;
7404 double data[];
7405};
7406
7407struct named_init {
7408 int number;
7409 const wchar_t *name;
7410 double average;
7411};
7412
7413typedef const char *ccp;
7414
7415static inline int
7416test_restrict (ccp restrict text)
7417{
7418 // See if C++-style comments work.
7419 // Iterate through items via the restricted pointer.
7420 // Also check for declarations in for loops.
7421 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7422 continue;
7423 return 0;
7424}
7425
7426// Check varargs and va_copy.
7427static void
7428test_varargs (const char *format, ...)
7429{
7430 va_list args;
7431 va_start (args, format);
7432 va_list args_copy;
7433 va_copy (args_copy, args);
7434
7435 const char *str;
7436 int number;
7437 float fnumber;
7438
7439 while (*format)
7440 {
7441 switch (*format++)
7442 {
7443 case 's': // string
7444 str = va_arg (args_copy, const char *);
7445 break;
7446 case 'd': // int
7447 number = va_arg (args_copy, int);
7448 break;
7449 case 'f': // float
7450 fnumber = va_arg (args_copy, double);
7451 break;
7452 default:
7453 break;
7454 }
7455 }
7456 va_end (args_copy);
7457 va_end (args);
7458}
7459
7460int
7461main ()
7462{
7463
7464 // Check bool.
7465 _Bool success = false;
7466
7467 // Check restrict.
7468 if (test_restrict ("String literal") == 0)
7469 success = true;
7470 char *restrict newvar = "Another string";
7471
7472 // Check varargs.
7473 test_varargs ("s, d' f .", "string", 65, 34.234);
7474 test_varargs_macros ();
7475
7476 // Check flexible array members.
7477 struct incomplete_array *ia =
7478 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7479 ia->datasize = 10;
7480 for (int i = 0; i < ia->datasize; ++i)
7481 ia->data[i] = i * 1.234;
7482
7483 // Check named initializers.
7484 struct named_init ni = {
7485 .number = 34,
7486 .name = L"Test wide string",
7487 .average = 543.34343,
7488 };
7489
7490 ni.number = 58;
7491
7492 int dynamic_array[ni.number];
7493 dynamic_array[ni.number - 1] = 543;
7494
7495 // work around unused variable warnings
7496 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7497 || dynamic_array[ni.number - 1] != 543);
7498
7499 ;
7500 return 0;
7501}
7502_ACEOF
7503for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
7504do
7505 CC="$ac_save_CC $ac_arg"
7506 if ac_fn_c_try_compile "$LINENO"; then :
7507 ac_cv_prog_cc_c99=$ac_arg
7508fi
7509rm -f core conftest.err conftest.$ac_objext
7510 test "x$ac_cv_prog_cc_c99" != "xno" && break
7511done
7512rm -f conftest.$ac_ext
7513CC=$ac_save_CC
7514
7515fi
7516# AC_CACHE_VAL
7517case "x$ac_cv_prog_cc_c99" in
7518 x)
7519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7520$as_echo "none needed" >&6; } ;;
7521 xno)
7522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7523$as_echo "unsupported" >&6; } ;;
7524 *)
7525 CC="$CC $ac_cv_prog_cc_c99"
7526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
7527$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7528esac
7529if test "x$ac_cv_prog_cc_c99" != xno; then :
7530
7531fi
7532
7533
cristy3ed852e2009-09-05 21:47:34 +00007534if test "x$CC" != xcc; then
cristy8b350f62009-11-15 23:12:43 +00007535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
cristy3ed852e2009-09-05 21:47:34 +00007536$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
7537else
cristy8b350f62009-11-15 23:12:43 +00007538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
cristy3ed852e2009-09-05 21:47:34 +00007539$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
7540fi
7541set dummy $CC; ac_cc=`$as_echo "$2" |
7542 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
cristy8b350f62009-11-15 23:12:43 +00007543if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
cristy3ed852e2009-09-05 21:47:34 +00007544 $as_echo_n "(cached) " >&6
7545else
cristy8b350f62009-11-15 23:12:43 +00007546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007547/* end confdefs.h. */
7548
7549int
7550main ()
7551{
7552
7553 ;
7554 return 0;
7555}
7556_ACEOF
7557# Make sure it works both with $CC and with simple cc.
7558# We do the test twice because some compilers refuse to overwrite an
7559# existing .o file with -o, though they will create one.
7560ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7561rm -f conftest2.*
cristy8b350f62009-11-15 23:12:43 +00007562if { { case "(($ac_try" in
cristy3ed852e2009-09-05 21:47:34 +00007563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7564 *) ac_try_echo=$ac_try;;
7565esac
cristy8b350f62009-11-15 23:12:43 +00007566eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7567$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00007568 (eval "$ac_try") 2>&5
7569 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00007570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7571 test $ac_status = 0; } &&
7572 test -f conftest2.$ac_objext && { { case "(($ac_try" in
cristy3ed852e2009-09-05 21:47:34 +00007573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7574 *) ac_try_echo=$ac_try;;
7575esac
cristy8b350f62009-11-15 23:12:43 +00007576eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7577$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00007578 (eval "$ac_try") 2>&5
7579 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00007580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7581 test $ac_status = 0; };
cristy3ed852e2009-09-05 21:47:34 +00007582then
7583 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
7584 if test "x$CC" != xcc; then
7585 # Test first that cc exists at all.
7586 if { ac_try='cc -c conftest.$ac_ext >&5'
cristy8b350f62009-11-15 23:12:43 +00007587 { { case "(($ac_try" in
cristy3ed852e2009-09-05 21:47:34 +00007588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7589 *) ac_try_echo=$ac_try;;
7590esac
cristy8b350f62009-11-15 23:12:43 +00007591eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7592$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00007593 (eval "$ac_try") 2>&5
7594 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00007595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7596 test $ac_status = 0; }; }; then
cristy3ed852e2009-09-05 21:47:34 +00007597 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7598 rm -f conftest2.*
cristy8b350f62009-11-15 23:12:43 +00007599 if { { case "(($ac_try" in
cristy3ed852e2009-09-05 21:47:34 +00007600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7601 *) ac_try_echo=$ac_try;;
7602esac
cristy8b350f62009-11-15 23:12:43 +00007603eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7604$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00007605 (eval "$ac_try") 2>&5
7606 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00007607 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7608 test $ac_status = 0; } &&
7609 test -f conftest2.$ac_objext && { { case "(($ac_try" in
cristy3ed852e2009-09-05 21:47:34 +00007610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7611 *) ac_try_echo=$ac_try;;
7612esac
cristy8b350f62009-11-15 23:12:43 +00007613eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7614$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00007615 (eval "$ac_try") 2>&5
7616 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00007617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7618 test $ac_status = 0; };
cristy3ed852e2009-09-05 21:47:34 +00007619 then
7620 # cc works too.
7621 :
7622 else
7623 # cc exists but doesn't like -o.
7624 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7625 fi
7626 fi
7627 fi
7628else
7629 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7630fi
7631rm -f core conftest*
7632
7633fi
7634if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
cristy8b350f62009-11-15 23:12:43 +00007635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00007636$as_echo "yes" >&6; }
7637else
cristy8b350f62009-11-15 23:12:43 +00007638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007639$as_echo "no" >&6; }
7640
cristy8b350f62009-11-15 23:12:43 +00007641$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00007642
7643fi
7644
7645# FIXME: we rely on the cache variable name because
7646# there is no other way.
7647set dummy $CC
7648am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7649eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
7650if test "$am_t" != yes; then
7651 # Losing compiler, so override with the script.
7652 # FIXME: It is wrong to rewrite CC.
7653 # But if we don't then we get into trouble of one sort or another.
7654 # A longer-term fix would be to have automake use am__CC in this case,
7655 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7656 CC="$am_aux_dir/compile $CC"
7657fi
7658
7659
cristy92703d82010-04-26 00:18:18 +00007660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
7661$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
7662if test "${ac_cv_cflags_warn_all+set}" = set; then :
7663 $as_echo_n "(cached) " >&6
cristy3ed852e2009-09-05 21:47:34 +00007664else
cristy92703d82010-04-26 00:18:18 +00007665 ac_cv_cflags_warn_all="no, unknown"
7666
7667 ac_ext=c
7668ac_cpp='$CPP $CPPFLAGS'
7669ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7670ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7671ac_compiler_gnu=$ac_cv_c_compiler_gnu
7672
7673 ac_save_CFLAGS="$CFLAGS"
7674for ac_arg in "-pedantic % -Wall" "-xstrconst % -v" "-std1 % -verbose -w0 -warnprotos" "-qlanglvl=ansi % -qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd" "-ansi -ansiE % -fullwarn" "+ESlit % +w1" "-Xc % -pvctl,fullmsg" "-h conform % -h msglevel 2" #
7675do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
7676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7677/* end confdefs.h. */
7678
7679int
7680main ()
7681{
7682return 0;
7683 ;
7684 return 0;
7685}
7686_ACEOF
7687if ac_fn_c_try_compile "$LINENO"; then :
7688 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
cristy3ed852e2009-09-05 21:47:34 +00007689fi
cristy92703d82010-04-26 00:18:18 +00007690rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7691done
7692 CFLAGS="$ac_save_CFLAGS"
7693 ac_ext=c
7694ac_cpp='$CPP $CPPFLAGS'
7695ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7696ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7697ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy3ed852e2009-09-05 21:47:34 +00007698
7699
cristy92703d82010-04-26 00:18:18 +00007700fi
7701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
7702$as_echo "$ac_cv_cflags_warn_all" >&6; }
7703case ".$ac_cv_cflags_warn_all" in
7704 .ok|.ok,*) ;;
7705 .|.no|.no,*)
7706 ;;
7707 *)
7708 if echo " $CFLAGS " | grep " $ac_cv_cflags_warn_all " 2>&1 >/dev/null
7709 then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_warn_all"; } >&5
7710 (: CFLAGS does contain $ac_cv_cflags_warn_all) 2>&5
7711 ac_status=$?
7712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7713 test $ac_status = 0; }
7714 else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
7715 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
7716 ac_status=$?
7717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7718 test $ac_status = 0; }
7719 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
7720 fi
7721 ;;
7722esac
cristy3ed852e2009-09-05 21:47:34 +00007723
cristya0b81c32010-01-22 02:54:33 +00007724$ac_includes_default
7725
7726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7727$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7728set x ${MAKE-make}
7729ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7730if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7731 $as_echo_n "(cached) " >&6
7732else
7733 cat >conftest.make <<\_ACEOF
7734SHELL = /bin/sh
7735all:
7736 @echo '@@@%%%=$(MAKE)=@@@%%%'
7737_ACEOF
7738# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7739case `${MAKE-make} -f conftest.make 2>/dev/null` in
7740 *@@@%%%=?*=@@@%%%*)
7741 eval ac_cv_prog_make_${ac_make}_set=yes;;
7742 *)
7743 eval ac_cv_prog_make_${ac_make}_set=no;;
7744esac
7745rm -f conftest.make
7746fi
7747if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7749$as_echo "yes" >&6; }
7750 SET_MAKE=
7751else
7752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7753$as_echo "no" >&6; }
7754 SET_MAKE="MAKE=${MAKE-make}"
7755fi
7756
cristy8b350f62009-11-15 23:12:43 +00007757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
cristy3ed852e2009-09-05 21:47:34 +00007758$as_echo_n "checking whether ln -s works... " >&6; }
7759LN_S=$as_ln_s
7760if test "$LN_S" = "ln -s"; then
cristy8b350f62009-11-15 23:12:43 +00007761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00007762$as_echo "yes" >&6; }
7763else
cristy8b350f62009-11-15 23:12:43 +00007764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
cristy3ed852e2009-09-05 21:47:34 +00007765$as_echo "no, using $LN_S" >&6; }
7766fi
7767
cristy8b350f62009-11-15 23:12:43 +00007768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
cristy3ed852e2009-09-05 21:47:34 +00007769$as_echo_n "checking if malloc debugging is wanted... " >&6; }
7770
7771# Check whether --with-dmalloc was given.
cristy8b350f62009-11-15 23:12:43 +00007772if test "${with_dmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007773 withval=$with_dmalloc; if test "$withval" = yes; then
cristy8b350f62009-11-15 23:12:43 +00007774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00007775$as_echo "yes" >&6; }
7776
cristy8b350f62009-11-15 23:12:43 +00007777$as_echo "#define WITH_DMALLOC 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00007778
7779 LIBS="$LIBS -ldmalloc"
7780 LDFLAGS="$LDFLAGS -g"
7781else
cristy8b350f62009-11-15 23:12:43 +00007782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007783$as_echo "no" >&6; }
7784fi
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
7791
7792
7793if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7794 if test -n "$ac_tool_prefix"; then
7795 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7796set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00007797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00007798$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007799if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007800 $as_echo_n "(cached) " >&6
7801else
7802 case $PKG_CONFIG in
7803 [\\/]* | ?:[\\/]*)
7804 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7805 ;;
7806 *)
7807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7808for as_dir in $PATH
7809do
7810 IFS=$as_save_IFS
7811 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00007812 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00007813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7814 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +00007815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00007816 break 2
7817 fi
7818done
cristy8b350f62009-11-15 23:12:43 +00007819 done
cristy3ed852e2009-09-05 21:47:34 +00007820IFS=$as_save_IFS
7821
7822 ;;
7823esac
7824fi
7825PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7826if test -n "$PKG_CONFIG"; then
cristy8b350f62009-11-15 23:12:43 +00007827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
cristy3ed852e2009-09-05 21:47:34 +00007828$as_echo "$PKG_CONFIG" >&6; }
7829else
cristy8b350f62009-11-15 23:12:43 +00007830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007831$as_echo "no" >&6; }
7832fi
7833
7834
7835fi
7836if test -z "$ac_cv_path_PKG_CONFIG"; then
7837 ac_pt_PKG_CONFIG=$PKG_CONFIG
7838 # Extract the first word of "pkg-config", so it can be a program name with args.
7839set dummy pkg-config; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00007840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00007841$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007842if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007843 $as_echo_n "(cached) " >&6
7844else
7845 case $ac_pt_PKG_CONFIG in
7846 [\\/]* | ?:[\\/]*)
7847 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7848 ;;
7849 *)
7850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7851for as_dir in $PATH
7852do
7853 IFS=$as_save_IFS
7854 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00007855 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00007856 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7857 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +00007858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00007859 break 2
7860 fi
7861done
cristy8b350f62009-11-15 23:12:43 +00007862 done
cristy3ed852e2009-09-05 21:47:34 +00007863IFS=$as_save_IFS
7864
7865 ;;
7866esac
7867fi
7868ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7869if test -n "$ac_pt_PKG_CONFIG"; then
cristy8b350f62009-11-15 23:12:43 +00007870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
cristy3ed852e2009-09-05 21:47:34 +00007871$as_echo "$ac_pt_PKG_CONFIG" >&6; }
7872else
cristy8b350f62009-11-15 23:12:43 +00007873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007874$as_echo "no" >&6; }
7875fi
7876
7877 if test "x$ac_pt_PKG_CONFIG" = x; then
7878 PKG_CONFIG=""
7879 else
7880 case $cross_compiling:$ac_tool_warned in
7881yes:)
cristy8b350f62009-11-15 23:12:43 +00007882{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00007883$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7884ac_tool_warned=yes ;;
7885esac
7886 PKG_CONFIG=$ac_pt_PKG_CONFIG
7887 fi
7888else
7889 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
7890fi
7891
7892fi
7893if test -n "$PKG_CONFIG"; then
7894 _pkg_min_version=0.9.0
cristy8b350f62009-11-15 23:12:43 +00007895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
cristy3ed852e2009-09-05 21:47:34 +00007896$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7897 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
cristy8b350f62009-11-15 23:12:43 +00007898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00007899$as_echo "yes" >&6; }
7900 else
cristy8b350f62009-11-15 23:12:43 +00007901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007902$as_echo "no" >&6; }
7903 PKG_CONFIG=""
7904 fi
7905
7906fi
7907
cristy92703d82010-04-26 00:18:18 +00007908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
7909$as_echo_n "checking for __attribute__... " >&6; }
7910if test "${ax_cv___attribute__+set}" = set; then :
7911 $as_echo_n "(cached) " >&6
7912else
7913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7914/* end confdefs.h. */
7915#include <stdlib.h>
7916 static void foo(void) __attribute__ ((unused));
7917 static void
7918 foo(void) {
7919 exit(1);
7920 }
7921
7922int
7923main ()
7924{
7925
7926 ;
7927 return 0;
7928}
7929_ACEOF
7930if ac_fn_c_try_compile "$LINENO"; then :
7931 ax_cv___attribute__=yes
7932else
7933 ax_cv___attribute__=no
7934
7935fi
7936rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7937
7938fi
7939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv___attribute__" >&5
7940$as_echo "$ax_cv___attribute__" >&6; }
7941 if test "$ax_cv___attribute__" = "yes"; then
7942
7943$as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
7944
7945 fi
7946
7947
cristy3ed852e2009-09-05 21:47:34 +00007948#
cristy3ed852e2009-09-05 21:47:34 +00007949# Enable run-time checking.
7950#
7951# Check whether --enable-bounds-checking was given.
cristy8b350f62009-11-15 23:12:43 +00007952if test "${enable_bounds_checking+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007953 enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
7954else
7955 enable_bounds_checking='no'
7956fi
7957
7958
7959if test "$enable_bounds_checking" = yes; then
7960
cristy8b350f62009-11-15 23:12:43 +00007961$as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00007962
7963fi
7964
7965#
7966# Tests for Windows
7967#
7968
7969
7970
7971GDI32_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +00007972native_win32_build='no'
7973cygwin_build='no'
7974case "${host_os}" in
7975 cygwin* )
cristy3ed852e2009-09-05 21:47:34 +00007976 cygwin_build='yes'
7977 GDI32_LIBS='-lgdi32'
7978 ;;
7979 mingw* )
cristy3ed852e2009-09-05 21:47:34 +00007980 native_win32_build='yes'
7981 GDI32_LIBS='-lgdi32'
7982 ;;
7983esac
7984if test "${GDI32_LIBS}x" != 'x'; then
7985
cristy8b350f62009-11-15 23:12:43 +00007986$as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00007987
7988fi
7989
7990 if test "${GDI32_LIBS}x" != 'x' ; then
7991 WINGDI32_DELEGATE_TRUE=
7992 WINGDI32_DELEGATE_FALSE='#'
7993else
7994 WINGDI32_DELEGATE_TRUE='#'
7995 WINGDI32_DELEGATE_FALSE=
7996fi
7997
7998 if test "${native_win32_build}" = 'yes' ; then
7999 WIN32_NATIVE_BUILD_TRUE=
8000 WIN32_NATIVE_BUILD_FALSE='#'
8001else
8002 WIN32_NATIVE_BUILD_TRUE='#'
8003 WIN32_NATIVE_BUILD_FALSE=
8004fi
8005
8006 if test "${cygwin_build}" = 'yes' ; then
8007 CYGWIN_BUILD_TRUE=
8008 CYGWIN_BUILD_FALSE='#'
8009else
8010 CYGWIN_BUILD_TRUE='#'
8011 CYGWIN_BUILD_FALSE=
8012fi
8013
8014 if test "x${CC}" = 'xcl.exe' ; then
8015 USING_CL_TRUE=
8016 USING_CL_FALSE='#'
8017else
8018 USING_CL_TRUE='#'
8019 USING_CL_FALSE=
8020fi
8021
8022
8023WinPathScript="${srcdirfull}/winpath.sh"
8024
8025
8026#
8027# Compiler flags tweaks
8028#
8029if test "${GCC}" != "yes"; then
8030 case "${host}" in
8031 *-*-hpux* )
8032 # aCC: HP ANSI C++ B3910B A.03.34
8033 CFLAGS="${CFLAGS} -Wp,-H30000"
8034 if test -n "${CXXFLAGS}"; then
8035 CXXFLAGS='-AA'
8036 else
8037 CXXFLAGS="${CXXFLAGS} -AA"
8038 fi
8039 ;;
8040 *-dec-osf5.* )
8041 # Compaq alphaev68-dec-osf5.1 compiler
8042 if test -n "${CXXFLAGS}"; then
8043 CXXFLAGS='-std strict_ansi -noimplicit_include'
8044 else
8045 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
8046 fi
8047 esac
8048fi
8049
8050# Check for lazy-loading.
cristy8b350f62009-11-15 23:12:43 +00008051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
cristy3ed852e2009-09-05 21:47:34 +00008052$as_echo_n "checking for linker lazyload option... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008053if test "${im_cv_ld_lazyload+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008054 $as_echo_n "(cached) " >&6
8055else
8056
8057im_cv_ld_lazyload='none'
8058case "${host}" in
8059 *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
8060 if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
8061 im_cv_ld_lazyload='-Wl,-zlazyload'
8062 fi
8063 ;;
8064esac
8065
8066fi
cristy8b350f62009-11-15 23:12:43 +00008067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
cristy3ed852e2009-09-05 21:47:34 +00008068$as_echo "$im_cv_ld_lazyload" >&6; }
8069if test "${im_cv_ld_lazyload}" != 'none' ; then
8070 if test -z "${LDFLAGS}" ; then
8071 LDFLAGS="${im_cv_ld_lazyload}"
8072 else
8073 LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
8074 fi
8075fi
8076
8077case "$host" in
8078*darwin* | *-macos10*)
8079 if test -d /opt/local ; then
8080 CPPFLAGS="$CPPFLAGS -I/opt/local/include"
8081 LDFLAGS="$LDFLAGS -L/opt/local/lib"
8082 elif test -d /sw ; then
8083 CPPFLAGS="$CPPFLAGS -I/sw/include"
8084 LDFLAGS="$LDFLAGS -L/sw/lib"
8085 fi
8086 # Check whether --enable-osx-universal-binary was given.
cristy8b350f62009-11-15 23:12:43 +00008087if test "${enable_osx_universal_binary+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008088 enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
8089else
8090 build_osxuniversal=no
8091fi
8092
8093
8094 if test "${build_osxuniversal}" != no ; then
8095 if test "$enable_dependency_tracking" != no ; then
cristy8b350f62009-11-15 23:12:43 +00008096 as_fn_error "--enable-osx-universal-binary requires --disable-dependency-tracking.
cristy3ed852e2009-09-05 21:47:34 +00008097Please re-run configure with these options:
8098 --disable-dependency-tracking --enable-osx-universal-binary
cristy8b350f62009-11-15 23:12:43 +00008099 " "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00008100 fi
8101 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8102 CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8103 LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8104 fi
8105 ;;
8106esac
8107
8108# Enable support for threads
8109
8110# Check whether --with-threads was given.
cristy8b350f62009-11-15 23:12:43 +00008111if test "${with_threads+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008112 withval=$with_threads; with_threads=$withval
8113else
8114 with_threads='yes'
8115fi
8116
8117
8118have_threads=no
8119if test "$with_threads" != 'no'; then
8120
8121
8122
8123ac_ext=c
8124ac_cpp='$CPP $CPPFLAGS'
8125ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8126ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8127ac_compiler_gnu=$ac_cv_c_compiler_gnu
8128
cristy964cb7f2010-04-25 23:18:00 +00008129ax_pthread_ok=no
cristy3ed852e2009-09-05 21:47:34 +00008130
8131# We used to check for pthread.h first, but this fails if pthread.h
8132# requires special compiler flags (e.g. on True64 or Sequent).
8133# It gets checked for in the link test anyway.
8134
8135# First of all, check if the user has set any of the PTHREAD_LIBS,
8136# etcetera environment variables, and if threads linking works using
8137# them:
8138if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8139 save_CFLAGS="$CFLAGS"
8140 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8141 save_LIBS="$LIBS"
8142 LIBS="$PTHREAD_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +00008143 { $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 +00008144$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008146/* end confdefs.h. */
8147
8148/* Override any GCC internal prototype to avoid an error.
8149 Use char because int might match the return type of a GCC
8150 builtin and then its argument prototype would still apply. */
8151#ifdef __cplusplus
8152extern "C"
8153#endif
8154char pthread_join ();
8155int
8156main ()
8157{
8158return pthread_join ();
8159 ;
8160 return 0;
8161}
8162_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008163if ac_fn_c_try_link "$LINENO"; then :
cristy964cb7f2010-04-25 23:18:00 +00008164 ax_pthread_ok=yes
cristy3ed852e2009-09-05 21:47:34 +00008165fi
cristy8b350f62009-11-15 23:12:43 +00008166rm -f core conftest.err conftest.$ac_objext \
8167 conftest$ac_exeext conftest.$ac_ext
cristy964cb7f2010-04-25 23:18:00 +00008168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8169$as_echo "$ax_pthread_ok" >&6; }
8170 if test x"$ax_pthread_ok" = xno; then
cristy3ed852e2009-09-05 21:47:34 +00008171 PTHREAD_LIBS=""
8172 PTHREAD_CFLAGS=""
8173 fi
8174 LIBS="$save_LIBS"
8175 CFLAGS="$save_CFLAGS"
8176fi
8177
8178# We must check for the threads library under a number of different
8179# names; the ordering is very important because some systems
8180# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8181# libraries is broken (non-POSIX).
8182
8183# Create a list of thread flags to try. Items starting with a "-" are
8184# C compiler flags, and other items are library names, except for "none"
8185# which indicates that we try without any flags at all, and "pthread-config"
8186# which is a program returning the flags for the Pth emulation library.
8187
cristy964cb7f2010-04-25 23:18:00 +00008188ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
cristy3ed852e2009-09-05 21:47:34 +00008189
8190# The ordering *is* (sometimes) important. Some notes on the
8191# individual items follow:
8192
8193# pthreads: AIX (must check this before -lpthread)
8194# none: in case threads are in libc; should be tried before -Kthread and
8195# other compiler flags to prevent continual compiler warnings
8196# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8197# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8198# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8199# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8200# -pthreads: Solaris/gcc
8201# -mthreads: Mingw32/gcc, Lynx/gcc
8202# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8203# doesn't hurt to check since this sometimes defines pthreads too;
8204# also defines -D_REENTRANT)
8205# ... -mt is also the pthreads flag for HP/aCC
8206# pthread: Linux, etcetera
8207# --thread-safe: KAI C++
8208# pthread-config: use pthread-config program (for GNU Pth library)
8209
8210case "${host_cpu}-${host_os}" in
8211 *solaris*)
8212
8213 # On Solaris (at least, for some versions), libc contains stubbed
8214 # (non-functional) versions of the pthreads routines, so link-based
8215 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
8216 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
8217 # a function called by this macro, so we could check for that, but
8218 # who knows whether they'll stub that too in a future libc.) So,
8219 # we'll just look for -pthreads and -lpthread first:
8220
cristy964cb7f2010-04-25 23:18:00 +00008221 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
cristy3ed852e2009-09-05 21:47:34 +00008222 ;;
cristy964cb7f2010-04-25 23:18:00 +00008223
8224 *-darwin*)
8225 acx_pthread_flags="-pthread $acx_pthread_flags"
8226 ;;
cristy3ed852e2009-09-05 21:47:34 +00008227esac
8228
cristy964cb7f2010-04-25 23:18:00 +00008229if test x"$ax_pthread_ok" = xno; then
8230for flag in $ax_pthread_flags; do
cristy3ed852e2009-09-05 21:47:34 +00008231
8232 case $flag in
8233 none)
cristy8b350f62009-11-15 23:12:43 +00008234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
cristy3ed852e2009-09-05 21:47:34 +00008235$as_echo_n "checking whether pthreads work without any flags... " >&6; }
8236 ;;
8237
8238 -*)
cristy8b350f62009-11-15 23:12:43 +00008239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
cristy3ed852e2009-09-05 21:47:34 +00008240$as_echo_n "checking whether pthreads work with $flag... " >&6; }
8241 PTHREAD_CFLAGS="$flag"
8242 ;;
8243
8244 pthread-config)
8245 # Extract the first word of "pthread-config", so it can be a program name with args.
8246set dummy pthread-config; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00008247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00008248$as_echo_n "checking for $ac_word... " >&6; }
cristy964cb7f2010-04-25 23:18:00 +00008249if test "${ac_cv_prog_ax_pthread_config+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008250 $as_echo_n "(cached) " >&6
8251else
cristy964cb7f2010-04-25 23:18:00 +00008252 if test -n "$ax_pthread_config"; then
8253 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
cristy3ed852e2009-09-05 21:47:34 +00008254else
8255as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8256for as_dir in $PATH
8257do
8258 IFS=$as_save_IFS
8259 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00008260 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00008261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cristy964cb7f2010-04-25 23:18:00 +00008262 ac_cv_prog_ax_pthread_config="yes"
cristy8b350f62009-11-15 23:12:43 +00008263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00008264 break 2
8265 fi
8266done
cristy8b350f62009-11-15 23:12:43 +00008267 done
cristy3ed852e2009-09-05 21:47:34 +00008268IFS=$as_save_IFS
8269
cristy964cb7f2010-04-25 23:18:00 +00008270 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
cristy3ed852e2009-09-05 21:47:34 +00008271fi
8272fi
cristy964cb7f2010-04-25 23:18:00 +00008273ax_pthread_config=$ac_cv_prog_ax_pthread_config
8274if test -n "$ax_pthread_config"; then
8275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8276$as_echo "$ax_pthread_config" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00008277else
cristy8b350f62009-11-15 23:12:43 +00008278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00008279$as_echo "no" >&6; }
8280fi
8281
8282
cristy964cb7f2010-04-25 23:18:00 +00008283 if test x"$ax_pthread_config" = xno; then continue; fi
cristy3ed852e2009-09-05 21:47:34 +00008284 PTHREAD_CFLAGS="`pthread-config --cflags`"
8285 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
8286 ;;
8287
8288 *)
cristy8b350f62009-11-15 23:12:43 +00008289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
cristy3ed852e2009-09-05 21:47:34 +00008290$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
8291 PTHREAD_LIBS="-l$flag"
8292 ;;
8293 esac
8294
8295 save_LIBS="$LIBS"
8296 save_CFLAGS="$CFLAGS"
8297 LIBS="$PTHREAD_LIBS $LIBS"
8298 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8299
8300 # Check for various functions. We must include pthread.h,
8301 # since some functions may be macros. (On the Sequent, we
8302 # need a special flag -Kthread to make this header compile.)
8303 # We check for pthread_join because it is in -lpthread on IRIX
8304 # while pthread_create is in libc. We check for pthread_attr_init
8305 # due to DEC craziness with -lpthreads. We check for
8306 # pthread_cleanup_push because it is one of the few pthread
8307 # functions on Solaris that doesn't have a non-functional libc stub.
8308 # We try pthread_create on general principles.
cristy8b350f62009-11-15 23:12:43 +00008309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008310/* end confdefs.h. */
8311#include <pthread.h>
cristy964cb7f2010-04-25 23:18:00 +00008312 static void routine(void* a) {a=0;}
8313 static void* start_routine(void* a) {return a;}
cristy3ed852e2009-09-05 21:47:34 +00008314int
8315main ()
8316{
cristy964cb7f2010-04-25 23:18:00 +00008317pthread_t th; pthread_attr_t attr;
8318 pthread_join(th, 0);
8319 pthread_attr_init(&attr);
8320 pthread_cleanup_push(routine, 0);
8321 pthread_create(&th,0,start_routine,0);
8322 pthread_cleanup_pop(0);
cristy3ed852e2009-09-05 21:47:34 +00008323 ;
8324 return 0;
8325}
8326_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008327if ac_fn_c_try_link "$LINENO"; then :
cristy964cb7f2010-04-25 23:18:00 +00008328 ax_pthread_ok=yes
cristy3ed852e2009-09-05 21:47:34 +00008329fi
cristy8b350f62009-11-15 23:12:43 +00008330rm -f core conftest.err conftest.$ac_objext \
8331 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008332
8333 LIBS="$save_LIBS"
8334 CFLAGS="$save_CFLAGS"
8335
cristy964cb7f2010-04-25 23:18:00 +00008336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8337$as_echo "$ax_pthread_ok" >&6; }
8338 if test "x$ax_pthread_ok" = xyes; then
cristy3ed852e2009-09-05 21:47:34 +00008339 break;
8340 fi
8341
8342 PTHREAD_LIBS=""
8343 PTHREAD_CFLAGS=""
8344done
8345fi
8346
8347# Various other checks:
cristy964cb7f2010-04-25 23:18:00 +00008348if test "x$ax_pthread_ok" = xyes; then
cristy3ed852e2009-09-05 21:47:34 +00008349 save_LIBS="$LIBS"
8350 LIBS="$PTHREAD_LIBS $LIBS"
8351 save_CFLAGS="$CFLAGS"
8352 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8353
8354 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristy8b350f62009-11-15 23:12:43 +00008355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy3ed852e2009-09-05 21:47:34 +00008356$as_echo_n "checking for joinable pthread attribute... " >&6; }
8357 attr_name=unknown
8358 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
cristy8b350f62009-11-15 23:12:43 +00008359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008360/* end confdefs.h. */
8361#include <pthread.h>
8362int
8363main ()
8364{
8365int attr=$attr; return attr;
8366 ;
8367 return 0;
8368}
8369_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008370if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008371 attr_name=$attr; break
cristy3ed852e2009-09-05 21:47:34 +00008372fi
cristy8b350f62009-11-15 23:12:43 +00008373rm -f core conftest.err conftest.$ac_objext \
8374 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008375 done
cristy8b350f62009-11-15 23:12:43 +00008376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
cristy3ed852e2009-09-05 21:47:34 +00008377$as_echo "$attr_name" >&6; }
8378 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
8379
8380cat >>confdefs.h <<_ACEOF
8381#define PTHREAD_CREATE_JOINABLE $attr_name
8382_ACEOF
8383
8384 fi
8385
cristy8b350f62009-11-15 23:12:43 +00008386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
cristy3ed852e2009-09-05 21:47:34 +00008387$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
8388 flag=no
8389 case "${host_cpu}-${host_os}" in
8390 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
8391 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
8392 esac
cristy8b350f62009-11-15 23:12:43 +00008393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
cristy3ed852e2009-09-05 21:47:34 +00008394$as_echo "${flag}" >&6; }
8395 if test "x$flag" != xno; then
8396 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
8397 fi
8398
8399 LIBS="$save_LIBS"
8400 CFLAGS="$save_CFLAGS"
8401
8402 # More AIX lossage: must compile with xlc_r or cc_r
cristy736173a2009-09-20 21:18:22 +00008403 if test x"$GCC" != xyes; then
8404 for ac_prog in xlc_r cc_r
8405do
8406 # Extract the first word of "$ac_prog", so it can be a program name with args.
8407set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00008408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00008409$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008410if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008411 $as_echo_n "(cached) " >&6
8412else
8413 if test -n "$PTHREAD_CC"; then
8414 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
8415else
8416as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8417for as_dir in $PATH
8418do
8419 IFS=$as_save_IFS
8420 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00008421 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00008422 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 +00008423 ac_cv_prog_PTHREAD_CC="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00008424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00008425 break 2
8426 fi
8427done
cristy8b350f62009-11-15 23:12:43 +00008428 done
cristy3ed852e2009-09-05 21:47:34 +00008429IFS=$as_save_IFS
8430
cristy3ed852e2009-09-05 21:47:34 +00008431fi
8432fi
8433PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
8434if test -n "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +00008435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00008436$as_echo "$PTHREAD_CC" >&6; }
8437else
cristy8b350f62009-11-15 23:12:43 +00008438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00008439$as_echo "no" >&6; }
8440fi
8441
cristy736173a2009-09-20 21:18:22 +00008442
8443 test -n "$PTHREAD_CC" && break
cristy3ed852e2009-09-05 21:47:34 +00008444done
cristy736173a2009-09-20 21:18:22 +00008445test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
cristy3ed852e2009-09-05 21:47:34 +00008446
cristy736173a2009-09-20 21:18:22 +00008447 else
8448 PTHREAD_CC=$CC
8449 fi
cristy3ed852e2009-09-05 21:47:34 +00008450else
cristy736173a2009-09-20 21:18:22 +00008451 PTHREAD_CC="$CC"
cristy3ed852e2009-09-05 21:47:34 +00008452fi
8453
cristy3ed852e2009-09-05 21:47:34 +00008454
8455
8456
8457
8458# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
cristy964cb7f2010-04-25 23:18:00 +00008459if test x"$ax_pthread_ok" = xyes; then
cristy3ed852e2009-09-05 21:47:34 +00008460
cristy8b350f62009-11-15 23:12:43 +00008461$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008462
8463 :
8464else
cristy964cb7f2010-04-25 23:18:00 +00008465 ax_pthread_ok=no
cristy3ed852e2009-09-05 21:47:34 +00008466
8467fi
8468ac_ext=c
8469ac_cpp='$CPP $CPPFLAGS'
8470ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8471ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8472ac_compiler_gnu=$ac_cv_c_compiler_gnu
8473
8474
cristy964cb7f2010-04-25 23:18:00 +00008475 if test "$ax_pthread_ok" = yes; then
cristy3ed852e2009-09-05 21:47:34 +00008476 have_threads=yes
8477 DEF_THREAD="$PTHREAD_CFLAGS"
8478 CFLAGS="$CFLAGS $DEF_THREAD"
8479 CXXFLAGS="$CXXFLAGS $DEF_THREAD"
8480 if test "$CC" != "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +00008481 { $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 +00008482$as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
8483 CC="$PTHREAD_CC"
8484 fi
8485 fi
8486fi
8487
8488# Enable support for OpenMP
8489if test "$have_threads" != 'yes'; then
8490 ac_cv_prog_c_openmp=unsupported
8491fi
8492
8493 OPENMP_CFLAGS=
8494 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +00008495if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008496 enableval=$enable_openmp;
8497fi
8498
8499 if test "$enable_openmp" != no; then
cristy8b350f62009-11-15 23:12:43 +00008500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00008501$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008502if test "${ac_cv_prog_c_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008503 $as_echo_n "(cached) " >&6
8504else
cristy8b350f62009-11-15 23:12:43 +00008505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8506/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00008507
8508#ifndef _OPENMP
8509 choke me
8510#endif
8511#include <omp.h>
8512int main () { return omp_get_num_threads (); }
8513
8514_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008515if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008516 ac_cv_prog_c_openmp='none needed'
8517else
cristy8b350f62009-11-15 23:12:43 +00008518 ac_cv_prog_c_openmp='unsupported'
cristy3ed852e2009-09-05 21:47:34 +00008519 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
8520 ac_save_CFLAGS=$CFLAGS
8521 CFLAGS="$CFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +00008522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8523/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00008524
8525#ifndef _OPENMP
8526 choke me
8527#endif
8528#include <omp.h>
8529int main () { return omp_get_num_threads (); }
8530
8531_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008532if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008533 ac_cv_prog_c_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +00008534fi
cristy8b350f62009-11-15 23:12:43 +00008535rm -f core conftest.err conftest.$ac_objext \
8536 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008537 CFLAGS=$ac_save_CFLAGS
8538 if test "$ac_cv_prog_c_openmp" != unsupported; then
8539 break
8540 fi
8541 done
8542fi
cristy8b350f62009-11-15 23:12:43 +00008543rm -f core conftest.err conftest.$ac_objext \
8544 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008545fi
cristy8b350f62009-11-15 23:12:43 +00008546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +00008547$as_echo "$ac_cv_prog_c_openmp" >&6; }
8548 case $ac_cv_prog_c_openmp in #(
8549 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +00008550 ;; #(
cristy3ed852e2009-09-05 21:47:34 +00008551 *)
cristy8b350f62009-11-15 23:12:43 +00008552 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +00008553 esac
8554 fi
8555
8556
8557CFLAGS="$OPENMP_CFLAGS $CFLAGS"
8558MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
8559
8560
cristy736173a2009-09-20 21:18:22 +00008561# Enable support for OpenCL
cristy736173a2009-09-20 21:18:22 +00008562
cristy964cb7f2010-04-25 23:18:00 +00008563
8564
8565ac_ext=c
8566ac_cpp='$CPP $CPPFLAGS'
8567ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8568ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8569ac_compiler_gnu=$ac_cv_c_compiler_gnu
8570
8571ax_pthread_ok=no
8572
8573# We used to check for pthread.h first, but this fails if pthread.h
8574# requires special compiler flags (e.g. on True64 or Sequent).
8575# It gets checked for in the link test anyway.
8576
8577# First of all, check if the user has set any of the PTHREAD_LIBS,
8578# etcetera environment variables, and if threads linking works using
8579# them:
8580if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8581 save_CFLAGS="$CFLAGS"
8582 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8583 save_LIBS="$LIBS"
8584 LIBS="$PTHREAD_LIBS $LIBS"
8585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
8586$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
8587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8588/* end confdefs.h. */
8589
8590/* Override any GCC internal prototype to avoid an error.
8591 Use char because int might match the return type of a GCC
8592 builtin and then its argument prototype would still apply. */
8593#ifdef __cplusplus
8594extern "C"
8595#endif
8596char pthread_join ();
8597int
8598main ()
8599{
8600return pthread_join ();
8601 ;
8602 return 0;
8603}
8604_ACEOF
8605if ac_fn_c_try_link "$LINENO"; then :
8606 ax_pthread_ok=yes
8607fi
8608rm -f core conftest.err conftest.$ac_objext \
8609 conftest$ac_exeext conftest.$ac_ext
8610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8611$as_echo "$ax_pthread_ok" >&6; }
8612 if test x"$ax_pthread_ok" = xno; then
8613 PTHREAD_LIBS=""
8614 PTHREAD_CFLAGS=""
8615 fi
8616 LIBS="$save_LIBS"
8617 CFLAGS="$save_CFLAGS"
8618fi
8619
8620# We must check for the threads library under a number of different
8621# names; the ordering is very important because some systems
8622# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8623# libraries is broken (non-POSIX).
8624
8625# Create a list of thread flags to try. Items starting with a "-" are
8626# C compiler flags, and other items are library names, except for "none"
8627# which indicates that we try without any flags at all, and "pthread-config"
8628# which is a program returning the flags for the Pth emulation library.
8629
8630ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
8631
8632# The ordering *is* (sometimes) important. Some notes on the
8633# individual items follow:
8634
8635# pthreads: AIX (must check this before -lpthread)
8636# none: in case threads are in libc; should be tried before -Kthread and
8637# other compiler flags to prevent continual compiler warnings
8638# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8639# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8640# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8641# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8642# -pthreads: Solaris/gcc
8643# -mthreads: Mingw32/gcc, Lynx/gcc
8644# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8645# doesn't hurt to check since this sometimes defines pthreads too;
8646# also defines -D_REENTRANT)
8647# ... -mt is also the pthreads flag for HP/aCC
8648# pthread: Linux, etcetera
8649# --thread-safe: KAI C++
8650# pthread-config: use pthread-config program (for GNU Pth library)
8651
8652case "${host_cpu}-${host_os}" in
8653 *solaris*)
8654
8655 # On Solaris (at least, for some versions), libc contains stubbed
8656 # (non-functional) versions of the pthreads routines, so link-based
8657 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
8658 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
8659 # a function called by this macro, so we could check for that, but
8660 # who knows whether they'll stub that too in a future libc.) So,
8661 # we'll just look for -pthreads and -lpthread first:
8662
8663 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
8664 ;;
8665
8666 *-darwin*)
8667 acx_pthread_flags="-pthread $acx_pthread_flags"
8668 ;;
8669esac
8670
8671if test x"$ax_pthread_ok" = xno; then
8672for flag in $ax_pthread_flags; do
8673
8674 case $flag in
8675 none)
8676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
8677$as_echo_n "checking whether pthreads work without any flags... " >&6; }
8678 ;;
8679
8680 -*)
8681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
8682$as_echo_n "checking whether pthreads work with $flag... " >&6; }
8683 PTHREAD_CFLAGS="$flag"
8684 ;;
8685
8686 pthread-config)
8687 # Extract the first word of "pthread-config", so it can be a program name with args.
8688set dummy pthread-config; ac_word=$2
8689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8690$as_echo_n "checking for $ac_word... " >&6; }
8691if test "${ac_cv_prog_ax_pthread_config+set}" = set; then :
8692 $as_echo_n "(cached) " >&6
8693else
8694 if test -n "$ax_pthread_config"; then
8695 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
8696else
8697as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8698for as_dir in $PATH
8699do
8700 IFS=$as_save_IFS
8701 test -z "$as_dir" && as_dir=.
8702 for ac_exec_ext in '' $ac_executable_extensions; do
8703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8704 ac_cv_prog_ax_pthread_config="yes"
8705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8706 break 2
8707 fi
8708done
8709 done
8710IFS=$as_save_IFS
8711
8712 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
8713fi
8714fi
8715ax_pthread_config=$ac_cv_prog_ax_pthread_config
8716if test -n "$ax_pthread_config"; then
8717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8718$as_echo "$ax_pthread_config" >&6; }
8719else
8720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8721$as_echo "no" >&6; }
8722fi
8723
8724
8725 if test x"$ax_pthread_config" = xno; then continue; fi
8726 PTHREAD_CFLAGS="`pthread-config --cflags`"
8727 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
8728 ;;
8729
8730 *)
8731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
8732$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
8733 PTHREAD_LIBS="-l$flag"
8734 ;;
8735 esac
8736
8737 save_LIBS="$LIBS"
8738 save_CFLAGS="$CFLAGS"
8739 LIBS="$PTHREAD_LIBS $LIBS"
8740 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8741
8742 # Check for various functions. We must include pthread.h,
8743 # since some functions may be macros. (On the Sequent, we
8744 # need a special flag -Kthread to make this header compile.)
8745 # We check for pthread_join because it is in -lpthread on IRIX
8746 # while pthread_create is in libc. We check for pthread_attr_init
8747 # due to DEC craziness with -lpthreads. We check for
8748 # pthread_cleanup_push because it is one of the few pthread
8749 # functions on Solaris that doesn't have a non-functional libc stub.
8750 # We try pthread_create on general principles.
8751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8752/* end confdefs.h. */
8753#include <pthread.h>
8754 static void routine(void* a) {a=0;}
8755 static void* start_routine(void* a) {return a;}
8756int
8757main ()
8758{
8759pthread_t th; pthread_attr_t attr;
8760 pthread_join(th, 0);
8761 pthread_attr_init(&attr);
8762 pthread_cleanup_push(routine, 0);
8763 pthread_create(&th,0,start_routine,0);
8764 pthread_cleanup_pop(0);
8765 ;
8766 return 0;
8767}
8768_ACEOF
8769if ac_fn_c_try_link "$LINENO"; then :
8770 ax_pthread_ok=yes
8771fi
8772rm -f core conftest.err conftest.$ac_objext \
8773 conftest$ac_exeext conftest.$ac_ext
8774
8775 LIBS="$save_LIBS"
8776 CFLAGS="$save_CFLAGS"
8777
8778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8779$as_echo "$ax_pthread_ok" >&6; }
8780 if test "x$ax_pthread_ok" = xyes; then
8781 break;
8782 fi
8783
8784 PTHREAD_LIBS=""
8785 PTHREAD_CFLAGS=""
8786done
8787fi
8788
8789# Various other checks:
8790if test "x$ax_pthread_ok" = xyes; then
8791 save_LIBS="$LIBS"
8792 LIBS="$PTHREAD_LIBS $LIBS"
8793 save_CFLAGS="$CFLAGS"
8794 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8795
8796 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
8797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
8798$as_echo_n "checking for joinable pthread attribute... " >&6; }
8799 attr_name=unknown
8800 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
8801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8802/* end confdefs.h. */
8803#include <pthread.h>
8804int
8805main ()
8806{
8807int attr=$attr; return attr;
8808 ;
8809 return 0;
8810}
8811_ACEOF
8812if ac_fn_c_try_link "$LINENO"; then :
8813 attr_name=$attr; break
8814fi
8815rm -f core conftest.err conftest.$ac_objext \
8816 conftest$ac_exeext conftest.$ac_ext
8817 done
8818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
8819$as_echo "$attr_name" >&6; }
8820 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
8821
8822cat >>confdefs.h <<_ACEOF
8823#define PTHREAD_CREATE_JOINABLE $attr_name
8824_ACEOF
8825
8826 fi
8827
8828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
8829$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
8830 flag=no
8831 case "${host_cpu}-${host_os}" in
8832 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
8833 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
8834 esac
8835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
8836$as_echo "${flag}" >&6; }
8837 if test "x$flag" != xno; then
8838 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
8839 fi
8840
8841 LIBS="$save_LIBS"
8842 CFLAGS="$save_CFLAGS"
8843
8844 # More AIX lossage: must compile with xlc_r or cc_r
8845 if test x"$GCC" != xyes; then
8846 for ac_prog in xlc_r cc_r
8847do
8848 # Extract the first word of "$ac_prog", so it can be a program name with args.
8849set dummy $ac_prog; ac_word=$2
8850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8851$as_echo_n "checking for $ac_word... " >&6; }
8852if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then :
8853 $as_echo_n "(cached) " >&6
8854else
8855 if test -n "$PTHREAD_CC"; then
8856 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
8857else
8858as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8859for as_dir in $PATH
8860do
8861 IFS=$as_save_IFS
8862 test -z "$as_dir" && as_dir=.
8863 for ac_exec_ext in '' $ac_executable_extensions; do
8864 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8865 ac_cv_prog_PTHREAD_CC="$ac_prog"
8866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8867 break 2
8868 fi
8869done
8870 done
8871IFS=$as_save_IFS
8872
8873fi
8874fi
8875PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
8876if test -n "$PTHREAD_CC"; then
8877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
8878$as_echo "$PTHREAD_CC" >&6; }
8879else
8880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8881$as_echo "no" >&6; }
8882fi
8883
8884
8885 test -n "$PTHREAD_CC" && break
8886done
8887test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
8888
8889 else
8890 PTHREAD_CC=$CC
8891 fi
8892else
8893 PTHREAD_CC="$CC"
8894fi
8895
8896
8897
8898
8899
8900# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
8901if test x"$ax_pthread_ok" = xyes; then
8902
8903$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
8904
8905 :
8906else
8907 ax_pthread_ok=no
8908
8909fi
8910ac_ext=c
8911ac_cpp='$CPP $CPPFLAGS'
8912ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8913ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8914ac_compiler_gnu=$ac_cv_c_compiler_gnu
8915
8916
8917
cristy43596fe2010-01-21 16:46:08 +00008918# Check whether --enable-opencl was given.
8919if test "${enable_opencl+set}" = set; then :
8920 enableval=$enable_opencl; disable_opencl=$enableval
8921else
8922 disable_opencl='yes'
8923fi
8924
8925
8926if test "$disable_opencl" = 'yes'; then
8927 ac_ext=c
cristy736173a2009-09-20 21:18:22 +00008928ac_cpp='$CPP $CPPFLAGS'
8929ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8930ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8931ac_compiler_gnu=$ac_cv_c_compiler_gnu
8932
cristy43596fe2010-01-21 16:46:08 +00008933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
cristy736173a2009-09-20 21:18:22 +00008934$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008935if test "${ax_cv_c_compiler_ms+set}" = set; then :
cristy736173a2009-09-20 21:18:22 +00008936 $as_echo_n "(cached) " >&6
8937else
cristy8b350f62009-11-15 23:12:43 +00008938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00008939/* end confdefs.h. */
8940
8941int
8942main ()
8943{
8944#ifndef _MSC_VER
8945 choke me
8946#endif
8947
8948 ;
8949 return 0;
8950}
8951_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008952if ac_fn_c_try_compile "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00008953 ax_compiler_ms=yes
8954else
cristy8b350f62009-11-15 23:12:43 +00008955 ax_compiler_ms=no
cristy736173a2009-09-20 21:18:22 +00008956fi
cristy736173a2009-09-20 21:18:22 +00008957rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8958ax_cv_c_compiler_ms=$ax_compiler_ms
8959
8960fi
cristy8b350f62009-11-15 23:12:43 +00008961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
cristy736173a2009-09-20 21:18:22 +00008962$as_echo "$ax_cv_c_compiler_ms" >&6; }
cristy43596fe2010-01-21 16:46:08 +00008963 if test X$ax_compiler_ms = Xno; then :
cristy736173a2009-09-20 21:18:22 +00008964 CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
8965fi
8966
cristy43596fe2010-01-21 16:46:08 +00008967 ax_save_CPPFLAGS=$CPPFLAGS
8968 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
8969 for ac_header in CL/cl.h OpenCL/cl.h
cristy8b350f62009-11-15 23:12:43 +00008970do :
8971 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8972ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8973eval as_val=\$$as_ac_Header
8974 if test "x$as_val" = x""yes; then :
cristy736173a2009-09-20 21:18:22 +00008975 cat >>confdefs.h <<_ACEOF
8976#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8977_ACEOF
8978
8979fi
8980
8981done
8982
cristy43596fe2010-01-21 16:46:08 +00008983 CPPFLAGS=$ax_save_CPPFLAGS
cristy736173a2009-09-20 21:18:22 +00008984
cristy43596fe2010-01-21 16:46:08 +00008985 for ac_header in windows.h
cristy8b350f62009-11-15 23:12:43 +00008986do :
8987 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
8988if test "x$ac_cv_header_windows_h" = x""yes; then :
cristy736173a2009-09-20 21:18:22 +00008989 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008990#define HAVE_WINDOWS_H 1
cristy736173a2009-09-20 21:18:22 +00008991_ACEOF
8992
8993fi
8994
8995done
8996
8997
8998
8999
cristy43596fe2010-01-21 16:46:08 +00009000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
cristy736173a2009-09-20 21:18:22 +00009001$as_echo_n "checking for OpenCL library... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009002if test "${ax_cv_check_cl_libcl+set}" = set; then :
cristy736173a2009-09-20 21:18:22 +00009003 $as_echo_n "(cached) " >&6
9004else
9005 ax_cv_check_cl_libcl=no
cristy43596fe2010-01-21 16:46:08 +00009006 case $host_cpu in
9007 x86_64) ax_check_cl_libdir=lib64 ;;
9008 *) ax_check_cl_libdir=lib ;;
9009 esac
9010 ax_save_CPPFLAGS=$CPPFLAGS
9011 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
9012 ax_save_LIBS=$LIBS
9013 LIBS=""
9014 ax_check_libs="-lOpenCL -lCL -lclparser"
9015 for ax_lib in $ax_check_libs; do
9016 if test X$ax_compiler_ms = Xyes; then :
cristy736173a2009-09-20 21:18:22 +00009017 ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
9018else
9019 ax_try_lib=$ax_lib
9020fi
cristy43596fe2010-01-21 16:46:08 +00009021 LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
9022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00009023/* end confdefs.h. */
9024
cristy43596fe2010-01-21 16:46:08 +00009025 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9026 # include <windows.h>
9027 # endif
9028 # ifdef HAVE_CL_CL_H
9029 # include <CL/cl.h>
9030 # elif defined(HAVE_OPENCL_CL_H)
9031 # include <OpenCL/cl.h>
9032 # else
9033 # error no CL.h
9034 # endif
cristy736173a2009-09-20 21:18:22 +00009035int
9036main ()
9037{
cristyc7083c12009-10-14 03:16:55 +00009038clCreateContextFromType(0,0,0,0,0)
cristy736173a2009-09-20 21:18:22 +00009039 ;
9040 return 0;
9041}
9042_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009043if ac_fn_c_try_link "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00009044 ax_cv_check_cl_libcl=$ax_try_lib; break
9045else
cristy8b350f62009-11-15 23:12:43 +00009046 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 +00009047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00009048/* end confdefs.h. */
9049
cristy43596fe2010-01-21 16:46:08 +00009050 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9051 # include <windows.h>
9052 # endif
9053 # ifdef HAVE_CL_CL_H
9054 # include <CL/cl.h>
9055 # elif defined(HAVE_OPENCL_CL_H)
9056 # include <OpenCL/cl.h>
9057 # else
9058 # error no CL.h
9059 # endif
cristy736173a2009-09-20 21:18:22 +00009060int
9061main ()
9062{
cristyc7083c12009-10-14 03:16:55 +00009063clCreateContextFromType(0,0,0,0,0)
cristy736173a2009-09-20 21:18:22 +00009064 ;
9065 return 0;
9066}
9067_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009068if ac_fn_c_try_link "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00009069 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
9070else
cristy4dc44432009-12-30 23:30:06 +00009071 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 +00009072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00009073/* end confdefs.h. */
9074
cristy43596fe2010-01-21 16:46:08 +00009075 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9076 # include <windows.h>
9077 # endif
9078 # ifdef HAVE_CL_CL_H
9079 # include <CL/cl.h>
9080 # elif defined(HAVE_OPENCL_CL_H)
9081 # include <OpenCL/cl.h>
9082 # else
9083 # error no CL.h
9084 # endif
cristy736173a2009-09-20 21:18:22 +00009085int
9086main ()
9087{
cristyc7083c12009-10-14 03:16:55 +00009088clCreateContextFromType(0,0,0,0,0)
cristy736173a2009-09-20 21:18:22 +00009089 ;
9090 return 0;
9091}
9092_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009093if ac_fn_c_try_link "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00009094 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
cristy736173a2009-09-20 21:18:22 +00009095fi
cristy8b350f62009-11-15 23:12:43 +00009096rm -f core conftest.err conftest.$ac_objext \
9097 conftest$ac_exeext conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00009098fi
cristy8b350f62009-11-15 23:12:43 +00009099rm -f core conftest.err conftest.$ac_objext \
9100 conftest$ac_exeext conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00009101fi
cristy8b350f62009-11-15 23:12:43 +00009102rm -f core conftest.err conftest.$ac_objext \
9103 conftest$ac_exeext conftest.$ac_ext
cristy43596fe2010-01-21 16:46:08 +00009104 done
cristy736173a2009-09-20 21:18:22 +00009105
cristy43596fe2010-01-21 16:46:08 +00009106 if test "X$ax_cv_check_cl_libcl" = Xno -a X$no_x = Xyes; then :
cristy736173a2009-09-20 21:18:22 +00009107 LIBS='-framework OpenCL'
cristy43596fe2010-01-21 16:46:08 +00009108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00009109/* end confdefs.h. */
9110
cristy43596fe2010-01-21 16:46:08 +00009111 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9112 # include <windows.h>
9113 # endif
9114 # ifdef HAVE_CL_CL_H
9115 # include <CL/cl.h>
9116 # elif defined(HAVE_OPENCL_CL_H)
9117 # include <OpenCL/cl.h>
9118 # else
9119 # error no CL.h
9120 # endif
cristy736173a2009-09-20 21:18:22 +00009121int
9122main ()
9123{
cristyc7083c12009-10-14 03:16:55 +00009124clCreateContextFromType(0,0,0,0,0)
cristy736173a2009-09-20 21:18:22 +00009125 ;
9126 return 0;
9127}
9128_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009129if ac_fn_c_try_link "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00009130 ax_cv_check_cl_libcl=$LIBS
cristy736173a2009-09-20 21:18:22 +00009131fi
cristy8b350f62009-11-15 23:12:43 +00009132rm -f core conftest.err conftest.$ac_objext \
9133 conftest$ac_exeext conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00009134fi
9135
cristy43596fe2010-01-21 16:46:08 +00009136 LIBS=$ax_save_LIBS
9137 CPPFLAGS=$ax_save_CPPFLAGS
cristy736173a2009-09-20 21:18:22 +00009138fi
cristy8b350f62009-11-15 23:12:43 +00009139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
cristy736173a2009-09-20 21:18:22 +00009140$as_echo "$ax_cv_check_cl_libcl" >&6; }
9141
cristy43596fe2010-01-21 16:46:08 +00009142 if test "X$ax_cv_check_cl_libcl" = Xno; then :
cristy736173a2009-09-20 21:18:22 +00009143 no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
9144else
cristy99cc3002010-01-21 14:50:11 +00009145 CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS";
9146$as_echo "#define _OPENCL 1" >>confdefs.h
9147
cristy736173a2009-09-20 21:18:22 +00009148fi
cristy43596fe2010-01-21 16:46:08 +00009149 ac_ext=c
cristy736173a2009-09-20 21:18:22 +00009150ac_cpp='$CPP $CPPFLAGS'
9151ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9152ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9153ac_compiler_gnu=$ac_cv_c_compiler_gnu
9154
cristy43596fe2010-01-21 16:46:08 +00009155fi
cristy736173a2009-09-20 21:18:22 +00009156
9157
9158
9159
cristyc7083c12009-10-14 03:16:55 +00009160CFLAGS="$CL_CFLAGS $CFLAGS"
9161LIBS="$CL_LIBS $LIBS"
cristy736173a2009-09-20 21:18:22 +00009162
cristy2e8b51d2009-10-17 18:26:15 +00009163
cristy3ed852e2009-09-05 21:47:34 +00009164########
9165#
9166# Check for large file support
9167#
9168########
9169# Check whether --enable-largefile was given.
cristy8b350f62009-11-15 23:12:43 +00009170if test "${enable_largefile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009171 enableval=$enable_largefile;
9172fi
9173
9174if test "$enable_largefile" != no; then
9175
cristy8b350f62009-11-15 23:12:43 +00009176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009177$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009178if test "${ac_cv_sys_largefile_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009179 $as_echo_n "(cached) " >&6
9180else
9181 ac_cv_sys_largefile_CC=no
9182 if test "$GCC" != yes; then
9183 ac_save_CC=$CC
9184 while :; do
9185 # IRIX 6.2 and later do not support large files by default,
9186 # so use the C compiler's -n32 option if that helps.
cristy8b350f62009-11-15 23:12:43 +00009187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009188/* end confdefs.h. */
9189#include <sys/types.h>
9190 /* Check that off_t can represent 2**63 - 1 correctly.
9191 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9192 since some C++ compilers masquerading as C compilers
9193 incorrectly reject 9223372036854775807. */
9194#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9195 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9196 && LARGE_OFF_T % 2147483647 == 1)
9197 ? 1 : -1];
9198int
9199main ()
9200{
9201
9202 ;
9203 return 0;
9204}
9205_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009206 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009207 break
cristy3ed852e2009-09-05 21:47:34 +00009208fi
cristy3ed852e2009-09-05 21:47:34 +00009209rm -f core conftest.err conftest.$ac_objext
9210 CC="$CC -n32"
cristy8b350f62009-11-15 23:12:43 +00009211 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009212 ac_cv_sys_largefile_CC=' -n32'; break
cristy3ed852e2009-09-05 21:47:34 +00009213fi
cristy3ed852e2009-09-05 21:47:34 +00009214rm -f core conftest.err conftest.$ac_objext
9215 break
9216 done
9217 CC=$ac_save_CC
9218 rm -f conftest.$ac_ext
9219 fi
9220fi
cristy8b350f62009-11-15 23:12:43 +00009221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00009222$as_echo "$ac_cv_sys_largefile_CC" >&6; }
9223 if test "$ac_cv_sys_largefile_CC" != no; then
9224 CC=$CC$ac_cv_sys_largefile_CC
9225 fi
9226
cristy8b350f62009-11-15 23:12:43 +00009227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009228$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009229if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009230 $as_echo_n "(cached) " >&6
9231else
9232 while :; do
cristy8b350f62009-11-15 23:12:43 +00009233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009234/* end confdefs.h. */
9235#include <sys/types.h>
9236 /* Check that off_t can represent 2**63 - 1 correctly.
9237 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9238 since some C++ compilers masquerading as C compilers
9239 incorrectly reject 9223372036854775807. */
9240#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9241 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9242 && LARGE_OFF_T % 2147483647 == 1)
9243 ? 1 : -1];
9244int
9245main ()
9246{
9247
9248 ;
9249 return 0;
9250}
9251_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009252if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009253 ac_cv_sys_file_offset_bits=no; break
cristy3ed852e2009-09-05 21:47:34 +00009254fi
cristy3ed852e2009-09-05 21:47:34 +00009255rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00009256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009257/* end confdefs.h. */
9258#define _FILE_OFFSET_BITS 64
9259#include <sys/types.h>
9260 /* Check that off_t can represent 2**63 - 1 correctly.
9261 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9262 since some C++ compilers masquerading as C compilers
9263 incorrectly reject 9223372036854775807. */
9264#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9265 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9266 && LARGE_OFF_T % 2147483647 == 1)
9267 ? 1 : -1];
9268int
9269main ()
9270{
9271
9272 ;
9273 return 0;
9274}
9275_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009276if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009277 ac_cv_sys_file_offset_bits=64; break
cristy3ed852e2009-09-05 21:47:34 +00009278fi
cristy3ed852e2009-09-05 21:47:34 +00009279rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9280 ac_cv_sys_file_offset_bits=unknown
9281 break
9282done
9283fi
cristy8b350f62009-11-15 23:12:43 +00009284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
cristy3ed852e2009-09-05 21:47:34 +00009285$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
9286case $ac_cv_sys_file_offset_bits in #(
9287 no | unknown) ;;
9288 *)
9289cat >>confdefs.h <<_ACEOF
9290#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
9291_ACEOF
9292;;
9293esac
9294rm -rf conftest*
9295 if test $ac_cv_sys_file_offset_bits = unknown; then
cristy8b350f62009-11-15 23:12:43 +00009296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009297$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009298if test "${ac_cv_sys_large_files+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009299 $as_echo_n "(cached) " >&6
9300else
9301 while :; do
cristy8b350f62009-11-15 23:12:43 +00009302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009303/* end confdefs.h. */
9304#include <sys/types.h>
9305 /* Check that off_t can represent 2**63 - 1 correctly.
9306 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9307 since some C++ compilers masquerading as C compilers
9308 incorrectly reject 9223372036854775807. */
9309#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9310 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9311 && LARGE_OFF_T % 2147483647 == 1)
9312 ? 1 : -1];
9313int
9314main ()
9315{
9316
9317 ;
9318 return 0;
9319}
9320_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009321if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009322 ac_cv_sys_large_files=no; break
cristy3ed852e2009-09-05 21:47:34 +00009323fi
cristy3ed852e2009-09-05 21:47:34 +00009324rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00009325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009326/* end confdefs.h. */
9327#define _LARGE_FILES 1
9328#include <sys/types.h>
9329 /* Check that off_t can represent 2**63 - 1 correctly.
9330 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9331 since some C++ compilers masquerading as C compilers
9332 incorrectly reject 9223372036854775807. */
9333#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9334 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9335 && LARGE_OFF_T % 2147483647 == 1)
9336 ? 1 : -1];
9337int
9338main ()
9339{
9340
9341 ;
9342 return 0;
9343}
9344_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009345if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009346 ac_cv_sys_large_files=1; break
cristy3ed852e2009-09-05 21:47:34 +00009347fi
cristy3ed852e2009-09-05 21:47:34 +00009348rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9349 ac_cv_sys_large_files=unknown
9350 break
9351done
9352fi
cristy8b350f62009-11-15 23:12:43 +00009353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009354$as_echo "$ac_cv_sys_large_files" >&6; }
9355case $ac_cv_sys_large_files in #(
9356 no | unknown) ;;
9357 *)
9358cat >>confdefs.h <<_ACEOF
9359#define _LARGE_FILES $ac_cv_sys_large_files
9360_ACEOF
9361;;
9362esac
9363rm -rf conftest*
9364 fi
9365fi
9366
cristy8b350f62009-11-15 23:12:43 +00009367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009368$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009369if test "${ac_cv_sys_largefile_source+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009370 $as_echo_n "(cached) " >&6
9371else
9372 while :; do
cristy8b350f62009-11-15 23:12:43 +00009373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009374/* end confdefs.h. */
9375#include <sys/types.h> /* for off_t */
9376 #include <stdio.h>
9377int
9378main ()
9379{
9380int (*fp) (FILE *, off_t, int) = fseeko;
9381 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
9382 ;
9383 return 0;
9384}
9385_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009386if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009387 ac_cv_sys_largefile_source=no; break
cristy3ed852e2009-09-05 21:47:34 +00009388fi
cristy8b350f62009-11-15 23:12:43 +00009389rm -f core conftest.err conftest.$ac_objext \
9390 conftest$ac_exeext conftest.$ac_ext
9391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009392/* end confdefs.h. */
9393#define _LARGEFILE_SOURCE 1
9394#include <sys/types.h> /* for off_t */
9395 #include <stdio.h>
9396int
9397main ()
9398{
9399int (*fp) (FILE *, off_t, int) = fseeko;
9400 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
9401 ;
9402 return 0;
9403}
9404_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009405if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009406 ac_cv_sys_largefile_source=1; break
cristy3ed852e2009-09-05 21:47:34 +00009407fi
cristy8b350f62009-11-15 23:12:43 +00009408rm -f core conftest.err conftest.$ac_objext \
9409 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009410 ac_cv_sys_largefile_source=unknown
9411 break
9412done
9413fi
cristy8b350f62009-11-15 23:12:43 +00009414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
cristy3ed852e2009-09-05 21:47:34 +00009415$as_echo "$ac_cv_sys_largefile_source" >&6; }
9416case $ac_cv_sys_largefile_source in #(
9417 no | unknown) ;;
9418 *)
9419cat >>confdefs.h <<_ACEOF
9420#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
9421_ACEOF
9422;;
9423esac
9424rm -rf conftest*
9425
9426# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
9427# in glibc 2.1.3, but that breaks too many other things.
9428# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
9429if test $ac_cv_sys_largefile_source != unknown; then
9430
cristy8b350f62009-11-15 23:12:43 +00009431$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00009432
9433fi
9434
9435LFS_CPPFLAGS=''
9436if test "$enable_largefile" != no; then
9437 if test "$ac_cv_sys_file_offset_bits" != 'no'; then
9438 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
9439 else
cristy8b350f62009-11-15 23:12:43 +00009440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
cristy3ed852e2009-09-05 21:47:34 +00009441$as_echo_n "checking for native large file support... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009442 if test "$cross_compiling" = yes; then :
9443 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00009444$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00009445as_fn_error "cannot run test program while cross compiling
9446See \`config.log' for more details." "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00009447else
cristy8b350f62009-11-15 23:12:43 +00009448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9449/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00009450#include <unistd.h>
9451 main () {
9452 exit(!(sizeof(off_t) == 8));
9453 }
9454_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009455if ac_fn_c_try_run "$LINENO"; then :
9456 ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00009457
cristy8b350f62009-11-15 23:12:43 +00009458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00009459$as_echo "yes" >&6; }
9460else
cristy8b350f62009-11-15 23:12:43 +00009461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009462$as_echo "no" >&6; }
9463fi
cristy8b350f62009-11-15 23:12:43 +00009464rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9465 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009466fi
9467
cristy3ed852e2009-09-05 21:47:34 +00009468 fi
9469 if test "$ac_cv_sys_large_files" != 'no'; then
9470 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
9471 fi
9472 if test "$ac_cv_sys_largefile_source" != 'no'; then
9473 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
9474 fi
9475fi
9476
9477
9478#
9479# Configure libtool & libltdl
9480#
9481# Configure libtool
9482enable_dlopen=yes
9483
9484
9485
9486case `pwd` in
9487 *\ * | *\ *)
cristy8b350f62009-11-15 23:12:43 +00009488 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
cristy3ed852e2009-09-05 21:47:34 +00009489$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
9490esac
9491
9492
9493
cristy18304f92009-11-22 15:48:26 +00009494macro_version='2.2.6b'
9495macro_revision='1.3017'
cristy3ed852e2009-09-05 21:47:34 +00009496
9497
9498
9499
9500
9501
9502
9503
9504
9505
9506
9507
9508
9509ltmain="$ac_aux_dir/ltmain.sh"
9510
cristy8b350f62009-11-15 23:12:43 +00009511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
cristy3ed852e2009-09-05 21:47:34 +00009512$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009513if test "${lt_cv_path_NM+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009514 $as_echo_n "(cached) " >&6
9515else
9516 if test -n "$NM"; then
9517 # Let the user override the test.
9518 lt_cv_path_NM="$NM"
9519else
9520 lt_nm_to_check="${ac_tool_prefix}nm"
9521 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
9522 lt_nm_to_check="$lt_nm_to_check nm"
9523 fi
9524 for lt_tmp_nm in $lt_nm_to_check; do
9525 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9526 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
9527 IFS="$lt_save_ifs"
9528 test -z "$ac_dir" && ac_dir=.
9529 tmp_nm="$ac_dir/$lt_tmp_nm"
9530 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
9531 # Check to see if the nm accepts a BSD-compat flag.
9532 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
9533 # nm: unknown option "B" ignored
9534 # Tru64's nm complains that /dev/null is an invalid object file
9535 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
9536 */dev/null* | *'Invalid file or object type'*)
9537 lt_cv_path_NM="$tmp_nm -B"
9538 break
9539 ;;
9540 *)
9541 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
9542 */dev/null*)
9543 lt_cv_path_NM="$tmp_nm -p"
9544 break
9545 ;;
9546 *)
9547 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
9548 continue # so that we can try to find one that supports BSD flags
9549 ;;
9550 esac
9551 ;;
9552 esac
9553 fi
9554 done
9555 IFS="$lt_save_ifs"
9556 done
9557 : ${lt_cv_path_NM=no}
9558fi
9559fi
cristy8b350f62009-11-15 23:12:43 +00009560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
cristy3ed852e2009-09-05 21:47:34 +00009561$as_echo "$lt_cv_path_NM" >&6; }
9562if test "$lt_cv_path_NM" != "no"; then
9563 NM="$lt_cv_path_NM"
9564else
9565 # Didn't find any BSD compatible name lister, look for dumpbin.
cristy18304f92009-11-22 15:48:26 +00009566 if test -n "$ac_tool_prefix"; then
9567 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
cristy3ed852e2009-09-05 21:47:34 +00009568 do
9569 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9570set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009572$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009573if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009574 $as_echo_n "(cached) " >&6
9575else
9576 if test -n "$DUMPBIN"; then
9577 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
9578else
9579as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9580for as_dir in $PATH
9581do
9582 IFS=$as_save_IFS
9583 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009584 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009585 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9586 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00009587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009588 break 2
9589 fi
9590done
cristy8b350f62009-11-15 23:12:43 +00009591 done
cristy3ed852e2009-09-05 21:47:34 +00009592IFS=$as_save_IFS
9593
9594fi
9595fi
9596DUMPBIN=$ac_cv_prog_DUMPBIN
9597if test -n "$DUMPBIN"; then
cristy8b350f62009-11-15 23:12:43 +00009598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
cristy3ed852e2009-09-05 21:47:34 +00009599$as_echo "$DUMPBIN" >&6; }
9600else
cristy8b350f62009-11-15 23:12:43 +00009601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009602$as_echo "no" >&6; }
9603fi
9604
9605
9606 test -n "$DUMPBIN" && break
9607 done
9608fi
9609if test -z "$DUMPBIN"; then
9610 ac_ct_DUMPBIN=$DUMPBIN
cristy18304f92009-11-22 15:48:26 +00009611 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
cristy3ed852e2009-09-05 21:47:34 +00009612do
9613 # Extract the first word of "$ac_prog", so it can be a program name with args.
9614set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009616$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009617if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009618 $as_echo_n "(cached) " >&6
9619else
9620 if test -n "$ac_ct_DUMPBIN"; then
9621 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
9622else
9623as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9624for as_dir in $PATH
9625do
9626 IFS=$as_save_IFS
9627 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009628 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9630 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00009631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009632 break 2
9633 fi
9634done
cristy8b350f62009-11-15 23:12:43 +00009635 done
cristy3ed852e2009-09-05 21:47:34 +00009636IFS=$as_save_IFS
9637
9638fi
9639fi
9640ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
9641if test -n "$ac_ct_DUMPBIN"; then
cristy8b350f62009-11-15 23:12:43 +00009642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
cristy3ed852e2009-09-05 21:47:34 +00009643$as_echo "$ac_ct_DUMPBIN" >&6; }
9644else
cristy8b350f62009-11-15 23:12:43 +00009645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009646$as_echo "no" >&6; }
9647fi
9648
9649
9650 test -n "$ac_ct_DUMPBIN" && break
9651done
9652
9653 if test "x$ac_ct_DUMPBIN" = x; then
9654 DUMPBIN=":"
9655 else
9656 case $cross_compiling:$ac_tool_warned in
9657yes:)
cristy8b350f62009-11-15 23:12:43 +00009658{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00009659$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9660ac_tool_warned=yes ;;
9661esac
9662 DUMPBIN=$ac_ct_DUMPBIN
9663 fi
9664fi
9665
9666
9667 if test "$DUMPBIN" != ":"; then
9668 NM="$DUMPBIN"
9669 fi
9670fi
9671test -z "$NM" && NM=nm
9672
9673
9674
9675
9676
9677
cristy8b350f62009-11-15 23:12:43 +00009678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
cristy3ed852e2009-09-05 21:47:34 +00009679$as_echo_n "checking the name lister ($NM) interface... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009680if test "${lt_cv_nm_interface+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009681 $as_echo_n "(cached) " >&6
9682else
9683 lt_cv_nm_interface="BSD nm"
9684 echo "int some_variable = 0;" > conftest.$ac_ext
cristy92703d82010-04-26 00:18:18 +00009685 (eval echo "\"\$as_me:9685: $ac_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +00009686 (eval "$ac_compile" 2>conftest.err)
9687 cat conftest.err >&5
cristy92703d82010-04-26 00:18:18 +00009688 (eval echo "\"\$as_me:9688: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +00009689 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
9690 cat conftest.err >&5
cristy92703d82010-04-26 00:18:18 +00009691 (eval echo "\"\$as_me:9691: output\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +00009692 cat conftest.out >&5
9693 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
9694 lt_cv_nm_interface="MS dumpbin"
9695 fi
9696 rm -f conftest*
9697fi
cristy8b350f62009-11-15 23:12:43 +00009698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
cristy3ed852e2009-09-05 21:47:34 +00009699$as_echo "$lt_cv_nm_interface" >&6; }
9700
9701# find the maximum length of command line arguments
cristy8b350f62009-11-15 23:12:43 +00009702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
cristy3ed852e2009-09-05 21:47:34 +00009703$as_echo_n "checking the maximum length of command line arguments... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009704if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009705 $as_echo_n "(cached) " >&6
9706else
9707 i=0
9708 teststring="ABCD"
9709
9710 case $build_os in
9711 msdosdjgpp*)
9712 # On DJGPP, this test can blow up pretty badly due to problems in libc
9713 # (any single argument exceeding 2000 bytes causes a buffer overrun
9714 # during glob expansion). Even if it were fixed, the result of this
9715 # check would be larger than it should be.
9716 lt_cv_sys_max_cmd_len=12288; # 12K is about right
9717 ;;
9718
9719 gnu*)
9720 # Under GNU Hurd, this test is not required because there is
9721 # no limit to the length of command line arguments.
9722 # Libtool will interpret -1 as no limit whatsoever
9723 lt_cv_sys_max_cmd_len=-1;
9724 ;;
9725
9726 cygwin* | mingw* | cegcc*)
9727 # On Win9x/ME, this test blows up -- it succeeds, but takes
9728 # about 5 minutes as the teststring grows exponentially.
9729 # Worse, since 9x/ME are not pre-emptively multitasking,
9730 # you end up with a "frozen" computer, even though with patience
9731 # the test eventually succeeds (with a max line length of 256k).
9732 # Instead, let's just punt: use the minimum linelength reported by
9733 # all of the supported platforms: 8192 (on NT/2K/XP).
9734 lt_cv_sys_max_cmd_len=8192;
9735 ;;
9736
9737 amigaos*)
9738 # On AmigaOS with pdksh, this test takes hours, literally.
9739 # So we just punt and use a minimum line length of 8192.
9740 lt_cv_sys_max_cmd_len=8192;
9741 ;;
9742
9743 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
9744 # This has been around since 386BSD, at least. Likely further.
9745 if test -x /sbin/sysctl; then
9746 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
9747 elif test -x /usr/sbin/sysctl; then
9748 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
9749 else
9750 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
9751 fi
9752 # And add a safety zone
9753 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9754 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9755 ;;
9756
9757 interix*)
9758 # We know the value 262144 and hardcode it with a safety zone (like BSD)
9759 lt_cv_sys_max_cmd_len=196608
9760 ;;
9761
9762 osf*)
9763 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
9764 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
9765 # nice to cause kernel panics so lets avoid the loop below.
9766 # First set a reasonable default.
9767 lt_cv_sys_max_cmd_len=16384
9768 #
9769 if test -x /sbin/sysconfig; then
9770 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
9771 *1*) lt_cv_sys_max_cmd_len=-1 ;;
9772 esac
9773 fi
9774 ;;
9775 sco3.2v5*)
9776 lt_cv_sys_max_cmd_len=102400
9777 ;;
9778 sysv5* | sco5v6* | sysv4.2uw2*)
9779 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
9780 if test -n "$kargmax"; then
9781 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
9782 else
9783 lt_cv_sys_max_cmd_len=32768
9784 fi
9785 ;;
9786 *)
9787 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
9788 if test -n "$lt_cv_sys_max_cmd_len"; then
9789 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9790 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9791 else
9792 # Make teststring a little bigger before we do anything with it.
9793 # a 1K string should be a reasonable start.
9794 for i in 1 2 3 4 5 6 7 8 ; do
9795 teststring=$teststring$teststring
9796 done
9797 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
9798 # If test is not a shell built-in, we'll probably end up computing a
9799 # maximum length that is only half of the actual maximum length, but
9800 # we can't tell.
cristy18304f92009-11-22 15:48:26 +00009801 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
9802 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
cristy3ed852e2009-09-05 21:47:34 +00009803 test $i != 17 # 1/2 MB should be enough
9804 do
9805 i=`expr $i + 1`
9806 teststring=$teststring$teststring
9807 done
9808 # Only check the string length outside the loop.
9809 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
9810 teststring=
9811 # Add a significant safety factor because C++ compilers can tack on
9812 # massive amounts of additional arguments before passing them to the
9813 # linker. It appears as though 1/2 is a usable value.
9814 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
9815 fi
9816 ;;
9817 esac
9818
9819fi
9820
9821if test -n $lt_cv_sys_max_cmd_len ; then
cristy8b350f62009-11-15 23:12:43 +00009822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
cristy3ed852e2009-09-05 21:47:34 +00009823$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
9824else
cristy8b350f62009-11-15 23:12:43 +00009825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
cristy3ed852e2009-09-05 21:47:34 +00009826$as_echo "none" >&6; }
9827fi
9828max_cmd_len=$lt_cv_sys_max_cmd_len
9829
9830
9831
9832
9833
9834
9835: ${CP="cp -f"}
9836: ${MV="mv -f"}
9837: ${RM="rm -f"}
9838
cristy8b350f62009-11-15 23:12:43 +00009839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
cristy3ed852e2009-09-05 21:47:34 +00009840$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
9841# Try some XSI features
9842xsi_shell=no
9843( _lt_dummy="a/b/c"
9844 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
9845 = c,a/b,, \
9846 && eval 'test $(( 1 + 1 )) -eq 2 \
9847 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
9848 && xsi_shell=yes
cristy8b350f62009-11-15 23:12:43 +00009849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
cristy3ed852e2009-09-05 21:47:34 +00009850$as_echo "$xsi_shell" >&6; }
9851
9852
cristy8b350f62009-11-15 23:12:43 +00009853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
cristy3ed852e2009-09-05 21:47:34 +00009854$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
9855lt_shell_append=no
9856( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
9857 >/dev/null 2>&1 \
9858 && lt_shell_append=yes
cristy8b350f62009-11-15 23:12:43 +00009859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
cristy3ed852e2009-09-05 21:47:34 +00009860$as_echo "$lt_shell_append" >&6; }
9861
9862
9863if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9864 lt_unset=unset
9865else
9866 lt_unset=false
9867fi
9868
9869
9870
9871
9872
9873# test EBCDIC or ASCII
9874case `echo X|tr X '\101'` in
9875 A) # ASCII based system
9876 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
9877 lt_SP2NL='tr \040 \012'
9878 lt_NL2SP='tr \015\012 \040\040'
9879 ;;
9880 *) # EBCDIC based system
9881 lt_SP2NL='tr \100 \n'
9882 lt_NL2SP='tr \r\n \100\100'
9883 ;;
9884esac
9885
9886
9887
9888
9889
9890
9891
9892
9893
cristy8b350f62009-11-15 23:12:43 +00009894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009895$as_echo_n "checking for $LD option to reload object files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009896if test "${lt_cv_ld_reload_flag+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009897 $as_echo_n "(cached) " >&6
9898else
9899 lt_cv_ld_reload_flag='-r'
9900fi
cristy8b350f62009-11-15 23:12:43 +00009901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
cristy3ed852e2009-09-05 21:47:34 +00009902$as_echo "$lt_cv_ld_reload_flag" >&6; }
9903reload_flag=$lt_cv_ld_reload_flag
9904case $reload_flag in
9905"" | " "*) ;;
9906*) reload_flag=" $reload_flag" ;;
9907esac
9908reload_cmds='$LD$reload_flag -o $output$reload_objs'
9909case $host_os in
9910 darwin*)
9911 if test "$GCC" = yes; then
9912 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
9913 else
9914 reload_cmds='$LD$reload_flag -o $output$reload_objs'
9915 fi
9916 ;;
9917esac
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927if test -n "$ac_tool_prefix"; then
9928 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9929set dummy ${ac_tool_prefix}objdump; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009931$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009932if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009933 $as_echo_n "(cached) " >&6
9934else
9935 if test -n "$OBJDUMP"; then
9936 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9937else
9938as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9939for as_dir in $PATH
9940do
9941 IFS=$as_save_IFS
9942 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009943 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009944 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9945 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
cristy8b350f62009-11-15 23:12:43 +00009946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009947 break 2
9948 fi
9949done
cristy8b350f62009-11-15 23:12:43 +00009950 done
cristy3ed852e2009-09-05 21:47:34 +00009951IFS=$as_save_IFS
9952
9953fi
9954fi
9955OBJDUMP=$ac_cv_prog_OBJDUMP
9956if test -n "$OBJDUMP"; then
cristy8b350f62009-11-15 23:12:43 +00009957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00009958$as_echo "$OBJDUMP" >&6; }
9959else
cristy8b350f62009-11-15 23:12:43 +00009960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009961$as_echo "no" >&6; }
9962fi
9963
9964
9965fi
9966if test -z "$ac_cv_prog_OBJDUMP"; then
9967 ac_ct_OBJDUMP=$OBJDUMP
9968 # Extract the first word of "objdump", so it can be a program name with args.
9969set dummy objdump; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009971$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009972if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009973 $as_echo_n "(cached) " >&6
9974else
9975 if test -n "$ac_ct_OBJDUMP"; then
9976 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9977else
9978as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9979for as_dir in $PATH
9980do
9981 IFS=$as_save_IFS
9982 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009983 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9985 ac_cv_prog_ac_ct_OBJDUMP="objdump"
cristy8b350f62009-11-15 23:12:43 +00009986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009987 break 2
9988 fi
9989done
cristy8b350f62009-11-15 23:12:43 +00009990 done
cristy3ed852e2009-09-05 21:47:34 +00009991IFS=$as_save_IFS
9992
9993fi
9994fi
9995ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9996if test -n "$ac_ct_OBJDUMP"; then
cristy8b350f62009-11-15 23:12:43 +00009997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00009998$as_echo "$ac_ct_OBJDUMP" >&6; }
9999else
cristy8b350f62009-11-15 23:12:43 +000010000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010001$as_echo "no" >&6; }
10002fi
10003
10004 if test "x$ac_ct_OBJDUMP" = x; then
10005 OBJDUMP="false"
10006 else
10007 case $cross_compiling:$ac_tool_warned in
10008yes:)
cristy8b350f62009-11-15 23:12:43 +000010009{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000010010$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10011ac_tool_warned=yes ;;
10012esac
10013 OBJDUMP=$ac_ct_OBJDUMP
10014 fi
10015else
10016 OBJDUMP="$ac_cv_prog_OBJDUMP"
10017fi
10018
10019test -z "$OBJDUMP" && OBJDUMP=objdump
10020
10021
10022
10023
10024
10025
cristy8b350f62009-11-15 23:12:43 +000010026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000010027$as_echo_n "checking how to recognize dependent libraries... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010028if test "${lt_cv_deplibs_check_method+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010029 $as_echo_n "(cached) " >&6
10030else
10031 lt_cv_file_magic_cmd='$MAGIC_CMD'
10032lt_cv_file_magic_test_file=
10033lt_cv_deplibs_check_method='unknown'
10034# Need to set the preceding variable on all platforms that support
10035# interlibrary dependencies.
10036# 'none' -- dependencies not supported.
10037# `unknown' -- same as none, but documents that we really don't know.
10038# 'pass_all' -- all dependencies passed with no checks.
10039# 'test_compile' -- check by making test program.
10040# 'file_magic [[regex]]' -- check by looking for files in library path
10041# which responds to the $file_magic_cmd with a given extended regex.
10042# If you have `file' or equivalent on your system and you're not sure
10043# whether `pass_all' will *always* work, you probably want this one.
10044
10045case $host_os in
10046aix[4-9]*)
10047 lt_cv_deplibs_check_method=pass_all
10048 ;;
10049
10050beos*)
10051 lt_cv_deplibs_check_method=pass_all
10052 ;;
10053
10054bsdi[45]*)
10055 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10056 lt_cv_file_magic_cmd='/usr/bin/file -L'
10057 lt_cv_file_magic_test_file=/shlib/libc.so
10058 ;;
10059
10060cygwin*)
10061 # func_win32_libid is a shell function defined in ltmain.sh
10062 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10063 lt_cv_file_magic_cmd='func_win32_libid'
10064 ;;
10065
10066mingw* | pw32*)
10067 # Base MSYS/MinGW do not provide the 'file' command needed by
10068 # func_win32_libid shell function, so use a weaker test based on 'objdump',
10069 # unless we find 'file', for example because we are cross-compiling.
cristy18304f92009-11-22 15:48:26 +000010070 if ( file / ) >/dev/null 2>&1; then
cristy3ed852e2009-09-05 21:47:34 +000010071 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10072 lt_cv_file_magic_cmd='func_win32_libid'
10073 else
10074 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
10075 lt_cv_file_magic_cmd='$OBJDUMP -f'
10076 fi
10077 ;;
10078
cristy18304f92009-11-22 15:48:26 +000010079cegcc)
cristy3ed852e2009-09-05 21:47:34 +000010080 # use the weaker test based on 'objdump'. See mingw*.
10081 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
10082 lt_cv_file_magic_cmd='$OBJDUMP -f'
10083 ;;
10084
10085darwin* | rhapsody*)
10086 lt_cv_deplibs_check_method=pass_all
10087 ;;
10088
10089freebsd* | dragonfly*)
10090 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10091 case $host_cpu in
10092 i*86 )
10093 # Not sure whether the presence of OpenBSD here was a mistake.
10094 # Let's accept both of them until this is cleared up.
10095 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
10096 lt_cv_file_magic_cmd=/usr/bin/file
10097 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10098 ;;
10099 esac
10100 else
10101 lt_cv_deplibs_check_method=pass_all
10102 fi
10103 ;;
10104
10105gnu*)
10106 lt_cv_deplibs_check_method=pass_all
10107 ;;
10108
10109hpux10.20* | hpux11*)
10110 lt_cv_file_magic_cmd=/usr/bin/file
10111 case $host_cpu in
10112 ia64*)
10113 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10114 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10115 ;;
10116 hppa*64*)
cristy18304f92009-11-22 15:48:26 +000010117 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 +000010118 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10119 ;;
10120 *)
cristy18304f92009-11-22 15:48:26 +000010121 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 +000010122 lt_cv_file_magic_test_file=/usr/lib/libc.sl
10123 ;;
10124 esac
10125 ;;
10126
10127interix[3-9]*)
10128 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
10129 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
10130 ;;
10131
10132irix5* | irix6* | nonstopux*)
10133 case $LD in
10134 *-32|*"-32 ") libmagic=32-bit;;
10135 *-n32|*"-n32 ") libmagic=N32;;
10136 *-64|*"-64 ") libmagic=64-bit;;
10137 *) libmagic=never-match;;
10138 esac
10139 lt_cv_deplibs_check_method=pass_all
10140 ;;
10141
10142# This must be Linux ELF.
cristy18304f92009-11-22 15:48:26 +000010143linux* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000010144 lt_cv_deplibs_check_method=pass_all
10145 ;;
10146
10147netbsd*)
10148 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10149 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10150 else
10151 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10152 fi
10153 ;;
10154
10155newos6*)
10156 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10157 lt_cv_file_magic_cmd=/usr/bin/file
10158 lt_cv_file_magic_test_file=/usr/lib/libnls.so
10159 ;;
10160
10161*nto* | *qnx*)
10162 lt_cv_deplibs_check_method=pass_all
10163 ;;
10164
10165openbsd*)
10166 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10167 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10168 else
10169 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10170 fi
10171 ;;
10172
10173osf3* | osf4* | osf5*)
10174 lt_cv_deplibs_check_method=pass_all
10175 ;;
10176
10177rdos*)
10178 lt_cv_deplibs_check_method=pass_all
10179 ;;
10180
10181solaris*)
10182 lt_cv_deplibs_check_method=pass_all
10183 ;;
10184
10185sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10186 lt_cv_deplibs_check_method=pass_all
10187 ;;
10188
10189sysv4 | sysv4.3*)
10190 case $host_vendor in
10191 motorola)
10192 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]'
10193 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10194 ;;
10195 ncr)
10196 lt_cv_deplibs_check_method=pass_all
10197 ;;
10198 sequent)
10199 lt_cv_file_magic_cmd='/bin/file'
10200 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10201 ;;
10202 sni)
10203 lt_cv_file_magic_cmd='/bin/file'
10204 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10205 lt_cv_file_magic_test_file=/lib/libc.so
10206 ;;
10207 siemens)
10208 lt_cv_deplibs_check_method=pass_all
10209 ;;
10210 pc)
10211 lt_cv_deplibs_check_method=pass_all
10212 ;;
10213 esac
10214 ;;
10215
10216tpf*)
10217 lt_cv_deplibs_check_method=pass_all
10218 ;;
10219esac
10220
10221fi
cristy8b350f62009-11-15 23:12:43 +000010222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
cristy3ed852e2009-09-05 21:47:34 +000010223$as_echo "$lt_cv_deplibs_check_method" >&6; }
10224file_magic_cmd=$lt_cv_file_magic_cmd
10225deplibs_check_method=$lt_cv_deplibs_check_method
10226test -z "$deplibs_check_method" && deplibs_check_method=unknown
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239if test -n "$ac_tool_prefix"; then
10240 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
10241set dummy ${ac_tool_prefix}ar; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010243$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010244if test "${ac_cv_prog_AR+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010245 $as_echo_n "(cached) " >&6
10246else
10247 if test -n "$AR"; then
10248 ac_cv_prog_AR="$AR" # Let the user override the test.
10249else
10250as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10251for as_dir in $PATH
10252do
10253 IFS=$as_save_IFS
10254 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010255 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10257 ac_cv_prog_AR="${ac_tool_prefix}ar"
cristy8b350f62009-11-15 23:12:43 +000010258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010259 break 2
10260 fi
10261done
cristy8b350f62009-11-15 23:12:43 +000010262 done
cristy3ed852e2009-09-05 21:47:34 +000010263IFS=$as_save_IFS
10264
10265fi
10266fi
10267AR=$ac_cv_prog_AR
10268if test -n "$AR"; then
cristy8b350f62009-11-15 23:12:43 +000010269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
cristy3ed852e2009-09-05 21:47:34 +000010270$as_echo "$AR" >&6; }
10271else
cristy8b350f62009-11-15 23:12:43 +000010272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010273$as_echo "no" >&6; }
10274fi
10275
10276
10277fi
10278if test -z "$ac_cv_prog_AR"; then
10279 ac_ct_AR=$AR
10280 # Extract the first word of "ar", so it can be a program name with args.
10281set dummy ar; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010283$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010284if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010285 $as_echo_n "(cached) " >&6
10286else
10287 if test -n "$ac_ct_AR"; then
10288 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10289else
10290as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10291for as_dir in $PATH
10292do
10293 IFS=$as_save_IFS
10294 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010295 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10297 ac_cv_prog_ac_ct_AR="ar"
cristy8b350f62009-11-15 23:12:43 +000010298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010299 break 2
10300 fi
10301done
cristy8b350f62009-11-15 23:12:43 +000010302 done
cristy3ed852e2009-09-05 21:47:34 +000010303IFS=$as_save_IFS
10304
10305fi
10306fi
10307ac_ct_AR=$ac_cv_prog_ac_ct_AR
10308if test -n "$ac_ct_AR"; then
cristy8b350f62009-11-15 23:12:43 +000010309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
cristy3ed852e2009-09-05 21:47:34 +000010310$as_echo "$ac_ct_AR" >&6; }
10311else
cristy8b350f62009-11-15 23:12:43 +000010312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010313$as_echo "no" >&6; }
10314fi
10315
10316 if test "x$ac_ct_AR" = x; then
10317 AR="false"
10318 else
10319 case $cross_compiling:$ac_tool_warned in
10320yes:)
cristy8b350f62009-11-15 23:12:43 +000010321{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000010322$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10323ac_tool_warned=yes ;;
10324esac
10325 AR=$ac_ct_AR
10326 fi
10327else
10328 AR="$ac_cv_prog_AR"
10329fi
10330
10331test -z "$AR" && AR=ar
10332test -z "$AR_FLAGS" && AR_FLAGS=cru
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344if test -n "$ac_tool_prefix"; then
10345 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10346set dummy ${ac_tool_prefix}strip; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010348$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010349if test "${ac_cv_prog_STRIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010350 $as_echo_n "(cached) " >&6
10351else
10352 if test -n "$STRIP"; then
10353 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10354else
10355as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10356for as_dir in $PATH
10357do
10358 IFS=$as_save_IFS
10359 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010360 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10362 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
cristy8b350f62009-11-15 23:12:43 +000010363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010364 break 2
10365 fi
10366done
cristy8b350f62009-11-15 23:12:43 +000010367 done
cristy3ed852e2009-09-05 21:47:34 +000010368IFS=$as_save_IFS
10369
10370fi
10371fi
10372STRIP=$ac_cv_prog_STRIP
10373if test -n "$STRIP"; then
cristy8b350f62009-11-15 23:12:43 +000010374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000010375$as_echo "$STRIP" >&6; }
10376else
cristy8b350f62009-11-15 23:12:43 +000010377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010378$as_echo "no" >&6; }
10379fi
10380
10381
10382fi
10383if test -z "$ac_cv_prog_STRIP"; then
10384 ac_ct_STRIP=$STRIP
10385 # Extract the first word of "strip", so it can be a program name with args.
10386set dummy strip; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010388$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010389if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010390 $as_echo_n "(cached) " >&6
10391else
10392 if test -n "$ac_ct_STRIP"; then
10393 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10394else
10395as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10396for as_dir in $PATH
10397do
10398 IFS=$as_save_IFS
10399 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010400 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10402 ac_cv_prog_ac_ct_STRIP="strip"
cristy8b350f62009-11-15 23:12:43 +000010403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010404 break 2
10405 fi
10406done
cristy8b350f62009-11-15 23:12:43 +000010407 done
cristy3ed852e2009-09-05 21:47:34 +000010408IFS=$as_save_IFS
10409
10410fi
10411fi
10412ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10413if test -n "$ac_ct_STRIP"; then
cristy8b350f62009-11-15 23:12:43 +000010414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000010415$as_echo "$ac_ct_STRIP" >&6; }
10416else
cristy8b350f62009-11-15 23:12:43 +000010417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010418$as_echo "no" >&6; }
10419fi
10420
10421 if test "x$ac_ct_STRIP" = x; then
10422 STRIP=":"
10423 else
10424 case $cross_compiling:$ac_tool_warned in
10425yes:)
cristy8b350f62009-11-15 23:12:43 +000010426{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000010427$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10428ac_tool_warned=yes ;;
10429esac
10430 STRIP=$ac_ct_STRIP
10431 fi
10432else
10433 STRIP="$ac_cv_prog_STRIP"
10434fi
10435
10436test -z "$STRIP" && STRIP=:
10437
10438
10439
10440
10441
10442
10443if test -n "$ac_tool_prefix"; then
10444 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10445set dummy ${ac_tool_prefix}ranlib; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010447$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010448if test "${ac_cv_prog_RANLIB+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010449 $as_echo_n "(cached) " >&6
10450else
10451 if test -n "$RANLIB"; then
10452 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10453else
10454as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10455for as_dir in $PATH
10456do
10457 IFS=$as_save_IFS
10458 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010459 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010460 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10461 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
cristy8b350f62009-11-15 23:12:43 +000010462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010463 break 2
10464 fi
10465done
cristy8b350f62009-11-15 23:12:43 +000010466 done
cristy3ed852e2009-09-05 21:47:34 +000010467IFS=$as_save_IFS
10468
10469fi
10470fi
10471RANLIB=$ac_cv_prog_RANLIB
10472if test -n "$RANLIB"; then
cristy8b350f62009-11-15 23:12:43 +000010473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000010474$as_echo "$RANLIB" >&6; }
10475else
cristy8b350f62009-11-15 23:12:43 +000010476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010477$as_echo "no" >&6; }
10478fi
10479
10480
10481fi
10482if test -z "$ac_cv_prog_RANLIB"; then
10483 ac_ct_RANLIB=$RANLIB
10484 # Extract the first word of "ranlib", so it can be a program name with args.
10485set dummy ranlib; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010487$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010488if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010489 $as_echo_n "(cached) " >&6
10490else
10491 if test -n "$ac_ct_RANLIB"; then
10492 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10493else
10494as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10495for as_dir in $PATH
10496do
10497 IFS=$as_save_IFS
10498 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010499 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010500 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10501 ac_cv_prog_ac_ct_RANLIB="ranlib"
cristy8b350f62009-11-15 23:12:43 +000010502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010503 break 2
10504 fi
10505done
cristy8b350f62009-11-15 23:12:43 +000010506 done
cristy3ed852e2009-09-05 21:47:34 +000010507IFS=$as_save_IFS
10508
10509fi
10510fi
10511ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10512if test -n "$ac_ct_RANLIB"; then
cristy8b350f62009-11-15 23:12:43 +000010513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000010514$as_echo "$ac_ct_RANLIB" >&6; }
10515else
cristy8b350f62009-11-15 23:12:43 +000010516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010517$as_echo "no" >&6; }
10518fi
10519
10520 if test "x$ac_ct_RANLIB" = x; then
10521 RANLIB=":"
10522 else
10523 case $cross_compiling:$ac_tool_warned in
10524yes:)
cristy8b350f62009-11-15 23:12:43 +000010525{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000010526$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10527ac_tool_warned=yes ;;
10528esac
10529 RANLIB=$ac_ct_RANLIB
10530 fi
10531else
10532 RANLIB="$ac_cv_prog_RANLIB"
10533fi
10534
10535test -z "$RANLIB" && RANLIB=:
10536
10537
10538
10539
10540
10541
10542# Determine commands to create old-style static archives.
10543old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
10544old_postinstall_cmds='chmod 644 $oldlib'
10545old_postuninstall_cmds=
10546
10547if test -n "$RANLIB"; then
10548 case $host_os in
10549 openbsd*)
10550 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
10551 ;;
10552 *)
10553 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
10554 ;;
10555 esac
10556 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
10557fi
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592# If no C compiler was specified, use CC.
10593LTCC=${LTCC-"$CC"}
10594
10595# If no C compiler flags were specified, use CFLAGS.
10596LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10597
10598# Allow CC to be a program name with arguments.
10599compiler=$CC
10600
10601
10602# Check for command to grab the raw symbol name followed by C symbol from nm.
cristy8b350f62009-11-15 23:12:43 +000010603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
cristy3ed852e2009-09-05 21:47:34 +000010604$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010605if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010606 $as_echo_n "(cached) " >&6
10607else
10608
10609# These are sane defaults that work on at least a few old systems.
10610# [They come from Ultrix. What could be older than Ultrix?!! ;)]
10611
10612# Character class describing NM global symbol codes.
10613symcode='[BCDEGRST]'
10614
10615# Regexp to match symbols that can be accessed directly from C.
10616sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10617
10618# Define system-specific variables.
10619case $host_os in
10620aix*)
10621 symcode='[BCDT]'
10622 ;;
10623cygwin* | mingw* | pw32* | cegcc*)
10624 symcode='[ABCDGISTW]'
10625 ;;
10626hpux*)
10627 if test "$host_cpu" = ia64; then
10628 symcode='[ABCDEGRST]'
10629 fi
10630 ;;
10631irix* | nonstopux*)
10632 symcode='[BCDEGRST]'
10633 ;;
10634osf*)
10635 symcode='[BCDEGQRST]'
10636 ;;
10637solaris*)
10638 symcode='[BDRT]'
10639 ;;
10640sco3.2v5*)
10641 symcode='[DT]'
10642 ;;
10643sysv4.2uw2*)
10644 symcode='[DT]'
10645 ;;
10646sysv5* | sco5v6* | unixware* | OpenUNIX*)
10647 symcode='[ABDT]'
10648 ;;
10649sysv4)
10650 symcode='[DFNSTU]'
10651 ;;
10652esac
10653
10654# If we're using GNU nm, then use its standard symbol codes.
10655case `$NM -V 2>&1` in
10656*GNU* | *'with BFD'*)
10657 symcode='[ABCDGIRSTW]' ;;
10658esac
10659
10660# Transform an extracted symbol line into a proper C declaration.
10661# Some systems (esp. on ia64) link data and code symbols differently,
10662# so use this general approach.
10663lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10664
10665# Transform an extracted symbol line into symbol name and symbol address
10666lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
10667lt_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'"
10668
10669# Handle CRLF in mingw tool chain
10670opt_cr=
10671case $build_os in
10672mingw*)
10673 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10674 ;;
10675esac
10676
10677# Try without a prefix underscore, then with it.
10678for ac_symprfx in "" "_"; do
10679
10680 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10681 symxfrm="\\1 $ac_symprfx\\2 \\2"
10682
10683 # Write the raw and C identifiers.
10684 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
10685 # Fake it for dumpbin and say T for any non-static function
10686 # and D for any global variable.
10687 # Also find C++ and __fastcall symbols from MSVC++,
10688 # which start with @ or ?.
10689 lt_cv_sys_global_symbol_pipe="$AWK '"\
10690" {last_section=section; section=\$ 3};"\
10691" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
10692" \$ 0!~/External *\|/{next};"\
10693" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
10694" {if(hide[section]) next};"\
10695" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
10696" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
10697" s[1]~/^[@?]/{print s[1], s[1]; next};"\
10698" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
10699" ' prfx=^$ac_symprfx"
10700 else
10701 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10702 fi
10703
10704 # Check to see that the pipe works correctly.
10705 pipe_works=no
10706
10707 rm -f conftest*
10708 cat > conftest.$ac_ext <<_LT_EOF
10709#ifdef __cplusplus
10710extern "C" {
10711#endif
10712char nm_test_var;
10713void nm_test_func(void);
10714void nm_test_func(void){}
10715#ifdef __cplusplus
10716}
10717#endif
10718int main(){nm_test_var='a';nm_test_func();return(0);}
10719_LT_EOF
10720
cristy8b350f62009-11-15 23:12:43 +000010721 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000010722 (eval $ac_compile) 2>&5
10723 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000010724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10725 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000010726 # Now try to grab the symbols.
10727 nlist=conftest.nm
cristy18304f92009-11-22 15:48:26 +000010728 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
10729 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
cristy3ed852e2009-09-05 21:47:34 +000010730 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000010731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10732 test $ac_status = 0; } && test -s "$nlist"; then
cristy3ed852e2009-09-05 21:47:34 +000010733 # Try sorting and uniquifying the output.
10734 if sort "$nlist" | uniq > "$nlist"T; then
10735 mv -f "$nlist"T "$nlist"
10736 else
10737 rm -f "$nlist"T
10738 fi
10739
10740 # Make sure that we snagged all the symbols we need.
10741 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
10742 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
10743 cat <<_LT_EOF > conftest.$ac_ext
10744#ifdef __cplusplus
10745extern "C" {
10746#endif
10747
10748_LT_EOF
10749 # Now generate the symbol file.
10750 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
10751
10752 cat <<_LT_EOF >> conftest.$ac_ext
10753
10754/* The mapping between symbol names and symbols. */
10755const struct {
10756 const char *name;
10757 void *address;
10758}
10759lt__PROGRAM__LTX_preloaded_symbols[] =
10760{
10761 { "@PROGRAM@", (void *) 0 },
10762_LT_EOF
10763 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
10764 cat <<\_LT_EOF >> conftest.$ac_ext
10765 {0, (void *) 0}
10766};
10767
10768/* This works around a problem in FreeBSD linker */
10769#ifdef FREEBSD_WORKAROUND
10770static const void *lt_preloaded_setup() {
10771 return lt__PROGRAM__LTX_preloaded_symbols;
10772}
10773#endif
10774
10775#ifdef __cplusplus
10776}
10777#endif
10778_LT_EOF
10779 # Now try linking the two files.
10780 mv conftest.$ac_objext conftstm.$ac_objext
10781 lt_save_LIBS="$LIBS"
10782 lt_save_CFLAGS="$CFLAGS"
10783 LIBS="conftstm.$ac_objext"
10784 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
cristy8b350f62009-11-15 23:12:43 +000010785 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000010786 (eval $ac_link) 2>&5
10787 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000010788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10789 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
cristy3ed852e2009-09-05 21:47:34 +000010790 pipe_works=yes
10791 fi
10792 LIBS="$lt_save_LIBS"
10793 CFLAGS="$lt_save_CFLAGS"
10794 else
10795 echo "cannot find nm_test_func in $nlist" >&5
10796 fi
10797 else
10798 echo "cannot find nm_test_var in $nlist" >&5
10799 fi
10800 else
10801 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10802 fi
10803 else
10804 echo "$progname: failed program was:" >&5
10805 cat conftest.$ac_ext >&5
10806 fi
10807 rm -rf conftest* conftst*
10808
10809 # Do not use the global_symbol_pipe unless it works.
10810 if test "$pipe_works" = yes; then
10811 break
10812 else
10813 lt_cv_sys_global_symbol_pipe=
10814 fi
10815done
10816
10817fi
10818
10819if test -z "$lt_cv_sys_global_symbol_pipe"; then
10820 lt_cv_sys_global_symbol_to_cdecl=
10821fi
10822if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
cristy8b350f62009-11-15 23:12:43 +000010823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
cristy3ed852e2009-09-05 21:47:34 +000010824$as_echo "failed" >&6; }
10825else
cristy8b350f62009-11-15 23:12:43 +000010826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000010827$as_echo "ok" >&6; }
10828fi
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851# Check whether --enable-libtool-lock was given.
cristy8b350f62009-11-15 23:12:43 +000010852if test "${enable_libtool_lock+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010853 enableval=$enable_libtool_lock;
10854fi
10855
10856test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10857
10858# Some flags need to be propagated to the compiler or linker for good
10859# libtool support.
10860case $host in
10861ia64-*-hpux*)
10862 # Find out which ABI we are using.
10863 echo 'int i;' > conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010864 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000010865 (eval $ac_compile) 2>&5
10866 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000010867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10868 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000010869 case `/usr/bin/file conftest.$ac_objext` in
10870 *ELF-32*)
10871 HPUX_IA64_MODE="32"
10872 ;;
10873 *ELF-64*)
10874 HPUX_IA64_MODE="64"
10875 ;;
10876 esac
10877 fi
10878 rm -rf conftest*
10879 ;;
10880*-*-irix6*)
10881 # Find out which ABI we are using.
cristy92703d82010-04-26 00:18:18 +000010882 echo '#line 10882 "configure"' > conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010883 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000010884 (eval $ac_compile) 2>&5
10885 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000010886 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10887 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000010888 if test "$lt_cv_prog_gnu_ld" = yes; then
10889 case `/usr/bin/file conftest.$ac_objext` in
10890 *32-bit*)
10891 LD="${LD-ld} -melf32bsmip"
10892 ;;
10893 *N32*)
10894 LD="${LD-ld} -melf32bmipn32"
10895 ;;
10896 *64-bit*)
10897 LD="${LD-ld} -melf64bmip"
10898 ;;
10899 esac
10900 else
10901 case `/usr/bin/file conftest.$ac_objext` in
10902 *32-bit*)
10903 LD="${LD-ld} -32"
10904 ;;
10905 *N32*)
10906 LD="${LD-ld} -n32"
10907 ;;
10908 *64-bit*)
10909 LD="${LD-ld} -64"
10910 ;;
10911 esac
10912 fi
10913 fi
10914 rm -rf conftest*
10915 ;;
10916
10917x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
10918s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
10919 # Find out which ABI we are using.
10920 echo 'int i;' > conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010921 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000010922 (eval $ac_compile) 2>&5
10923 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000010924 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10925 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000010926 case `/usr/bin/file conftest.o` in
10927 *32-bit*)
10928 case $host in
10929 x86_64-*kfreebsd*-gnu)
10930 LD="${LD-ld} -m elf_i386_fbsd"
10931 ;;
10932 x86_64-*linux*)
10933 LD="${LD-ld} -m elf_i386"
10934 ;;
10935 ppc64-*linux*|powerpc64-*linux*)
10936 LD="${LD-ld} -m elf32ppclinux"
10937 ;;
10938 s390x-*linux*)
10939 LD="${LD-ld} -m elf_s390"
10940 ;;
10941 sparc64-*linux*)
10942 LD="${LD-ld} -m elf32_sparc"
10943 ;;
10944 esac
10945 ;;
10946 *64-bit*)
10947 case $host in
10948 x86_64-*kfreebsd*-gnu)
10949 LD="${LD-ld} -m elf_x86_64_fbsd"
10950 ;;
10951 x86_64-*linux*)
10952 LD="${LD-ld} -m elf_x86_64"
10953 ;;
10954 ppc*-*linux*|powerpc*-*linux*)
10955 LD="${LD-ld} -m elf64ppc"
10956 ;;
10957 s390*-*linux*|s390*-*tpf*)
10958 LD="${LD-ld} -m elf64_s390"
10959 ;;
10960 sparc*-*linux*)
10961 LD="${LD-ld} -m elf64_sparc"
10962 ;;
10963 esac
10964 ;;
10965 esac
10966 fi
10967 rm -rf conftest*
10968 ;;
10969
10970*-*-sco3.2v5*)
10971 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10972 SAVE_CFLAGS="$CFLAGS"
10973 CFLAGS="$CFLAGS -belf"
cristy8b350f62009-11-15 23:12:43 +000010974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
cristy3ed852e2009-09-05 21:47:34 +000010975$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010976if test "${lt_cv_cc_needs_belf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010977 $as_echo_n "(cached) " >&6
10978else
10979 ac_ext=c
10980ac_cpp='$CPP $CPPFLAGS'
10981ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10982ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10983ac_compiler_gnu=$ac_cv_c_compiler_gnu
10984
cristy8b350f62009-11-15 23:12:43 +000010985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010986/* end confdefs.h. */
10987
10988int
10989main ()
10990{
10991
10992 ;
10993 return 0;
10994}
10995_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010996if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010997 lt_cv_cc_needs_belf=yes
10998else
cristy8b350f62009-11-15 23:12:43 +000010999 lt_cv_cc_needs_belf=no
cristy3ed852e2009-09-05 21:47:34 +000011000fi
cristy8b350f62009-11-15 23:12:43 +000011001rm -f core conftest.err conftest.$ac_objext \
11002 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011003 ac_ext=c
11004ac_cpp='$CPP $CPPFLAGS'
11005ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11006ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11007ac_compiler_gnu=$ac_cv_c_compiler_gnu
11008
11009fi
cristy8b350f62009-11-15 23:12:43 +000011010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
cristy3ed852e2009-09-05 21:47:34 +000011011$as_echo "$lt_cv_cc_needs_belf" >&6; }
11012 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
11013 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
11014 CFLAGS="$SAVE_CFLAGS"
11015 fi
11016 ;;
11017sparc*-*solaris*)
11018 # Find out which ABI we are using.
11019 echo 'int i;' > conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000011020 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000011021 (eval $ac_compile) 2>&5
11022 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000011023 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11024 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000011025 case `/usr/bin/file conftest.o` in
11026 *64-bit*)
11027 case $lt_cv_prog_gnu_ld in
11028 yes*) LD="${LD-ld} -m elf64_sparc" ;;
11029 *)
11030 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
11031 LD="${LD-ld} -64"
11032 fi
11033 ;;
11034 esac
11035 ;;
11036 esac
11037 fi
11038 rm -rf conftest*
11039 ;;
11040esac
11041
11042need_locks="$enable_libtool_lock"
11043
11044
11045 case $host_os in
11046 rhapsody* | darwin*)
11047 if test -n "$ac_tool_prefix"; then
11048 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
11049set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011051$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011052if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011053 $as_echo_n "(cached) " >&6
11054else
11055 if test -n "$DSYMUTIL"; then
11056 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11057else
11058as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11059for as_dir in $PATH
11060do
11061 IFS=$as_save_IFS
11062 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011063 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011064 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11065 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
cristy8b350f62009-11-15 23:12:43 +000011066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011067 break 2
11068 fi
11069done
cristy8b350f62009-11-15 23:12:43 +000011070 done
cristy3ed852e2009-09-05 21:47:34 +000011071IFS=$as_save_IFS
11072
11073fi
11074fi
11075DSYMUTIL=$ac_cv_prog_DSYMUTIL
11076if test -n "$DSYMUTIL"; then
cristy8b350f62009-11-15 23:12:43 +000011077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
cristy3ed852e2009-09-05 21:47:34 +000011078$as_echo "$DSYMUTIL" >&6; }
11079else
cristy8b350f62009-11-15 23:12:43 +000011080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011081$as_echo "no" >&6; }
11082fi
11083
11084
11085fi
11086if test -z "$ac_cv_prog_DSYMUTIL"; then
11087 ac_ct_DSYMUTIL=$DSYMUTIL
11088 # Extract the first word of "dsymutil", so it can be a program name with args.
11089set dummy dsymutil; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011091$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011092if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011093 $as_echo_n "(cached) " >&6
11094else
11095 if test -n "$ac_ct_DSYMUTIL"; then
11096 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
11097else
11098as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11099for as_dir in $PATH
11100do
11101 IFS=$as_save_IFS
11102 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011103 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011104 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11105 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
cristy8b350f62009-11-15 23:12:43 +000011106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011107 break 2
11108 fi
11109done
cristy8b350f62009-11-15 23:12:43 +000011110 done
cristy3ed852e2009-09-05 21:47:34 +000011111IFS=$as_save_IFS
11112
11113fi
11114fi
11115ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
11116if test -n "$ac_ct_DSYMUTIL"; then
cristy8b350f62009-11-15 23:12:43 +000011117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
cristy3ed852e2009-09-05 21:47:34 +000011118$as_echo "$ac_ct_DSYMUTIL" >&6; }
11119else
cristy8b350f62009-11-15 23:12:43 +000011120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011121$as_echo "no" >&6; }
11122fi
11123
11124 if test "x$ac_ct_DSYMUTIL" = x; then
11125 DSYMUTIL=":"
11126 else
11127 case $cross_compiling:$ac_tool_warned in
11128yes:)
cristy8b350f62009-11-15 23:12:43 +000011129{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000011130$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11131ac_tool_warned=yes ;;
11132esac
11133 DSYMUTIL=$ac_ct_DSYMUTIL
11134 fi
11135else
11136 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
11137fi
11138
11139 if test -n "$ac_tool_prefix"; then
11140 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
11141set dummy ${ac_tool_prefix}nmedit; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011143$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011144if test "${ac_cv_prog_NMEDIT+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011145 $as_echo_n "(cached) " >&6
11146else
11147 if test -n "$NMEDIT"; then
11148 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
11149else
11150as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11151for as_dir in $PATH
11152do
11153 IFS=$as_save_IFS
11154 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011155 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011156 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11157 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
cristy8b350f62009-11-15 23:12:43 +000011158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011159 break 2
11160 fi
11161done
cristy8b350f62009-11-15 23:12:43 +000011162 done
cristy3ed852e2009-09-05 21:47:34 +000011163IFS=$as_save_IFS
11164
11165fi
11166fi
11167NMEDIT=$ac_cv_prog_NMEDIT
11168if test -n "$NMEDIT"; then
cristy8b350f62009-11-15 23:12:43 +000011169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
cristy3ed852e2009-09-05 21:47:34 +000011170$as_echo "$NMEDIT" >&6; }
11171else
cristy8b350f62009-11-15 23:12:43 +000011172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011173$as_echo "no" >&6; }
11174fi
11175
11176
11177fi
11178if test -z "$ac_cv_prog_NMEDIT"; then
11179 ac_ct_NMEDIT=$NMEDIT
11180 # Extract the first word of "nmedit", so it can be a program name with args.
11181set dummy nmedit; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011183$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011184if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011185 $as_echo_n "(cached) " >&6
11186else
11187 if test -n "$ac_ct_NMEDIT"; then
11188 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
11189else
11190as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11191for as_dir in $PATH
11192do
11193 IFS=$as_save_IFS
11194 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011195 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11197 ac_cv_prog_ac_ct_NMEDIT="nmedit"
cristy8b350f62009-11-15 23:12:43 +000011198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011199 break 2
11200 fi
11201done
cristy8b350f62009-11-15 23:12:43 +000011202 done
cristy3ed852e2009-09-05 21:47:34 +000011203IFS=$as_save_IFS
11204
11205fi
11206fi
11207ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
11208if test -n "$ac_ct_NMEDIT"; then
cristy8b350f62009-11-15 23:12:43 +000011209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
cristy3ed852e2009-09-05 21:47:34 +000011210$as_echo "$ac_ct_NMEDIT" >&6; }
11211else
cristy8b350f62009-11-15 23:12:43 +000011212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011213$as_echo "no" >&6; }
11214fi
11215
11216 if test "x$ac_ct_NMEDIT" = x; then
11217 NMEDIT=":"
11218 else
11219 case $cross_compiling:$ac_tool_warned in
11220yes:)
cristy8b350f62009-11-15 23:12:43 +000011221{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000011222$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11223ac_tool_warned=yes ;;
11224esac
11225 NMEDIT=$ac_ct_NMEDIT
11226 fi
11227else
11228 NMEDIT="$ac_cv_prog_NMEDIT"
11229fi
11230
11231 if test -n "$ac_tool_prefix"; then
11232 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
11233set dummy ${ac_tool_prefix}lipo; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011235$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011236if test "${ac_cv_prog_LIPO+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011237 $as_echo_n "(cached) " >&6
11238else
11239 if test -n "$LIPO"; then
11240 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11241else
11242as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11243for as_dir in $PATH
11244do
11245 IFS=$as_save_IFS
11246 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011247 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011248 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11249 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
cristy8b350f62009-11-15 23:12:43 +000011250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011251 break 2
11252 fi
11253done
cristy8b350f62009-11-15 23:12:43 +000011254 done
cristy3ed852e2009-09-05 21:47:34 +000011255IFS=$as_save_IFS
11256
11257fi
11258fi
11259LIPO=$ac_cv_prog_LIPO
11260if test -n "$LIPO"; then
cristy8b350f62009-11-15 23:12:43 +000011261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
cristy3ed852e2009-09-05 21:47:34 +000011262$as_echo "$LIPO" >&6; }
11263else
cristy8b350f62009-11-15 23:12:43 +000011264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011265$as_echo "no" >&6; }
11266fi
11267
11268
11269fi
11270if test -z "$ac_cv_prog_LIPO"; then
11271 ac_ct_LIPO=$LIPO
11272 # Extract the first word of "lipo", so it can be a program name with args.
11273set dummy lipo; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011275$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011276if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011277 $as_echo_n "(cached) " >&6
11278else
11279 if test -n "$ac_ct_LIPO"; then
11280 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
11281else
11282as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11283for as_dir in $PATH
11284do
11285 IFS=$as_save_IFS
11286 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011287 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011288 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11289 ac_cv_prog_ac_ct_LIPO="lipo"
cristy8b350f62009-11-15 23:12:43 +000011290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011291 break 2
11292 fi
11293done
cristy8b350f62009-11-15 23:12:43 +000011294 done
cristy3ed852e2009-09-05 21:47:34 +000011295IFS=$as_save_IFS
11296
11297fi
11298fi
11299ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
11300if test -n "$ac_ct_LIPO"; then
cristy8b350f62009-11-15 23:12:43 +000011301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
cristy3ed852e2009-09-05 21:47:34 +000011302$as_echo "$ac_ct_LIPO" >&6; }
11303else
cristy8b350f62009-11-15 23:12:43 +000011304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011305$as_echo "no" >&6; }
11306fi
11307
11308 if test "x$ac_ct_LIPO" = x; then
11309 LIPO=":"
11310 else
11311 case $cross_compiling:$ac_tool_warned in
11312yes:)
cristy8b350f62009-11-15 23:12:43 +000011313{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000011314$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11315ac_tool_warned=yes ;;
11316esac
11317 LIPO=$ac_ct_LIPO
11318 fi
11319else
11320 LIPO="$ac_cv_prog_LIPO"
11321fi
11322
11323 if test -n "$ac_tool_prefix"; then
11324 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
11325set dummy ${ac_tool_prefix}otool; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011327$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011328if test "${ac_cv_prog_OTOOL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011329 $as_echo_n "(cached) " >&6
11330else
11331 if test -n "$OTOOL"; then
11332 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
11333else
11334as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11335for as_dir in $PATH
11336do
11337 IFS=$as_save_IFS
11338 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011339 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11341 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
cristy8b350f62009-11-15 23:12:43 +000011342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011343 break 2
11344 fi
11345done
cristy8b350f62009-11-15 23:12:43 +000011346 done
cristy3ed852e2009-09-05 21:47:34 +000011347IFS=$as_save_IFS
11348
11349fi
11350fi
11351OTOOL=$ac_cv_prog_OTOOL
11352if test -n "$OTOOL"; then
cristy8b350f62009-11-15 23:12:43 +000011353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
cristy3ed852e2009-09-05 21:47:34 +000011354$as_echo "$OTOOL" >&6; }
11355else
cristy8b350f62009-11-15 23:12:43 +000011356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011357$as_echo "no" >&6; }
11358fi
11359
11360
11361fi
11362if test -z "$ac_cv_prog_OTOOL"; then
11363 ac_ct_OTOOL=$OTOOL
11364 # Extract the first word of "otool", so it can be a program name with args.
11365set dummy otool; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011367$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011368if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011369 $as_echo_n "(cached) " >&6
11370else
11371 if test -n "$ac_ct_OTOOL"; then
11372 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
11373else
11374as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11375for as_dir in $PATH
11376do
11377 IFS=$as_save_IFS
11378 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011379 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11381 ac_cv_prog_ac_ct_OTOOL="otool"
cristy8b350f62009-11-15 23:12:43 +000011382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011383 break 2
11384 fi
11385done
cristy8b350f62009-11-15 23:12:43 +000011386 done
cristy3ed852e2009-09-05 21:47:34 +000011387IFS=$as_save_IFS
11388
11389fi
11390fi
11391ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
11392if test -n "$ac_ct_OTOOL"; then
cristy8b350f62009-11-15 23:12:43 +000011393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
cristy3ed852e2009-09-05 21:47:34 +000011394$as_echo "$ac_ct_OTOOL" >&6; }
11395else
cristy8b350f62009-11-15 23:12:43 +000011396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011397$as_echo "no" >&6; }
11398fi
11399
11400 if test "x$ac_ct_OTOOL" = x; then
11401 OTOOL=":"
11402 else
11403 case $cross_compiling:$ac_tool_warned in
11404yes:)
cristy8b350f62009-11-15 23:12:43 +000011405{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000011406$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11407ac_tool_warned=yes ;;
11408esac
11409 OTOOL=$ac_ct_OTOOL
11410 fi
11411else
11412 OTOOL="$ac_cv_prog_OTOOL"
11413fi
11414
11415 if test -n "$ac_tool_prefix"; then
11416 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
11417set dummy ${ac_tool_prefix}otool64; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011419$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011420if test "${ac_cv_prog_OTOOL64+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011421 $as_echo_n "(cached) " >&6
11422else
11423 if test -n "$OTOOL64"; then
11424 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
11425else
11426as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11427for as_dir in $PATH
11428do
11429 IFS=$as_save_IFS
11430 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011431 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011432 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11433 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
cristy8b350f62009-11-15 23:12:43 +000011434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011435 break 2
11436 fi
11437done
cristy8b350f62009-11-15 23:12:43 +000011438 done
cristy3ed852e2009-09-05 21:47:34 +000011439IFS=$as_save_IFS
11440
11441fi
11442fi
11443OTOOL64=$ac_cv_prog_OTOOL64
11444if test -n "$OTOOL64"; then
cristy8b350f62009-11-15 23:12:43 +000011445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
cristy3ed852e2009-09-05 21:47:34 +000011446$as_echo "$OTOOL64" >&6; }
11447else
cristy8b350f62009-11-15 23:12:43 +000011448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011449$as_echo "no" >&6; }
11450fi
11451
11452
11453fi
11454if test -z "$ac_cv_prog_OTOOL64"; then
11455 ac_ct_OTOOL64=$OTOOL64
11456 # Extract the first word of "otool64", so it can be a program name with args.
11457set dummy otool64; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011459$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011460if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011461 $as_echo_n "(cached) " >&6
11462else
11463 if test -n "$ac_ct_OTOOL64"; then
11464 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
11465else
11466as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11467for as_dir in $PATH
11468do
11469 IFS=$as_save_IFS
11470 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011471 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011472 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11473 ac_cv_prog_ac_ct_OTOOL64="otool64"
cristy8b350f62009-11-15 23:12:43 +000011474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011475 break 2
11476 fi
11477done
cristy8b350f62009-11-15 23:12:43 +000011478 done
cristy3ed852e2009-09-05 21:47:34 +000011479IFS=$as_save_IFS
11480
11481fi
11482fi
11483ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
11484if test -n "$ac_ct_OTOOL64"; then
cristy8b350f62009-11-15 23:12:43 +000011485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
cristy3ed852e2009-09-05 21:47:34 +000011486$as_echo "$ac_ct_OTOOL64" >&6; }
11487else
cristy8b350f62009-11-15 23:12:43 +000011488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011489$as_echo "no" >&6; }
11490fi
11491
11492 if test "x$ac_ct_OTOOL64" = x; then
11493 OTOOL64=":"
11494 else
11495 case $cross_compiling:$ac_tool_warned in
11496yes:)
cristy8b350f62009-11-15 23:12:43 +000011497{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000011498$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11499ac_tool_warned=yes ;;
11500esac
11501 OTOOL64=$ac_ct_OTOOL64
11502 fi
11503else
11504 OTOOL64="$ac_cv_prog_OTOOL64"
11505fi
11506
11507
11508
11509
11510
11511
11512
11513
11514
11515
11516
11517
11518
11519
11520
11521
11522
11523
11524
11525
11526
11527
11528
11529
11530
11531
11532
cristy8b350f62009-11-15 23:12:43 +000011533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
cristy3ed852e2009-09-05 21:47:34 +000011534$as_echo_n "checking for -single_module linker flag... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011535if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011536 $as_echo_n "(cached) " >&6
11537else
11538 lt_cv_apple_cc_single_mod=no
11539 if test -z "${LT_MULTI_MODULE}"; then
11540 # By default we will add the -single_module flag. You can override
11541 # by either setting the environment variable LT_MULTI_MODULE
11542 # non-empty at configure time, or by adding -multi_module to the
11543 # link flags.
11544 rm -rf libconftest.dylib*
11545 echo "int foo(void){return 1;}" > conftest.c
11546 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11547-dynamiclib -Wl,-single_module conftest.c" >&5
11548 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11549 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
11550 _lt_result=$?
11551 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
11552 lt_cv_apple_cc_single_mod=yes
11553 else
11554 cat conftest.err >&5
11555 fi
11556 rm -rf libconftest.dylib*
11557 rm -f conftest.*
11558 fi
11559fi
cristy8b350f62009-11-15 23:12:43 +000011560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
cristy3ed852e2009-09-05 21:47:34 +000011561$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
cristy8b350f62009-11-15 23:12:43 +000011562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
cristy3ed852e2009-09-05 21:47:34 +000011563$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011564if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011565 $as_echo_n "(cached) " >&6
11566else
11567 lt_cv_ld_exported_symbols_list=no
11568 save_LDFLAGS=$LDFLAGS
11569 echo "_main" > conftest.sym
11570 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
cristy8b350f62009-11-15 23:12:43 +000011571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011572/* end confdefs.h. */
11573
11574int
11575main ()
11576{
11577
11578 ;
11579 return 0;
11580}
11581_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011582if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000011583 lt_cv_ld_exported_symbols_list=yes
11584else
cristy8b350f62009-11-15 23:12:43 +000011585 lt_cv_ld_exported_symbols_list=no
cristy3ed852e2009-09-05 21:47:34 +000011586fi
cristy8b350f62009-11-15 23:12:43 +000011587rm -f core conftest.err conftest.$ac_objext \
11588 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011589 LDFLAGS="$save_LDFLAGS"
11590
11591fi
cristy8b350f62009-11-15 23:12:43 +000011592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
cristy3ed852e2009-09-05 21:47:34 +000011593$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
11594 case $host_os in
11595 rhapsody* | darwin1.[012])
11596 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
11597 darwin1.*)
11598 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
11599 darwin*) # darwin 5.x on
11600 # if running on 10.5 or later, the deployment target defaults
11601 # to the OS version, if on x86, and 10.4, the deployment
11602 # target defaults to 10.4. Don't you love it?
11603 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
11604 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
11605 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
11606 10.[012]*)
11607 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
11608 10.*)
11609 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
11610 esac
11611 ;;
11612 esac
11613 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
11614 _lt_dar_single_mod='$single_module'
11615 fi
11616 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
11617 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
11618 else
11619 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
11620 fi
cristy18304f92009-11-22 15:48:26 +000011621 if test "$DSYMUTIL" != ":"; then
cristy3ed852e2009-09-05 21:47:34 +000011622 _lt_dsymutil='~$DSYMUTIL $lib || :'
11623 else
11624 _lt_dsymutil=
11625 fi
11626 ;;
11627 esac
11628
cristy3ed852e2009-09-05 21:47:34 +000011629for ac_header in dlfcn.h
cristy8b350f62009-11-15 23:12:43 +000011630do :
11631 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
11632"
11633if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000011634 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011635#define HAVE_DLFCN_H 1
cristy3ed852e2009-09-05 21:47:34 +000011636_ACEOF
11637
11638fi
11639
11640done
11641
11642
11643
cristy18304f92009-11-22 15:48:26 +000011644ac_ext=cpp
11645ac_cpp='$CXXCPP $CPPFLAGS'
11646ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11647ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11648ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11649if test -z "$CXX"; then
11650 if test -n "$CCC"; then
11651 CXX=$CCC
11652 else
11653 if test -n "$ac_tool_prefix"; then
11654 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11655 do
11656 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11657set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11659$as_echo_n "checking for $ac_word... " >&6; }
11660if test "${ac_cv_prog_CXX+set}" = set; then :
11661 $as_echo_n "(cached) " >&6
11662else
11663 if test -n "$CXX"; then
11664 ac_cv_prog_CXX="$CXX" # Let the user override the test.
11665else
11666as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11667for as_dir in $PATH
11668do
11669 IFS=$as_save_IFS
11670 test -z "$as_dir" && as_dir=.
11671 for ac_exec_ext in '' $ac_executable_extensions; do
11672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11673 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11675 break 2
11676 fi
11677done
11678 done
11679IFS=$as_save_IFS
11680
11681fi
11682fi
11683CXX=$ac_cv_prog_CXX
11684if test -n "$CXX"; then
11685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
11686$as_echo "$CXX" >&6; }
11687else
11688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11689$as_echo "no" >&6; }
11690fi
11691
11692
11693 test -n "$CXX" && break
11694 done
11695fi
11696if test -z "$CXX"; then
11697 ac_ct_CXX=$CXX
11698 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11699do
11700 # Extract the first word of "$ac_prog", so it can be a program name with args.
11701set dummy $ac_prog; ac_word=$2
11702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11703$as_echo_n "checking for $ac_word... " >&6; }
11704if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
11705 $as_echo_n "(cached) " >&6
11706else
11707 if test -n "$ac_ct_CXX"; then
11708 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11709else
11710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11711for as_dir in $PATH
11712do
11713 IFS=$as_save_IFS
11714 test -z "$as_dir" && as_dir=.
11715 for ac_exec_ext in '' $ac_executable_extensions; do
11716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11717 ac_cv_prog_ac_ct_CXX="$ac_prog"
11718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11719 break 2
11720 fi
11721done
11722 done
11723IFS=$as_save_IFS
11724
11725fi
11726fi
11727ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11728if test -n "$ac_ct_CXX"; then
11729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
11730$as_echo "$ac_ct_CXX" >&6; }
11731else
11732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11733$as_echo "no" >&6; }
11734fi
11735
11736
11737 test -n "$ac_ct_CXX" && break
11738done
11739
11740 if test "x$ac_ct_CXX" = x; then
11741 CXX="g++"
11742 else
11743 case $cross_compiling:$ac_tool_warned in
11744yes:)
11745{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11746$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11747ac_tool_warned=yes ;;
11748esac
11749 CXX=$ac_ct_CXX
11750 fi
11751fi
11752
11753 fi
11754fi
11755# Provide some information about the compiler.
11756$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
11757set X $ac_compile
11758ac_compiler=$2
11759for ac_option in --version -v -V -qversion; do
11760 { { ac_try="$ac_compiler $ac_option >&5"
11761case "(($ac_try" in
11762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11763 *) ac_try_echo=$ac_try;;
11764esac
11765eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11766$as_echo "$ac_try_echo"; } >&5
11767 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11768 ac_status=$?
11769 if test -s conftest.err; then
11770 sed '10a\
11771... rest of stderr output deleted ...
11772 10q' conftest.err >conftest.er1
11773 cat conftest.er1 >&5
11774 fi
11775 rm -f conftest.er1 conftest.err
11776 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11777 test $ac_status = 0; }
11778done
11779
11780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
11781$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
11782if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
11783 $as_echo_n "(cached) " >&6
11784else
11785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11786/* end confdefs.h. */
11787
11788int
11789main ()
11790{
11791#ifndef __GNUC__
11792 choke me
11793#endif
11794
11795 ;
11796 return 0;
11797}
11798_ACEOF
11799if ac_fn_cxx_try_compile "$LINENO"; then :
11800 ac_compiler_gnu=yes
11801else
11802 ac_compiler_gnu=no
11803fi
11804rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11805ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11806
11807fi
11808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
11809$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
11810if test $ac_compiler_gnu = yes; then
11811 GXX=yes
11812else
11813 GXX=
11814fi
11815ac_test_CXXFLAGS=${CXXFLAGS+set}
11816ac_save_CXXFLAGS=$CXXFLAGS
11817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
11818$as_echo_n "checking whether $CXX accepts -g... " >&6; }
11819if test "${ac_cv_prog_cxx_g+set}" = set; then :
11820 $as_echo_n "(cached) " >&6
11821else
11822 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
11823 ac_cxx_werror_flag=yes
11824 ac_cv_prog_cxx_g=no
11825 CXXFLAGS="-g"
11826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11827/* end confdefs.h. */
11828
11829int
11830main ()
11831{
11832
11833 ;
11834 return 0;
11835}
11836_ACEOF
11837if ac_fn_cxx_try_compile "$LINENO"; then :
11838 ac_cv_prog_cxx_g=yes
11839else
11840 CXXFLAGS=""
11841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11842/* end confdefs.h. */
11843
11844int
11845main ()
11846{
11847
11848 ;
11849 return 0;
11850}
11851_ACEOF
11852if ac_fn_cxx_try_compile "$LINENO"; then :
11853
11854else
11855 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11856 CXXFLAGS="-g"
11857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11858/* end confdefs.h. */
11859
11860int
11861main ()
11862{
11863
11864 ;
11865 return 0;
11866}
11867_ACEOF
11868if ac_fn_cxx_try_compile "$LINENO"; then :
11869 ac_cv_prog_cxx_g=yes
11870fi
11871rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11872fi
11873rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11874fi
11875rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11876 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11877fi
11878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
11879$as_echo "$ac_cv_prog_cxx_g" >&6; }
11880if test "$ac_test_CXXFLAGS" = set; then
11881 CXXFLAGS=$ac_save_CXXFLAGS
11882elif test $ac_cv_prog_cxx_g = yes; then
11883 if test "$GXX" = yes; then
11884 CXXFLAGS="-g -O2"
11885 else
11886 CXXFLAGS="-g"
11887 fi
11888else
11889 if test "$GXX" = yes; then
11890 CXXFLAGS="-O2"
11891 else
11892 CXXFLAGS=
11893 fi
11894fi
11895ac_ext=c
11896ac_cpp='$CPP $CPPFLAGS'
11897ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11898ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11899ac_compiler_gnu=$ac_cv_c_compiler_gnu
11900
11901depcc="$CXX" am_compiler_list=
11902
11903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11904$as_echo_n "checking dependency style of $depcc... " >&6; }
11905if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
11906 $as_echo_n "(cached) " >&6
11907else
11908 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11909 # We make a subdir and do the tests there. Otherwise we can end up
11910 # making bogus files that we don't know about and never remove. For
11911 # instance it was reported that on HP-UX the gcc test will end up
11912 # making a dummy file named `D' -- because `-MD' means `put the output
11913 # in D'.
11914 mkdir conftest.dir
11915 # Copy depcomp to subdir because otherwise we won't find it if we're
11916 # using a relative directory.
11917 cp "$am_depcomp" conftest.dir
11918 cd conftest.dir
11919 # We will build objects and dependencies in a subdirectory because
11920 # it helps to detect inapplicable dependency modes. For instance
11921 # both Tru64's cc and ICC support -MD to output dependencies as a
11922 # side effect of compilation, but ICC will put the dependencies in
11923 # the current directory while Tru64 will put them in the object
11924 # directory.
11925 mkdir sub
11926
11927 am_cv_CXX_dependencies_compiler_type=none
11928 if test "$am_compiler_list" = ""; then
11929 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11930 fi
11931 am__universal=false
11932 case " $depcc " in #(
11933 *\ -arch\ *\ -arch\ *) am__universal=true ;;
11934 esac
11935
11936 for depmode in $am_compiler_list; do
11937 # Setup a source with many dependencies, because some compilers
11938 # like to wrap large dependency lists on column 80 (with \), and
11939 # we should not choose a depcomp mode which is confused by this.
11940 #
11941 # We need to recreate these files for each test, as the compiler may
11942 # overwrite some of them when testing with obscure command lines.
11943 # This happens at least with the AIX C compiler.
11944 : > sub/conftest.c
11945 for i in 1 2 3 4 5 6; do
11946 echo '#include "conftst'$i'.h"' >> sub/conftest.c
11947 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11948 # Solaris 8's {/usr,}/bin/sh.
11949 touch sub/conftst$i.h
11950 done
11951 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11952
11953 # We check with `-c' and `-o' for the sake of the "dashmstdout"
11954 # mode. It turns out that the SunPro C++ compiler does not properly
11955 # handle `-M -o', and we need to detect this. Also, some Intel
11956 # versions had trouble with output in subdirs
11957 am__obj=sub/conftest.${OBJEXT-o}
11958 am__minus_obj="-o $am__obj"
11959 case $depmode in
11960 gcc)
11961 # This depmode causes a compiler race in universal mode.
11962 test "$am__universal" = false || continue
11963 ;;
11964 nosideeffect)
11965 # after this tag, mechanisms are not by side-effect, so they'll
11966 # only be used when explicitly requested
11967 if test "x$enable_dependency_tracking" = xyes; then
11968 continue
11969 else
11970 break
11971 fi
11972 ;;
11973 msvisualcpp | msvcmsys)
11974 # This compiler won't grok `-c -o', but also, the minuso test has
11975 # not run yet. These depmodes are late enough in the game, and
11976 # so weak that their functioning should not be impacted.
11977 am__obj=conftest.${OBJEXT-o}
11978 am__minus_obj=
11979 ;;
11980 none) break ;;
11981 esac
11982 if depmode=$depmode \
11983 source=sub/conftest.c object=$am__obj \
11984 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11985 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11986 >/dev/null 2>conftest.err &&
11987 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11988 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11989 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11990 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11991 # icc doesn't choke on unknown options, it will just issue warnings
11992 # or remarks (even with -Werror). So we grep stderr for any message
11993 # that says an option was ignored or not supported.
11994 # When given -MP, icc 7.0 and 7.1 complain thusly:
11995 # icc: Command line warning: ignoring option '-M'; no argument required
11996 # The diagnosis changed in icc 8.0:
11997 # icc: Command line remark: option '-MP' not supported
11998 if (grep 'ignoring option' conftest.err ||
11999 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12000 am_cv_CXX_dependencies_compiler_type=$depmode
12001 break
12002 fi
12003 fi
12004 done
12005
12006 cd ..
12007 rm -rf conftest.dir
12008else
12009 am_cv_CXX_dependencies_compiler_type=none
12010fi
12011
12012fi
12013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
12014$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
12015CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
12016
12017 if
12018 test "x$enable_dependency_tracking" != xno \
12019 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
12020 am__fastdepCXX_TRUE=
12021 am__fastdepCXX_FALSE='#'
12022else
12023 am__fastdepCXX_TRUE='#'
12024 am__fastdepCXX_FALSE=
12025fi
12026
12027
12028if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12029 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12030 (test "X$CXX" != "Xg++"))) ; then
12031 ac_ext=cpp
12032ac_cpp='$CXXCPP $CPPFLAGS'
12033ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12034ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12035ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12037$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12038if test -z "$CXXCPP"; then
12039 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
12040 $as_echo_n "(cached) " >&6
12041else
12042 # Double quotes because CXXCPP needs to be expanded
12043 for CXXCPP in "$CXX -E" "/lib/cpp"
12044 do
12045 ac_preproc_ok=false
12046for ac_cxx_preproc_warn_flag in '' yes
12047do
12048 # Use a header file that comes with gcc, so configuring glibc
12049 # with a fresh cross-compiler works.
12050 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12051 # <limits.h> exists even on freestanding compilers.
12052 # On the NeXT, cc -E runs the code through the compiler's parser,
12053 # not just through cpp. "Syntax error" is here to catch this case.
12054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12055/* end confdefs.h. */
12056#ifdef __STDC__
12057# include <limits.h>
12058#else
12059# include <assert.h>
12060#endif
12061 Syntax error
12062_ACEOF
12063if ac_fn_cxx_try_cpp "$LINENO"; then :
12064
12065else
12066 # Broken: fails on valid input.
12067continue
12068fi
12069rm -f conftest.err conftest.$ac_ext
12070
12071 # OK, works on sane cases. Now check whether nonexistent headers
12072 # can be detected and how.
12073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12074/* end confdefs.h. */
12075#include <ac_nonexistent.h>
12076_ACEOF
12077if ac_fn_cxx_try_cpp "$LINENO"; then :
12078 # Broken: success on invalid input.
12079continue
12080else
12081 # Passes both tests.
12082ac_preproc_ok=:
12083break
12084fi
12085rm -f conftest.err conftest.$ac_ext
12086
12087done
12088# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12089rm -f conftest.err conftest.$ac_ext
12090if $ac_preproc_ok; then :
12091 break
12092fi
12093
12094 done
12095 ac_cv_prog_CXXCPP=$CXXCPP
12096
12097fi
12098 CXXCPP=$ac_cv_prog_CXXCPP
12099else
12100 ac_cv_prog_CXXCPP=$CXXCPP
12101fi
12102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12103$as_echo "$CXXCPP" >&6; }
12104ac_preproc_ok=false
12105for ac_cxx_preproc_warn_flag in '' yes
12106do
12107 # Use a header file that comes with gcc, so configuring glibc
12108 # with a fresh cross-compiler works.
12109 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12110 # <limits.h> exists even on freestanding compilers.
12111 # On the NeXT, cc -E runs the code through the compiler's parser,
12112 # not just through cpp. "Syntax error" is here to catch this case.
12113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12114/* end confdefs.h. */
12115#ifdef __STDC__
12116# include <limits.h>
12117#else
12118# include <assert.h>
12119#endif
12120 Syntax error
12121_ACEOF
12122if ac_fn_cxx_try_cpp "$LINENO"; then :
12123
12124else
12125 # Broken: fails on valid input.
12126continue
12127fi
12128rm -f conftest.err conftest.$ac_ext
12129
12130 # OK, works on sane cases. Now check whether nonexistent headers
12131 # can be detected and how.
12132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12133/* end confdefs.h. */
12134#include <ac_nonexistent.h>
12135_ACEOF
12136if ac_fn_cxx_try_cpp "$LINENO"; then :
12137 # Broken: success on invalid input.
12138continue
12139else
12140 # Passes both tests.
12141ac_preproc_ok=:
12142break
12143fi
12144rm -f conftest.err conftest.$ac_ext
12145
12146done
12147# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12148rm -f conftest.err conftest.$ac_ext
12149if $ac_preproc_ok; then :
12150
12151else
12152 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12153$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12154_lt_caught_CXX_error=yes; }
12155fi
12156
12157ac_ext=c
12158ac_cpp='$CPP $CPPFLAGS'
12159ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12160ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12161ac_compiler_gnu=$ac_cv_c_compiler_gnu
12162
12163else
12164 _lt_caught_CXX_error=yes
12165fi
12166
12167
cristy3ed852e2009-09-05 21:47:34 +000012168
12169
12170
12171# Set options
12172enable_win32_dll=yes
12173
12174case $host in
cristy18304f92009-11-22 15:48:26 +000012175*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
cristy3ed852e2009-09-05 21:47:34 +000012176 if test -n "$ac_tool_prefix"; then
12177 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
12178set dummy ${ac_tool_prefix}as; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000012179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000012180$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012181if test "${ac_cv_prog_AS+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012182 $as_echo_n "(cached) " >&6
12183else
12184 if test -n "$AS"; then
12185 ac_cv_prog_AS="$AS" # Let the user override the test.
12186else
12187as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12188for as_dir in $PATH
12189do
12190 IFS=$as_save_IFS
12191 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000012192 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000012193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12194 ac_cv_prog_AS="${ac_tool_prefix}as"
cristy8b350f62009-11-15 23:12:43 +000012195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000012196 break 2
12197 fi
12198done
cristy8b350f62009-11-15 23:12:43 +000012199 done
cristy3ed852e2009-09-05 21:47:34 +000012200IFS=$as_save_IFS
12201
12202fi
12203fi
12204AS=$ac_cv_prog_AS
12205if test -n "$AS"; then
cristy8b350f62009-11-15 23:12:43 +000012206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
cristy3ed852e2009-09-05 21:47:34 +000012207$as_echo "$AS" >&6; }
12208else
cristy8b350f62009-11-15 23:12:43 +000012209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000012210$as_echo "no" >&6; }
12211fi
12212
12213
12214fi
12215if test -z "$ac_cv_prog_AS"; then
12216 ac_ct_AS=$AS
12217 # Extract the first word of "as", so it can be a program name with args.
12218set dummy as; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000012219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000012220$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012221if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012222 $as_echo_n "(cached) " >&6
12223else
12224 if test -n "$ac_ct_AS"; then
12225 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
12226else
12227as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12228for as_dir in $PATH
12229do
12230 IFS=$as_save_IFS
12231 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000012232 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000012233 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12234 ac_cv_prog_ac_ct_AS="as"
cristy8b350f62009-11-15 23:12:43 +000012235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000012236 break 2
12237 fi
12238done
cristy8b350f62009-11-15 23:12:43 +000012239 done
cristy3ed852e2009-09-05 21:47:34 +000012240IFS=$as_save_IFS
12241
12242fi
12243fi
12244ac_ct_AS=$ac_cv_prog_ac_ct_AS
12245if test -n "$ac_ct_AS"; then
cristy8b350f62009-11-15 23:12:43 +000012246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
cristy3ed852e2009-09-05 21:47:34 +000012247$as_echo "$ac_ct_AS" >&6; }
12248else
cristy8b350f62009-11-15 23:12:43 +000012249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000012250$as_echo "no" >&6; }
12251fi
12252
12253 if test "x$ac_ct_AS" = x; then
12254 AS="false"
12255 else
12256 case $cross_compiling:$ac_tool_warned in
12257yes:)
cristy8b350f62009-11-15 23:12:43 +000012258{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000012259$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12260ac_tool_warned=yes ;;
12261esac
12262 AS=$ac_ct_AS
12263 fi
12264else
12265 AS="$ac_cv_prog_AS"
12266fi
12267
12268 if test -n "$ac_tool_prefix"; then
12269 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12270set dummy ${ac_tool_prefix}dlltool; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000012271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000012272$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012273if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012274 $as_echo_n "(cached) " >&6
12275else
12276 if test -n "$DLLTOOL"; then
12277 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12278else
12279as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12280for as_dir in $PATH
12281do
12282 IFS=$as_save_IFS
12283 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000012284 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000012285 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12286 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
cristy8b350f62009-11-15 23:12:43 +000012287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000012288 break 2
12289 fi
12290done
cristy8b350f62009-11-15 23:12:43 +000012291 done
cristy3ed852e2009-09-05 21:47:34 +000012292IFS=$as_save_IFS
12293
12294fi
12295fi
12296DLLTOOL=$ac_cv_prog_DLLTOOL
12297if test -n "$DLLTOOL"; then
cristy8b350f62009-11-15 23:12:43 +000012298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
cristy3ed852e2009-09-05 21:47:34 +000012299$as_echo "$DLLTOOL" >&6; }
12300else
cristy8b350f62009-11-15 23:12:43 +000012301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000012302$as_echo "no" >&6; }
12303fi
12304
12305
12306fi
12307if test -z "$ac_cv_prog_DLLTOOL"; then
12308 ac_ct_DLLTOOL=$DLLTOOL
12309 # Extract the first word of "dlltool", so it can be a program name with args.
12310set dummy dlltool; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000012311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000012312$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012313if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012314 $as_echo_n "(cached) " >&6
12315else
12316 if test -n "$ac_ct_DLLTOOL"; then
12317 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
12318else
12319as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12320for as_dir in $PATH
12321do
12322 IFS=$as_save_IFS
12323 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000012324 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000012325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12326 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
cristy8b350f62009-11-15 23:12:43 +000012327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000012328 break 2
12329 fi
12330done
cristy8b350f62009-11-15 23:12:43 +000012331 done
cristy3ed852e2009-09-05 21:47:34 +000012332IFS=$as_save_IFS
12333
12334fi
12335fi
12336ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12337if test -n "$ac_ct_DLLTOOL"; then
cristy8b350f62009-11-15 23:12:43 +000012338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
cristy3ed852e2009-09-05 21:47:34 +000012339$as_echo "$ac_ct_DLLTOOL" >&6; }
12340else
cristy8b350f62009-11-15 23:12:43 +000012341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000012342$as_echo "no" >&6; }
12343fi
12344
12345 if test "x$ac_ct_DLLTOOL" = x; then
12346 DLLTOOL="false"
12347 else
12348 case $cross_compiling:$ac_tool_warned in
12349yes:)
cristy8b350f62009-11-15 23:12:43 +000012350{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000012351$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12352ac_tool_warned=yes ;;
12353esac
12354 DLLTOOL=$ac_ct_DLLTOOL
12355 fi
12356else
12357 DLLTOOL="$ac_cv_prog_DLLTOOL"
12358fi
12359
12360 if test -n "$ac_tool_prefix"; then
12361 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12362set dummy ${ac_tool_prefix}objdump; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000012363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000012364$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012365if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012366 $as_echo_n "(cached) " >&6
12367else
12368 if test -n "$OBJDUMP"; then
12369 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12370else
12371as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12372for as_dir in $PATH
12373do
12374 IFS=$as_save_IFS
12375 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000012376 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000012377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12378 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
cristy8b350f62009-11-15 23:12:43 +000012379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000012380 break 2
12381 fi
12382done
cristy8b350f62009-11-15 23:12:43 +000012383 done
cristy3ed852e2009-09-05 21:47:34 +000012384IFS=$as_save_IFS
12385
12386fi
12387fi
12388OBJDUMP=$ac_cv_prog_OBJDUMP
12389if test -n "$OBJDUMP"; then
cristy8b350f62009-11-15 23:12:43 +000012390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
cristy3ed852e2009-09-05 21:47:34 +000012391$as_echo "$OBJDUMP" >&6; }
12392else
cristy8b350f62009-11-15 23:12:43 +000012393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000012394$as_echo "no" >&6; }
12395fi
12396
12397
12398fi
12399if test -z "$ac_cv_prog_OBJDUMP"; then
12400 ac_ct_OBJDUMP=$OBJDUMP
12401 # Extract the first word of "objdump", so it can be a program name with args.
12402set dummy objdump; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000012403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000012404$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012405if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012406 $as_echo_n "(cached) " >&6
12407else
12408 if test -n "$ac_ct_OBJDUMP"; then
12409 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12410else
12411as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12412for as_dir in $PATH
12413do
12414 IFS=$as_save_IFS
12415 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000012416 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000012417 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12418 ac_cv_prog_ac_ct_OBJDUMP="objdump"
cristy8b350f62009-11-15 23:12:43 +000012419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000012420 break 2
12421 fi
12422done
cristy8b350f62009-11-15 23:12:43 +000012423 done
cristy3ed852e2009-09-05 21:47:34 +000012424IFS=$as_save_IFS
12425
12426fi
12427fi
12428ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12429if test -n "$ac_ct_OBJDUMP"; then
cristy8b350f62009-11-15 23:12:43 +000012430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
cristy3ed852e2009-09-05 21:47:34 +000012431$as_echo "$ac_ct_OBJDUMP" >&6; }
12432else
cristy8b350f62009-11-15 23:12:43 +000012433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000012434$as_echo "no" >&6; }
12435fi
12436
12437 if test "x$ac_ct_OBJDUMP" = x; then
12438 OBJDUMP="false"
12439 else
12440 case $cross_compiling:$ac_tool_warned in
12441yes:)
cristy8b350f62009-11-15 23:12:43 +000012442{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000012443$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12444ac_tool_warned=yes ;;
12445esac
12446 OBJDUMP=$ac_ct_OBJDUMP
12447 fi
12448else
12449 OBJDUMP="$ac_cv_prog_OBJDUMP"
12450fi
12451
12452 ;;
12453esac
12454
12455test -z "$AS" && AS=as
12456
12457
12458
12459
12460
12461test -z "$DLLTOOL" && DLLTOOL=dlltool
12462
12463
12464
12465
12466
12467test -z "$OBJDUMP" && OBJDUMP=objdump
12468
12469
12470
12471
12472
12473
12474
12475
12476
12477 # Check whether --enable-shared was given.
cristy8b350f62009-11-15 23:12:43 +000012478if test "${enable_shared+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012479 enableval=$enable_shared; p=${PACKAGE-default}
12480 case $enableval in
12481 yes) enable_shared=yes ;;
12482 no) enable_shared=no ;;
12483 *)
12484 enable_shared=no
12485 # Look at the argument we got. We use all the common list separators.
12486 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12487 for pkg in $enableval; do
12488 IFS="$lt_save_ifs"
12489 if test "X$pkg" = "X$p"; then
12490 enable_shared=yes
12491 fi
12492 done
12493 IFS="$lt_save_ifs"
12494 ;;
12495 esac
12496else
12497 enable_shared=yes
12498fi
12499
12500
12501
12502
12503
12504
12505
12506
12507
12508 # Check whether --enable-static was given.
cristy8b350f62009-11-15 23:12:43 +000012509if test "${enable_static+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012510 enableval=$enable_static; p=${PACKAGE-default}
12511 case $enableval in
12512 yes) enable_static=yes ;;
12513 no) enable_static=no ;;
12514 *)
12515 enable_static=no
12516 # Look at the argument we got. We use all the common list separators.
12517 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12518 for pkg in $enableval; do
12519 IFS="$lt_save_ifs"
12520 if test "X$pkg" = "X$p"; then
12521 enable_static=yes
12522 fi
12523 done
12524 IFS="$lt_save_ifs"
12525 ;;
12526 esac
12527else
12528 enable_static=yes
12529fi
12530
12531
12532
12533
12534
12535
12536
12537
12538
12539
12540# Check whether --with-pic was given.
cristy8b350f62009-11-15 23:12:43 +000012541if test "${with_pic+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012542 withval=$with_pic; pic_mode="$withval"
12543else
12544 pic_mode=default
12545fi
12546
12547
12548test -z "$pic_mode" && pic_mode=default
12549
12550
12551
12552
12553
12554
12555
12556 # Check whether --enable-fast-install was given.
cristy8b350f62009-11-15 23:12:43 +000012557if test "${enable_fast_install+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012558 enableval=$enable_fast_install; p=${PACKAGE-default}
12559 case $enableval in
12560 yes) enable_fast_install=yes ;;
12561 no) enable_fast_install=no ;;
12562 *)
12563 enable_fast_install=no
12564 # Look at the argument we got. We use all the common list separators.
12565 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12566 for pkg in $enableval; do
12567 IFS="$lt_save_ifs"
12568 if test "X$pkg" = "X$p"; then
12569 enable_fast_install=yes
12570 fi
12571 done
12572 IFS="$lt_save_ifs"
12573 ;;
12574 esac
12575else
12576 enable_fast_install=yes
12577fi
12578
12579
12580
12581
12582
12583
12584
12585
12586
12587
12588
12589# This can be used to rebuild libtool when needed
12590LIBTOOL_DEPS="$ltmain"
12591
12592# Always use our own libtool.
12593LIBTOOL='$(SHELL) $(top_builddir)/libtool'
12594
12595
12596
12597
12598
12599
12600
12601
12602
12603
12604
12605
12606
12607
12608
12609
12610
12611
12612
12613
12614
12615
12616
12617
12618
12619test -z "$LN_S" && LN_S="ln -s"
12620
12621
12622
12623
12624
12625
12626
12627
12628
12629
12630
12631
12632
12633
12634if test -n "${ZSH_VERSION+set}" ; then
12635 setopt NO_GLOB_SUBST
12636fi
12637
cristy8b350f62009-11-15 23:12:43 +000012638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
cristy3ed852e2009-09-05 21:47:34 +000012639$as_echo_n "checking for objdir... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012640if test "${lt_cv_objdir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012641 $as_echo_n "(cached) " >&6
12642else
12643 rm -f .libs 2>/dev/null
12644mkdir .libs 2>/dev/null
12645if test -d .libs; then
12646 lt_cv_objdir=.libs
12647else
12648 # MS-DOS does not allow filenames that begin with a dot.
12649 lt_cv_objdir=_libs
12650fi
12651rmdir .libs 2>/dev/null
12652fi
cristy8b350f62009-11-15 23:12:43 +000012653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
cristy3ed852e2009-09-05 21:47:34 +000012654$as_echo "$lt_cv_objdir" >&6; }
12655objdir=$lt_cv_objdir
12656
12657
12658
12659
12660
12661cat >>confdefs.h <<_ACEOF
12662#define LT_OBJDIR "$lt_cv_objdir/"
12663_ACEOF
12664
12665
12666
12667
cristy18304f92009-11-22 15:48:26 +000012668
12669
12670
12671
12672
12673
12674
12675
12676
12677
12678
12679
12680
cristy3ed852e2009-09-05 21:47:34 +000012681case $host_os in
12682aix3*)
12683 # AIX sometimes has problems with the GCC collect2 program. For some
12684 # reason, if we set the COLLECT_NAMES environment variable, the problems
12685 # vanish in a puff of smoke.
12686 if test "X${COLLECT_NAMES+set}" != Xset; then
12687 COLLECT_NAMES=
12688 export COLLECT_NAMES
12689 fi
12690 ;;
12691esac
12692
cristy18304f92009-11-22 15:48:26 +000012693# Sed substitution that helps us do robust quoting. It backslashifies
12694# metacharacters that are still active within double-quoted strings.
12695sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
12696
12697# Same as above, but do not quote variable references.
12698double_quote_subst='s/\(["`\\]\)/\\\1/g'
12699
12700# Sed substitution to delay expansion of an escaped shell variable in a
12701# double_quote_subst'ed string.
12702delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
12703
12704# Sed substitution to delay expansion of an escaped single quote.
12705delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
12706
12707# Sed substitution to avoid accidental globbing in evaled expressions
12708no_glob_subst='s/\*/\\\*/g'
12709
cristy3ed852e2009-09-05 21:47:34 +000012710# Global variables:
12711ofile=libtool
12712can_build_shared=yes
12713
12714# All known linkers require a `.a' archive for static linking (except MSVC,
12715# which needs '.lib').
12716libext=a
12717
12718with_gnu_ld="$lt_cv_prog_gnu_ld"
12719
12720old_CC="$CC"
12721old_CFLAGS="$CFLAGS"
12722
12723# Set sane defaults for various variables
12724test -z "$CC" && CC=cc
12725test -z "$LTCC" && LTCC=$CC
12726test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
12727test -z "$LD" && LD=ld
12728test -z "$ac_objext" && ac_objext=o
12729
12730for cc_temp in $compiler""; do
12731 case $cc_temp in
12732 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12733 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12734 \-*) ;;
12735 *) break;;
12736 esac
12737done
cristy18304f92009-11-22 15:48:26 +000012738cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
cristy3ed852e2009-09-05 21:47:34 +000012739
12740
12741# Only perform the check for file, if the check method requires it
12742test -z "$MAGIC_CMD" && MAGIC_CMD=file
12743case $deplibs_check_method in
12744file_magic*)
12745 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
cristy8b350f62009-11-15 23:12:43 +000012746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
cristy3ed852e2009-09-05 21:47:34 +000012747$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012748if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012749 $as_echo_n "(cached) " >&6
12750else
12751 case $MAGIC_CMD in
12752[\\/*] | ?:[\\/]*)
12753 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12754 ;;
12755*)
12756 lt_save_MAGIC_CMD="$MAGIC_CMD"
12757 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12758 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12759 for ac_dir in $ac_dummy; do
12760 IFS="$lt_save_ifs"
12761 test -z "$ac_dir" && ac_dir=.
12762 if test -f $ac_dir/${ac_tool_prefix}file; then
12763 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
12764 if test -n "$file_magic_test_file"; then
12765 case $deplibs_check_method in
12766 "file_magic "*)
12767 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12768 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12769 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12770 $EGREP "$file_magic_regex" > /dev/null; then
12771 :
12772 else
12773 cat <<_LT_EOF 1>&2
12774
12775*** Warning: the command libtool uses to detect shared libraries,
12776*** $file_magic_cmd, produces output that libtool cannot recognize.
12777*** The result is that libtool may fail to recognize shared libraries
12778*** as such. This will affect the creation of libtool libraries that
12779*** depend on shared libraries, but programs linked with such libtool
12780*** libraries will work regardless of this problem. Nevertheless, you
12781*** may want to report the problem to your system manager and/or to
12782*** bug-libtool@gnu.org
12783
12784_LT_EOF
12785 fi ;;
12786 esac
12787 fi
12788 break
12789 fi
12790 done
12791 IFS="$lt_save_ifs"
12792 MAGIC_CMD="$lt_save_MAGIC_CMD"
12793 ;;
12794esac
12795fi
12796
12797MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12798if test -n "$MAGIC_CMD"; then
cristy8b350f62009-11-15 23:12:43 +000012799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
cristy3ed852e2009-09-05 21:47:34 +000012800$as_echo "$MAGIC_CMD" >&6; }
12801else
cristy8b350f62009-11-15 23:12:43 +000012802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000012803$as_echo "no" >&6; }
12804fi
12805
12806
12807
12808
12809
12810if test -z "$lt_cv_path_MAGIC_CMD"; then
12811 if test -n "$ac_tool_prefix"; then
cristy8b350f62009-11-15 23:12:43 +000012812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
cristy3ed852e2009-09-05 21:47:34 +000012813$as_echo_n "checking for file... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012814if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012815 $as_echo_n "(cached) " >&6
12816else
12817 case $MAGIC_CMD in
12818[\\/*] | ?:[\\/]*)
12819 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12820 ;;
12821*)
12822 lt_save_MAGIC_CMD="$MAGIC_CMD"
12823 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12824 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12825 for ac_dir in $ac_dummy; do
12826 IFS="$lt_save_ifs"
12827 test -z "$ac_dir" && ac_dir=.
12828 if test -f $ac_dir/file; then
12829 lt_cv_path_MAGIC_CMD="$ac_dir/file"
12830 if test -n "$file_magic_test_file"; then
12831 case $deplibs_check_method in
12832 "file_magic "*)
12833 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12834 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12835 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12836 $EGREP "$file_magic_regex" > /dev/null; then
12837 :
12838 else
12839 cat <<_LT_EOF 1>&2
12840
12841*** Warning: the command libtool uses to detect shared libraries,
12842*** $file_magic_cmd, produces output that libtool cannot recognize.
12843*** The result is that libtool may fail to recognize shared libraries
12844*** as such. This will affect the creation of libtool libraries that
12845*** depend on shared libraries, but programs linked with such libtool
12846*** libraries will work regardless of this problem. Nevertheless, you
12847*** may want to report the problem to your system manager and/or to
12848*** bug-libtool@gnu.org
12849
12850_LT_EOF
12851 fi ;;
12852 esac
12853 fi
12854 break
12855 fi
12856 done
12857 IFS="$lt_save_ifs"
12858 MAGIC_CMD="$lt_save_MAGIC_CMD"
12859 ;;
12860esac
12861fi
12862
12863MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12864if test -n "$MAGIC_CMD"; then
cristy8b350f62009-11-15 23:12:43 +000012865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
cristy3ed852e2009-09-05 21:47:34 +000012866$as_echo "$MAGIC_CMD" >&6; }
12867else
cristy8b350f62009-11-15 23:12:43 +000012868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000012869$as_echo "no" >&6; }
12870fi
12871
12872
12873 else
12874 MAGIC_CMD=:
12875 fi
12876fi
12877
12878 fi
12879 ;;
12880esac
12881
12882# Use C for the default configuration in the libtool script
12883
12884lt_save_CC="$CC"
12885ac_ext=c
12886ac_cpp='$CPP $CPPFLAGS'
12887ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12888ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12889ac_compiler_gnu=$ac_cv_c_compiler_gnu
12890
12891
12892# Source file extension for C test sources.
12893ac_ext=c
12894
12895# Object file extension for compiled C test sources.
12896objext=o
12897objext=$objext
12898
12899# Code to be used in simple compile tests
12900lt_simple_compile_test_code="int some_variable = 0;"
12901
12902# Code to be used in simple link tests
12903lt_simple_link_test_code='int main(){return(0);}'
12904
12905
12906
12907
12908
12909
12910
12911# If no C compiler was specified, use CC.
12912LTCC=${LTCC-"$CC"}
12913
12914# If no C compiler flags were specified, use CFLAGS.
12915LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12916
12917# Allow CC to be a program name with arguments.
12918compiler=$CC
12919
12920# Save the default compiler, since it gets overwritten when the other
12921# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
12922compiler_DEFAULT=$CC
12923
12924# save warnings/boilerplate of simple test code
12925ac_outfile=conftest.$ac_objext
12926echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12927eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12928_lt_compiler_boilerplate=`cat conftest.err`
12929$RM conftest*
12930
12931ac_outfile=conftest.$ac_objext
12932echo "$lt_simple_link_test_code" >conftest.$ac_ext
12933eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12934_lt_linker_boilerplate=`cat conftest.err`
12935$RM -r conftest*
12936
12937
12938## CAVEAT EMPTOR:
12939## There is no encapsulation within the following macros, do not change
12940## the running order or otherwise move them around unless you know exactly
12941## what you are doing...
12942if test -n "$compiler"; then
12943
12944lt_prog_compiler_no_builtin_flag=
12945
12946if test "$GCC" = yes; then
cristy18304f92009-11-22 15:48:26 +000012947 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
cristy3ed852e2009-09-05 21:47:34 +000012948
cristy8b350f62009-11-15 23:12:43 +000012949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
cristy3ed852e2009-09-05 21:47:34 +000012950$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012951if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012952 $as_echo_n "(cached) " >&6
12953else
12954 lt_cv_prog_compiler_rtti_exceptions=no
12955 ac_outfile=conftest.$ac_objext
12956 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12957 lt_compiler_flag="-fno-rtti -fno-exceptions"
12958 # Insert the option either (1) after the last *FLAGS variable, or
12959 # (2) before a word containing "conftest.", or (3) at the end.
12960 # Note that $ac_compile itself does not contain backslashes and begins
12961 # with a dollar sign (not a hyphen), so the echo should work correctly.
12962 # The option is referenced via a variable to avoid confusing sed.
12963 lt_compile=`echo "$ac_compile" | $SED \
12964 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12965 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12966 -e 's:$: $lt_compiler_flag:'`
cristy92703d82010-04-26 00:18:18 +000012967 (eval echo "\"\$as_me:12967: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000012968 (eval "$lt_compile" 2>conftest.err)
12969 ac_status=$?
12970 cat conftest.err >&5
cristy92703d82010-04-26 00:18:18 +000012971 echo "$as_me:12971: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000012972 if (exit $ac_status) && test -s "$ac_outfile"; then
12973 # The compiler can only warn and ignore the option if not recognized
12974 # So say no if there are warnings other than the usual output.
cristy18304f92009-11-22 15:48:26 +000012975 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000012976 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12977 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12978 lt_cv_prog_compiler_rtti_exceptions=yes
12979 fi
12980 fi
12981 $RM conftest*
12982
12983fi
cristy8b350f62009-11-15 23:12:43 +000012984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
cristy3ed852e2009-09-05 21:47:34 +000012985$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
12986
12987if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
12988 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
12989else
12990 :
12991fi
12992
12993fi
12994
12995
12996
12997
12998
12999
13000 lt_prog_compiler_wl=
13001lt_prog_compiler_pic=
13002lt_prog_compiler_static=
13003
cristy8b350f62009-11-15 23:12:43 +000013004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
cristy3ed852e2009-09-05 21:47:34 +000013005$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13006
13007 if test "$GCC" = yes; then
13008 lt_prog_compiler_wl='-Wl,'
13009 lt_prog_compiler_static='-static'
13010
13011 case $host_os in
13012 aix*)
13013 # All AIX code is PIC.
13014 if test "$host_cpu" = ia64; then
13015 # AIX 5 now supports IA64 processor
13016 lt_prog_compiler_static='-Bstatic'
13017 fi
13018 ;;
13019
13020 amigaos*)
13021 case $host_cpu in
13022 powerpc)
13023 # see comment about AmigaOS4 .so support
13024 lt_prog_compiler_pic='-fPIC'
13025 ;;
13026 m68k)
13027 # FIXME: we need at least 68020 code to build shared libraries, but
13028 # adding the `-m68020' flag to GCC prevents building anything better,
13029 # like `-m68040'.
13030 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
13031 ;;
13032 esac
13033 ;;
13034
13035 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13036 # PIC is the default for these OSes.
13037 ;;
13038
13039 mingw* | cygwin* | pw32* | os2* | cegcc*)
13040 # This hack is so that the source file can tell whether it is being
13041 # built for inclusion in a dll (and should export symbols for example).
13042 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13043 # (--disable-auto-import) libraries
13044 lt_prog_compiler_pic='-DDLL_EXPORT'
13045 ;;
13046
13047 darwin* | rhapsody*)
13048 # PIC is the default on this platform
13049 # Common symbols not allowed in MH_DYLIB files
13050 lt_prog_compiler_pic='-fno-common'
13051 ;;
13052
13053 hpux*)
13054 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13055 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13056 # sets the default TLS model and affects inlining.
13057 case $host_cpu in
13058 hppa*64*)
13059 # +Z the default
13060 ;;
13061 *)
13062 lt_prog_compiler_pic='-fPIC'
13063 ;;
13064 esac
13065 ;;
13066
13067 interix[3-9]*)
13068 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13069 # Instead, we relocate shared libraries at runtime.
13070 ;;
13071
13072 msdosdjgpp*)
13073 # Just because we use GCC doesn't mean we suddenly get shared libraries
13074 # on systems that don't support them.
13075 lt_prog_compiler_can_build_shared=no
13076 enable_shared=no
13077 ;;
13078
13079 *nto* | *qnx*)
13080 # QNX uses GNU C++, but need to define -shared option too, otherwise
13081 # it will coredump.
13082 lt_prog_compiler_pic='-fPIC -shared'
13083 ;;
13084
13085 sysv4*MP*)
13086 if test -d /usr/nec; then
13087 lt_prog_compiler_pic=-Kconform_pic
13088 fi
13089 ;;
13090
13091 *)
13092 lt_prog_compiler_pic='-fPIC'
13093 ;;
13094 esac
13095 else
13096 # PORTME Check for flag to pass linker flags through the system compiler.
13097 case $host_os in
13098 aix*)
13099 lt_prog_compiler_wl='-Wl,'
13100 if test "$host_cpu" = ia64; then
13101 # AIX 5 now supports IA64 processor
13102 lt_prog_compiler_static='-Bstatic'
13103 else
13104 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
13105 fi
13106 ;;
13107
13108 mingw* | cygwin* | pw32* | os2* | cegcc*)
13109 # This hack is so that the source file can tell whether it is being
13110 # built for inclusion in a dll (and should export symbols for example).
13111 lt_prog_compiler_pic='-DDLL_EXPORT'
13112 ;;
13113
13114 hpux9* | hpux10* | hpux11*)
13115 lt_prog_compiler_wl='-Wl,'
13116 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13117 # not for PA HP-UX.
13118 case $host_cpu in
13119 hppa*64*|ia64*)
13120 # +Z the default
13121 ;;
13122 *)
13123 lt_prog_compiler_pic='+Z'
13124 ;;
13125 esac
13126 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13127 lt_prog_compiler_static='${wl}-a ${wl}archive'
13128 ;;
13129
13130 irix5* | irix6* | nonstopux*)
13131 lt_prog_compiler_wl='-Wl,'
13132 # PIC (with -KPIC) is the default.
13133 lt_prog_compiler_static='-non_shared'
13134 ;;
13135
cristy18304f92009-11-22 15:48:26 +000013136 linux* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000013137 case $cc_basename in
13138 # old Intel for x86_64 which still supported -KPIC.
13139 ecc*)
13140 lt_prog_compiler_wl='-Wl,'
13141 lt_prog_compiler_pic='-KPIC'
13142 lt_prog_compiler_static='-static'
13143 ;;
13144 # icc used to be incompatible with GCC.
13145 # ICC 10 doesn't accept -KPIC any more.
13146 icc* | ifort*)
13147 lt_prog_compiler_wl='-Wl,'
13148 lt_prog_compiler_pic='-fPIC'
13149 lt_prog_compiler_static='-static'
13150 ;;
13151 # Lahey Fortran 8.1.
13152 lf95*)
13153 lt_prog_compiler_wl='-Wl,'
13154 lt_prog_compiler_pic='--shared'
13155 lt_prog_compiler_static='--static'
13156 ;;
cristy18304f92009-11-22 15:48:26 +000013157 pgcc* | pgf77* | pgf90* | pgf95*)
cristy3ed852e2009-09-05 21:47:34 +000013158 # Portland Group compilers (*not* the Pentium gcc compiler,
13159 # which looks to be a dead project)
13160 lt_prog_compiler_wl='-Wl,'
13161 lt_prog_compiler_pic='-fpic'
13162 lt_prog_compiler_static='-Bstatic'
13163 ;;
13164 ccc*)
13165 lt_prog_compiler_wl='-Wl,'
13166 # All Alpha code is PIC.
13167 lt_prog_compiler_static='-non_shared'
13168 ;;
cristy18304f92009-11-22 15:48:26 +000013169 xl*)
13170 # IBM XL C 8.0/Fortran 10.1 on PPC
cristy3ed852e2009-09-05 21:47:34 +000013171 lt_prog_compiler_wl='-Wl,'
13172 lt_prog_compiler_pic='-qpic'
13173 lt_prog_compiler_static='-qstaticlink'
13174 ;;
13175 *)
13176 case `$CC -V 2>&1 | sed 5q` in
13177 *Sun\ C*)
13178 # Sun C 5.9
13179 lt_prog_compiler_pic='-KPIC'
13180 lt_prog_compiler_static='-Bstatic'
13181 lt_prog_compiler_wl='-Wl,'
13182 ;;
cristy18304f92009-11-22 15:48:26 +000013183 *Sun\ F*)
13184 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13185 lt_prog_compiler_pic='-KPIC'
13186 lt_prog_compiler_static='-Bstatic'
13187 lt_prog_compiler_wl=''
13188 ;;
cristy3ed852e2009-09-05 21:47:34 +000013189 esac
13190 ;;
13191 esac
13192 ;;
13193
13194 newsos6)
13195 lt_prog_compiler_pic='-KPIC'
13196 lt_prog_compiler_static='-Bstatic'
13197 ;;
13198
13199 *nto* | *qnx*)
13200 # QNX uses GNU C++, but need to define -shared option too, otherwise
13201 # it will coredump.
13202 lt_prog_compiler_pic='-fPIC -shared'
13203 ;;
13204
13205 osf3* | osf4* | osf5*)
13206 lt_prog_compiler_wl='-Wl,'
13207 # All OSF/1 code is PIC.
13208 lt_prog_compiler_static='-non_shared'
13209 ;;
13210
13211 rdos*)
13212 lt_prog_compiler_static='-non_shared'
13213 ;;
13214
13215 solaris*)
13216 lt_prog_compiler_pic='-KPIC'
13217 lt_prog_compiler_static='-Bstatic'
13218 case $cc_basename in
13219 f77* | f90* | f95*)
13220 lt_prog_compiler_wl='-Qoption ld ';;
13221 *)
13222 lt_prog_compiler_wl='-Wl,';;
13223 esac
13224 ;;
13225
13226 sunos4*)
13227 lt_prog_compiler_wl='-Qoption ld '
13228 lt_prog_compiler_pic='-PIC'
13229 lt_prog_compiler_static='-Bstatic'
13230 ;;
13231
13232 sysv4 | sysv4.2uw2* | sysv4.3*)
13233 lt_prog_compiler_wl='-Wl,'
13234 lt_prog_compiler_pic='-KPIC'
13235 lt_prog_compiler_static='-Bstatic'
13236 ;;
13237
13238 sysv4*MP*)
13239 if test -d /usr/nec ;then
13240 lt_prog_compiler_pic='-Kconform_pic'
13241 lt_prog_compiler_static='-Bstatic'
13242 fi
13243 ;;
13244
13245 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13246 lt_prog_compiler_wl='-Wl,'
13247 lt_prog_compiler_pic='-KPIC'
13248 lt_prog_compiler_static='-Bstatic'
13249 ;;
13250
13251 unicos*)
13252 lt_prog_compiler_wl='-Wl,'
13253 lt_prog_compiler_can_build_shared=no
13254 ;;
13255
13256 uts4*)
13257 lt_prog_compiler_pic='-pic'
13258 lt_prog_compiler_static='-Bstatic'
13259 ;;
13260
13261 *)
13262 lt_prog_compiler_can_build_shared=no
13263 ;;
13264 esac
13265 fi
13266
13267case $host_os in
13268 # For platforms which do not support PIC, -DPIC is meaningless:
13269 *djgpp*)
13270 lt_prog_compiler_pic=
13271 ;;
13272 *)
13273 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
13274 ;;
13275esac
cristy8b350f62009-11-15 23:12:43 +000013276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
cristy3ed852e2009-09-05 21:47:34 +000013277$as_echo "$lt_prog_compiler_pic" >&6; }
13278
13279
13280
13281
13282
13283
13284#
13285# Check to make sure the PIC flag actually works.
13286#
13287if test -n "$lt_prog_compiler_pic"; then
cristy8b350f62009-11-15 23:12:43 +000013288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
cristy3ed852e2009-09-05 21:47:34 +000013289$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000013290if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000013291 $as_echo_n "(cached) " >&6
13292else
13293 lt_cv_prog_compiler_pic_works=no
13294 ac_outfile=conftest.$ac_objext
13295 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13296 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
13297 # Insert the option either (1) after the last *FLAGS variable, or
13298 # (2) before a word containing "conftest.", or (3) at the end.
13299 # Note that $ac_compile itself does not contain backslashes and begins
13300 # with a dollar sign (not a hyphen), so the echo should work correctly.
13301 # The option is referenced via a variable to avoid confusing sed.
13302 lt_compile=`echo "$ac_compile" | $SED \
13303 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13304 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13305 -e 's:$: $lt_compiler_flag:'`
cristy92703d82010-04-26 00:18:18 +000013306 (eval echo "\"\$as_me:13306: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000013307 (eval "$lt_compile" 2>conftest.err)
13308 ac_status=$?
13309 cat conftest.err >&5
cristy92703d82010-04-26 00:18:18 +000013310 echo "$as_me:13310: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000013311 if (exit $ac_status) && test -s "$ac_outfile"; then
13312 # The compiler can only warn and ignore the option if not recognized
13313 # So say no if there are warnings other than the usual output.
cristy18304f92009-11-22 15:48:26 +000013314 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000013315 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13316 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13317 lt_cv_prog_compiler_pic_works=yes
13318 fi
13319 fi
13320 $RM conftest*
13321
13322fi
cristy8b350f62009-11-15 23:12:43 +000013323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000013324$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
13325
13326if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
13327 case $lt_prog_compiler_pic in
13328 "" | " "*) ;;
13329 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
13330 esac
13331else
13332 lt_prog_compiler_pic=
13333 lt_prog_compiler_can_build_shared=no
13334fi
13335
13336fi
13337
13338
13339
13340
13341
13342
13343#
13344# Check to make sure the static flag actually works.
13345#
13346wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
cristy8b350f62009-11-15 23:12:43 +000013347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
cristy3ed852e2009-09-05 21:47:34 +000013348$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000013349if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000013350 $as_echo_n "(cached) " >&6
13351else
13352 lt_cv_prog_compiler_static_works=no
13353 save_LDFLAGS="$LDFLAGS"
13354 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13355 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13356 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13357 # The linker can only warn and ignore the option if not recognized
13358 # So say no if there are warnings
13359 if test -s conftest.err; then
13360 # Append any errors to the config.log.
13361 cat conftest.err 1>&5
cristy18304f92009-11-22 15:48:26 +000013362 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000013363 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13364 if diff conftest.exp conftest.er2 >/dev/null; then
13365 lt_cv_prog_compiler_static_works=yes
13366 fi
13367 else
13368 lt_cv_prog_compiler_static_works=yes
13369 fi
13370 fi
13371 $RM -r conftest*
13372 LDFLAGS="$save_LDFLAGS"
13373
13374fi
cristy8b350f62009-11-15 23:12:43 +000013375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000013376$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
13377
13378if test x"$lt_cv_prog_compiler_static_works" = xyes; then
13379 :
13380else
13381 lt_prog_compiler_static=
13382fi
13383
13384
13385
13386
13387
13388
13389
cristy8b350f62009-11-15 23:12:43 +000013390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +000013391$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000013392if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000013393 $as_echo_n "(cached) " >&6
13394else
13395 lt_cv_prog_compiler_c_o=no
13396 $RM -r conftest 2>/dev/null
13397 mkdir conftest
13398 cd conftest
13399 mkdir out
13400 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13401
13402 lt_compiler_flag="-o out/conftest2.$ac_objext"
13403 # Insert the option either (1) after the last *FLAGS variable, or
13404 # (2) before a word containing "conftest.", or (3) at the end.
13405 # Note that $ac_compile itself does not contain backslashes and begins
13406 # with a dollar sign (not a hyphen), so the echo should work correctly.
13407 lt_compile=`echo "$ac_compile" | $SED \
13408 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13409 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13410 -e 's:$: $lt_compiler_flag:'`
cristy92703d82010-04-26 00:18:18 +000013411 (eval echo "\"\$as_me:13411: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000013412 (eval "$lt_compile" 2>out/conftest.err)
13413 ac_status=$?
13414 cat out/conftest.err >&5
cristy92703d82010-04-26 00:18:18 +000013415 echo "$as_me:13415: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000013416 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13417 then
13418 # The compiler can only warn and ignore the option if not recognized
13419 # So say no if there are warnings
cristy18304f92009-11-22 15:48:26 +000013420 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000013421 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13422 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13423 lt_cv_prog_compiler_c_o=yes
13424 fi
13425 fi
13426 chmod u+w . 2>&5
13427 $RM conftest*
13428 # SGI C++ compiler will create directory out/ii_files/ for
13429 # template instantiation
13430 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13431 $RM out/* && rmdir out
13432 cd ..
13433 $RM -r conftest
13434 $RM conftest*
13435
13436fi
cristy8b350f62009-11-15 23:12:43 +000013437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
cristy3ed852e2009-09-05 21:47:34 +000013438$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
13439
13440
13441
13442
13443
13444
cristy8b350f62009-11-15 23:12:43 +000013445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +000013446$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000013447if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000013448 $as_echo_n "(cached) " >&6
13449else
13450 lt_cv_prog_compiler_c_o=no
13451 $RM -r conftest 2>/dev/null
13452 mkdir conftest
13453 cd conftest
13454 mkdir out
13455 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13456
13457 lt_compiler_flag="-o out/conftest2.$ac_objext"
13458 # Insert the option either (1) after the last *FLAGS variable, or
13459 # (2) before a word containing "conftest.", or (3) at the end.
13460 # Note that $ac_compile itself does not contain backslashes and begins
13461 # with a dollar sign (not a hyphen), so the echo should work correctly.
13462 lt_compile=`echo "$ac_compile" | $SED \
13463 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13464 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13465 -e 's:$: $lt_compiler_flag:'`
cristy92703d82010-04-26 00:18:18 +000013466 (eval echo "\"\$as_me:13466: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000013467 (eval "$lt_compile" 2>out/conftest.err)
13468 ac_status=$?
13469 cat out/conftest.err >&5
cristy92703d82010-04-26 00:18:18 +000013470 echo "$as_me:13470: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000013471 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13472 then
13473 # The compiler can only warn and ignore the option if not recognized
13474 # So say no if there are warnings
cristy18304f92009-11-22 15:48:26 +000013475 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000013476 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13477 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13478 lt_cv_prog_compiler_c_o=yes
13479 fi
13480 fi
13481 chmod u+w . 2>&5
13482 $RM conftest*
13483 # SGI C++ compiler will create directory out/ii_files/ for
13484 # template instantiation
13485 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13486 $RM out/* && rmdir out
13487 cd ..
13488 $RM -r conftest
13489 $RM conftest*
13490
13491fi
cristy8b350f62009-11-15 23:12:43 +000013492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
cristy3ed852e2009-09-05 21:47:34 +000013493$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
13494
13495
13496
13497
13498hard_links="nottested"
13499if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
13500 # do not overwrite the value of need_locks provided by the user
cristy8b350f62009-11-15 23:12:43 +000013501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
cristy3ed852e2009-09-05 21:47:34 +000013502$as_echo_n "checking if we can lock with hard links... " >&6; }
13503 hard_links=yes
13504 $RM conftest*
13505 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13506 touch conftest.a
13507 ln conftest.a conftest.b 2>&5 || hard_links=no
13508 ln conftest.a conftest.b 2>/dev/null && hard_links=no
cristy8b350f62009-11-15 23:12:43 +000013509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
cristy3ed852e2009-09-05 21:47:34 +000013510$as_echo "$hard_links" >&6; }
13511 if test "$hard_links" = no; then
cristy8b350f62009-11-15 23:12:43 +000013512 { $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 +000013513$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13514 need_locks=warn
13515 fi
13516else
13517 need_locks=no
13518fi
13519
13520
13521
13522
13523
13524
cristy8b350f62009-11-15 23:12:43 +000013525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000013526$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13527
13528 runpath_var=
13529 allow_undefined_flag=
13530 always_export_symbols=no
13531 archive_cmds=
13532 archive_expsym_cmds=
13533 compiler_needs_object=no
13534 enable_shared_with_static_runtimes=no
13535 export_dynamic_flag_spec=
13536 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13537 hardcode_automatic=no
13538 hardcode_direct=no
13539 hardcode_direct_absolute=no
13540 hardcode_libdir_flag_spec=
13541 hardcode_libdir_flag_spec_ld=
13542 hardcode_libdir_separator=
13543 hardcode_minus_L=no
13544 hardcode_shlibpath_var=unsupported
13545 inherit_rpath=no
13546 link_all_deplibs=unknown
13547 module_cmds=
13548 module_expsym_cmds=
13549 old_archive_from_new_cmds=
13550 old_archive_from_expsyms_cmds=
13551 thread_safe_flag_spec=
13552 whole_archive_flag_spec=
13553 # include_expsyms should be a list of space-separated symbols to be *always*
13554 # included in the symbol list
13555 include_expsyms=
13556 # exclude_expsyms can be an extended regexp of symbols to exclude
13557 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13558 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13559 # as well as any symbol that contains `d'.
13560 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13561 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13562 # platforms (ab)use it in PIC code, but their linkers get confused if
13563 # the symbol is explicitly referenced. Since portable code cannot
13564 # rely on this symbol name, it's probably fine to never include it in
13565 # preloaded symbol tables.
13566 # Exclude shared library initialization/finalization symbols.
13567 extract_expsyms_cmds=
13568
13569 case $host_os in
13570 cygwin* | mingw* | pw32* | cegcc*)
13571 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13572 # When not using gcc, we currently assume that we are using
13573 # Microsoft Visual C++.
13574 if test "$GCC" != yes; then
13575 with_gnu_ld=no
13576 fi
13577 ;;
13578 interix*)
13579 # we just hope/assume this is gcc and not c89 (= MSVC++)
13580 with_gnu_ld=yes
13581 ;;
13582 openbsd*)
13583 with_gnu_ld=no
13584 ;;
13585 esac
13586
13587 ld_shlibs=yes
13588 if test "$with_gnu_ld" = yes; then
13589 # If archive_cmds runs LD, not CC, wlarc should be empty
13590 wlarc='${wl}'
13591
13592 # Set some defaults for GNU ld with shared library support. These
13593 # are reset later if shared libraries are not supported. Putting them
13594 # here allows them to be overridden if necessary.
13595 runpath_var=LD_RUN_PATH
13596 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13597 export_dynamic_flag_spec='${wl}--export-dynamic'
13598 # ancient GNU ld didn't support --whole-archive et. al.
13599 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
13600 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13601 else
13602 whole_archive_flag_spec=
13603 fi
13604 supports_anon_versioning=no
13605 case `$LD -v 2>&1` in
13606 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13607 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13608 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13609 *\ 2.11.*) ;; # other 2.11 versions
13610 *) supports_anon_versioning=yes ;;
13611 esac
13612
13613 # See if GNU ld supports shared libraries.
13614 case $host_os in
13615 aix[3-9]*)
13616 # On AIX/PPC, the GNU linker is very broken
13617 if test "$host_cpu" != ia64; then
13618 ld_shlibs=no
13619 cat <<_LT_EOF 1>&2
13620
cristy18304f92009-11-22 15:48:26 +000013621*** Warning: the GNU linker, at least up to release 2.9.1, is reported
cristy3ed852e2009-09-05 21:47:34 +000013622*** to be unable to reliably create shared libraries on AIX.
13623*** Therefore, libtool is disabling shared libraries support. If you
cristy18304f92009-11-22 15:48:26 +000013624*** really care for shared libraries, you may want to modify your PATH
13625*** so that a non-GNU linker is found, and then restart.
cristy3ed852e2009-09-05 21:47:34 +000013626
13627_LT_EOF
13628 fi
13629 ;;
13630
13631 amigaos*)
13632 case $host_cpu in
13633 powerpc)
13634 # see comment about AmigaOS4 .so support
13635 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13636 archive_expsym_cmds=''
13637 ;;
13638 m68k)
13639 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)'
13640 hardcode_libdir_flag_spec='-L$libdir'
13641 hardcode_minus_L=yes
13642 ;;
13643 esac
13644 ;;
13645
13646 beos*)
13647 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13648 allow_undefined_flag=unsupported
13649 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13650 # support --undefined. This deserves some investigation. FIXME
13651 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13652 else
13653 ld_shlibs=no
13654 fi
13655 ;;
13656
13657 cygwin* | mingw* | pw32* | cegcc*)
13658 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
13659 # as there is no search path for DLLs.
13660 hardcode_libdir_flag_spec='-L$libdir'
13661 allow_undefined_flag=unsupported
13662 always_export_symbols=no
13663 enable_shared_with_static_runtimes=yes
13664 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13665
13666 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13667 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13668 # If the export-symbols file already is a .def file (1st line
13669 # is EXPORTS), use it as is; otherwise, prepend...
13670 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13671 cp $export_symbols $output_objdir/$soname.def;
13672 else
13673 echo EXPORTS > $output_objdir/$soname.def;
13674 cat $export_symbols >> $output_objdir/$soname.def;
13675 fi~
13676 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13677 else
13678 ld_shlibs=no
13679 fi
13680 ;;
13681
13682 interix[3-9]*)
13683 hardcode_direct=no
13684 hardcode_shlibpath_var=no
13685 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13686 export_dynamic_flag_spec='${wl}-E'
13687 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13688 # Instead, shared libraries are loaded at an image base (0x10000000 by
13689 # default) and relocated if they conflict, which is a slow very memory
13690 # consuming and fragmenting process. To avoid this, we pick a random,
13691 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13692 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13693 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13694 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'
13695 ;;
13696
cristy18304f92009-11-22 15:48:26 +000013697 gnu* | linux* | tpf* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000013698 tmp_diet=no
13699 if test "$host_os" = linux-dietlibc; then
13700 case $cc_basename in
13701 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
13702 esac
13703 fi
13704 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
13705 && test "$tmp_diet" = no
13706 then
13707 tmp_addflag=
13708 tmp_sharedflag='-shared'
13709 case $cc_basename,$host_cpu in
13710 pgcc*) # Portland Group C compiler
cristy18304f92009-11-22 15:48:26 +000013711 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 +000013712 tmp_addflag=' $pic_flag'
13713 ;;
cristy18304f92009-11-22 15:48:26 +000013714 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
13715 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 +000013716 tmp_addflag=' $pic_flag -Mnomain' ;;
13717 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13718 tmp_addflag=' -i_dynamic' ;;
13719 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13720 tmp_addflag=' -i_dynamic -nofor_main' ;;
13721 ifc* | ifort*) # Intel Fortran compiler
13722 tmp_addflag=' -nofor_main' ;;
13723 lf95*) # Lahey Fortran 8.1
13724 whole_archive_flag_spec=
13725 tmp_sharedflag='--shared' ;;
cristy18304f92009-11-22 15:48:26 +000013726 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
cristy3ed852e2009-09-05 21:47:34 +000013727 tmp_sharedflag='-qmkshrobj'
13728 tmp_addflag= ;;
13729 esac
13730 case `$CC -V 2>&1 | sed 5q` in
13731 *Sun\ C*) # Sun C 5.9
cristy18304f92009-11-22 15:48:26 +000013732 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 +000013733 compiler_needs_object=yes
13734 tmp_sharedflag='-G' ;;
13735 *Sun\ F*) # Sun Fortran 8.3
13736 tmp_sharedflag='-G' ;;
13737 esac
13738 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13739
13740 if test "x$supports_anon_versioning" = xyes; then
13741 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13742 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13743 echo "local: *; };" >> $output_objdir/$libname.ver~
13744 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13745 fi
13746
13747 case $cc_basename in
cristy18304f92009-11-22 15:48:26 +000013748 xlf*)
cristy3ed852e2009-09-05 21:47:34 +000013749 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
13750 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
13751 hardcode_libdir_flag_spec=
13752 hardcode_libdir_flag_spec_ld='-rpath $libdir'
13753 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
13754 if test "x$supports_anon_versioning" = xyes; then
13755 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13756 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13757 echo "local: *; };" >> $output_objdir/$libname.ver~
13758 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
13759 fi
13760 ;;
13761 esac
13762 else
13763 ld_shlibs=no
13764 fi
13765 ;;
13766
13767 netbsd*)
13768 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13769 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13770 wlarc=
13771 else
13772 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13773 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13774 fi
13775 ;;
13776
13777 solaris*)
13778 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
13779 ld_shlibs=no
13780 cat <<_LT_EOF 1>&2
13781
13782*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13783*** create shared libraries on Solaris systems. Therefore, libtool
13784*** is disabling shared libraries support. We urge you to upgrade GNU
13785*** binutils to release 2.9.1 or newer. Another option is to modify
13786*** your PATH or compiler configuration so that the native linker is
13787*** used, and then restart.
13788
13789_LT_EOF
13790 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13791 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13792 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13793 else
13794 ld_shlibs=no
13795 fi
13796 ;;
13797
13798 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13799 case `$LD -v 2>&1` in
13800 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13801 ld_shlibs=no
13802 cat <<_LT_EOF 1>&2
13803
13804*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13805*** reliably create shared libraries on SCO systems. Therefore, libtool
13806*** is disabling shared libraries support. We urge you to upgrade GNU
13807*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13808*** your PATH or compiler configuration so that the native linker is
13809*** used, and then restart.
13810
13811_LT_EOF
13812 ;;
13813 *)
13814 # For security reasons, it is highly recommended that you always
13815 # use absolute paths for naming shared libraries, and exclude the
13816 # DT_RUNPATH tag from executables and libraries. But doing so
13817 # requires that you compile everything twice, which is a pain.
13818 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13819 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13820 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13821 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13822 else
13823 ld_shlibs=no
13824 fi
13825 ;;
13826 esac
13827 ;;
13828
13829 sunos4*)
13830 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13831 wlarc=
13832 hardcode_direct=yes
13833 hardcode_shlibpath_var=no
13834 ;;
13835
13836 *)
13837 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13838 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13839 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13840 else
13841 ld_shlibs=no
13842 fi
13843 ;;
13844 esac
13845
13846 if test "$ld_shlibs" = no; then
13847 runpath_var=
13848 hardcode_libdir_flag_spec=
13849 export_dynamic_flag_spec=
13850 whole_archive_flag_spec=
13851 fi
13852 else
13853 # PORTME fill in a description of your system's linker (not GNU ld)
13854 case $host_os in
13855 aix3*)
13856 allow_undefined_flag=unsupported
13857 always_export_symbols=yes
13858 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'
13859 # Note: this linker hardcodes the directories in LIBPATH if there
13860 # are no directories specified by -L.
13861 hardcode_minus_L=yes
13862 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13863 # Neither direct hardcoding nor static linking is supported with a
13864 # broken collect2.
13865 hardcode_direct=unsupported
13866 fi
13867 ;;
13868
13869 aix[4-9]*)
13870 if test "$host_cpu" = ia64; then
13871 # On IA64, the linker does run time linking by default, so we don't
13872 # have to do anything special.
13873 aix_use_runtimelinking=no
13874 exp_sym_flag='-Bexport'
13875 no_entry_flag=""
13876 else
13877 # If we're using GNU nm, then we don't want the "-C" option.
13878 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13879 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy18304f92009-11-22 15:48:26 +000013880 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 +000013881 else
13882 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'
13883 fi
13884 aix_use_runtimelinking=no
13885
13886 # Test if we are trying to use run time linking or normal
13887 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13888 # need to do runtime linking.
13889 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13890 for ld_flag in $LDFLAGS; do
13891 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13892 aix_use_runtimelinking=yes
13893 break
13894 fi
13895 done
13896 ;;
13897 esac
13898
13899 exp_sym_flag='-bexport'
13900 no_entry_flag='-bnoentry'
13901 fi
13902
13903 # When large executables or shared objects are built, AIX ld can
13904 # have problems creating the table of contents. If linking a library
13905 # or program results in "error TOC overflow" add -mminimal-toc to
13906 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13907 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13908
13909 archive_cmds=''
13910 hardcode_direct=yes
13911 hardcode_direct_absolute=yes
13912 hardcode_libdir_separator=':'
13913 link_all_deplibs=yes
13914 file_list_spec='${wl}-f,'
13915
13916 if test "$GCC" = yes; then
13917 case $host_os in aix4.[012]|aix4.[012].*)
13918 # We only want to do this on AIX 4.2 and lower, the check
13919 # below for broken collect2 doesn't work under 4.3+
13920 collect2name=`${CC} -print-prog-name=collect2`
13921 if test -f "$collect2name" &&
13922 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13923 then
13924 # We have reworked collect2
13925 :
13926 else
13927 # We have old collect2
13928 hardcode_direct=unsupported
13929 # It fails to find uninstalled libraries when the uninstalled
13930 # path is not listed in the libpath. Setting hardcode_minus_L
13931 # to unsupported forces relinking
13932 hardcode_minus_L=yes
13933 hardcode_libdir_flag_spec='-L$libdir'
13934 hardcode_libdir_separator=
13935 fi
13936 ;;
13937 esac
13938 shared_flag='-shared'
13939 if test "$aix_use_runtimelinking" = yes; then
13940 shared_flag="$shared_flag "'${wl}-G'
13941 fi
13942 else
13943 # not using gcc
13944 if test "$host_cpu" = ia64; then
13945 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13946 # chokes on -Wl,-G. The following line is correct:
13947 shared_flag='-G'
13948 else
13949 if test "$aix_use_runtimelinking" = yes; then
13950 shared_flag='${wl}-G'
13951 else
13952 shared_flag='${wl}-bM:SRE'
13953 fi
13954 fi
13955 fi
13956
13957 export_dynamic_flag_spec='${wl}-bexpall'
13958 # It seems that -bexpall does not export symbols beginning with
13959 # underscore (_), so it is better to generate a list of symbols to export.
13960 always_export_symbols=yes
13961 if test "$aix_use_runtimelinking" = yes; then
13962 # Warning - without using the other runtime loading flags (-brtl),
13963 # -berok will link without error, but may produce a broken library.
13964 allow_undefined_flag='-berok'
13965 # Determine the default libpath from the value encoded in an
13966 # empty executable.
cristy8b350f62009-11-15 23:12:43 +000013967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000013968/* end confdefs.h. */
13969
13970int
13971main ()
13972{
13973
13974 ;
13975 return 0;
13976}
13977_ACEOF
cristy8b350f62009-11-15 23:12:43 +000013978if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000013979
13980lt_aix_libpath_sed='
13981 /Import File Strings/,/^$/ {
13982 /^0/ {
13983 s/^0 *\(.*\)$/\1/
13984 p
13985 }
13986 }'
13987aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13988# Check for a 64-bit object if we didn't find anything.
13989if test -z "$aix_libpath"; then
13990 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13991fi
cristy3ed852e2009-09-05 21:47:34 +000013992fi
cristy8b350f62009-11-15 23:12:43 +000013993rm -f core conftest.err conftest.$ac_objext \
13994 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000013995if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13996
13997 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
cristy18304f92009-11-22 15:48:26 +000013998 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 +000013999 else
14000 if test "$host_cpu" = ia64; then
14001 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
14002 allow_undefined_flag="-z nodefs"
14003 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"
14004 else
14005 # Determine the default libpath from the value encoded in an
14006 # empty executable.
cristy8b350f62009-11-15 23:12:43 +000014007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014008/* end confdefs.h. */
14009
14010int
14011main ()
14012{
14013
14014 ;
14015 return 0;
14016}
14017_ACEOF
cristy8b350f62009-11-15 23:12:43 +000014018if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000014019
14020lt_aix_libpath_sed='
14021 /Import File Strings/,/^$/ {
14022 /^0/ {
14023 s/^0 *\(.*\)$/\1/
14024 p
14025 }
14026 }'
14027aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14028# Check for a 64-bit object if we didn't find anything.
14029if test -z "$aix_libpath"; then
14030 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14031fi
cristy3ed852e2009-09-05 21:47:34 +000014032fi
cristy8b350f62009-11-15 23:12:43 +000014033rm -f core conftest.err conftest.$ac_objext \
14034 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014035if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14036
14037 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
14038 # Warning - without using the other run time loading flags,
14039 # -berok will link without error, but may produce a broken library.
14040 no_undefined_flag=' ${wl}-bernotok'
14041 allow_undefined_flag=' ${wl}-berok'
cristy18304f92009-11-22 15:48:26 +000014042 # Exported symbols can be pulled into shared objects from archives
14043 whole_archive_flag_spec='$convenience'
cristy3ed852e2009-09-05 21:47:34 +000014044 archive_cmds_need_lc=yes
14045 # This is similar to how AIX traditionally builds its shared libraries.
14046 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'
14047 fi
14048 fi
14049 ;;
14050
14051 amigaos*)
14052 case $host_cpu in
14053 powerpc)
14054 # see comment about AmigaOS4 .so support
14055 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14056 archive_expsym_cmds=''
14057 ;;
14058 m68k)
14059 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)'
14060 hardcode_libdir_flag_spec='-L$libdir'
14061 hardcode_minus_L=yes
14062 ;;
14063 esac
14064 ;;
14065
14066 bsdi[45]*)
14067 export_dynamic_flag_spec=-rdynamic
14068 ;;
14069
14070 cygwin* | mingw* | pw32* | cegcc*)
14071 # When not using gcc, we currently assume that we are using
14072 # Microsoft Visual C++.
14073 # hardcode_libdir_flag_spec is actually meaningless, as there is
14074 # no search path for DLLs.
14075 hardcode_libdir_flag_spec=' '
14076 allow_undefined_flag=unsupported
14077 # Tell ltmain to make .lib files, not .a files.
14078 libext=lib
14079 # Tell ltmain to make .dll files, not .so files.
14080 shrext_cmds=".dll"
14081 # FIXME: Setting linknames here is a bad hack.
cristy18304f92009-11-22 15:48:26 +000014082 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
cristy3ed852e2009-09-05 21:47:34 +000014083 # The linker will automatically build a .lib file if we build a DLL.
14084 old_archive_from_new_cmds='true'
14085 # FIXME: Should let the user specify the lib program.
14086 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
14087 fix_srcfile_path='`cygpath -w "$srcfile"`'
14088 enable_shared_with_static_runtimes=yes
14089 ;;
14090
14091 darwin* | rhapsody*)
14092
14093
14094 archive_cmds_need_lc=no
14095 hardcode_direct=no
14096 hardcode_automatic=yes
14097 hardcode_shlibpath_var=unsupported
cristy18304f92009-11-22 15:48:26 +000014098 whole_archive_flag_spec=''
cristy3ed852e2009-09-05 21:47:34 +000014099 link_all_deplibs=yes
14100 allow_undefined_flag="$_lt_dar_allow_undefined"
14101 case $cc_basename in
14102 ifort*) _lt_dar_can_shared=yes ;;
14103 *) _lt_dar_can_shared=$GCC ;;
14104 esac
14105 if test "$_lt_dar_can_shared" = "yes"; then
cristy18304f92009-11-22 15:48:26 +000014106 output_verbose_link_cmd=echo
cristy3ed852e2009-09-05 21:47:34 +000014107 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
14108 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14109 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}"
14110 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}"
14111
14112 else
14113 ld_shlibs=no
14114 fi
14115
14116 ;;
14117
14118 dgux*)
14119 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14120 hardcode_libdir_flag_spec='-L$libdir'
14121 hardcode_shlibpath_var=no
14122 ;;
14123
14124 freebsd1*)
14125 ld_shlibs=no
14126 ;;
14127
14128 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14129 # support. Future versions do this automatically, but an explicit c++rt0.o
14130 # does not break anything, and helps significantly (at the cost of a little
14131 # extra space).
14132 freebsd2.2*)
14133 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14134 hardcode_libdir_flag_spec='-R$libdir'
14135 hardcode_direct=yes
14136 hardcode_shlibpath_var=no
14137 ;;
14138
14139 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14140 freebsd2*)
14141 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14142 hardcode_direct=yes
14143 hardcode_minus_L=yes
14144 hardcode_shlibpath_var=no
14145 ;;
14146
14147 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14148 freebsd* | dragonfly*)
14149 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14150 hardcode_libdir_flag_spec='-R$libdir'
14151 hardcode_direct=yes
14152 hardcode_shlibpath_var=no
14153 ;;
14154
14155 hpux9*)
14156 if test "$GCC" = yes; then
14157 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'
14158 else
14159 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'
14160 fi
14161 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14162 hardcode_libdir_separator=:
14163 hardcode_direct=yes
14164
14165 # hardcode_minus_L: Not really in the search PATH,
14166 # but as the default location of the library.
14167 hardcode_minus_L=yes
14168 export_dynamic_flag_spec='${wl}-E'
14169 ;;
14170
14171 hpux10*)
cristy18304f92009-11-22 15:48:26 +000014172 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
cristy3ed852e2009-09-05 21:47:34 +000014173 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14174 else
14175 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14176 fi
14177 if test "$with_gnu_ld" = no; then
14178 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14179 hardcode_libdir_flag_spec_ld='+b $libdir'
14180 hardcode_libdir_separator=:
14181 hardcode_direct=yes
14182 hardcode_direct_absolute=yes
14183 export_dynamic_flag_spec='${wl}-E'
14184 # hardcode_minus_L: Not really in the search PATH,
14185 # but as the default location of the library.
14186 hardcode_minus_L=yes
14187 fi
14188 ;;
14189
14190 hpux11*)
cristy18304f92009-11-22 15:48:26 +000014191 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
cristy3ed852e2009-09-05 21:47:34 +000014192 case $host_cpu in
14193 hppa*64*)
14194 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14195 ;;
14196 ia64*)
14197 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14198 ;;
14199 *)
14200 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14201 ;;
14202 esac
14203 else
14204 case $host_cpu in
14205 hppa*64*)
14206 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14207 ;;
14208 ia64*)
14209 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14210 ;;
14211 *)
cristy18304f92009-11-22 15:48:26 +000014212 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 +000014213 ;;
14214 esac
14215 fi
14216 if test "$with_gnu_ld" = no; then
14217 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14218 hardcode_libdir_separator=:
14219
14220 case $host_cpu in
14221 hppa*64*|ia64*)
14222 hardcode_direct=no
14223 hardcode_shlibpath_var=no
14224 ;;
14225 *)
14226 hardcode_direct=yes
14227 hardcode_direct_absolute=yes
14228 export_dynamic_flag_spec='${wl}-E'
14229
14230 # hardcode_minus_L: Not really in the search PATH,
14231 # but as the default location of the library.
14232 hardcode_minus_L=yes
14233 ;;
14234 esac
14235 fi
14236 ;;
14237
14238 irix5* | irix6* | nonstopux*)
14239 if test "$GCC" = yes; then
cristy18304f92009-11-22 15:48:26 +000014240 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 +000014241 # Try to use the -exported_symbol ld option, if it does not
14242 # work, assume that -exports_file does not work either and
14243 # implicitly export all symbols.
14244 save_LDFLAGS="$LDFLAGS"
14245 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
cristy8b350f62009-11-15 23:12:43 +000014246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14247/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000014248int foo(void) {}
14249_ACEOF
cristy8b350f62009-11-15 23:12:43 +000014250if ac_fn_c_try_link "$LINENO"; then :
cristy18304f92009-11-22 15:48:26 +000014251 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 +000014252
cristy3ed852e2009-09-05 21:47:34 +000014253fi
cristy8b350f62009-11-15 23:12:43 +000014254rm -f core conftest.err conftest.$ac_objext \
14255 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014256 LDFLAGS="$save_LDFLAGS"
14257 else
cristy18304f92009-11-22 15:48:26 +000014258 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'
14259 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 +000014260 fi
14261 archive_cmds_need_lc='no'
14262 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14263 hardcode_libdir_separator=:
14264 inherit_rpath=yes
14265 link_all_deplibs=yes
14266 ;;
14267
14268 netbsd*)
14269 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14270 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14271 else
14272 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14273 fi
14274 hardcode_libdir_flag_spec='-R$libdir'
14275 hardcode_direct=yes
14276 hardcode_shlibpath_var=no
14277 ;;
14278
14279 newsos6)
14280 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14281 hardcode_direct=yes
14282 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14283 hardcode_libdir_separator=:
14284 hardcode_shlibpath_var=no
14285 ;;
14286
14287 *nto* | *qnx*)
14288 ;;
14289
14290 openbsd*)
14291 if test -f /usr/libexec/ld.so; then
14292 hardcode_direct=yes
14293 hardcode_shlibpath_var=no
14294 hardcode_direct_absolute=yes
14295 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14296 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14297 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14298 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14299 export_dynamic_flag_spec='${wl}-E'
14300 else
14301 case $host_os in
14302 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14303 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14304 hardcode_libdir_flag_spec='-R$libdir'
14305 ;;
14306 *)
14307 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14308 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14309 ;;
14310 esac
14311 fi
14312 else
14313 ld_shlibs=no
14314 fi
14315 ;;
14316
14317 os2*)
14318 hardcode_libdir_flag_spec='-L$libdir'
14319 hardcode_minus_L=yes
14320 allow_undefined_flag=unsupported
cristy18304f92009-11-22 15:48:26 +000014321 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 +000014322 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14323 ;;
14324
14325 osf3*)
14326 if test "$GCC" = yes; then
14327 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristy18304f92009-11-22 15:48:26 +000014328 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 +000014329 else
14330 allow_undefined_flag=' -expect_unresolved \*'
cristy18304f92009-11-22 15:48:26 +000014331 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 +000014332 fi
14333 archive_cmds_need_lc='no'
14334 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14335 hardcode_libdir_separator=:
14336 ;;
14337
14338 osf4* | osf5*) # as osf3* with the addition of -msym flag
14339 if test "$GCC" = yes; then
14340 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristy18304f92009-11-22 15:48:26 +000014341 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 +000014342 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14343 else
14344 allow_undefined_flag=' -expect_unresolved \*'
cristy18304f92009-11-22 15:48:26 +000014345 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 +000014346 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 +000014347 $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 +000014348
14349 # Both c and cxx compiler support -rpath directly
14350 hardcode_libdir_flag_spec='-rpath $libdir'
14351 fi
14352 archive_cmds_need_lc='no'
14353 hardcode_libdir_separator=:
14354 ;;
14355
14356 solaris*)
14357 no_undefined_flag=' -z defs'
14358 if test "$GCC" = yes; then
14359 wlarc='${wl}'
14360 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14361 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14362 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14363 else
14364 case `$CC -V 2>&1` in
14365 *"Compilers 5.0"*)
14366 wlarc=''
14367 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14368 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14369 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
14370 ;;
14371 *)
14372 wlarc='${wl}'
14373 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
14374 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14375 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14376 ;;
14377 esac
14378 fi
14379 hardcode_libdir_flag_spec='-R$libdir'
14380 hardcode_shlibpath_var=no
14381 case $host_os in
14382 solaris2.[0-5] | solaris2.[0-5].*) ;;
14383 *)
14384 # The compiler driver will combine and reorder linker options,
14385 # but understands `-z linker_flag'. GCC discards it without `$wl',
14386 # but is careful enough not to reorder.
14387 # Supported since Solaris 2.6 (maybe 2.5.1?)
14388 if test "$GCC" = yes; then
14389 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14390 else
14391 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
14392 fi
14393 ;;
14394 esac
14395 link_all_deplibs=yes
14396 ;;
14397
14398 sunos4*)
14399 if test "x$host_vendor" = xsequent; then
14400 # Use $CC to link under sequent, because it throws in some extra .o
14401 # files that make .init and .fini sections work.
14402 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14403 else
14404 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14405 fi
14406 hardcode_libdir_flag_spec='-L$libdir'
14407 hardcode_direct=yes
14408 hardcode_minus_L=yes
14409 hardcode_shlibpath_var=no
14410 ;;
14411
14412 sysv4)
14413 case $host_vendor in
14414 sni)
14415 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14416 hardcode_direct=yes # is this really true???
14417 ;;
14418 siemens)
14419 ## LD is ld it makes a PLAMLIB
14420 ## CC just makes a GrossModule.
14421 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14422 reload_cmds='$CC -r -o $output$reload_objs'
14423 hardcode_direct=no
14424 ;;
14425 motorola)
14426 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14427 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
14428 ;;
14429 esac
14430 runpath_var='LD_RUN_PATH'
14431 hardcode_shlibpath_var=no
14432 ;;
14433
14434 sysv4.3*)
14435 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14436 hardcode_shlibpath_var=no
14437 export_dynamic_flag_spec='-Bexport'
14438 ;;
14439
14440 sysv4*MP*)
14441 if test -d /usr/nec; then
14442 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14443 hardcode_shlibpath_var=no
14444 runpath_var=LD_RUN_PATH
14445 hardcode_runpath_var=yes
14446 ld_shlibs=yes
14447 fi
14448 ;;
14449
14450 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14451 no_undefined_flag='${wl}-z,text'
14452 archive_cmds_need_lc=no
14453 hardcode_shlibpath_var=no
14454 runpath_var='LD_RUN_PATH'
14455
14456 if test "$GCC" = yes; then
14457 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14458 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14459 else
14460 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14461 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14462 fi
14463 ;;
14464
14465 sysv5* | sco3.2v5* | sco5v6*)
14466 # Note: We can NOT use -z defs as we might desire, because we do not
14467 # link with -lc, and that would cause any symbols used from libc to
14468 # always be unresolved, which means just about no library would
14469 # ever link correctly. If we're not using GNU ld we use -z text
14470 # though, which does catch some bad symbols but isn't as heavy-handed
14471 # as -z defs.
14472 no_undefined_flag='${wl}-z,text'
14473 allow_undefined_flag='${wl}-z,nodefs'
14474 archive_cmds_need_lc=no
14475 hardcode_shlibpath_var=no
14476 hardcode_libdir_flag_spec='${wl}-R,$libdir'
14477 hardcode_libdir_separator=':'
14478 link_all_deplibs=yes
14479 export_dynamic_flag_spec='${wl}-Bexport'
14480 runpath_var='LD_RUN_PATH'
14481
14482 if test "$GCC" = yes; then
14483 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14484 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14485 else
14486 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14487 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14488 fi
14489 ;;
14490
14491 uts4*)
14492 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14493 hardcode_libdir_flag_spec='-L$libdir'
14494 hardcode_shlibpath_var=no
14495 ;;
14496
14497 *)
14498 ld_shlibs=no
14499 ;;
14500 esac
14501
14502 if test x$host_vendor = xsni; then
14503 case $host in
14504 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14505 export_dynamic_flag_spec='${wl}-Blargedynsym'
14506 ;;
14507 esac
14508 fi
14509 fi
14510
cristy8b350f62009-11-15 23:12:43 +000014511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
cristy3ed852e2009-09-05 21:47:34 +000014512$as_echo "$ld_shlibs" >&6; }
14513test "$ld_shlibs" = no && can_build_shared=no
14514
14515with_gnu_ld=$with_gnu_ld
14516
14517
14518
14519
14520
14521
14522
14523
14524
14525
14526
14527
14528
14529
14530
14531#
14532# Do we need to explicitly link libc?
14533#
14534case "x$archive_cmds_need_lc" in
14535x|xyes)
14536 # Assume -lc should be added
14537 archive_cmds_need_lc=yes
14538
14539 if test "$enable_shared" = yes && test "$GCC" = yes; then
14540 case $archive_cmds in
14541 *'~'*)
14542 # FIXME: we may have to deal with multi-command sequences.
14543 ;;
14544 '$CC '*)
14545 # Test whether the compiler implicitly links with -lc since on some
14546 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14547 # to ld, don't add -lc before -lgcc.
cristy8b350f62009-11-15 23:12:43 +000014548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
cristy3ed852e2009-09-05 21:47:34 +000014549$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristy18304f92009-11-22 15:48:26 +000014550 $RM conftest*
14551 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014552
cristy18304f92009-11-22 15:48:26 +000014553 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000014554 (eval $ac_compile) 2>&5
14555 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000014556 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14557 test $ac_status = 0; } 2>conftest.err; then
cristy18304f92009-11-22 15:48:26 +000014558 soname=conftest
14559 lib=conftest
14560 libobjs=conftest.$ac_objext
14561 deplibs=
14562 wl=$lt_prog_compiler_wl
14563 pic_flag=$lt_prog_compiler_pic
14564 compiler_flags=-v
14565 linker_flags=-v
14566 verstring=
14567 output_objdir=.
14568 libname=conftest
14569 lt_save_allow_undefined_flag=$allow_undefined_flag
14570 allow_undefined_flag=
14571 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 +000014572 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14573 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000014574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14575 test $ac_status = 0; }
cristy18304f92009-11-22 15:48:26 +000014576 then
14577 archive_cmds_need_lc=no
14578 else
14579 archive_cmds_need_lc=yes
14580 fi
14581 allow_undefined_flag=$lt_save_allow_undefined_flag
14582 else
14583 cat conftest.err 1>&5
14584 fi
14585 $RM conftest*
14586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
14587$as_echo "$archive_cmds_need_lc" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000014588 ;;
14589 esac
14590 fi
14591 ;;
14592esac
14593
14594
14595
14596
14597
14598
14599
14600
14601
14602
14603
14604
14605
14606
14607
14608
14609
14610
14611
14612
14613
14614
14615
14616
14617
14618
14619
14620
14621
14622
14623
14624
14625
14626
14627
14628
14629
14630
14631
14632
14633
14634
14635
14636
14637
14638
14639
14640
14641
14642
14643
14644
14645
14646
14647
14648
14649
14650
14651
14652
14653
14654
14655
14656
14657
14658
14659
14660
14661
14662
14663
14664
14665
14666
14667
14668
14669
14670
14671
14672
14673
14674
14675
14676
14677
14678
14679
14680
14681
14682
14683
14684
14685
14686
14687
14688
14689
14690
14691
14692
14693
14694
14695
14696
14697
14698
14699
14700
14701
14702
14703
14704
14705
14706
14707
14708
14709
14710
14711
14712
14713
14714
14715
14716
14717
14718
14719
14720
14721
14722
14723
14724
14725
14726
14727
14728
14729
14730
14731
14732
14733
14734
14735
14736
14737
14738
14739
14740
14741
14742
14743
14744
14745
14746
14747
14748
14749
cristy8b350f62009-11-15 23:12:43 +000014750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
cristy3ed852e2009-09-05 21:47:34 +000014751$as_echo_n "checking dynamic linker characteristics... " >&6; }
14752
14753if test "$GCC" = yes; then
14754 case $host_os in
14755 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
14756 *) lt_awk_arg="/^libraries:/" ;;
14757 esac
cristy18304f92009-11-22 15:48:26 +000014758 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14759 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
cristy3ed852e2009-09-05 21:47:34 +000014760 # if the path contains ";" then we assume it to be the separator
14761 # otherwise default to the standard path separator (i.e. ":") - it is
14762 # assumed that no part of a normal pathname contains ";" but that should
14763 # okay in the real world where ";" in dirpaths is itself problematic.
cristy18304f92009-11-22 15:48:26 +000014764 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
14765 else
14766 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14767 fi
cristy3ed852e2009-09-05 21:47:34 +000014768 # Ok, now we have the path, separated by spaces, we can step through it
14769 # and add multilib dir if necessary.
14770 lt_tmp_lt_search_path_spec=
14771 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
14772 for lt_sys_path in $lt_search_path_spec; do
14773 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
14774 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
14775 else
14776 test -d "$lt_sys_path" && \
14777 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
14778 fi
14779 done
cristy18304f92009-11-22 15:48:26 +000014780 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
cristy3ed852e2009-09-05 21:47:34 +000014781BEGIN {RS=" "; FS="/|\n";} {
14782 lt_foo="";
14783 lt_count=0;
14784 for (lt_i = NF; lt_i > 0; lt_i--) {
14785 if ($lt_i != "" && $lt_i != ".") {
14786 if ($lt_i == "..") {
14787 lt_count++;
14788 } else {
14789 if (lt_count == 0) {
14790 lt_foo="/" $lt_i lt_foo;
14791 } else {
14792 lt_count--;
14793 }
14794 }
14795 }
14796 }
14797 if (lt_foo != "") { lt_freq[lt_foo]++; }
14798 if (lt_freq[lt_foo] == 1) { print lt_foo; }
14799}'`
cristy18304f92009-11-22 15:48:26 +000014800 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
cristy3ed852e2009-09-05 21:47:34 +000014801else
14802 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14803fi
14804library_names_spec=
14805libname_spec='lib$name'
14806soname_spec=
14807shrext_cmds=".so"
14808postinstall_cmds=
14809postuninstall_cmds=
14810finish_cmds=
14811finish_eval=
14812shlibpath_var=
14813shlibpath_overrides_runpath=unknown
14814version_type=none
14815dynamic_linker="$host_os ld.so"
14816sys_lib_dlsearch_path_spec="/lib /usr/lib"
14817need_lib_prefix=unknown
14818hardcode_into_libs=no
14819
14820# when you set need_version to no, make sure it does not cause -set_version
14821# flags to be left without arguments
14822need_version=unknown
14823
14824case $host_os in
14825aix3*)
14826 version_type=linux
14827 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14828 shlibpath_var=LIBPATH
14829
14830 # AIX 3 has no versioning support, so we append a major version to the name.
14831 soname_spec='${libname}${release}${shared_ext}$major'
14832 ;;
14833
14834aix[4-9]*)
14835 version_type=linux
14836 need_lib_prefix=no
14837 need_version=no
14838 hardcode_into_libs=yes
14839 if test "$host_cpu" = ia64; then
14840 # AIX 5 supports IA64
14841 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14842 shlibpath_var=LD_LIBRARY_PATH
14843 else
14844 # With GCC up to 2.95.x, collect2 would create an import file
14845 # for dependence libraries. The import file would start with
14846 # the line `#! .'. This would cause the generated library to
14847 # depend on `.', always an invalid library. This was fixed in
14848 # development snapshots of GCC prior to 3.0.
14849 case $host_os in
14850 aix4 | aix4.[01] | aix4.[01].*)
14851 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14852 echo ' yes '
14853 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14854 :
14855 else
14856 can_build_shared=no
14857 fi
14858 ;;
14859 esac
14860 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14861 # soname into executable. Probably we can add versioning support to
14862 # collect2, so additional links can be useful in future.
14863 if test "$aix_use_runtimelinking" = yes; then
14864 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14865 # instead of lib<name>.a to let people know that these are not
14866 # typical AIX shared libraries.
14867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14868 else
14869 # We preserve .a as extension for shared libraries through AIX4.2
14870 # and later when we are not doing run time linking.
14871 library_names_spec='${libname}${release}.a $libname.a'
14872 soname_spec='${libname}${release}${shared_ext}$major'
14873 fi
14874 shlibpath_var=LIBPATH
14875 fi
14876 ;;
14877
14878amigaos*)
14879 case $host_cpu in
14880 powerpc)
14881 # Since July 2007 AmigaOS4 officially supports .so libraries.
14882 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14884 ;;
14885 m68k)
14886 library_names_spec='$libname.ixlibrary $libname.a'
14887 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy18304f92009-11-22 15:48:26 +000014888 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 +000014889 ;;
14890 esac
14891 ;;
14892
14893beos*)
14894 library_names_spec='${libname}${shared_ext}'
14895 dynamic_linker="$host_os ld.so"
14896 shlibpath_var=LIBRARY_PATH
14897 ;;
14898
14899bsdi[45]*)
14900 version_type=linux
14901 need_version=no
14902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14903 soname_spec='${libname}${release}${shared_ext}$major'
14904 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14905 shlibpath_var=LD_LIBRARY_PATH
14906 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14907 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14908 # the default ld.so.conf also contains /usr/contrib/lib and
14909 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14910 # libtool to hard-code these into programs
14911 ;;
14912
14913cygwin* | mingw* | pw32* | cegcc*)
14914 version_type=windows
14915 shrext_cmds=".dll"
14916 need_version=no
14917 need_lib_prefix=no
14918
14919 case $GCC,$host_os in
14920 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14921 library_names_spec='$libname.dll.a'
14922 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14923 postinstall_cmds='base_file=`basename \${file}`~
14924 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14925 dldir=$destdir/`dirname \$dlpath`~
14926 test -d \$dldir || mkdir -p \$dldir~
14927 $install_prog $dir/$dlname \$dldir/$dlname~
14928 chmod a+x \$dldir/$dlname~
14929 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14930 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14931 fi'
14932 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14933 dlpath=$dir/\$dldll~
14934 $RM \$dlpath'
14935 shlibpath_overrides_runpath=yes
14936
14937 case $host_os in
14938 cygwin*)
14939 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14940 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy18304f92009-11-22 15:48:26 +000014941 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
cristy3ed852e2009-09-05 21:47:34 +000014942 ;;
14943 mingw* | cegcc*)
14944 # MinGW DLLs use traditional 'lib' prefix
14945 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy18304f92009-11-22 15:48:26 +000014946 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14947 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14948 # It is most probably a Windows format PATH printed by
14949 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14950 # path with ; separators, and with drive letters. We can handle the
14951 # drive letters (cygwin fileutils understands them), so leave them,
14952 # especially as we might pass files found there to a mingw objdump,
14953 # which wouldn't understand a cygwinified path. Ahh.
14954 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14955 else
14956 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14957 fi
cristy3ed852e2009-09-05 21:47:34 +000014958 ;;
14959 pw32*)
14960 # pw32 DLLs use 'pw' prefix rather than 'lib'
14961 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14962 ;;
14963 esac
14964 ;;
14965
14966 *)
14967 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14968 ;;
14969 esac
14970 dynamic_linker='Win32 ld.exe'
14971 # FIXME: first we should search . and the directory the executable is in
14972 shlibpath_var=PATH
14973 ;;
14974
14975darwin* | rhapsody*)
14976 dynamic_linker="$host_os dyld"
14977 version_type=darwin
14978 need_lib_prefix=no
14979 need_version=no
14980 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14981 soname_spec='${libname}${release}${major}$shared_ext'
14982 shlibpath_overrides_runpath=yes
14983 shlibpath_var=DYLD_LIBRARY_PATH
14984 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14985
14986 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
14987 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14988 ;;
14989
14990dgux*)
14991 version_type=linux
14992 need_lib_prefix=no
14993 need_version=no
14994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14995 soname_spec='${libname}${release}${shared_ext}$major'
14996 shlibpath_var=LD_LIBRARY_PATH
14997 ;;
14998
14999freebsd1*)
15000 dynamic_linker=no
15001 ;;
15002
15003freebsd* | dragonfly*)
15004 # DragonFly does not have aout. When/if they implement a new
15005 # versioning mechanism, adjust this.
15006 if test -x /usr/bin/objformat; then
15007 objformat=`/usr/bin/objformat`
15008 else
15009 case $host_os in
15010 freebsd[123]*) objformat=aout ;;
15011 *) objformat=elf ;;
15012 esac
15013 fi
15014 version_type=freebsd-$objformat
15015 case $version_type in
15016 freebsd-elf*)
15017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15018 need_version=no
15019 need_lib_prefix=no
15020 ;;
15021 freebsd-*)
15022 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15023 need_version=yes
15024 ;;
15025 esac
15026 shlibpath_var=LD_LIBRARY_PATH
15027 case $host_os in
15028 freebsd2*)
15029 shlibpath_overrides_runpath=yes
15030 ;;
15031 freebsd3.[01]* | freebsdelf3.[01]*)
15032 shlibpath_overrides_runpath=yes
15033 hardcode_into_libs=yes
15034 ;;
15035 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15036 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15037 shlibpath_overrides_runpath=no
15038 hardcode_into_libs=yes
15039 ;;
15040 *) # from 4.6 on, and DragonFly
15041 shlibpath_overrides_runpath=yes
15042 hardcode_into_libs=yes
15043 ;;
15044 esac
15045 ;;
15046
15047gnu*)
15048 version_type=linux
15049 need_lib_prefix=no
15050 need_version=no
15051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15052 soname_spec='${libname}${release}${shared_ext}$major'
15053 shlibpath_var=LD_LIBRARY_PATH
15054 hardcode_into_libs=yes
15055 ;;
15056
15057hpux9* | hpux10* | hpux11*)
15058 # Give a soname corresponding to the major version so that dld.sl refuses to
15059 # link against other versions.
15060 version_type=sunos
15061 need_lib_prefix=no
15062 need_version=no
15063 case $host_cpu in
15064 ia64*)
15065 shrext_cmds='.so'
15066 hardcode_into_libs=yes
15067 dynamic_linker="$host_os dld.so"
15068 shlibpath_var=LD_LIBRARY_PATH
15069 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15071 soname_spec='${libname}${release}${shared_ext}$major'
15072 if test "X$HPUX_IA64_MODE" = X32; then
15073 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15074 else
15075 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15076 fi
15077 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15078 ;;
15079 hppa*64*)
15080 shrext_cmds='.sl'
15081 hardcode_into_libs=yes
15082 dynamic_linker="$host_os dld.sl"
15083 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15084 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15086 soname_spec='${libname}${release}${shared_ext}$major'
15087 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15088 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15089 ;;
15090 *)
15091 shrext_cmds='.sl'
15092 dynamic_linker="$host_os dld.sl"
15093 shlibpath_var=SHLIB_PATH
15094 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15096 soname_spec='${libname}${release}${shared_ext}$major'
15097 ;;
15098 esac
cristy18304f92009-11-22 15:48:26 +000015099 # HP-UX runs *really* slowly unless shared libraries are mode 555.
cristy3ed852e2009-09-05 21:47:34 +000015100 postinstall_cmds='chmod 555 $lib'
15101 ;;
15102
15103interix[3-9]*)
15104 version_type=linux
15105 need_lib_prefix=no
15106 need_version=no
15107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15108 soname_spec='${libname}${release}${shared_ext}$major'
15109 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15110 shlibpath_var=LD_LIBRARY_PATH
15111 shlibpath_overrides_runpath=no
15112 hardcode_into_libs=yes
15113 ;;
15114
15115irix5* | irix6* | nonstopux*)
15116 case $host_os in
15117 nonstopux*) version_type=nonstopux ;;
15118 *)
15119 if test "$lt_cv_prog_gnu_ld" = yes; then
15120 version_type=linux
15121 else
15122 version_type=irix
15123 fi ;;
15124 esac
15125 need_lib_prefix=no
15126 need_version=no
15127 soname_spec='${libname}${release}${shared_ext}$major'
15128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15129 case $host_os in
15130 irix5* | nonstopux*)
15131 libsuff= shlibsuff=
15132 ;;
15133 *)
15134 case $LD in # libtool.m4 will add one of these switches to LD
15135 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15136 libsuff= shlibsuff= libmagic=32-bit;;
15137 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15138 libsuff=32 shlibsuff=N32 libmagic=N32;;
15139 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15140 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15141 *) libsuff= shlibsuff= libmagic=never-match;;
15142 esac
15143 ;;
15144 esac
15145 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15146 shlibpath_overrides_runpath=no
15147 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15148 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15149 hardcode_into_libs=yes
15150 ;;
15151
15152# No shared lib support for Linux oldld, aout, or coff.
15153linux*oldld* | linux*aout* | linux*coff*)
15154 dynamic_linker=no
15155 ;;
15156
15157# This must be Linux ELF.
cristy18304f92009-11-22 15:48:26 +000015158linux* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000015159 version_type=linux
15160 need_lib_prefix=no
15161 need_version=no
15162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15163 soname_spec='${libname}${release}${shared_ext}$major'
15164 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15165 shlibpath_var=LD_LIBRARY_PATH
15166 shlibpath_overrides_runpath=no
15167 # Some binutils ld are patched to set DT_RUNPATH
cristy18304f92009-11-22 15:48:26 +000015168 save_LDFLAGS=$LDFLAGS
15169 save_libdir=$libdir
15170 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
15171 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
15172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015173/* end confdefs.h. */
15174
15175int
15176main ()
15177{
15178
15179 ;
15180 return 0;
15181}
15182_ACEOF
cristy8b350f62009-11-15 23:12:43 +000015183if ac_fn_c_try_link "$LINENO"; then :
15184 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy18304f92009-11-22 15:48:26 +000015185 shlibpath_overrides_runpath=yes
cristy3ed852e2009-09-05 21:47:34 +000015186fi
cristy3ed852e2009-09-05 21:47:34 +000015187fi
cristy8b350f62009-11-15 23:12:43 +000015188rm -f core conftest.err conftest.$ac_objext \
15189 conftest$ac_exeext conftest.$ac_ext
cristy18304f92009-11-22 15:48:26 +000015190 LDFLAGS=$save_LDFLAGS
15191 libdir=$save_libdir
cristy3ed852e2009-09-05 21:47:34 +000015192
15193 # This implies no fast_install, which is unacceptable.
15194 # Some rework will be needed to allow for fast_install
15195 # before this can be enabled.
15196 hardcode_into_libs=yes
15197
cristy679ed8e2009-12-05 02:37:41 +000015198 # Add ABI-specific directories to the system library path.
15199 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
15200
cristy3ed852e2009-09-05 21:47:34 +000015201 # Append ld.so.conf contents to the search path
15202 if test -f /etc/ld.so.conf; then
cristy18304f92009-11-22 15:48:26 +000015203 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 +000015204 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy3ed852e2009-09-05 21:47:34 +000015205 fi
15206
15207 # We used to test for /lib/ld.so.1 and disable shared libraries on
15208 # powerpc, because MkLinux only supported shared libraries with the
15209 # GNU dynamic linker. Since this was broken with cross compilers,
15210 # most powerpc-linux boxes support dynamic linking these days and
15211 # people can always --disable-shared, the test was removed, and we
15212 # assume the GNU/Linux dynamic linker is in use.
15213 dynamic_linker='GNU/Linux ld.so'
15214 ;;
15215
15216netbsd*)
15217 version_type=sunos
15218 need_lib_prefix=no
15219 need_version=no
15220 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15222 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15223 dynamic_linker='NetBSD (a.out) ld.so'
15224 else
15225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15226 soname_spec='${libname}${release}${shared_ext}$major'
15227 dynamic_linker='NetBSD ld.elf_so'
15228 fi
15229 shlibpath_var=LD_LIBRARY_PATH
15230 shlibpath_overrides_runpath=yes
15231 hardcode_into_libs=yes
15232 ;;
15233
15234newsos6)
15235 version_type=linux
15236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15237 shlibpath_var=LD_LIBRARY_PATH
15238 shlibpath_overrides_runpath=yes
15239 ;;
15240
15241*nto* | *qnx*)
15242 version_type=qnx
15243 need_lib_prefix=no
15244 need_version=no
15245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15246 soname_spec='${libname}${release}${shared_ext}$major'
15247 shlibpath_var=LD_LIBRARY_PATH
15248 shlibpath_overrides_runpath=no
15249 hardcode_into_libs=yes
15250 dynamic_linker='ldqnx.so'
15251 ;;
15252
15253openbsd*)
15254 version_type=sunos
15255 sys_lib_dlsearch_path_spec="/usr/lib"
15256 need_lib_prefix=no
15257 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15258 case $host_os in
15259 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15260 *) need_version=no ;;
15261 esac
15262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15263 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15264 shlibpath_var=LD_LIBRARY_PATH
15265 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15266 case $host_os in
15267 openbsd2.[89] | openbsd2.[89].*)
15268 shlibpath_overrides_runpath=no
15269 ;;
15270 *)
15271 shlibpath_overrides_runpath=yes
15272 ;;
15273 esac
15274 else
15275 shlibpath_overrides_runpath=yes
15276 fi
15277 ;;
15278
15279os2*)
15280 libname_spec='$name'
15281 shrext_cmds=".dll"
15282 need_lib_prefix=no
15283 library_names_spec='$libname${shared_ext} $libname.a'
15284 dynamic_linker='OS/2 ld.exe'
15285 shlibpath_var=LIBPATH
15286 ;;
15287
15288osf3* | osf4* | osf5*)
15289 version_type=osf
15290 need_lib_prefix=no
15291 need_version=no
15292 soname_spec='${libname}${release}${shared_ext}$major'
15293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15294 shlibpath_var=LD_LIBRARY_PATH
15295 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15296 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15297 ;;
15298
15299rdos*)
15300 dynamic_linker=no
15301 ;;
15302
15303solaris*)
15304 version_type=linux
15305 need_lib_prefix=no
15306 need_version=no
15307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15308 soname_spec='${libname}${release}${shared_ext}$major'
15309 shlibpath_var=LD_LIBRARY_PATH
15310 shlibpath_overrides_runpath=yes
15311 hardcode_into_libs=yes
15312 # ldd complains unless libraries are executable
15313 postinstall_cmds='chmod +x $lib'
15314 ;;
15315
15316sunos4*)
15317 version_type=sunos
15318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15319 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15320 shlibpath_var=LD_LIBRARY_PATH
15321 shlibpath_overrides_runpath=yes
15322 if test "$with_gnu_ld" = yes; then
15323 need_lib_prefix=no
15324 fi
15325 need_version=yes
15326 ;;
15327
15328sysv4 | sysv4.3*)
15329 version_type=linux
15330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15331 soname_spec='${libname}${release}${shared_ext}$major'
15332 shlibpath_var=LD_LIBRARY_PATH
15333 case $host_vendor in
15334 sni)
15335 shlibpath_overrides_runpath=no
15336 need_lib_prefix=no
15337 runpath_var=LD_RUN_PATH
15338 ;;
15339 siemens)
15340 need_lib_prefix=no
15341 ;;
15342 motorola)
15343 need_lib_prefix=no
15344 need_version=no
15345 shlibpath_overrides_runpath=no
15346 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15347 ;;
15348 esac
15349 ;;
15350
15351sysv4*MP*)
15352 if test -d /usr/nec ;then
15353 version_type=linux
15354 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15355 soname_spec='$libname${shared_ext}.$major'
15356 shlibpath_var=LD_LIBRARY_PATH
15357 fi
15358 ;;
15359
15360sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15361 version_type=freebsd-elf
15362 need_lib_prefix=no
15363 need_version=no
15364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15365 soname_spec='${libname}${release}${shared_ext}$major'
15366 shlibpath_var=LD_LIBRARY_PATH
15367 shlibpath_overrides_runpath=yes
15368 hardcode_into_libs=yes
15369 if test "$with_gnu_ld" = yes; then
15370 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15371 else
15372 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15373 case $host_os in
15374 sco3.2v5*)
15375 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15376 ;;
15377 esac
15378 fi
15379 sys_lib_dlsearch_path_spec='/usr/lib'
15380 ;;
15381
15382tpf*)
15383 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15384 version_type=linux
15385 need_lib_prefix=no
15386 need_version=no
15387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15388 shlibpath_var=LD_LIBRARY_PATH
15389 shlibpath_overrides_runpath=no
15390 hardcode_into_libs=yes
15391 ;;
15392
15393uts4*)
15394 version_type=linux
15395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15396 soname_spec='${libname}${release}${shared_ext}$major'
15397 shlibpath_var=LD_LIBRARY_PATH
15398 ;;
15399
15400*)
15401 dynamic_linker=no
15402 ;;
15403esac
cristy8b350f62009-11-15 23:12:43 +000015404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
cristy3ed852e2009-09-05 21:47:34 +000015405$as_echo "$dynamic_linker" >&6; }
15406test "$dynamic_linker" = no && can_build_shared=no
15407
15408variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15409if test "$GCC" = yes; then
15410 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15411fi
15412
15413if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15414 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15415fi
15416if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15417 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15418fi
15419
15420
15421
15422
15423
15424
15425
15426
15427
15428
15429
15430
15431
15432
15433
15434
15435
15436
15437
15438
15439
15440
15441
15442
15443
15444
15445
15446
15447
15448
15449
15450
15451
15452
15453
15454
15455
15456
15457
15458
15459
15460
15461
15462
15463
15464
15465
15466
15467
15468
15469
15470
15471
15472
15473
15474
15475
15476
15477
15478
15479
15480
15481
15482
15483
15484
15485
15486
15487
15488
15489
15490
15491
15492
15493
15494
15495
15496
15497
15498
15499
15500
15501
15502
15503
15504
15505
cristy8b350f62009-11-15 23:12:43 +000015506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000015507$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15508hardcode_action=
15509if test -n "$hardcode_libdir_flag_spec" ||
15510 test -n "$runpath_var" ||
15511 test "X$hardcode_automatic" = "Xyes" ; then
15512
15513 # We can hardcode non-existent directories.
15514 if test "$hardcode_direct" != no &&
15515 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15516 # have to relink, otherwise we might link with an installed library
15517 # when we should be linking with a yet-to-be-installed one
15518 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
15519 test "$hardcode_minus_L" != no; then
15520 # Linking always hardcodes the temporary library directory.
15521 hardcode_action=relink
15522 else
15523 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15524 hardcode_action=immediate
15525 fi
15526else
15527 # We cannot hardcode anything, or else we can only hardcode existing
15528 # directories.
15529 hardcode_action=unsupported
15530fi
cristy8b350f62009-11-15 23:12:43 +000015531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
cristy3ed852e2009-09-05 21:47:34 +000015532$as_echo "$hardcode_action" >&6; }
15533
15534if test "$hardcode_action" = relink ||
15535 test "$inherit_rpath" = yes; then
15536 # Fast installation is not supported
15537 enable_fast_install=no
15538elif test "$shlibpath_overrides_runpath" = yes ||
15539 test "$enable_shared" = no; then
15540 # Fast installation is not necessary
15541 enable_fast_install=needless
15542fi
15543
15544
15545
15546
15547
15548
15549 if test "x$enable_dlopen" != xyes; then
15550 enable_dlopen=unknown
15551 enable_dlopen_self=unknown
15552 enable_dlopen_self_static=unknown
15553else
15554 lt_cv_dlopen=no
15555 lt_cv_dlopen_libs=
15556
15557 case $host_os in
15558 beos*)
15559 lt_cv_dlopen="load_add_on"
15560 lt_cv_dlopen_libs=
15561 lt_cv_dlopen_self=yes
15562 ;;
15563
15564 mingw* | pw32* | cegcc*)
15565 lt_cv_dlopen="LoadLibrary"
15566 lt_cv_dlopen_libs=
15567 ;;
15568
15569 cygwin*)
15570 lt_cv_dlopen="dlopen"
15571 lt_cv_dlopen_libs=
15572 ;;
15573
15574 darwin*)
15575 # if libdl is installed we need to link against it
cristy8b350f62009-11-15 23:12:43 +000015576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000015577$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015578if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015579 $as_echo_n "(cached) " >&6
15580else
15581 ac_check_lib_save_LIBS=$LIBS
15582LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000015583cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015584/* end confdefs.h. */
15585
15586/* Override any GCC internal prototype to avoid an error.
15587 Use char because int might match the return type of a GCC
15588 builtin and then its argument prototype would still apply. */
15589#ifdef __cplusplus
15590extern "C"
15591#endif
15592char dlopen ();
15593int
15594main ()
15595{
15596return dlopen ();
15597 ;
15598 return 0;
15599}
15600_ACEOF
cristy8b350f62009-11-15 23:12:43 +000015601if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000015602 ac_cv_lib_dl_dlopen=yes
15603else
cristy8b350f62009-11-15 23:12:43 +000015604 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000015605fi
cristy8b350f62009-11-15 23:12:43 +000015606rm -f core conftest.err conftest.$ac_objext \
15607 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015608LIBS=$ac_check_lib_save_LIBS
15609fi
cristy8b350f62009-11-15 23:12:43 +000015610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000015611$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000015612if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000015613 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15614else
15615
15616 lt_cv_dlopen="dyld"
15617 lt_cv_dlopen_libs=
15618 lt_cv_dlopen_self=yes
15619
15620fi
15621
15622 ;;
15623
15624 *)
cristy8b350f62009-11-15 23:12:43 +000015625 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
15626if test "x$ac_cv_func_shl_load" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000015627 lt_cv_dlopen="shl_load"
15628else
cristy8b350f62009-11-15 23:12:43 +000015629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
cristy3ed852e2009-09-05 21:47:34 +000015630$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015631if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015632 $as_echo_n "(cached) " >&6
15633else
15634 ac_check_lib_save_LIBS=$LIBS
15635LIBS="-ldld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000015636cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015637/* end confdefs.h. */
15638
15639/* Override any GCC internal prototype to avoid an error.
15640 Use char because int might match the return type of a GCC
15641 builtin and then its argument prototype would still apply. */
15642#ifdef __cplusplus
15643extern "C"
15644#endif
15645char shl_load ();
15646int
15647main ()
15648{
15649return shl_load ();
15650 ;
15651 return 0;
15652}
15653_ACEOF
cristy8b350f62009-11-15 23:12:43 +000015654if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000015655 ac_cv_lib_dld_shl_load=yes
15656else
cristy8b350f62009-11-15 23:12:43 +000015657 ac_cv_lib_dld_shl_load=no
cristy3ed852e2009-09-05 21:47:34 +000015658fi
cristy8b350f62009-11-15 23:12:43 +000015659rm -f core conftest.err conftest.$ac_objext \
15660 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015661LIBS=$ac_check_lib_save_LIBS
15662fi
cristy8b350f62009-11-15 23:12:43 +000015663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
cristy3ed852e2009-09-05 21:47:34 +000015664$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristy8b350f62009-11-15 23:12:43 +000015665if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000015666 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
15667else
cristy8b350f62009-11-15 23:12:43 +000015668 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
15669if test "x$ac_cv_func_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000015670 lt_cv_dlopen="dlopen"
15671else
cristy8b350f62009-11-15 23:12:43 +000015672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000015673$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015674if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015675 $as_echo_n "(cached) " >&6
15676else
15677 ac_check_lib_save_LIBS=$LIBS
15678LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000015679cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015680/* end confdefs.h. */
15681
15682/* Override any GCC internal prototype to avoid an error.
15683 Use char because int might match the return type of a GCC
15684 builtin and then its argument prototype would still apply. */
15685#ifdef __cplusplus
15686extern "C"
15687#endif
15688char dlopen ();
15689int
15690main ()
15691{
15692return dlopen ();
15693 ;
15694 return 0;
15695}
15696_ACEOF
cristy8b350f62009-11-15 23:12:43 +000015697if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000015698 ac_cv_lib_dl_dlopen=yes
15699else
cristy8b350f62009-11-15 23:12:43 +000015700 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000015701fi
cristy8b350f62009-11-15 23:12:43 +000015702rm -f core conftest.err conftest.$ac_objext \
15703 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015704LIBS=$ac_check_lib_save_LIBS
15705fi
cristy8b350f62009-11-15 23:12:43 +000015706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000015707$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000015708if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000015709 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15710else
cristy8b350f62009-11-15 23:12:43 +000015711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
cristy3ed852e2009-09-05 21:47:34 +000015712$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015713if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015714 $as_echo_n "(cached) " >&6
15715else
15716 ac_check_lib_save_LIBS=$LIBS
15717LIBS="-lsvld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000015718cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015719/* end confdefs.h. */
15720
15721/* Override any GCC internal prototype to avoid an error.
15722 Use char because int might match the return type of a GCC
15723 builtin and then its argument prototype would still apply. */
15724#ifdef __cplusplus
15725extern "C"
15726#endif
15727char dlopen ();
15728int
15729main ()
15730{
15731return dlopen ();
15732 ;
15733 return 0;
15734}
15735_ACEOF
cristy8b350f62009-11-15 23:12:43 +000015736if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000015737 ac_cv_lib_svld_dlopen=yes
15738else
cristy8b350f62009-11-15 23:12:43 +000015739 ac_cv_lib_svld_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000015740fi
cristy8b350f62009-11-15 23:12:43 +000015741rm -f core conftest.err conftest.$ac_objext \
15742 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015743LIBS=$ac_check_lib_save_LIBS
15744fi
cristy8b350f62009-11-15 23:12:43 +000015745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000015746$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000015747if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000015748 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
15749else
cristy8b350f62009-11-15 23:12:43 +000015750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
cristy3ed852e2009-09-05 21:47:34 +000015751$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015752if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015753 $as_echo_n "(cached) " >&6
15754else
15755 ac_check_lib_save_LIBS=$LIBS
15756LIBS="-ldld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000015757cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015758/* end confdefs.h. */
15759
15760/* Override any GCC internal prototype to avoid an error.
15761 Use char because int might match the return type of a GCC
15762 builtin and then its argument prototype would still apply. */
15763#ifdef __cplusplus
15764extern "C"
15765#endif
15766char dld_link ();
15767int
15768main ()
15769{
15770return dld_link ();
15771 ;
15772 return 0;
15773}
15774_ACEOF
cristy8b350f62009-11-15 23:12:43 +000015775if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000015776 ac_cv_lib_dld_dld_link=yes
15777else
cristy8b350f62009-11-15 23:12:43 +000015778 ac_cv_lib_dld_dld_link=no
cristy3ed852e2009-09-05 21:47:34 +000015779fi
cristy8b350f62009-11-15 23:12:43 +000015780rm -f core conftest.err conftest.$ac_objext \
15781 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015782LIBS=$ac_check_lib_save_LIBS
15783fi
cristy8b350f62009-11-15 23:12:43 +000015784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
cristy3ed852e2009-09-05 21:47:34 +000015785$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristy8b350f62009-11-15 23:12:43 +000015786if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000015787 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
15788fi
15789
15790
15791fi
15792
15793
15794fi
15795
15796
15797fi
15798
15799
15800fi
15801
15802
15803fi
15804
15805 ;;
15806 esac
15807
15808 if test "x$lt_cv_dlopen" != xno; then
15809 enable_dlopen=yes
15810 else
15811 enable_dlopen=no
15812 fi
15813
15814 case $lt_cv_dlopen in
15815 dlopen)
15816 save_CPPFLAGS="$CPPFLAGS"
15817 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
15818
15819 save_LDFLAGS="$LDFLAGS"
15820 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
15821
15822 save_LIBS="$LIBS"
15823 LIBS="$lt_cv_dlopen_libs $LIBS"
15824
cristy8b350f62009-11-15 23:12:43 +000015825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
cristy3ed852e2009-09-05 21:47:34 +000015826$as_echo_n "checking whether a program can dlopen itself... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015827if test "${lt_cv_dlopen_self+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015828 $as_echo_n "(cached) " >&6
15829else
15830 if test "$cross_compiling" = yes; then :
15831 lt_cv_dlopen_self=cross
15832else
15833 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15834 lt_status=$lt_dlunknown
15835 cat > conftest.$ac_ext <<_LT_EOF
cristy92703d82010-04-26 00:18:18 +000015836#line 15836 "configure"
cristy3ed852e2009-09-05 21:47:34 +000015837#include "confdefs.h"
15838
15839#if HAVE_DLFCN_H
15840#include <dlfcn.h>
15841#endif
15842
15843#include <stdio.h>
15844
15845#ifdef RTLD_GLOBAL
15846# define LT_DLGLOBAL RTLD_GLOBAL
15847#else
15848# ifdef DL_GLOBAL
15849# define LT_DLGLOBAL DL_GLOBAL
15850# else
15851# define LT_DLGLOBAL 0
15852# endif
15853#endif
15854
15855/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15856 find out it does not work in some platform. */
15857#ifndef LT_DLLAZY_OR_NOW
15858# ifdef RTLD_LAZY
15859# define LT_DLLAZY_OR_NOW RTLD_LAZY
15860# else
15861# ifdef DL_LAZY
15862# define LT_DLLAZY_OR_NOW DL_LAZY
15863# else
15864# ifdef RTLD_NOW
15865# define LT_DLLAZY_OR_NOW RTLD_NOW
15866# else
15867# ifdef DL_NOW
15868# define LT_DLLAZY_OR_NOW DL_NOW
15869# else
15870# define LT_DLLAZY_OR_NOW 0
15871# endif
15872# endif
15873# endif
15874# endif
15875#endif
15876
cristy18304f92009-11-22 15:48:26 +000015877void fnord() { int i=42;}
cristy3ed852e2009-09-05 21:47:34 +000015878int main ()
15879{
15880 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15881 int status = $lt_dlunknown;
15882
15883 if (self)
15884 {
15885 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy18304f92009-11-22 15:48:26 +000015886 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
cristy3ed852e2009-09-05 21:47:34 +000015887 /* dlclose (self); */
15888 }
15889 else
15890 puts (dlerror ());
15891
15892 return status;
15893}
15894_LT_EOF
cristy8b350f62009-11-15 23:12:43 +000015895 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000015896 (eval $ac_link) 2>&5
15897 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000015898 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15899 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000015900 (./conftest; exit; ) >&5 2>/dev/null
15901 lt_status=$?
15902 case x$lt_status in
15903 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15904 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15905 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
15906 esac
15907 else :
15908 # compilation failed
15909 lt_cv_dlopen_self=no
15910 fi
15911fi
15912rm -fr conftest*
15913
15914
15915fi
cristy8b350f62009-11-15 23:12:43 +000015916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
cristy3ed852e2009-09-05 21:47:34 +000015917$as_echo "$lt_cv_dlopen_self" >&6; }
15918
15919 if test "x$lt_cv_dlopen_self" = xyes; then
15920 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
cristy8b350f62009-11-15 23:12:43 +000015921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
cristy3ed852e2009-09-05 21:47:34 +000015922$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015923if test "${lt_cv_dlopen_self_static+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015924 $as_echo_n "(cached) " >&6
15925else
15926 if test "$cross_compiling" = yes; then :
15927 lt_cv_dlopen_self_static=cross
15928else
15929 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15930 lt_status=$lt_dlunknown
15931 cat > conftest.$ac_ext <<_LT_EOF
cristy92703d82010-04-26 00:18:18 +000015932#line 15932 "configure"
cristy3ed852e2009-09-05 21:47:34 +000015933#include "confdefs.h"
15934
15935#if HAVE_DLFCN_H
15936#include <dlfcn.h>
15937#endif
15938
15939#include <stdio.h>
15940
15941#ifdef RTLD_GLOBAL
15942# define LT_DLGLOBAL RTLD_GLOBAL
15943#else
15944# ifdef DL_GLOBAL
15945# define LT_DLGLOBAL DL_GLOBAL
15946# else
15947# define LT_DLGLOBAL 0
15948# endif
15949#endif
15950
15951/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15952 find out it does not work in some platform. */
15953#ifndef LT_DLLAZY_OR_NOW
15954# ifdef RTLD_LAZY
15955# define LT_DLLAZY_OR_NOW RTLD_LAZY
15956# else
15957# ifdef DL_LAZY
15958# define LT_DLLAZY_OR_NOW DL_LAZY
15959# else
15960# ifdef RTLD_NOW
15961# define LT_DLLAZY_OR_NOW RTLD_NOW
15962# else
15963# ifdef DL_NOW
15964# define LT_DLLAZY_OR_NOW DL_NOW
15965# else
15966# define LT_DLLAZY_OR_NOW 0
15967# endif
15968# endif
15969# endif
15970# endif
15971#endif
15972
cristy18304f92009-11-22 15:48:26 +000015973void fnord() { int i=42;}
cristy3ed852e2009-09-05 21:47:34 +000015974int main ()
15975{
15976 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15977 int status = $lt_dlunknown;
15978
15979 if (self)
15980 {
15981 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy18304f92009-11-22 15:48:26 +000015982 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
cristy3ed852e2009-09-05 21:47:34 +000015983 /* dlclose (self); */
15984 }
15985 else
15986 puts (dlerror ());
15987
15988 return status;
15989}
15990_LT_EOF
cristy8b350f62009-11-15 23:12:43 +000015991 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000015992 (eval $ac_link) 2>&5
15993 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000015994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15995 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000015996 (./conftest; exit; ) >&5 2>/dev/null
15997 lt_status=$?
15998 case x$lt_status in
15999 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
16000 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
16001 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
16002 esac
16003 else :
16004 # compilation failed
16005 lt_cv_dlopen_self_static=no
16006 fi
16007fi
16008rm -fr conftest*
16009
16010
16011fi
cristy8b350f62009-11-15 23:12:43 +000016012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
cristy3ed852e2009-09-05 21:47:34 +000016013$as_echo "$lt_cv_dlopen_self_static" >&6; }
16014 fi
16015
16016 CPPFLAGS="$save_CPPFLAGS"
16017 LDFLAGS="$save_LDFLAGS"
16018 LIBS="$save_LIBS"
16019 ;;
16020 esac
16021
16022 case $lt_cv_dlopen_self in
16023 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
16024 *) enable_dlopen_self=unknown ;;
16025 esac
16026
16027 case $lt_cv_dlopen_self_static in
16028 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
16029 *) enable_dlopen_self_static=unknown ;;
16030 esac
16031fi
16032
16033
16034
16035
16036
16037
16038
16039
16040
16041
16042
16043
16044
16045
16046
16047
16048
16049striplib=
16050old_striplib=
cristy8b350f62009-11-15 23:12:43 +000016051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
cristy3ed852e2009-09-05 21:47:34 +000016052$as_echo_n "checking whether stripping libraries is possible... " >&6; }
16053if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
16054 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16055 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
cristy8b350f62009-11-15 23:12:43 +000016056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000016057$as_echo "yes" >&6; }
16058else
16059# FIXME - insert some real tests, host_os isn't really good enough
16060 case $host_os in
16061 darwin*)
16062 if test -n "$STRIP" ; then
16063 striplib="$STRIP -x"
16064 old_striplib="$STRIP -S"
cristy8b350f62009-11-15 23:12:43 +000016065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000016066$as_echo "yes" >&6; }
16067 else
cristy8b350f62009-11-15 23:12:43 +000016068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000016069$as_echo "no" >&6; }
16070 fi
16071 ;;
16072 *)
cristy8b350f62009-11-15 23:12:43 +000016073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000016074$as_echo "no" >&6; }
16075 ;;
16076 esac
16077fi
16078
16079
16080
16081
16082
16083
16084
16085
16086
16087
16088
16089
16090 # Report which library types will actually be built
cristy8b350f62009-11-15 23:12:43 +000016091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000016092$as_echo_n "checking if libtool supports shared libraries... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000016093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
cristy3ed852e2009-09-05 21:47:34 +000016094$as_echo "$can_build_shared" >&6; }
16095
cristy8b350f62009-11-15 23:12:43 +000016096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000016097$as_echo_n "checking whether to build shared libraries... " >&6; }
16098 test "$can_build_shared" = "no" && enable_shared=no
16099
16100 # On AIX, shared libraries and static libraries use the same namespace, and
16101 # are all built from PIC.
16102 case $host_os in
16103 aix3*)
16104 test "$enable_shared" = yes && enable_static=no
16105 if test -n "$RANLIB"; then
16106 archive_cmds="$archive_cmds~\$RANLIB \$lib"
16107 postinstall_cmds='$RANLIB $lib'
16108 fi
16109 ;;
16110
16111 aix[4-9]*)
16112 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
16113 test "$enable_shared" = yes && enable_static=no
16114 fi
16115 ;;
16116 esac
cristy8b350f62009-11-15 23:12:43 +000016117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
cristy3ed852e2009-09-05 21:47:34 +000016118$as_echo "$enable_shared" >&6; }
16119
cristy8b350f62009-11-15 23:12:43 +000016120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000016121$as_echo_n "checking whether to build static libraries... " >&6; }
16122 # Make sure either enable_shared or enable_static is yes.
16123 test "$enable_shared" = yes || enable_static=yes
cristy8b350f62009-11-15 23:12:43 +000016124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
cristy3ed852e2009-09-05 21:47:34 +000016125$as_echo "$enable_static" >&6; }
16126
16127
16128
16129
16130fi
16131ac_ext=c
16132ac_cpp='$CPP $CPPFLAGS'
16133ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16134ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16135ac_compiler_gnu=$ac_cv_c_compiler_gnu
16136
16137CC="$lt_save_CC"
16138
16139
16140ac_ext=cpp
16141ac_cpp='$CXXCPP $CPPFLAGS'
16142ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16143ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16144ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16145
16146archive_cmds_need_lc_CXX=no
16147allow_undefined_flag_CXX=
16148always_export_symbols_CXX=no
16149archive_expsym_cmds_CXX=
16150compiler_needs_object_CXX=no
16151export_dynamic_flag_spec_CXX=
16152hardcode_direct_CXX=no
16153hardcode_direct_absolute_CXX=no
16154hardcode_libdir_flag_spec_CXX=
16155hardcode_libdir_flag_spec_ld_CXX=
16156hardcode_libdir_separator_CXX=
16157hardcode_minus_L_CXX=no
16158hardcode_shlibpath_var_CXX=unsupported
16159hardcode_automatic_CXX=no
16160inherit_rpath_CXX=no
16161module_cmds_CXX=
16162module_expsym_cmds_CXX=
16163link_all_deplibs_CXX=unknown
16164old_archive_cmds_CXX=$old_archive_cmds
16165no_undefined_flag_CXX=
16166whole_archive_flag_spec_CXX=
16167enable_shared_with_static_runtimes_CXX=no
16168
16169# Source file extension for C++ test sources.
16170ac_ext=cpp
16171
16172# Object file extension for compiled C++ test sources.
16173objext=o
16174objext_CXX=$objext
16175
16176# No sense in running all these tests if we already determined that
16177# the CXX compiler isn't working. Some variables (like enable_shared)
16178# are currently assumed to apply to all compilers on this platform,
16179# and will be corrupted by setting them based on a non-working compiler.
16180if test "$_lt_caught_CXX_error" != yes; then
16181 # Code to be used in simple compile tests
16182 lt_simple_compile_test_code="int some_variable = 0;"
16183
16184 # Code to be used in simple link tests
16185 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
16186
16187 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16188
16189
16190
16191
16192
16193
16194# If no C compiler was specified, use CC.
16195LTCC=${LTCC-"$CC"}
16196
16197# If no C compiler flags were specified, use CFLAGS.
16198LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16199
16200# Allow CC to be a program name with arguments.
16201compiler=$CC
16202
16203
16204 # save warnings/boilerplate of simple test code
16205 ac_outfile=conftest.$ac_objext
16206echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16207eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16208_lt_compiler_boilerplate=`cat conftest.err`
16209$RM conftest*
16210
16211 ac_outfile=conftest.$ac_objext
16212echo "$lt_simple_link_test_code" >conftest.$ac_ext
16213eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16214_lt_linker_boilerplate=`cat conftest.err`
16215$RM -r conftest*
16216
16217
16218 # Allow CC to be a program name with arguments.
16219 lt_save_CC=$CC
16220 lt_save_LD=$LD
16221 lt_save_GCC=$GCC
16222 GCC=$GXX
16223 lt_save_with_gnu_ld=$with_gnu_ld
16224 lt_save_path_LD=$lt_cv_path_LD
16225 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
16226 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
16227 else
16228 $as_unset lt_cv_prog_gnu_ld
16229 fi
16230 if test -n "${lt_cv_path_LDCXX+set}"; then
16231 lt_cv_path_LD=$lt_cv_path_LDCXX
16232 else
16233 $as_unset lt_cv_path_LD
16234 fi
16235 test -z "${LDCXX+set}" || LD=$LDCXX
16236 CC=${CXX-"c++"}
16237 compiler=$CC
16238 compiler_CXX=$CC
16239 for cc_temp in $compiler""; do
16240 case $cc_temp in
16241 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16242 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16243 \-*) ;;
16244 *) break;;
16245 esac
16246done
cristy18304f92009-11-22 15:48:26 +000016247cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
cristy3ed852e2009-09-05 21:47:34 +000016248
16249
16250 if test -n "$compiler"; then
16251 # We don't want -fno-exception when compiling C++ code, so set the
16252 # no_builtin_flag separately
16253 if test "$GXX" = yes; then
16254 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
16255 else
16256 lt_prog_compiler_no_builtin_flag_CXX=
16257 fi
16258
16259 if test "$GXX" = yes; then
16260 # Set up default GNU C++ configuration
16261
16262
16263
16264# Check whether --with-gnu-ld was given.
cristy8b350f62009-11-15 23:12:43 +000016265if test "${with_gnu_ld+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000016266 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16267else
16268 with_gnu_ld=no
16269fi
16270
16271ac_prog=ld
16272if test "$GCC" = yes; then
16273 # Check if gcc -print-prog-name=ld gives a path.
cristy8b350f62009-11-15 23:12:43 +000016274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +000016275$as_echo_n "checking for ld used by $CC... " >&6; }
16276 case $host in
16277 *-*-mingw*)
16278 # gcc leaves a trailing carriage return which upsets mingw
16279 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16280 *)
16281 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16282 esac
16283 case $ac_prog in
16284 # Accept absolute paths.
16285 [\\/]* | ?:[\\/]*)
16286 re_direlt='/[^/][^/]*/\.\./'
16287 # Canonicalize the pathname of ld
16288 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
16289 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
16290 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
16291 done
16292 test -z "$LD" && LD="$ac_prog"
16293 ;;
16294 "")
16295 # If it fails, then pretend we aren't using GCC.
16296 ac_prog=ld
16297 ;;
16298 *)
16299 # If it is relative, then search for the first ld in PATH.
16300 with_gnu_ld=unknown
16301 ;;
16302 esac
16303elif test "$with_gnu_ld" = yes; then
cristy8b350f62009-11-15 23:12:43 +000016304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +000016305$as_echo_n "checking for GNU ld... " >&6; }
16306else
cristy8b350f62009-11-15 23:12:43 +000016307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +000016308$as_echo_n "checking for non-GNU ld... " >&6; }
16309fi
cristy8b350f62009-11-15 23:12:43 +000016310if test "${lt_cv_path_LD+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000016311 $as_echo_n "(cached) " >&6
16312else
16313 if test -z "$LD"; then
16314 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16315 for ac_dir in $PATH; do
16316 IFS="$lt_save_ifs"
16317 test -z "$ac_dir" && ac_dir=.
16318 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16319 lt_cv_path_LD="$ac_dir/$ac_prog"
16320 # Check to see if the program is GNU ld. I'd rather use --version,
16321 # but apparently some variants of GNU ld only accept -v.
16322 # Break only if it was the GNU/non-GNU ld that we prefer.
16323 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16324 *GNU* | *'with BFD'*)
16325 test "$with_gnu_ld" != no && break
16326 ;;
16327 *)
16328 test "$with_gnu_ld" != yes && break
16329 ;;
16330 esac
16331 fi
16332 done
16333 IFS="$lt_save_ifs"
16334else
16335 lt_cv_path_LD="$LD" # Let the user override the test with a path.
16336fi
16337fi
16338
16339LD="$lt_cv_path_LD"
16340if test -n "$LD"; then
cristy8b350f62009-11-15 23:12:43 +000016341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
cristy3ed852e2009-09-05 21:47:34 +000016342$as_echo "$LD" >&6; }
16343else
cristy8b350f62009-11-15 23:12:43 +000016344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000016345$as_echo "no" >&6; }
16346fi
cristy8b350f62009-11-15 23:12:43 +000016347test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
16348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +000016349$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000016350if test "${lt_cv_prog_gnu_ld+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000016351 $as_echo_n "(cached) " >&6
16352else
16353 # I'd rather use --version here, but apparently some GNU lds only accept -v.
16354case `$LD -v 2>&1 </dev/null` in
16355*GNU* | *'with BFD'*)
16356 lt_cv_prog_gnu_ld=yes
16357 ;;
16358*)
16359 lt_cv_prog_gnu_ld=no
16360 ;;
16361esac
16362fi
cristy8b350f62009-11-15 23:12:43 +000016363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
cristy3ed852e2009-09-05 21:47:34 +000016364$as_echo "$lt_cv_prog_gnu_ld" >&6; }
16365with_gnu_ld=$lt_cv_prog_gnu_ld
16366
16367
16368
16369
16370
16371
16372
16373 # Check if GNU C++ uses GNU ld as the underlying linker, since the
16374 # archiving commands below assume that GNU ld is being used.
16375 if test "$with_gnu_ld" = yes; then
16376 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16377 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'
16378
16379 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16380 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16381
16382 # If archive_cmds runs LD, not CC, wlarc should be empty
16383 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
16384 # investigate it a little bit more. (MM)
16385 wlarc='${wl}'
16386
16387 # ancient GNU ld didn't support --whole-archive et. al.
16388 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
16389 $GREP 'no-whole-archive' > /dev/null; then
16390 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16391 else
16392 whole_archive_flag_spec_CXX=
16393 fi
16394 else
16395 with_gnu_ld=no
16396 wlarc=
16397
16398 # A generic and very simple default shared library creation
16399 # command for GNU C++ for the case where it uses the native
16400 # linker, instead of GNU ld. If possible, this setting should
16401 # overridden to take advantage of the native linker features on
16402 # the platform it is being used on.
16403 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16404 fi
16405
16406 # Commands to make compiler produce verbose output that lists
16407 # what "hidden" libraries, object files and flags are used when
16408 # linking a shared library.
cristy18304f92009-11-22 15:48:26 +000016409 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
cristy3ed852e2009-09-05 21:47:34 +000016410
16411 else
16412 GXX=no
16413 with_gnu_ld=no
16414 wlarc=
16415 fi
16416
16417 # PORTME: fill in a description of your system's C++ link characteristics
cristy8b350f62009-11-15 23:12:43 +000016418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000016419$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16420 ld_shlibs_CXX=yes
16421 case $host_os in
16422 aix3*)
16423 # FIXME: insert proper C++ library support
16424 ld_shlibs_CXX=no
16425 ;;
16426 aix[4-9]*)
16427 if test "$host_cpu" = ia64; then
16428 # On IA64, the linker does run time linking by default, so we don't
16429 # have to do anything special.
16430 aix_use_runtimelinking=no
16431 exp_sym_flag='-Bexport'
16432 no_entry_flag=""
16433 else
16434 aix_use_runtimelinking=no
16435
16436 # Test if we are trying to use run time linking or normal
16437 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16438 # need to do runtime linking.
16439 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16440 for ld_flag in $LDFLAGS; do
16441 case $ld_flag in
16442 *-brtl*)
16443 aix_use_runtimelinking=yes
16444 break
16445 ;;
16446 esac
16447 done
16448 ;;
16449 esac
16450
16451 exp_sym_flag='-bexport'
16452 no_entry_flag='-bnoentry'
16453 fi
16454
16455 # When large executables or shared objects are built, AIX ld can
16456 # have problems creating the table of contents. If linking a library
16457 # or program results in "error TOC overflow" add -mminimal-toc to
16458 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16459 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16460
16461 archive_cmds_CXX=''
16462 hardcode_direct_CXX=yes
16463 hardcode_direct_absolute_CXX=yes
16464 hardcode_libdir_separator_CXX=':'
16465 link_all_deplibs_CXX=yes
16466 file_list_spec_CXX='${wl}-f,'
16467
16468 if test "$GXX" = yes; then
16469 case $host_os in aix4.[012]|aix4.[012].*)
16470 # We only want to do this on AIX 4.2 and lower, the check
16471 # below for broken collect2 doesn't work under 4.3+
16472 collect2name=`${CC} -print-prog-name=collect2`
16473 if test -f "$collect2name" &&
16474 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16475 then
16476 # We have reworked collect2
16477 :
16478 else
16479 # We have old collect2
16480 hardcode_direct_CXX=unsupported
16481 # It fails to find uninstalled libraries when the uninstalled
16482 # path is not listed in the libpath. Setting hardcode_minus_L
16483 # to unsupported forces relinking
16484 hardcode_minus_L_CXX=yes
16485 hardcode_libdir_flag_spec_CXX='-L$libdir'
16486 hardcode_libdir_separator_CXX=
16487 fi
16488 esac
16489 shared_flag='-shared'
16490 if test "$aix_use_runtimelinking" = yes; then
16491 shared_flag="$shared_flag "'${wl}-G'
16492 fi
16493 else
16494 # not using gcc
16495 if test "$host_cpu" = ia64; then
16496 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16497 # chokes on -Wl,-G. The following line is correct:
16498 shared_flag='-G'
16499 else
16500 if test "$aix_use_runtimelinking" = yes; then
16501 shared_flag='${wl}-G'
16502 else
16503 shared_flag='${wl}-bM:SRE'
16504 fi
16505 fi
16506 fi
16507
16508 export_dynamic_flag_spec_CXX='${wl}-bexpall'
16509 # It seems that -bexpall does not export symbols beginning with
16510 # underscore (_), so it is better to generate a list of symbols to
16511 # export.
16512 always_export_symbols_CXX=yes
16513 if test "$aix_use_runtimelinking" = yes; then
16514 # Warning - without using the other runtime loading flags (-brtl),
16515 # -berok will link without error, but may produce a broken library.
16516 allow_undefined_flag_CXX='-berok'
16517 # Determine the default libpath from the value encoded in an empty
16518 # executable.
cristy8b350f62009-11-15 23:12:43 +000016519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000016520/* end confdefs.h. */
16521
16522int
16523main ()
16524{
16525
16526 ;
16527 return 0;
16528}
16529_ACEOF
cristy8b350f62009-11-15 23:12:43 +000016530if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000016531
16532lt_aix_libpath_sed='
16533 /Import File Strings/,/^$/ {
16534 /^0/ {
16535 s/^0 *\(.*\)$/\1/
16536 p
16537 }
16538 }'
16539aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16540# Check for a 64-bit object if we didn't find anything.
16541if test -z "$aix_libpath"; then
16542 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16543fi
cristy3ed852e2009-09-05 21:47:34 +000016544fi
cristy8b350f62009-11-15 23:12:43 +000016545rm -f core conftest.err conftest.$ac_objext \
16546 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000016547if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16548
16549 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
16550
cristy18304f92009-11-22 15:48:26 +000016551 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 +000016552 else
16553 if test "$host_cpu" = ia64; then
16554 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
16555 allow_undefined_flag_CXX="-z nodefs"
16556 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"
16557 else
16558 # Determine the default libpath from the value encoded in an
16559 # empty executable.
cristy8b350f62009-11-15 23:12:43 +000016560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000016561/* end confdefs.h. */
16562
16563int
16564main ()
16565{
16566
16567 ;
16568 return 0;
16569}
16570_ACEOF
cristy8b350f62009-11-15 23:12:43 +000016571if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000016572
16573lt_aix_libpath_sed='
16574 /Import File Strings/,/^$/ {
16575 /^0/ {
16576 s/^0 *\(.*\)$/\1/
16577 p
16578 }
16579 }'
16580aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16581# Check for a 64-bit object if we didn't find anything.
16582if test -z "$aix_libpath"; then
16583 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16584fi
cristy3ed852e2009-09-05 21:47:34 +000016585fi
cristy8b350f62009-11-15 23:12:43 +000016586rm -f core conftest.err conftest.$ac_objext \
16587 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000016588if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16589
16590 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
16591 # Warning - without using the other run time loading flags,
16592 # -berok will link without error, but may produce a broken library.
16593 no_undefined_flag_CXX=' ${wl}-bernotok'
16594 allow_undefined_flag_CXX=' ${wl}-berok'
cristy18304f92009-11-22 15:48:26 +000016595 # Exported symbols can be pulled into shared objects from archives
16596 whole_archive_flag_spec_CXX='$convenience'
cristy3ed852e2009-09-05 21:47:34 +000016597 archive_cmds_need_lc_CXX=yes
16598 # This is similar to how AIX traditionally builds its shared
16599 # libraries.
16600 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'
16601 fi
16602 fi
16603 ;;
16604
16605 beos*)
16606 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16607 allow_undefined_flag_CXX=unsupported
16608 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16609 # support --undefined. This deserves some investigation. FIXME
16610 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16611 else
16612 ld_shlibs_CXX=no
16613 fi
16614 ;;
16615
16616 chorus*)
16617 case $cc_basename in
16618 *)
16619 # FIXME: insert proper C++ library support
16620 ld_shlibs_CXX=no
16621 ;;
16622 esac
16623 ;;
16624
16625 cygwin* | mingw* | pw32* | cegcc*)
16626 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
16627 # as there is no search path for DLLs.
16628 hardcode_libdir_flag_spec_CXX='-L$libdir'
16629 allow_undefined_flag_CXX=unsupported
16630 always_export_symbols_CXX=no
16631 enable_shared_with_static_runtimes_CXX=yes
16632
16633 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16634 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'
16635 # If the export-symbols file already is a .def file (1st line
16636 # is EXPORTS), use it as is; otherwise, prepend...
16637 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16638 cp $export_symbols $output_objdir/$soname.def;
16639 else
16640 echo EXPORTS > $output_objdir/$soname.def;
16641 cat $export_symbols >> $output_objdir/$soname.def;
16642 fi~
16643 $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'
16644 else
16645 ld_shlibs_CXX=no
16646 fi
16647 ;;
16648 darwin* | rhapsody*)
16649
16650
16651 archive_cmds_need_lc_CXX=no
16652 hardcode_direct_CXX=no
16653 hardcode_automatic_CXX=yes
16654 hardcode_shlibpath_var_CXX=unsupported
cristy18304f92009-11-22 15:48:26 +000016655 whole_archive_flag_spec_CXX=''
cristy3ed852e2009-09-05 21:47:34 +000016656 link_all_deplibs_CXX=yes
16657 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
16658 case $cc_basename in
16659 ifort*) _lt_dar_can_shared=yes ;;
16660 *) _lt_dar_can_shared=$GCC ;;
16661 esac
16662 if test "$_lt_dar_can_shared" = "yes"; then
cristy18304f92009-11-22 15:48:26 +000016663 output_verbose_link_cmd=echo
cristy3ed852e2009-09-05 21:47:34 +000016664 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}"
16665 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16666 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}"
16667 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}"
16668 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
16669 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}"
16670 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}"
16671 fi
16672
16673 else
16674 ld_shlibs_CXX=no
16675 fi
16676
16677 ;;
16678
16679 dgux*)
16680 case $cc_basename in
16681 ec++*)
16682 # FIXME: insert proper C++ library support
16683 ld_shlibs_CXX=no
16684 ;;
16685 ghcx*)
16686 # Green Hills C++ Compiler
16687 # FIXME: insert proper C++ library support
16688 ld_shlibs_CXX=no
16689 ;;
16690 *)
16691 # FIXME: insert proper C++ library support
16692 ld_shlibs_CXX=no
16693 ;;
16694 esac
16695 ;;
16696
16697 freebsd[12]*)
16698 # C++ shared libraries reported to be fairly broken before
16699 # switch to ELF
16700 ld_shlibs_CXX=no
16701 ;;
16702
16703 freebsd-elf*)
16704 archive_cmds_need_lc_CXX=no
16705 ;;
16706
16707 freebsd* | dragonfly*)
16708 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
16709 # conventions
16710 ld_shlibs_CXX=yes
16711 ;;
16712
16713 gnu*)
16714 ;;
16715
16716 hpux9*)
16717 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16718 hardcode_libdir_separator_CXX=:
16719 export_dynamic_flag_spec_CXX='${wl}-E'
16720 hardcode_direct_CXX=yes
16721 hardcode_minus_L_CXX=yes # Not in the search PATH,
16722 # but as the default
16723 # location of the library.
16724
16725 case $cc_basename in
16726 CC*)
16727 # FIXME: insert proper C++ library support
16728 ld_shlibs_CXX=no
16729 ;;
16730 aCC*)
16731 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'
16732 # Commands to make compiler produce verbose output that lists
16733 # what "hidden" libraries, object files and flags are used when
16734 # linking a shared library.
16735 #
16736 # There doesn't appear to be a way to prevent this compiler from
16737 # explicitly linking system object files so we need to strip them
16738 # from the output so that they don't get included in the library
16739 # dependencies.
cristy18304f92009-11-22 15:48:26 +000016740 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 +000016741 ;;
16742 *)
16743 if test "$GXX" = yes; then
16744 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'
16745 else
16746 # FIXME: insert proper C++ library support
16747 ld_shlibs_CXX=no
16748 fi
16749 ;;
16750 esac
16751 ;;
16752
16753 hpux10*|hpux11*)
16754 if test $with_gnu_ld = no; then
16755 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16756 hardcode_libdir_separator_CXX=:
16757
16758 case $host_cpu in
16759 hppa*64*|ia64*)
16760 ;;
16761 *)
16762 export_dynamic_flag_spec_CXX='${wl}-E'
16763 ;;
16764 esac
16765 fi
16766 case $host_cpu in
16767 hppa*64*|ia64*)
16768 hardcode_direct_CXX=no
16769 hardcode_shlibpath_var_CXX=no
16770 ;;
16771 *)
16772 hardcode_direct_CXX=yes
16773 hardcode_direct_absolute_CXX=yes
16774 hardcode_minus_L_CXX=yes # Not in the search PATH,
16775 # but as the default
16776 # location of the library.
16777 ;;
16778 esac
16779
16780 case $cc_basename in
16781 CC*)
16782 # FIXME: insert proper C++ library support
16783 ld_shlibs_CXX=no
16784 ;;
16785 aCC*)
16786 case $host_cpu in
16787 hppa*64*)
16788 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16789 ;;
16790 ia64*)
16791 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16792 ;;
16793 *)
16794 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16795 ;;
16796 esac
16797 # Commands to make compiler produce verbose output that lists
16798 # what "hidden" libraries, object files and flags are used when
16799 # linking a shared library.
16800 #
16801 # There doesn't appear to be a way to prevent this compiler from
16802 # explicitly linking system object files so we need to strip them
16803 # from the output so that they don't get included in the library
16804 # dependencies.
cristy18304f92009-11-22 15:48:26 +000016805 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 +000016806 ;;
16807 *)
16808 if test "$GXX" = yes; then
16809 if test $with_gnu_ld = no; then
16810 case $host_cpu in
16811 hppa*64*)
16812 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16813 ;;
16814 ia64*)
16815 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16816 ;;
16817 *)
16818 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'
16819 ;;
16820 esac
16821 fi
16822 else
16823 # FIXME: insert proper C++ library support
16824 ld_shlibs_CXX=no
16825 fi
16826 ;;
16827 esac
16828 ;;
16829
16830 interix[3-9]*)
16831 hardcode_direct_CXX=no
16832 hardcode_shlibpath_var_CXX=no
16833 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16834 export_dynamic_flag_spec_CXX='${wl}-E'
16835 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16836 # Instead, shared libraries are loaded at an image base (0x10000000 by
16837 # default) and relocated if they conflict, which is a slow very memory
16838 # consuming and fragmenting process. To avoid this, we pick a random,
16839 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16840 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16841 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'
16842 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'
16843 ;;
16844 irix5* | irix6*)
16845 case $cc_basename in
16846 CC*)
16847 # SGI C++
cristy18304f92009-11-22 15:48:26 +000016848 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 +000016849
16850 # Archives containing C++ object files must be created using
16851 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
16852 # necessary to make sure instantiated templates are included
16853 # in the archive.
16854 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
16855 ;;
16856 *)
16857 if test "$GXX" = yes; then
16858 if test "$with_gnu_ld" = no; then
cristy18304f92009-11-22 15:48:26 +000016859 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 +000016860 else
cristy18304f92009-11-22 15:48:26 +000016861 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 +000016862 fi
16863 fi
16864 link_all_deplibs_CXX=yes
16865 ;;
16866 esac
16867 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16868 hardcode_libdir_separator_CXX=:
16869 inherit_rpath_CXX=yes
16870 ;;
16871
cristy18304f92009-11-22 15:48:26 +000016872 linux* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000016873 case $cc_basename in
16874 KCC*)
16875 # Kuck and Associates, Inc. (KAI) C++ Compiler
16876
16877 # KCC will only create a shared library if the output file
16878 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16879 # to its proper name (with version) after linking.
16880 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'
16881 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'
16882 # Commands to make compiler produce verbose output that lists
16883 # what "hidden" libraries, object files and flags are used when
16884 # linking a shared library.
16885 #
16886 # There doesn't appear to be a way to prevent this compiler from
16887 # explicitly linking system object files so we need to strip them
16888 # from the output so that they don't get included in the library
16889 # dependencies.
cristy18304f92009-11-22 15:48:26 +000016890 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 +000016891
16892 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16893 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16894
16895 # Archives containing C++ object files must be created using
16896 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16897 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16898 ;;
16899 icpc* | ecpc* )
16900 # Intel C++
16901 with_gnu_ld=yes
16902 # version 8.0 and above of icpc choke on multiply defined symbols
16903 # if we add $predep_objects and $postdep_objects, however 7.1 and
16904 # earlier do not add the objects themselves.
16905 case `$CC -V 2>&1` in
16906 *"Version 7."*)
16907 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16908 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'
16909 ;;
16910 *) # Version 8.0 or newer
16911 tmp_idyn=
16912 case $host_cpu in
16913 ia64*) tmp_idyn=' -i_dynamic';;
16914 esac
16915 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16916 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'
16917 ;;
16918 esac
16919 archive_cmds_need_lc_CXX=no
16920 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16921 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16922 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16923 ;;
16924 pgCC* | pgcpp*)
16925 # Portland Group C++ compiler
16926 case `$CC -V` in
16927 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
16928 prelink_cmds_CXX='tpldir=Template.dir~
16929 rm -rf $tpldir~
16930 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
16931 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
16932 old_archive_cmds_CXX='tpldir=Template.dir~
16933 rm -rf $tpldir~
16934 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
16935 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
16936 $RANLIB $oldlib'
16937 archive_cmds_CXX='tpldir=Template.dir~
16938 rm -rf $tpldir~
16939 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
16940 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
16941 archive_expsym_cmds_CXX='tpldir=Template.dir~
16942 rm -rf $tpldir~
16943 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
16944 $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'
16945 ;;
16946 *) # Version 6 will use weak symbols
16947 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
16948 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'
16949 ;;
16950 esac
16951
16952 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
16953 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
cristy18304f92009-11-22 15:48:26 +000016954 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 +000016955 ;;
16956 cxx*)
16957 # Compaq C++
16958 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16959 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'
16960
16961 runpath_var=LD_RUN_PATH
16962 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16963 hardcode_libdir_separator_CXX=:
16964
16965 # Commands to make compiler produce verbose output that lists
16966 # what "hidden" libraries, object files and flags are used when
16967 # linking a shared library.
16968 #
16969 # There doesn't appear to be a way to prevent this compiler from
16970 # explicitly linking system object files so we need to strip them
16971 # from the output so that they don't get included in the library
16972 # dependencies.
cristy18304f92009-11-22 15:48:26 +000016973 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 +000016974 ;;
cristy18304f92009-11-22 15:48:26 +000016975 xl*)
cristy3ed852e2009-09-05 21:47:34 +000016976 # IBM XL 8.0 on PPC, with GNU ld
16977 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16978 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16979 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16980 if test "x$supports_anon_versioning" = xyes; then
16981 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
16982 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16983 echo "local: *; };" >> $output_objdir/$libname.ver~
16984 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16985 fi
16986 ;;
16987 *)
16988 case `$CC -V 2>&1 | sed 5q` in
16989 *Sun\ C*)
16990 # Sun C++ 5.9
16991 no_undefined_flag_CXX=' -zdefs'
16992 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16993 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'
16994 hardcode_libdir_flag_spec_CXX='-R$libdir'
cristy18304f92009-11-22 15:48:26 +000016995 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 +000016996 compiler_needs_object_CXX=yes
16997
16998 # Not sure whether something based on
16999 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
17000 # would be better.
cristy18304f92009-11-22 15:48:26 +000017001 output_verbose_link_cmd='echo'
cristy3ed852e2009-09-05 21:47:34 +000017002
17003 # Archives containing C++ object files must be created using
17004 # "CC -xar", where "CC" is the Sun C++ compiler. This is
17005 # necessary to make sure instantiated templates are included
17006 # in the archive.
17007 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17008 ;;
17009 esac
17010 ;;
17011 esac
17012 ;;
17013
17014 lynxos*)
17015 # FIXME: insert proper C++ library support
17016 ld_shlibs_CXX=no
17017 ;;
17018
17019 m88k*)
17020 # FIXME: insert proper C++ library support
17021 ld_shlibs_CXX=no
17022 ;;
17023
17024 mvs*)
17025 case $cc_basename in
17026 cxx*)
17027 # FIXME: insert proper C++ library support
17028 ld_shlibs_CXX=no
17029 ;;
17030 *)
17031 # FIXME: insert proper C++ library support
17032 ld_shlibs_CXX=no
17033 ;;
17034 esac
17035 ;;
17036
17037 netbsd*)
17038 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17039 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
17040 wlarc=
17041 hardcode_libdir_flag_spec_CXX='-R$libdir'
17042 hardcode_direct_CXX=yes
17043 hardcode_shlibpath_var_CXX=no
17044 fi
17045 # Workaround some broken pre-1.5 toolchains
17046 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
17047 ;;
17048
17049 *nto* | *qnx*)
17050 ld_shlibs_CXX=yes
17051 ;;
17052
17053 openbsd2*)
17054 # C++ shared libraries are fairly broken
17055 ld_shlibs_CXX=no
17056 ;;
17057
17058 openbsd*)
17059 if test -f /usr/libexec/ld.so; then
17060 hardcode_direct_CXX=yes
17061 hardcode_shlibpath_var_CXX=no
17062 hardcode_direct_absolute_CXX=yes
17063 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17064 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17065 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17066 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
17067 export_dynamic_flag_spec_CXX='${wl}-E'
17068 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17069 fi
cristy18304f92009-11-22 15:48:26 +000017070 output_verbose_link_cmd=echo
cristy3ed852e2009-09-05 21:47:34 +000017071 else
17072 ld_shlibs_CXX=no
17073 fi
17074 ;;
17075
17076 osf3* | osf4* | osf5*)
17077 case $cc_basename in
17078 KCC*)
17079 # Kuck and Associates, Inc. (KAI) C++ Compiler
17080
17081 # KCC will only create a shared library if the output file
17082 # ends with ".so" (or ".sl" for HP-UX), so rename the library
17083 # to its proper name (with version) after linking.
17084 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'
17085
17086 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17087 hardcode_libdir_separator_CXX=:
17088
17089 # Archives containing C++ object files must be created using
17090 # the KAI C++ compiler.
17091 case $host in
17092 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
17093 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
17094 esac
17095 ;;
17096 RCC*)
17097 # Rational C++ 2.4.1
17098 # FIXME: insert proper C++ library support
17099 ld_shlibs_CXX=no
17100 ;;
17101 cxx*)
17102 case $host in
17103 osf3*)
17104 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
cristy18304f92009-11-22 15:48:26 +000017105 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 +000017106 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17107 ;;
17108 *)
17109 allow_undefined_flag_CXX=' -expect_unresolved \*'
cristy18304f92009-11-22 15:48:26 +000017110 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 +000017111 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
17112 echo "-hidden">> $lib.exp~
cristy18304f92009-11-22 15:48:26 +000017113 $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 +000017114 $RM $lib.exp'
17115 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17116 ;;
17117 esac
17118
17119 hardcode_libdir_separator_CXX=:
17120
17121 # Commands to make compiler produce verbose output that lists
17122 # what "hidden" libraries, object files and flags are used when
17123 # linking a shared library.
17124 #
17125 # There doesn't appear to be a way to prevent this compiler from
17126 # explicitly linking system object files so we need to strip them
17127 # from the output so that they don't get included in the library
17128 # dependencies.
cristy18304f92009-11-22 15:48:26 +000017129 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 +000017130 ;;
17131 *)
17132 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17133 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
17134 case $host in
17135 osf3*)
cristy18304f92009-11-22 15:48:26 +000017136 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 +000017137 ;;
17138 *)
cristy18304f92009-11-22 15:48:26 +000017139 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 +000017140 ;;
17141 esac
17142
17143 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17144 hardcode_libdir_separator_CXX=:
17145
17146 # Commands to make compiler produce verbose output that lists
17147 # what "hidden" libraries, object files and flags are used when
17148 # linking a shared library.
cristy18304f92009-11-22 15:48:26 +000017149 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
cristy3ed852e2009-09-05 21:47:34 +000017150
17151 else
17152 # FIXME: insert proper C++ library support
17153 ld_shlibs_CXX=no
17154 fi
17155 ;;
17156 esac
17157 ;;
17158
17159 psos*)
17160 # FIXME: insert proper C++ library support
17161 ld_shlibs_CXX=no
17162 ;;
17163
17164 sunos4*)
17165 case $cc_basename in
17166 CC*)
17167 # Sun C++ 4.x
17168 # FIXME: insert proper C++ library support
17169 ld_shlibs_CXX=no
17170 ;;
17171 lcc*)
17172 # Lucid
17173 # FIXME: insert proper C++ library support
17174 ld_shlibs_CXX=no
17175 ;;
17176 *)
17177 # FIXME: insert proper C++ library support
17178 ld_shlibs_CXX=no
17179 ;;
17180 esac
17181 ;;
17182
17183 solaris*)
17184 case $cc_basename in
17185 CC*)
17186 # Sun C++ 4.2, 5.x and Centerline C++
17187 archive_cmds_need_lc_CXX=yes
17188 no_undefined_flag_CXX=' -zdefs'
17189 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17190 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17191 $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'
17192
17193 hardcode_libdir_flag_spec_CXX='-R$libdir'
17194 hardcode_shlibpath_var_CXX=no
17195 case $host_os in
17196 solaris2.[0-5] | solaris2.[0-5].*) ;;
17197 *)
17198 # The compiler driver will combine and reorder linker options,
17199 # but understands `-z linker_flag'.
17200 # Supported since Solaris 2.6 (maybe 2.5.1?)
17201 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
17202 ;;
17203 esac
17204 link_all_deplibs_CXX=yes
17205
cristy18304f92009-11-22 15:48:26 +000017206 output_verbose_link_cmd='echo'
cristy3ed852e2009-09-05 21:47:34 +000017207
17208 # Archives containing C++ object files must be created using
17209 # "CC -xar", where "CC" is the Sun C++ compiler. This is
17210 # necessary to make sure instantiated templates are included
17211 # in the archive.
17212 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17213 ;;
17214 gcx*)
17215 # Green Hills C++ Compiler
17216 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17217
17218 # The C++ compiler must be used to create the archive.
17219 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
17220 ;;
17221 *)
17222 # GNU C++ compiler with Solaris linker
17223 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17224 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
17225 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
17226 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17227 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17228 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
17229
17230 # Commands to make compiler produce verbose output that lists
17231 # what "hidden" libraries, object files and flags are used when
17232 # linking a shared library.
cristy18304f92009-11-22 15:48:26 +000017233 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
cristy3ed852e2009-09-05 21:47:34 +000017234 else
17235 # g++ 2.7 appears to require `-G' NOT `-shared' on this
17236 # platform.
17237 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17238 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17239 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
17240
17241 # Commands to make compiler produce verbose output that lists
17242 # what "hidden" libraries, object files and flags are used when
17243 # linking a shared library.
cristy18304f92009-11-22 15:48:26 +000017244 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
cristy3ed852e2009-09-05 21:47:34 +000017245 fi
17246
17247 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
17248 case $host_os in
17249 solaris2.[0-5] | solaris2.[0-5].*) ;;
17250 *)
17251 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17252 ;;
17253 esac
17254 fi
17255 ;;
17256 esac
17257 ;;
17258
17259 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17260 no_undefined_flag_CXX='${wl}-z,text'
17261 archive_cmds_need_lc_CXX=no
17262 hardcode_shlibpath_var_CXX=no
17263 runpath_var='LD_RUN_PATH'
17264
17265 case $cc_basename in
17266 CC*)
17267 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17268 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17269 ;;
17270 *)
17271 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17272 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17273 ;;
17274 esac
17275 ;;
17276
17277 sysv5* | sco3.2v5* | sco5v6*)
17278 # Note: We can NOT use -z defs as we might desire, because we do not
17279 # link with -lc, and that would cause any symbols used from libc to
17280 # always be unresolved, which means just about no library would
17281 # ever link correctly. If we're not using GNU ld we use -z text
17282 # though, which does catch some bad symbols but isn't as heavy-handed
17283 # as -z defs.
17284 no_undefined_flag_CXX='${wl}-z,text'
17285 allow_undefined_flag_CXX='${wl}-z,nodefs'
17286 archive_cmds_need_lc_CXX=no
17287 hardcode_shlibpath_var_CXX=no
17288 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
17289 hardcode_libdir_separator_CXX=':'
17290 link_all_deplibs_CXX=yes
17291 export_dynamic_flag_spec_CXX='${wl}-Bexport'
17292 runpath_var='LD_RUN_PATH'
17293
17294 case $cc_basename in
17295 CC*)
17296 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17297 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17298 ;;
17299 *)
17300 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17301 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17302 ;;
17303 esac
17304 ;;
17305
17306 tandem*)
17307 case $cc_basename in
17308 NCC*)
17309 # NonStop-UX NCC 3.20
17310 # FIXME: insert proper C++ library support
17311 ld_shlibs_CXX=no
17312 ;;
17313 *)
17314 # FIXME: insert proper C++ library support
17315 ld_shlibs_CXX=no
17316 ;;
17317 esac
17318 ;;
17319
17320 vxworks*)
17321 # FIXME: insert proper C++ library support
17322 ld_shlibs_CXX=no
17323 ;;
17324
17325 *)
17326 # FIXME: insert proper C++ library support
17327 ld_shlibs_CXX=no
17328 ;;
17329 esac
17330
cristy8b350f62009-11-15 23:12:43 +000017331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000017332$as_echo "$ld_shlibs_CXX" >&6; }
17333 test "$ld_shlibs_CXX" = no && can_build_shared=no
17334
17335 GCC_CXX="$GXX"
17336 LD_CXX="$LD"
17337
17338 ## CAVEAT EMPTOR:
17339 ## There is no encapsulation within the following macros, do not change
17340 ## the running order or otherwise move them around unless you know exactly
17341 ## what you are doing...
17342 # Dependencies to place before and after the object being linked:
17343predep_objects_CXX=
17344postdep_objects_CXX=
17345predeps_CXX=
17346postdeps_CXX=
17347compiler_lib_search_path_CXX=
17348
17349cat > conftest.$ac_ext <<_LT_EOF
17350class Foo
17351{
17352public:
17353 Foo (void) { a = 0; }
17354private:
17355 int a;
17356};
17357_LT_EOF
17358
cristy8b350f62009-11-15 23:12:43 +000017359if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000017360 (eval $ac_compile) 2>&5
17361 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000017362 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17363 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000017364 # Parse the compiler output and extract the necessary
17365 # objects, libraries and library flags.
17366
17367 # Sentinel used to keep track of whether or not we are before
17368 # the conftest object file.
17369 pre_test_object_deps_done=no
17370
17371 for p in `eval "$output_verbose_link_cmd"`; do
17372 case $p in
17373
17374 -L* | -R* | -l*)
17375 # Some compilers place space between "-{L,R}" and the path.
17376 # Remove the space.
17377 if test $p = "-L" ||
17378 test $p = "-R"; then
17379 prev=$p
17380 continue
17381 else
17382 prev=
17383 fi
17384
17385 if test "$pre_test_object_deps_done" = no; then
17386 case $p in
17387 -L* | -R*)
17388 # Internal compiler library paths should come after those
17389 # provided the user. The postdeps already come after the
17390 # user supplied libs so there is no need to process them.
17391 if test -z "$compiler_lib_search_path_CXX"; then
17392 compiler_lib_search_path_CXX="${prev}${p}"
17393 else
17394 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
17395 fi
17396 ;;
17397 # The "-l" case would never come before the object being
17398 # linked, so don't bother handling this case.
17399 esac
17400 else
17401 if test -z "$postdeps_CXX"; then
17402 postdeps_CXX="${prev}${p}"
17403 else
17404 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
17405 fi
17406 fi
17407 ;;
17408
17409 *.$objext)
17410 # This assumes that the test object file only shows up
17411 # once in the compiler output.
17412 if test "$p" = "conftest.$objext"; then
17413 pre_test_object_deps_done=yes
17414 continue
17415 fi
17416
17417 if test "$pre_test_object_deps_done" = no; then
17418 if test -z "$predep_objects_CXX"; then
17419 predep_objects_CXX="$p"
17420 else
17421 predep_objects_CXX="$predep_objects_CXX $p"
17422 fi
17423 else
17424 if test -z "$postdep_objects_CXX"; then
17425 postdep_objects_CXX="$p"
17426 else
17427 postdep_objects_CXX="$postdep_objects_CXX $p"
17428 fi
17429 fi
17430 ;;
17431
17432 *) ;; # Ignore the rest.
17433
17434 esac
17435 done
17436
17437 # Clean up.
17438 rm -f a.out a.exe
17439else
17440 echo "libtool.m4: error: problem compiling CXX test program"
17441fi
17442
17443$RM -f confest.$objext
17444
17445# PORTME: override above test on systems where it is broken
17446case $host_os in
17447interix[3-9]*)
17448 # Interix 3.5 installs completely hosed .la files for C++, so rather than
17449 # hack all around it, let's just trust "g++" to DTRT.
17450 predep_objects_CXX=
17451 postdep_objects_CXX=
17452 postdeps_CXX=
17453 ;;
17454
17455linux*)
17456 case `$CC -V 2>&1 | sed 5q` in
17457 *Sun\ C*)
17458 # Sun C++ 5.9
17459
17460 # The more standards-conforming stlport4 library is
17461 # incompatible with the Cstd library. Avoid specifying
17462 # it if it's in CXXFLAGS. Ignore libCrun as
17463 # -library=stlport4 depends on it.
17464 case " $CXX $CXXFLAGS " in
17465 *" -library=stlport4 "*)
17466 solaris_use_stlport4=yes
17467 ;;
17468 esac
17469
17470 if test "$solaris_use_stlport4" != yes; then
17471 postdeps_CXX='-library=Cstd -library=Crun'
17472 fi
17473 ;;
17474 esac
17475 ;;
17476
17477solaris*)
17478 case $cc_basename in
17479 CC*)
17480 # The more standards-conforming stlport4 library is
17481 # incompatible with the Cstd library. Avoid specifying
17482 # it if it's in CXXFLAGS. Ignore libCrun as
17483 # -library=stlport4 depends on it.
17484 case " $CXX $CXXFLAGS " in
17485 *" -library=stlport4 "*)
17486 solaris_use_stlport4=yes
17487 ;;
17488 esac
17489
17490 # Adding this requires a known-good setup of shared libraries for
17491 # Sun compiler versions before 5.6, else PIC objects from an old
17492 # archive will be linked into the output, leading to subtle bugs.
17493 if test "$solaris_use_stlport4" != yes; then
17494 postdeps_CXX='-library=Cstd -library=Crun'
17495 fi
17496 ;;
17497 esac
17498 ;;
17499esac
17500
17501
17502case " $postdeps_CXX " in
17503*" -lc "*) archive_cmds_need_lc_CXX=no ;;
17504esac
17505 compiler_lib_search_dirs_CXX=
17506if test -n "${compiler_lib_search_path_CXX}"; then
17507 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
17508fi
17509
17510
17511
17512
17513
17514
17515
17516
17517
17518
17519
17520
17521
17522
17523
17524
17525
17526
17527
17528
17529
17530
17531
17532
17533
17534
17535
17536
17537
17538
17539
17540 lt_prog_compiler_wl_CXX=
17541lt_prog_compiler_pic_CXX=
17542lt_prog_compiler_static_CXX=
17543
cristy8b350f62009-11-15 23:12:43 +000017544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
cristy3ed852e2009-09-05 21:47:34 +000017545$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
17546
17547 # C++ specific cases for pic, static, wl, etc.
17548 if test "$GXX" = yes; then
17549 lt_prog_compiler_wl_CXX='-Wl,'
17550 lt_prog_compiler_static_CXX='-static'
17551
17552 case $host_os in
17553 aix*)
17554 # All AIX code is PIC.
17555 if test "$host_cpu" = ia64; then
17556 # AIX 5 now supports IA64 processor
17557 lt_prog_compiler_static_CXX='-Bstatic'
17558 fi
17559 ;;
17560
17561 amigaos*)
17562 case $host_cpu in
17563 powerpc)
17564 # see comment about AmigaOS4 .so support
17565 lt_prog_compiler_pic_CXX='-fPIC'
17566 ;;
17567 m68k)
17568 # FIXME: we need at least 68020 code to build shared libraries, but
17569 # adding the `-m68020' flag to GCC prevents building anything better,
17570 # like `-m68040'.
17571 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
17572 ;;
17573 esac
17574 ;;
17575
17576 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17577 # PIC is the default for these OSes.
17578 ;;
17579 mingw* | cygwin* | os2* | pw32* | cegcc*)
17580 # This hack is so that the source file can tell whether it is being
17581 # built for inclusion in a dll (and should export symbols for example).
17582 # Although the cygwin gcc ignores -fPIC, still need this for old-style
17583 # (--disable-auto-import) libraries
17584 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
17585 ;;
17586 darwin* | rhapsody*)
17587 # PIC is the default on this platform
17588 # Common symbols not allowed in MH_DYLIB files
17589 lt_prog_compiler_pic_CXX='-fno-common'
17590 ;;
17591 *djgpp*)
17592 # DJGPP does not support shared libraries at all
17593 lt_prog_compiler_pic_CXX=
17594 ;;
17595 interix[3-9]*)
17596 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17597 # Instead, we relocate shared libraries at runtime.
17598 ;;
17599 sysv4*MP*)
17600 if test -d /usr/nec; then
17601 lt_prog_compiler_pic_CXX=-Kconform_pic
17602 fi
17603 ;;
17604 hpux*)
17605 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
17606 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
17607 # sets the default TLS model and affects inlining.
17608 case $host_cpu in
17609 hppa*64*)
17610 ;;
17611 *)
17612 lt_prog_compiler_pic_CXX='-fPIC'
17613 ;;
17614 esac
17615 ;;
17616 *qnx* | *nto*)
17617 # QNX uses GNU C++, but need to define -shared option too, otherwise
17618 # it will coredump.
17619 lt_prog_compiler_pic_CXX='-fPIC -shared'
17620 ;;
17621 *)
17622 lt_prog_compiler_pic_CXX='-fPIC'
17623 ;;
17624 esac
17625 else
17626 case $host_os in
17627 aix[4-9]*)
17628 # All AIX code is PIC.
17629 if test "$host_cpu" = ia64; then
17630 # AIX 5 now supports IA64 processor
17631 lt_prog_compiler_static_CXX='-Bstatic'
17632 else
17633 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
17634 fi
17635 ;;
17636 chorus*)
17637 case $cc_basename in
17638 cxch68*)
17639 # Green Hills C++ Compiler
17640 # _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"
17641 ;;
17642 esac
17643 ;;
17644 dgux*)
17645 case $cc_basename in
17646 ec++*)
17647 lt_prog_compiler_pic_CXX='-KPIC'
17648 ;;
17649 ghcx*)
17650 # Green Hills C++ Compiler
17651 lt_prog_compiler_pic_CXX='-pic'
17652 ;;
17653 *)
17654 ;;
17655 esac
17656 ;;
17657 freebsd* | dragonfly*)
17658 # FreeBSD uses GNU C++
17659 ;;
17660 hpux9* | hpux10* | hpux11*)
17661 case $cc_basename in
17662 CC*)
17663 lt_prog_compiler_wl_CXX='-Wl,'
17664 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
17665 if test "$host_cpu" != ia64; then
17666 lt_prog_compiler_pic_CXX='+Z'
17667 fi
17668 ;;
17669 aCC*)
17670 lt_prog_compiler_wl_CXX='-Wl,'
17671 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
17672 case $host_cpu in
17673 hppa*64*|ia64*)
17674 # +Z the default
17675 ;;
17676 *)
17677 lt_prog_compiler_pic_CXX='+Z'
17678 ;;
17679 esac
17680 ;;
17681 *)
17682 ;;
17683 esac
17684 ;;
17685 interix*)
17686 # This is c89, which is MS Visual C++ (no shared libs)
17687 # Anyone wants to do a port?
17688 ;;
17689 irix5* | irix6* | nonstopux*)
17690 case $cc_basename in
17691 CC*)
17692 lt_prog_compiler_wl_CXX='-Wl,'
17693 lt_prog_compiler_static_CXX='-non_shared'
17694 # CC pic flag -KPIC is the default.
17695 ;;
17696 *)
17697 ;;
17698 esac
17699 ;;
cristy18304f92009-11-22 15:48:26 +000017700 linux* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000017701 case $cc_basename in
17702 KCC*)
17703 # KAI C++ Compiler
17704 lt_prog_compiler_wl_CXX='--backend -Wl,'
17705 lt_prog_compiler_pic_CXX='-fPIC'
17706 ;;
17707 ecpc* )
17708 # old Intel C++ for x86_64 which still supported -KPIC.
17709 lt_prog_compiler_wl_CXX='-Wl,'
17710 lt_prog_compiler_pic_CXX='-KPIC'
17711 lt_prog_compiler_static_CXX='-static'
17712 ;;
17713 icpc* )
17714 # Intel C++, used to be incompatible with GCC.
17715 # ICC 10 doesn't accept -KPIC any more.
17716 lt_prog_compiler_wl_CXX='-Wl,'
17717 lt_prog_compiler_pic_CXX='-fPIC'
17718 lt_prog_compiler_static_CXX='-static'
17719 ;;
17720 pgCC* | pgcpp*)
17721 # Portland Group C++ compiler
17722 lt_prog_compiler_wl_CXX='-Wl,'
17723 lt_prog_compiler_pic_CXX='-fpic'
17724 lt_prog_compiler_static_CXX='-Bstatic'
17725 ;;
17726 cxx*)
17727 # Compaq C++
17728 # Make sure the PIC flag is empty. It appears that all Alpha
17729 # Linux and Compaq Tru64 Unix objects are PIC.
17730 lt_prog_compiler_pic_CXX=
17731 lt_prog_compiler_static_CXX='-non_shared'
17732 ;;
cristy18304f92009-11-22 15:48:26 +000017733 xlc* | xlC*)
17734 # IBM XL 8.0 on PPC
cristy3ed852e2009-09-05 21:47:34 +000017735 lt_prog_compiler_wl_CXX='-Wl,'
17736 lt_prog_compiler_pic_CXX='-qpic'
17737 lt_prog_compiler_static_CXX='-qstaticlink'
17738 ;;
17739 *)
17740 case `$CC -V 2>&1 | sed 5q` in
17741 *Sun\ C*)
17742 # Sun C++ 5.9
17743 lt_prog_compiler_pic_CXX='-KPIC'
17744 lt_prog_compiler_static_CXX='-Bstatic'
17745 lt_prog_compiler_wl_CXX='-Qoption ld '
17746 ;;
17747 esac
17748 ;;
17749 esac
17750 ;;
17751 lynxos*)
17752 ;;
17753 m88k*)
17754 ;;
17755 mvs*)
17756 case $cc_basename in
17757 cxx*)
17758 lt_prog_compiler_pic_CXX='-W c,exportall'
17759 ;;
17760 *)
17761 ;;
17762 esac
17763 ;;
17764 netbsd*)
17765 ;;
17766 *qnx* | *nto*)
17767 # QNX uses GNU C++, but need to define -shared option too, otherwise
17768 # it will coredump.
17769 lt_prog_compiler_pic_CXX='-fPIC -shared'
17770 ;;
17771 osf3* | osf4* | osf5*)
17772 case $cc_basename in
17773 KCC*)
17774 lt_prog_compiler_wl_CXX='--backend -Wl,'
17775 ;;
17776 RCC*)
17777 # Rational C++ 2.4.1
17778 lt_prog_compiler_pic_CXX='-pic'
17779 ;;
17780 cxx*)
17781 # Digital/Compaq C++
17782 lt_prog_compiler_wl_CXX='-Wl,'
17783 # Make sure the PIC flag is empty. It appears that all Alpha
17784 # Linux and Compaq Tru64 Unix objects are PIC.
17785 lt_prog_compiler_pic_CXX=
17786 lt_prog_compiler_static_CXX='-non_shared'
17787 ;;
17788 *)
17789 ;;
17790 esac
17791 ;;
17792 psos*)
17793 ;;
17794 solaris*)
17795 case $cc_basename in
17796 CC*)
17797 # Sun C++ 4.2, 5.x and Centerline C++
17798 lt_prog_compiler_pic_CXX='-KPIC'
17799 lt_prog_compiler_static_CXX='-Bstatic'
17800 lt_prog_compiler_wl_CXX='-Qoption ld '
17801 ;;
17802 gcx*)
17803 # Green Hills C++ Compiler
17804 lt_prog_compiler_pic_CXX='-PIC'
17805 ;;
17806 *)
17807 ;;
17808 esac
17809 ;;
17810 sunos4*)
17811 case $cc_basename in
17812 CC*)
17813 # Sun C++ 4.x
17814 lt_prog_compiler_pic_CXX='-pic'
17815 lt_prog_compiler_static_CXX='-Bstatic'
17816 ;;
17817 lcc*)
17818 # Lucid
17819 lt_prog_compiler_pic_CXX='-pic'
17820 ;;
17821 *)
17822 ;;
17823 esac
17824 ;;
17825 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17826 case $cc_basename in
17827 CC*)
17828 lt_prog_compiler_wl_CXX='-Wl,'
17829 lt_prog_compiler_pic_CXX='-KPIC'
17830 lt_prog_compiler_static_CXX='-Bstatic'
17831 ;;
17832 esac
17833 ;;
17834 tandem*)
17835 case $cc_basename in
17836 NCC*)
17837 # NonStop-UX NCC 3.20
17838 lt_prog_compiler_pic_CXX='-KPIC'
17839 ;;
17840 *)
17841 ;;
17842 esac
17843 ;;
17844 vxworks*)
17845 ;;
17846 *)
17847 lt_prog_compiler_can_build_shared_CXX=no
17848 ;;
17849 esac
17850 fi
17851
17852case $host_os in
17853 # For platforms which do not support PIC, -DPIC is meaningless:
17854 *djgpp*)
17855 lt_prog_compiler_pic_CXX=
17856 ;;
17857 *)
17858 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
17859 ;;
17860esac
cristy8b350f62009-11-15 23:12:43 +000017861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000017862$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
17863
17864
17865
17866#
17867# Check to make sure the PIC flag actually works.
17868#
17869if test -n "$lt_prog_compiler_pic_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000017870 { $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 +000017871$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017872if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017873 $as_echo_n "(cached) " >&6
17874else
17875 lt_cv_prog_compiler_pic_works_CXX=no
17876 ac_outfile=conftest.$ac_objext
17877 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17878 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
17879 # Insert the option either (1) after the last *FLAGS variable, or
17880 # (2) before a word containing "conftest.", or (3) at the end.
17881 # Note that $ac_compile itself does not contain backslashes and begins
17882 # with a dollar sign (not a hyphen), so the echo should work correctly.
17883 # The option is referenced via a variable to avoid confusing sed.
17884 lt_compile=`echo "$ac_compile" | $SED \
17885 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17886 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17887 -e 's:$: $lt_compiler_flag:'`
cristy92703d82010-04-26 00:18:18 +000017888 (eval echo "\"\$as_me:17888: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000017889 (eval "$lt_compile" 2>conftest.err)
17890 ac_status=$?
17891 cat conftest.err >&5
cristy92703d82010-04-26 00:18:18 +000017892 echo "$as_me:17892: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000017893 if (exit $ac_status) && test -s "$ac_outfile"; then
17894 # The compiler can only warn and ignore the option if not recognized
17895 # So say no if there are warnings other than the usual output.
cristy18304f92009-11-22 15:48:26 +000017896 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000017897 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17898 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17899 lt_cv_prog_compiler_pic_works_CXX=yes
17900 fi
17901 fi
17902 $RM conftest*
17903
17904fi
cristy8b350f62009-11-15 23:12:43 +000017905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000017906$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
17907
17908if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
17909 case $lt_prog_compiler_pic_CXX in
17910 "" | " "*) ;;
17911 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
17912 esac
17913else
17914 lt_prog_compiler_pic_CXX=
17915 lt_prog_compiler_can_build_shared_CXX=no
17916fi
17917
17918fi
17919
17920
17921
17922#
17923# Check to make sure the static flag actually works.
17924#
17925wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
cristy8b350f62009-11-15 23:12:43 +000017926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
cristy3ed852e2009-09-05 21:47:34 +000017927$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017928if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017929 $as_echo_n "(cached) " >&6
17930else
17931 lt_cv_prog_compiler_static_works_CXX=no
17932 save_LDFLAGS="$LDFLAGS"
17933 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17934 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17935 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17936 # The linker can only warn and ignore the option if not recognized
17937 # So say no if there are warnings
17938 if test -s conftest.err; then
17939 # Append any errors to the config.log.
17940 cat conftest.err 1>&5
cristy18304f92009-11-22 15:48:26 +000017941 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000017942 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17943 if diff conftest.exp conftest.er2 >/dev/null; then
17944 lt_cv_prog_compiler_static_works_CXX=yes
17945 fi
17946 else
17947 lt_cv_prog_compiler_static_works_CXX=yes
17948 fi
17949 fi
17950 $RM -r conftest*
17951 LDFLAGS="$save_LDFLAGS"
17952
17953fi
cristy8b350f62009-11-15 23:12:43 +000017954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000017955$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
17956
17957if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
17958 :
17959else
17960 lt_prog_compiler_static_CXX=
17961fi
17962
17963
17964
17965
cristy8b350f62009-11-15 23:12:43 +000017966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +000017967$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017968if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017969 $as_echo_n "(cached) " >&6
17970else
17971 lt_cv_prog_compiler_c_o_CXX=no
17972 $RM -r conftest 2>/dev/null
17973 mkdir conftest
17974 cd conftest
17975 mkdir out
17976 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17977
17978 lt_compiler_flag="-o out/conftest2.$ac_objext"
17979 # Insert the option either (1) after the last *FLAGS variable, or
17980 # (2) before a word containing "conftest.", or (3) at the end.
17981 # Note that $ac_compile itself does not contain backslashes and begins
17982 # with a dollar sign (not a hyphen), so the echo should work correctly.
17983 lt_compile=`echo "$ac_compile" | $SED \
17984 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17985 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17986 -e 's:$: $lt_compiler_flag:'`
cristy92703d82010-04-26 00:18:18 +000017987 (eval echo "\"\$as_me:17987: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000017988 (eval "$lt_compile" 2>out/conftest.err)
17989 ac_status=$?
17990 cat out/conftest.err >&5
cristy92703d82010-04-26 00:18:18 +000017991 echo "$as_me:17991: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000017992 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17993 then
17994 # The compiler can only warn and ignore the option if not recognized
17995 # So say no if there are warnings
cristy18304f92009-11-22 15:48:26 +000017996 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000017997 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17998 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17999 lt_cv_prog_compiler_c_o_CXX=yes
18000 fi
18001 fi
18002 chmod u+w . 2>&5
18003 $RM conftest*
18004 # SGI C++ compiler will create directory out/ii_files/ for
18005 # template instantiation
18006 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18007 $RM out/* && rmdir out
18008 cd ..
18009 $RM -r conftest
18010 $RM conftest*
18011
18012fi
cristy8b350f62009-11-15 23:12:43 +000018013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000018014$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
18015
18016
18017
cristy8b350f62009-11-15 23:12:43 +000018018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +000018019$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018020if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018021 $as_echo_n "(cached) " >&6
18022else
18023 lt_cv_prog_compiler_c_o_CXX=no
18024 $RM -r conftest 2>/dev/null
18025 mkdir conftest
18026 cd conftest
18027 mkdir out
18028 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18029
18030 lt_compiler_flag="-o out/conftest2.$ac_objext"
18031 # Insert the option either (1) after the last *FLAGS variable, or
18032 # (2) before a word containing "conftest.", or (3) at the end.
18033 # Note that $ac_compile itself does not contain backslashes and begins
18034 # with a dollar sign (not a hyphen), so the echo should work correctly.
18035 lt_compile=`echo "$ac_compile" | $SED \
18036 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18037 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18038 -e 's:$: $lt_compiler_flag:'`
cristy92703d82010-04-26 00:18:18 +000018039 (eval echo "\"\$as_me:18039: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000018040 (eval "$lt_compile" 2>out/conftest.err)
18041 ac_status=$?
18042 cat out/conftest.err >&5
cristy92703d82010-04-26 00:18:18 +000018043 echo "$as_me:18043: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000018044 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18045 then
18046 # The compiler can only warn and ignore the option if not recognized
18047 # So say no if there are warnings
cristy18304f92009-11-22 15:48:26 +000018048 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000018049 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18050 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18051 lt_cv_prog_compiler_c_o_CXX=yes
18052 fi
18053 fi
18054 chmod u+w . 2>&5
18055 $RM conftest*
18056 # SGI C++ compiler will create directory out/ii_files/ for
18057 # template instantiation
18058 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18059 $RM out/* && rmdir out
18060 cd ..
18061 $RM -r conftest
18062 $RM conftest*
18063
18064fi
cristy8b350f62009-11-15 23:12:43 +000018065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000018066$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
18067
18068
18069
18070
18071hard_links="nottested"
18072if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
18073 # do not overwrite the value of need_locks provided by the user
cristy8b350f62009-11-15 23:12:43 +000018074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
cristy3ed852e2009-09-05 21:47:34 +000018075$as_echo_n "checking if we can lock with hard links... " >&6; }
18076 hard_links=yes
18077 $RM conftest*
18078 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18079 touch conftest.a
18080 ln conftest.a conftest.b 2>&5 || hard_links=no
18081 ln conftest.a conftest.b 2>/dev/null && hard_links=no
cristy8b350f62009-11-15 23:12:43 +000018082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
cristy3ed852e2009-09-05 21:47:34 +000018083$as_echo "$hard_links" >&6; }
18084 if test "$hard_links" = no; then
cristy8b350f62009-11-15 23:12:43 +000018085 { $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 +000018086$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18087 need_locks=warn
18088 fi
18089else
18090 need_locks=no
18091fi
18092
18093
18094
cristy8b350f62009-11-15 23:12:43 +000018095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000018096$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18097
18098 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18099 case $host_os in
18100 aix[4-9]*)
18101 # If we're using GNU nm, then we don't want the "-C" option.
18102 # -C means demangle to AIX nm, but means don't demangle with GNU nm
18103 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy18304f92009-11-22 15:48:26 +000018104 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 +000018105 else
18106 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'
18107 fi
18108 ;;
18109 pw32*)
18110 export_symbols_cmds_CXX="$ltdll_cmds"
18111 ;;
18112 cygwin* | mingw* | cegcc*)
18113 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'
18114 ;;
18115 *)
18116 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18117 ;;
18118 esac
18119 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
18120
cristy8b350f62009-11-15 23:12:43 +000018121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000018122$as_echo "$ld_shlibs_CXX" >&6; }
18123test "$ld_shlibs_CXX" = no && can_build_shared=no
18124
18125with_gnu_ld_CXX=$with_gnu_ld
18126
18127
18128
18129
18130
18131
18132#
18133# Do we need to explicitly link libc?
18134#
18135case "x$archive_cmds_need_lc_CXX" in
18136x|xyes)
18137 # Assume -lc should be added
18138 archive_cmds_need_lc_CXX=yes
18139
18140 if test "$enable_shared" = yes && test "$GCC" = yes; then
18141 case $archive_cmds_CXX in
18142 *'~'*)
18143 # FIXME: we may have to deal with multi-command sequences.
18144 ;;
18145 '$CC '*)
18146 # Test whether the compiler implicitly links with -lc since on some
18147 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18148 # to ld, don't add -lc before -lgcc.
cristy8b350f62009-11-15 23:12:43 +000018149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
cristy3ed852e2009-09-05 21:47:34 +000018150$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristy18304f92009-11-22 15:48:26 +000018151 $RM conftest*
18152 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000018153
cristy18304f92009-11-22 15:48:26 +000018154 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000018155 (eval $ac_compile) 2>&5
18156 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000018157 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18158 test $ac_status = 0; } 2>conftest.err; then
cristy18304f92009-11-22 15:48:26 +000018159 soname=conftest
18160 lib=conftest
18161 libobjs=conftest.$ac_objext
18162 deplibs=
18163 wl=$lt_prog_compiler_wl_CXX
18164 pic_flag=$lt_prog_compiler_pic_CXX
18165 compiler_flags=-v
18166 linker_flags=-v
18167 verstring=
18168 output_objdir=.
18169 libname=conftest
18170 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
18171 allow_undefined_flag_CXX=
18172 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 +000018173 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
18174 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000018175 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18176 test $ac_status = 0; }
cristy18304f92009-11-22 15:48:26 +000018177 then
18178 archive_cmds_need_lc_CXX=no
18179 else
18180 archive_cmds_need_lc_CXX=yes
18181 fi
18182 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
18183 else
18184 cat conftest.err 1>&5
18185 fi
18186 $RM conftest*
18187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
18188$as_echo "$archive_cmds_need_lc_CXX" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000018189 ;;
18190 esac
18191 fi
18192 ;;
18193esac
18194
18195
18196
18197
18198
18199
18200
18201
18202
18203
18204
18205
18206
18207
18208
18209
18210
18211
18212
18213
18214
18215
18216
18217
18218
18219
18220
18221
18222
18223
18224
18225
18226
18227
18228
18229
18230
18231
18232
18233
18234
18235
18236
18237
18238
18239
18240
18241
18242
18243
18244
18245
18246
18247
18248
18249
18250
18251
18252
18253
18254
18255
18256
18257
cristy8b350f62009-11-15 23:12:43 +000018258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
cristy3ed852e2009-09-05 21:47:34 +000018259$as_echo_n "checking dynamic linker characteristics... " >&6; }
18260
18261library_names_spec=
18262libname_spec='lib$name'
18263soname_spec=
18264shrext_cmds=".so"
18265postinstall_cmds=
18266postuninstall_cmds=
18267finish_cmds=
18268finish_eval=
18269shlibpath_var=
18270shlibpath_overrides_runpath=unknown
18271version_type=none
18272dynamic_linker="$host_os ld.so"
18273sys_lib_dlsearch_path_spec="/lib /usr/lib"
18274need_lib_prefix=unknown
18275hardcode_into_libs=no
18276
18277# when you set need_version to no, make sure it does not cause -set_version
18278# flags to be left without arguments
18279need_version=unknown
18280
18281case $host_os in
18282aix3*)
18283 version_type=linux
18284 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18285 shlibpath_var=LIBPATH
18286
18287 # AIX 3 has no versioning support, so we append a major version to the name.
18288 soname_spec='${libname}${release}${shared_ext}$major'
18289 ;;
18290
18291aix[4-9]*)
18292 version_type=linux
18293 need_lib_prefix=no
18294 need_version=no
18295 hardcode_into_libs=yes
18296 if test "$host_cpu" = ia64; then
18297 # AIX 5 supports IA64
18298 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18299 shlibpath_var=LD_LIBRARY_PATH
18300 else
18301 # With GCC up to 2.95.x, collect2 would create an import file
18302 # for dependence libraries. The import file would start with
18303 # the line `#! .'. This would cause the generated library to
18304 # depend on `.', always an invalid library. This was fixed in
18305 # development snapshots of GCC prior to 3.0.
18306 case $host_os in
18307 aix4 | aix4.[01] | aix4.[01].*)
18308 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18309 echo ' yes '
18310 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
18311 :
18312 else
18313 can_build_shared=no
18314 fi
18315 ;;
18316 esac
18317 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18318 # soname into executable. Probably we can add versioning support to
18319 # collect2, so additional links can be useful in future.
18320 if test "$aix_use_runtimelinking" = yes; then
18321 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18322 # instead of lib<name>.a to let people know that these are not
18323 # typical AIX shared libraries.
18324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18325 else
18326 # We preserve .a as extension for shared libraries through AIX4.2
18327 # and later when we are not doing run time linking.
18328 library_names_spec='${libname}${release}.a $libname.a'
18329 soname_spec='${libname}${release}${shared_ext}$major'
18330 fi
18331 shlibpath_var=LIBPATH
18332 fi
18333 ;;
18334
18335amigaos*)
18336 case $host_cpu in
18337 powerpc)
18338 # Since July 2007 AmigaOS4 officially supports .so libraries.
18339 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
18340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18341 ;;
18342 m68k)
18343 library_names_spec='$libname.ixlibrary $libname.a'
18344 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy18304f92009-11-22 15:48:26 +000018345 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 +000018346 ;;
18347 esac
18348 ;;
18349
18350beos*)
18351 library_names_spec='${libname}${shared_ext}'
18352 dynamic_linker="$host_os ld.so"
18353 shlibpath_var=LIBRARY_PATH
18354 ;;
18355
18356bsdi[45]*)
18357 version_type=linux
18358 need_version=no
18359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18360 soname_spec='${libname}${release}${shared_ext}$major'
18361 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18362 shlibpath_var=LD_LIBRARY_PATH
18363 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18364 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18365 # the default ld.so.conf also contains /usr/contrib/lib and
18366 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18367 # libtool to hard-code these into programs
18368 ;;
18369
18370cygwin* | mingw* | pw32* | cegcc*)
18371 version_type=windows
18372 shrext_cmds=".dll"
18373 need_version=no
18374 need_lib_prefix=no
18375
18376 case $GCC,$host_os in
18377 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
18378 library_names_spec='$libname.dll.a'
18379 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18380 postinstall_cmds='base_file=`basename \${file}`~
18381 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
18382 dldir=$destdir/`dirname \$dlpath`~
18383 test -d \$dldir || mkdir -p \$dldir~
18384 $install_prog $dir/$dlname \$dldir/$dlname~
18385 chmod a+x \$dldir/$dlname~
18386 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18387 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18388 fi'
18389 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18390 dlpath=$dir/\$dldll~
18391 $RM \$dlpath'
18392 shlibpath_overrides_runpath=yes
18393
18394 case $host_os in
18395 cygwin*)
18396 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18397 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy18304f92009-11-22 15:48:26 +000018398 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
cristy3ed852e2009-09-05 21:47:34 +000018399 ;;
18400 mingw* | cegcc*)
18401 # MinGW DLLs use traditional 'lib' prefix
18402 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy18304f92009-11-22 15:48:26 +000018403 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18404 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
18405 # It is most probably a Windows format PATH printed by
18406 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18407 # path with ; separators, and with drive letters. We can handle the
18408 # drive letters (cygwin fileutils understands them), so leave them,
18409 # especially as we might pass files found there to a mingw objdump,
18410 # which wouldn't understand a cygwinified path. Ahh.
18411 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18412 else
18413 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18414 fi
cristy3ed852e2009-09-05 21:47:34 +000018415 ;;
18416 pw32*)
18417 # pw32 DLLs use 'pw' prefix rather than 'lib'
18418 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18419 ;;
18420 esac
18421 ;;
18422
18423 *)
18424 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18425 ;;
18426 esac
18427 dynamic_linker='Win32 ld.exe'
18428 # FIXME: first we should search . and the directory the executable is in
18429 shlibpath_var=PATH
18430 ;;
18431
18432darwin* | rhapsody*)
18433 dynamic_linker="$host_os dyld"
18434 version_type=darwin
18435 need_lib_prefix=no
18436 need_version=no
18437 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18438 soname_spec='${libname}${release}${major}$shared_ext'
18439 shlibpath_overrides_runpath=yes
18440 shlibpath_var=DYLD_LIBRARY_PATH
18441 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18442
18443 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18444 ;;
18445
18446dgux*)
18447 version_type=linux
18448 need_lib_prefix=no
18449 need_version=no
18450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18451 soname_spec='${libname}${release}${shared_ext}$major'
18452 shlibpath_var=LD_LIBRARY_PATH
18453 ;;
18454
18455freebsd1*)
18456 dynamic_linker=no
18457 ;;
18458
18459freebsd* | dragonfly*)
18460 # DragonFly does not have aout. When/if they implement a new
18461 # versioning mechanism, adjust this.
18462 if test -x /usr/bin/objformat; then
18463 objformat=`/usr/bin/objformat`
18464 else
18465 case $host_os in
18466 freebsd[123]*) objformat=aout ;;
18467 *) objformat=elf ;;
18468 esac
18469 fi
18470 version_type=freebsd-$objformat
18471 case $version_type in
18472 freebsd-elf*)
18473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18474 need_version=no
18475 need_lib_prefix=no
18476 ;;
18477 freebsd-*)
18478 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18479 need_version=yes
18480 ;;
18481 esac
18482 shlibpath_var=LD_LIBRARY_PATH
18483 case $host_os in
18484 freebsd2*)
18485 shlibpath_overrides_runpath=yes
18486 ;;
18487 freebsd3.[01]* | freebsdelf3.[01]*)
18488 shlibpath_overrides_runpath=yes
18489 hardcode_into_libs=yes
18490 ;;
18491 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18492 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18493 shlibpath_overrides_runpath=no
18494 hardcode_into_libs=yes
18495 ;;
18496 *) # from 4.6 on, and DragonFly
18497 shlibpath_overrides_runpath=yes
18498 hardcode_into_libs=yes
18499 ;;
18500 esac
18501 ;;
18502
18503gnu*)
18504 version_type=linux
18505 need_lib_prefix=no
18506 need_version=no
18507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18508 soname_spec='${libname}${release}${shared_ext}$major'
18509 shlibpath_var=LD_LIBRARY_PATH
18510 hardcode_into_libs=yes
18511 ;;
18512
18513hpux9* | hpux10* | hpux11*)
18514 # Give a soname corresponding to the major version so that dld.sl refuses to
18515 # link against other versions.
18516 version_type=sunos
18517 need_lib_prefix=no
18518 need_version=no
18519 case $host_cpu in
18520 ia64*)
18521 shrext_cmds='.so'
18522 hardcode_into_libs=yes
18523 dynamic_linker="$host_os dld.so"
18524 shlibpath_var=LD_LIBRARY_PATH
18525 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18527 soname_spec='${libname}${release}${shared_ext}$major'
18528 if test "X$HPUX_IA64_MODE" = X32; then
18529 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18530 else
18531 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18532 fi
18533 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18534 ;;
18535 hppa*64*)
18536 shrext_cmds='.sl'
18537 hardcode_into_libs=yes
18538 dynamic_linker="$host_os dld.sl"
18539 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18540 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18542 soname_spec='${libname}${release}${shared_ext}$major'
18543 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18544 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18545 ;;
18546 *)
18547 shrext_cmds='.sl'
18548 dynamic_linker="$host_os dld.sl"
18549 shlibpath_var=SHLIB_PATH
18550 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18552 soname_spec='${libname}${release}${shared_ext}$major'
18553 ;;
18554 esac
cristy18304f92009-11-22 15:48:26 +000018555 # HP-UX runs *really* slowly unless shared libraries are mode 555.
cristy3ed852e2009-09-05 21:47:34 +000018556 postinstall_cmds='chmod 555 $lib'
18557 ;;
18558
18559interix[3-9]*)
18560 version_type=linux
18561 need_lib_prefix=no
18562 need_version=no
18563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18564 soname_spec='${libname}${release}${shared_ext}$major'
18565 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18566 shlibpath_var=LD_LIBRARY_PATH
18567 shlibpath_overrides_runpath=no
18568 hardcode_into_libs=yes
18569 ;;
18570
18571irix5* | irix6* | nonstopux*)
18572 case $host_os in
18573 nonstopux*) version_type=nonstopux ;;
18574 *)
18575 if test "$lt_cv_prog_gnu_ld" = yes; then
18576 version_type=linux
18577 else
18578 version_type=irix
18579 fi ;;
18580 esac
18581 need_lib_prefix=no
18582 need_version=no
18583 soname_spec='${libname}${release}${shared_ext}$major'
18584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18585 case $host_os in
18586 irix5* | nonstopux*)
18587 libsuff= shlibsuff=
18588 ;;
18589 *)
18590 case $LD in # libtool.m4 will add one of these switches to LD
18591 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18592 libsuff= shlibsuff= libmagic=32-bit;;
18593 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18594 libsuff=32 shlibsuff=N32 libmagic=N32;;
18595 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18596 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18597 *) libsuff= shlibsuff= libmagic=never-match;;
18598 esac
18599 ;;
18600 esac
18601 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18602 shlibpath_overrides_runpath=no
18603 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18604 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18605 hardcode_into_libs=yes
18606 ;;
18607
18608# No shared lib support for Linux oldld, aout, or coff.
18609linux*oldld* | linux*aout* | linux*coff*)
18610 dynamic_linker=no
18611 ;;
18612
18613# This must be Linux ELF.
cristy18304f92009-11-22 15:48:26 +000018614linux* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000018615 version_type=linux
18616 need_lib_prefix=no
18617 need_version=no
18618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18619 soname_spec='${libname}${release}${shared_ext}$major'
18620 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18621 shlibpath_var=LD_LIBRARY_PATH
18622 shlibpath_overrides_runpath=no
18623 # Some binutils ld are patched to set DT_RUNPATH
cristy18304f92009-11-22 15:48:26 +000018624 save_LDFLAGS=$LDFLAGS
18625 save_libdir=$libdir
18626 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
18627 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
18628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000018629/* end confdefs.h. */
18630
18631int
18632main ()
18633{
18634
18635 ;
18636 return 0;
18637}
18638_ACEOF
cristy8b350f62009-11-15 23:12:43 +000018639if ac_fn_cxx_try_link "$LINENO"; then :
18640 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy18304f92009-11-22 15:48:26 +000018641 shlibpath_overrides_runpath=yes
cristy3ed852e2009-09-05 21:47:34 +000018642fi
cristy3ed852e2009-09-05 21:47:34 +000018643fi
cristy8b350f62009-11-15 23:12:43 +000018644rm -f core conftest.err conftest.$ac_objext \
18645 conftest$ac_exeext conftest.$ac_ext
cristy18304f92009-11-22 15:48:26 +000018646 LDFLAGS=$save_LDFLAGS
18647 libdir=$save_libdir
cristy3ed852e2009-09-05 21:47:34 +000018648
18649 # This implies no fast_install, which is unacceptable.
18650 # Some rework will be needed to allow for fast_install
18651 # before this can be enabled.
18652 hardcode_into_libs=yes
18653
cristy679ed8e2009-12-05 02:37:41 +000018654 # Add ABI-specific directories to the system library path.
18655 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
18656
cristy3ed852e2009-09-05 21:47:34 +000018657 # Append ld.so.conf contents to the search path
18658 if test -f /etc/ld.so.conf; then
cristy18304f92009-11-22 15:48:26 +000018659 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 +000018660 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy3ed852e2009-09-05 21:47:34 +000018661 fi
18662
18663 # We used to test for /lib/ld.so.1 and disable shared libraries on
18664 # powerpc, because MkLinux only supported shared libraries with the
18665 # GNU dynamic linker. Since this was broken with cross compilers,
18666 # most powerpc-linux boxes support dynamic linking these days and
18667 # people can always --disable-shared, the test was removed, and we
18668 # assume the GNU/Linux dynamic linker is in use.
18669 dynamic_linker='GNU/Linux ld.so'
18670 ;;
18671
18672netbsd*)
18673 version_type=sunos
18674 need_lib_prefix=no
18675 need_version=no
18676 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18678 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18679 dynamic_linker='NetBSD (a.out) ld.so'
18680 else
18681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18682 soname_spec='${libname}${release}${shared_ext}$major'
18683 dynamic_linker='NetBSD ld.elf_so'
18684 fi
18685 shlibpath_var=LD_LIBRARY_PATH
18686 shlibpath_overrides_runpath=yes
18687 hardcode_into_libs=yes
18688 ;;
18689
18690newsos6)
18691 version_type=linux
18692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18693 shlibpath_var=LD_LIBRARY_PATH
18694 shlibpath_overrides_runpath=yes
18695 ;;
18696
18697*nto* | *qnx*)
18698 version_type=qnx
18699 need_lib_prefix=no
18700 need_version=no
18701 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18702 soname_spec='${libname}${release}${shared_ext}$major'
18703 shlibpath_var=LD_LIBRARY_PATH
18704 shlibpath_overrides_runpath=no
18705 hardcode_into_libs=yes
18706 dynamic_linker='ldqnx.so'
18707 ;;
18708
18709openbsd*)
18710 version_type=sunos
18711 sys_lib_dlsearch_path_spec="/usr/lib"
18712 need_lib_prefix=no
18713 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18714 case $host_os in
18715 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18716 *) need_version=no ;;
18717 esac
18718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18719 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18720 shlibpath_var=LD_LIBRARY_PATH
18721 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18722 case $host_os in
18723 openbsd2.[89] | openbsd2.[89].*)
18724 shlibpath_overrides_runpath=no
18725 ;;
18726 *)
18727 shlibpath_overrides_runpath=yes
18728 ;;
18729 esac
18730 else
18731 shlibpath_overrides_runpath=yes
18732 fi
18733 ;;
18734
18735os2*)
18736 libname_spec='$name'
18737 shrext_cmds=".dll"
18738 need_lib_prefix=no
18739 library_names_spec='$libname${shared_ext} $libname.a'
18740 dynamic_linker='OS/2 ld.exe'
18741 shlibpath_var=LIBPATH
18742 ;;
18743
18744osf3* | osf4* | osf5*)
18745 version_type=osf
18746 need_lib_prefix=no
18747 need_version=no
18748 soname_spec='${libname}${release}${shared_ext}$major'
18749 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18750 shlibpath_var=LD_LIBRARY_PATH
18751 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18752 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18753 ;;
18754
18755rdos*)
18756 dynamic_linker=no
18757 ;;
18758
18759solaris*)
18760 version_type=linux
18761 need_lib_prefix=no
18762 need_version=no
18763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18764 soname_spec='${libname}${release}${shared_ext}$major'
18765 shlibpath_var=LD_LIBRARY_PATH
18766 shlibpath_overrides_runpath=yes
18767 hardcode_into_libs=yes
18768 # ldd complains unless libraries are executable
18769 postinstall_cmds='chmod +x $lib'
18770 ;;
18771
18772sunos4*)
18773 version_type=sunos
18774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18775 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18776 shlibpath_var=LD_LIBRARY_PATH
18777 shlibpath_overrides_runpath=yes
18778 if test "$with_gnu_ld" = yes; then
18779 need_lib_prefix=no
18780 fi
18781 need_version=yes
18782 ;;
18783
18784sysv4 | sysv4.3*)
18785 version_type=linux
18786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18787 soname_spec='${libname}${release}${shared_ext}$major'
18788 shlibpath_var=LD_LIBRARY_PATH
18789 case $host_vendor in
18790 sni)
18791 shlibpath_overrides_runpath=no
18792 need_lib_prefix=no
18793 runpath_var=LD_RUN_PATH
18794 ;;
18795 siemens)
18796 need_lib_prefix=no
18797 ;;
18798 motorola)
18799 need_lib_prefix=no
18800 need_version=no
18801 shlibpath_overrides_runpath=no
18802 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18803 ;;
18804 esac
18805 ;;
18806
18807sysv4*MP*)
18808 if test -d /usr/nec ;then
18809 version_type=linux
18810 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18811 soname_spec='$libname${shared_ext}.$major'
18812 shlibpath_var=LD_LIBRARY_PATH
18813 fi
18814 ;;
18815
18816sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18817 version_type=freebsd-elf
18818 need_lib_prefix=no
18819 need_version=no
18820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18821 soname_spec='${libname}${release}${shared_ext}$major'
18822 shlibpath_var=LD_LIBRARY_PATH
18823 shlibpath_overrides_runpath=yes
18824 hardcode_into_libs=yes
18825 if test "$with_gnu_ld" = yes; then
18826 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18827 else
18828 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18829 case $host_os in
18830 sco3.2v5*)
18831 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18832 ;;
18833 esac
18834 fi
18835 sys_lib_dlsearch_path_spec='/usr/lib'
18836 ;;
18837
18838tpf*)
18839 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
18840 version_type=linux
18841 need_lib_prefix=no
18842 need_version=no
18843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18844 shlibpath_var=LD_LIBRARY_PATH
18845 shlibpath_overrides_runpath=no
18846 hardcode_into_libs=yes
18847 ;;
18848
18849uts4*)
18850 version_type=linux
18851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18852 soname_spec='${libname}${release}${shared_ext}$major'
18853 shlibpath_var=LD_LIBRARY_PATH
18854 ;;
18855
18856*)
18857 dynamic_linker=no
18858 ;;
18859esac
cristy8b350f62009-11-15 23:12:43 +000018860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
cristy3ed852e2009-09-05 21:47:34 +000018861$as_echo "$dynamic_linker" >&6; }
18862test "$dynamic_linker" = no && can_build_shared=no
18863
18864variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18865if test "$GCC" = yes; then
18866 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18867fi
18868
18869if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18870 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18871fi
18872if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18873 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18874fi
18875
18876
18877
18878
18879
18880
18881
18882
18883
18884
18885
18886
18887
18888
18889
18890
18891
18892
18893
18894
18895
18896
18897
18898
18899
18900
18901
18902
18903
18904
18905
18906
18907
18908
18909
18910
cristy8b350f62009-11-15 23:12:43 +000018911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000018912$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18913hardcode_action_CXX=
18914if test -n "$hardcode_libdir_flag_spec_CXX" ||
18915 test -n "$runpath_var_CXX" ||
18916 test "X$hardcode_automatic_CXX" = "Xyes" ; then
18917
18918 # We can hardcode non-existent directories.
18919 if test "$hardcode_direct_CXX" != no &&
18920 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18921 # have to relink, otherwise we might link with an installed library
18922 # when we should be linking with a yet-to-be-installed one
18923 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
18924 test "$hardcode_minus_L_CXX" != no; then
18925 # Linking always hardcodes the temporary library directory.
18926 hardcode_action_CXX=relink
18927 else
18928 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18929 hardcode_action_CXX=immediate
18930 fi
18931else
18932 # We cannot hardcode anything, or else we can only hardcode existing
18933 # directories.
18934 hardcode_action_CXX=unsupported
18935fi
cristy8b350f62009-11-15 23:12:43 +000018936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000018937$as_echo "$hardcode_action_CXX" >&6; }
18938
18939if test "$hardcode_action_CXX" = relink ||
18940 test "$inherit_rpath_CXX" = yes; then
18941 # Fast installation is not supported
18942 enable_fast_install=no
18943elif test "$shlibpath_overrides_runpath" = yes ||
18944 test "$enable_shared" = no; then
18945 # Fast installation is not necessary
18946 enable_fast_install=needless
18947fi
18948
18949
18950
18951
18952
18953
18954
18955 fi # test -n "$compiler"
18956
18957 CC=$lt_save_CC
18958 LDCXX=$LD
18959 LD=$lt_save_LD
18960 GCC=$lt_save_GCC
18961 with_gnu_ld=$lt_save_with_gnu_ld
18962 lt_cv_path_LDCXX=$lt_cv_path_LD
18963 lt_cv_path_LD=$lt_save_path_LD
18964 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18965 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18966fi # test "$_lt_caught_CXX_error" != yes
18967
18968ac_ext=c
18969ac_cpp='$CPP $CPPFLAGS'
18970ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18971ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18972ac_compiler_gnu=$ac_cv_c_compiler_gnu
18973
18974
18975
18976
18977
18978
18979
18980
18981
18982
18983
18984
18985
18986 ac_config_commands="$ac_config_commands libtool"
18987
18988
18989
18990
18991# Only expand once:
18992
18993
18994
18995
18996
18997# Configure libltdl
18998
18999
19000
19001
19002
19003
19004
cristy18304f92009-11-22 15:48:26 +000019005
cristy8b350f62009-11-15 23:12:43 +000019006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
cristy3ed852e2009-09-05 21:47:34 +000019007$as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019008if test "${libltdl_cv_shlibext+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019009 $as_echo_n "(cached) " >&6
19010else
19011
19012module=yes
19013eval libltdl_cv_shlibext=$shrext_cmds
19014
19015fi
cristy8b350f62009-11-15 23:12:43 +000019016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
cristy3ed852e2009-09-05 21:47:34 +000019017$as_echo "$libltdl_cv_shlibext" >&6; }
19018if test -n "$libltdl_cv_shlibext"; then
19019
19020cat >>confdefs.h <<_ACEOF
19021#define LT_MODULE_EXT "$libltdl_cv_shlibext"
19022_ACEOF
19023
19024fi
19025
cristy8b350f62009-11-15 23:12:43 +000019026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
cristy3ed852e2009-09-05 21:47:34 +000019027$as_echo_n "checking which variable specifies run-time module search path... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019028if test "${lt_cv_module_path_var+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019029 $as_echo_n "(cached) " >&6
19030else
19031 lt_cv_module_path_var="$shlibpath_var"
19032fi
cristy8b350f62009-11-15 23:12:43 +000019033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
cristy3ed852e2009-09-05 21:47:34 +000019034$as_echo "$lt_cv_module_path_var" >&6; }
19035if test -n "$lt_cv_module_path_var"; then
19036
19037cat >>confdefs.h <<_ACEOF
19038#define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
19039_ACEOF
19040
19041fi
19042
cristy8b350f62009-11-15 23:12:43 +000019043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
cristy3ed852e2009-09-05 21:47:34 +000019044$as_echo_n "checking for the default library search path... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019045if test "${lt_cv_sys_dlsearch_path+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019046 $as_echo_n "(cached) " >&6
19047else
19048 lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
19049fi
cristy8b350f62009-11-15 23:12:43 +000019050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
cristy3ed852e2009-09-05 21:47:34 +000019051$as_echo "$lt_cv_sys_dlsearch_path" >&6; }
19052if test -n "$lt_cv_sys_dlsearch_path"; then
19053 sys_dlsearch_path=
19054 for dir in $lt_cv_sys_dlsearch_path; do
19055 if test -z "$sys_dlsearch_path"; then
19056 sys_dlsearch_path="$dir"
19057 else
19058 sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
19059 fi
19060 done
19061
19062cat >>confdefs.h <<_ACEOF
19063#define LT_DLSEARCH_PATH "$sys_dlsearch_path"
19064_ACEOF
19065
19066fi
19067
19068
19069LT_DLLOADERS=
19070
19071
19072ac_ext=c
19073ac_cpp='$CPP $CPPFLAGS'
19074ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19075ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19076ac_compiler_gnu=$ac_cv_c_compiler_gnu
19077
19078
19079LIBADD_DLOPEN=
cristy8b350f62009-11-15 23:12:43 +000019080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000019081$as_echo_n "checking for library containing dlopen... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019082if test "${ac_cv_search_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019083 $as_echo_n "(cached) " >&6
19084else
19085 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000019086cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019087/* end confdefs.h. */
19088
19089/* Override any GCC internal prototype to avoid an error.
19090 Use char because int might match the return type of a GCC
19091 builtin and then its argument prototype would still apply. */
19092#ifdef __cplusplus
19093extern "C"
19094#endif
19095char dlopen ();
19096int
19097main ()
19098{
19099return dlopen ();
19100 ;
19101 return 0;
19102}
19103_ACEOF
19104for ac_lib in '' dl; do
19105 if test -z "$ac_lib"; then
19106 ac_res="none required"
19107 else
19108 ac_res=-l$ac_lib
19109 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19110 fi
cristy8b350f62009-11-15 23:12:43 +000019111 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019112 ac_cv_search_dlopen=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000019113fi
cristy8b350f62009-11-15 23:12:43 +000019114rm -f core conftest.err conftest.$ac_objext \
19115 conftest$ac_exeext
19116 if test "${ac_cv_search_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019117 break
19118fi
19119done
cristy8b350f62009-11-15 23:12:43 +000019120if test "${ac_cv_search_dlopen+set}" = set; then :
19121
cristy3ed852e2009-09-05 21:47:34 +000019122else
19123 ac_cv_search_dlopen=no
19124fi
19125rm conftest.$ac_ext
19126LIBS=$ac_func_search_save_LIBS
19127fi
cristy8b350f62009-11-15 23:12:43 +000019128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000019129$as_echo "$ac_cv_search_dlopen" >&6; }
19130ac_res=$ac_cv_search_dlopen
cristy8b350f62009-11-15 23:12:43 +000019131if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000019132 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19133
cristy8b350f62009-11-15 23:12:43 +000019134$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019135
19136 if test "$ac_cv_search_dlopen" != "none required" ; then
19137 LIBADD_DLOPEN="-ldl"
19138 fi
19139 libltdl_cv_lib_dl_dlopen="yes"
19140 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
19141else
cristy8b350f62009-11-15 23:12:43 +000019142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019143/* end confdefs.h. */
19144#if HAVE_DLFCN_H
19145# include <dlfcn.h>
19146#endif
19147
19148int
19149main ()
19150{
19151dlopen(0, 0);
19152 ;
19153 return 0;
19154}
19155_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019156if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019157
cristy8b350f62009-11-15 23:12:43 +000019158$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019159
19160 libltdl_cv_func_dlopen="yes"
19161 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
19162else
cristy8b350f62009-11-15 23:12:43 +000019163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
cristy3ed852e2009-09-05 21:47:34 +000019164$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019165if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019166 $as_echo_n "(cached) " >&6
19167else
19168 ac_check_lib_save_LIBS=$LIBS
19169LIBS="-lsvld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000019170cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019171/* end confdefs.h. */
19172
19173/* Override any GCC internal prototype to avoid an error.
19174 Use char because int might match the return type of a GCC
19175 builtin and then its argument prototype would still apply. */
19176#ifdef __cplusplus
19177extern "C"
19178#endif
19179char dlopen ();
19180int
19181main ()
19182{
19183return dlopen ();
19184 ;
19185 return 0;
19186}
19187_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019188if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019189 ac_cv_lib_svld_dlopen=yes
19190else
cristy8b350f62009-11-15 23:12:43 +000019191 ac_cv_lib_svld_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000019192fi
cristy8b350f62009-11-15 23:12:43 +000019193rm -f core conftest.err conftest.$ac_objext \
19194 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019195LIBS=$ac_check_lib_save_LIBS
19196fi
cristy8b350f62009-11-15 23:12:43 +000019197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000019198$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000019199if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019200
cristy8b350f62009-11-15 23:12:43 +000019201$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019202
19203 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
19204 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
19205fi
19206
19207fi
cristy8b350f62009-11-15 23:12:43 +000019208rm -f core conftest.err conftest.$ac_objext \
19209 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019210fi
19211
19212if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
19213then
19214 lt_save_LIBS="$LIBS"
19215 LIBS="$LIBS $LIBADD_DLOPEN"
cristy8b350f62009-11-15 23:12:43 +000019216 for ac_func in dlerror
19217do :
19218 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
19219if test "x$ac_cv_func_dlerror" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019220 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019221#define HAVE_DLERROR 1
cristy3ed852e2009-09-05 21:47:34 +000019222_ACEOF
19223
19224fi
19225done
19226
19227 LIBS="$lt_save_LIBS"
19228fi
19229
19230
19231LIBADD_SHL_LOAD=
cristy8b350f62009-11-15 23:12:43 +000019232ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
19233if test "x$ac_cv_func_shl_load" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019234
cristy8b350f62009-11-15 23:12:43 +000019235$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019236
19237 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
19238else
cristy8b350f62009-11-15 23:12:43 +000019239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
cristy3ed852e2009-09-05 21:47:34 +000019240$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019241if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019242 $as_echo_n "(cached) " >&6
19243else
19244 ac_check_lib_save_LIBS=$LIBS
19245LIBS="-ldld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000019246cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019247/* end confdefs.h. */
19248
19249/* Override any GCC internal prototype to avoid an error.
19250 Use char because int might match the return type of a GCC
19251 builtin and then its argument prototype would still apply. */
19252#ifdef __cplusplus
19253extern "C"
19254#endif
19255char shl_load ();
19256int
19257main ()
19258{
19259return shl_load ();
19260 ;
19261 return 0;
19262}
19263_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019264if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019265 ac_cv_lib_dld_shl_load=yes
19266else
cristy8b350f62009-11-15 23:12:43 +000019267 ac_cv_lib_dld_shl_load=no
cristy3ed852e2009-09-05 21:47:34 +000019268fi
cristy8b350f62009-11-15 23:12:43 +000019269rm -f core conftest.err conftest.$ac_objext \
19270 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019271LIBS=$ac_check_lib_save_LIBS
19272fi
cristy8b350f62009-11-15 23:12:43 +000019273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
cristy3ed852e2009-09-05 21:47:34 +000019274$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristy8b350f62009-11-15 23:12:43 +000019275if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019276
cristy8b350f62009-11-15 23:12:43 +000019277$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019278
19279 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
19280 LIBADD_SHL_LOAD="-ldld"
19281fi
19282
19283fi
19284
19285
19286
19287case $host_os in
19288darwin[1567].*)
19289# We only want this for pre-Mac OS X 10.4.
cristy8b350f62009-11-15 23:12:43 +000019290 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
19291if test "x$ac_cv_func__dyld_func_lookup" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019292
cristy8b350f62009-11-15 23:12:43 +000019293$as_echo "#define HAVE_DYLD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019294
19295 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
19296fi
19297
19298 ;;
19299beos*)
19300 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
19301 ;;
19302cygwin* | mingw* | os2* | pw32*)
cristy8b350f62009-11-15 23:12:43 +000019303 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
19304"
19305if test "x$ac_cv_have_decl_cygwin_conv_path" = x""yes; then :
19306 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000019307else
cristy8b350f62009-11-15 23:12:43 +000019308 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000019309fi
19310
cristy3ed852e2009-09-05 21:47:34 +000019311cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019312#define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000019313_ACEOF
19314
cristy3ed852e2009-09-05 21:47:34 +000019315 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
19316 ;;
19317esac
19318
cristy8b350f62009-11-15 23:12:43 +000019319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
cristy3ed852e2009-09-05 21:47:34 +000019320$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019321if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019322 $as_echo_n "(cached) " >&6
19323else
19324 ac_check_lib_save_LIBS=$LIBS
19325LIBS="-ldld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000019326cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019327/* end confdefs.h. */
19328
19329/* Override any GCC internal prototype to avoid an error.
19330 Use char because int might match the return type of a GCC
19331 builtin and then its argument prototype would still apply. */
19332#ifdef __cplusplus
19333extern "C"
19334#endif
19335char dld_link ();
19336int
19337main ()
19338{
19339return dld_link ();
19340 ;
19341 return 0;
19342}
19343_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019344if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019345 ac_cv_lib_dld_dld_link=yes
19346else
cristy8b350f62009-11-15 23:12:43 +000019347 ac_cv_lib_dld_dld_link=no
cristy3ed852e2009-09-05 21:47:34 +000019348fi
cristy8b350f62009-11-15 23:12:43 +000019349rm -f core conftest.err conftest.$ac_objext \
19350 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019351LIBS=$ac_check_lib_save_LIBS
19352fi
cristy8b350f62009-11-15 23:12:43 +000019353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
cristy3ed852e2009-09-05 21:47:34 +000019354$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristy8b350f62009-11-15 23:12:43 +000019355if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019356
cristy8b350f62009-11-15 23:12:43 +000019357$as_echo "#define HAVE_DLD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019358
19359 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
19360fi
19361
19362
19363
19364
19365LT_DLPREOPEN=
19366if test -n "$LT_DLLOADERS"
19367then
19368 for lt_loader in $LT_DLLOADERS; do
19369 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
19370 done
19371
cristy8b350f62009-11-15 23:12:43 +000019372$as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019373
19374fi
19375
19376
19377LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
19378
19379
19380ac_ext=c
19381ac_cpp='$CPP $CPPFLAGS'
19382ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19383ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19384ac_compiler_gnu=$ac_cv_c_compiler_gnu
19385
19386
cristy8b350f62009-11-15 23:12:43 +000019387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
cristy3ed852e2009-09-05 21:47:34 +000019388$as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019389if test "${lt_cv_sys_symbol_underscore+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019390 $as_echo_n "(cached) " >&6
19391else
19392 lt_cv_sys_symbol_underscore=no
19393 cat > conftest.$ac_ext <<_LT_EOF
19394void nm_test_func(){}
19395int main(){nm_test_func;return 0;}
19396_LT_EOF
cristy8b350f62009-11-15 23:12:43 +000019397 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000019398 (eval $ac_compile) 2>&5
19399 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000019400 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19401 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000019402 # Now try to grab the symbols.
19403 ac_nlist=conftest.nm
cristy8b350f62009-11-15 23:12:43 +000019404 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 +000019405 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
19406 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000019407 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19408 test $ac_status = 0; } && test -s "$ac_nlist"; then
cristy3ed852e2009-09-05 21:47:34 +000019409 # See whether the symbols have a leading underscore.
19410 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
19411 lt_cv_sys_symbol_underscore=yes
19412 else
19413 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
19414 :
19415 else
19416 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
19417 fi
19418 fi
19419 else
19420 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
19421 fi
19422 else
19423 echo "configure: failed program was:" >&5
19424 cat conftest.c >&5
19425 fi
19426 rm -rf conftest*
19427
19428fi
cristy8b350f62009-11-15 23:12:43 +000019429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
cristy3ed852e2009-09-05 21:47:34 +000019430$as_echo "$lt_cv_sys_symbol_underscore" >&6; }
19431 sys_symbol_underscore=$lt_cv_sys_symbol_underscore
19432
19433
19434if test x"$lt_cv_sys_symbol_underscore" = xyes; then
19435 if test x"$libltdl_cv_func_dlopen" = xyes ||
19436 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
cristy8b350f62009-11-15 23:12:43 +000019437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
cristy3ed852e2009-09-05 21:47:34 +000019438$as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019439if test "${libltdl_cv_need_uscore+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019440 $as_echo_n "(cached) " >&6
19441else
19442 libltdl_cv_need_uscore=unknown
19443 save_LIBS="$LIBS"
19444 LIBS="$LIBS $LIBADD_DLOPEN"
19445 if test "$cross_compiling" = yes; then :
19446 libltdl_cv_need_uscore=cross
19447else
19448 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19449 lt_status=$lt_dlunknown
19450 cat > conftest.$ac_ext <<_LT_EOF
cristy92703d82010-04-26 00:18:18 +000019451#line 19451 "configure"
cristy3ed852e2009-09-05 21:47:34 +000019452#include "confdefs.h"
19453
19454#if HAVE_DLFCN_H
19455#include <dlfcn.h>
19456#endif
19457
19458#include <stdio.h>
19459
19460#ifdef RTLD_GLOBAL
19461# define LT_DLGLOBAL RTLD_GLOBAL
19462#else
19463# ifdef DL_GLOBAL
19464# define LT_DLGLOBAL DL_GLOBAL
19465# else
19466# define LT_DLGLOBAL 0
19467# endif
19468#endif
19469
19470/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19471 find out it does not work in some platform. */
19472#ifndef LT_DLLAZY_OR_NOW
19473# ifdef RTLD_LAZY
19474# define LT_DLLAZY_OR_NOW RTLD_LAZY
19475# else
19476# ifdef DL_LAZY
19477# define LT_DLLAZY_OR_NOW DL_LAZY
19478# else
19479# ifdef RTLD_NOW
19480# define LT_DLLAZY_OR_NOW RTLD_NOW
19481# else
19482# ifdef DL_NOW
19483# define LT_DLLAZY_OR_NOW DL_NOW
19484# else
19485# define LT_DLLAZY_OR_NOW 0
19486# endif
19487# endif
19488# endif
19489# endif
19490#endif
19491
cristy18304f92009-11-22 15:48:26 +000019492void fnord() { int i=42;}
cristy3ed852e2009-09-05 21:47:34 +000019493int main ()
19494{
19495 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19496 int status = $lt_dlunknown;
19497
19498 if (self)
19499 {
19500 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy18304f92009-11-22 15:48:26 +000019501 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
cristy3ed852e2009-09-05 21:47:34 +000019502 /* dlclose (self); */
19503 }
19504 else
19505 puts (dlerror ());
19506
19507 return status;
19508}
19509_LT_EOF
cristy8b350f62009-11-15 23:12:43 +000019510 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000019511 (eval $ac_link) 2>&5
19512 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000019513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19514 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000019515 (./conftest; exit; ) >&5 2>/dev/null
19516 lt_status=$?
19517 case x$lt_status in
19518 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
19519 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
19520 x$lt_dlunknown|x*) ;;
19521 esac
19522 else :
19523 # compilation failed
19524
19525 fi
19526fi
19527rm -fr conftest*
19528
19529 LIBS="$save_LIBS"
19530
19531fi
cristy8b350f62009-11-15 23:12:43 +000019532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
cristy3ed852e2009-09-05 21:47:34 +000019533$as_echo "$libltdl_cv_need_uscore" >&6; }
19534 fi
19535fi
19536
19537if test x"$libltdl_cv_need_uscore" = xyes; then
19538
cristy8b350f62009-11-15 23:12:43 +000019539$as_echo "#define NEED_USCORE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019540
19541fi
19542
cristy8b350f62009-11-15 23:12:43 +000019543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000019544$as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019545if test "${lt_cv_sys_dlopen_deplibs+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019546 $as_echo_n "(cached) " >&6
19547else
19548 # PORTME does your system automatically load deplibs for dlopen?
19549 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
19550 # For now, we just catch OSes we know something about -- in the
19551 # future, we'll try test this programmatically.
19552 lt_cv_sys_dlopen_deplibs=unknown
19553 case $host_os in
19554 aix3*|aix4.1.*|aix4.2.*)
19555 # Unknown whether this is true for these versions of AIX, but
19556 # we want this `case' here to explicitly catch those versions.
19557 lt_cv_sys_dlopen_deplibs=unknown
19558 ;;
19559 aix[4-9]*)
19560 lt_cv_sys_dlopen_deplibs=yes
19561 ;;
19562 amigaos*)
19563 case $host_cpu in
19564 powerpc)
19565 lt_cv_sys_dlopen_deplibs=no
19566 ;;
19567 esac
19568 ;;
19569 darwin*)
19570 # Assuming the user has installed a libdl from somewhere, this is true
19571 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
19572 lt_cv_sys_dlopen_deplibs=yes
19573 ;;
19574 freebsd* | dragonfly*)
19575 lt_cv_sys_dlopen_deplibs=yes
19576 ;;
cristy18304f92009-11-22 15:48:26 +000019577 gnu* | linux* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000019578 # GNU and its variants, using gnu ld.so (Glibc)
19579 lt_cv_sys_dlopen_deplibs=yes
19580 ;;
19581 hpux10*|hpux11*)
19582 lt_cv_sys_dlopen_deplibs=yes
19583 ;;
19584 interix*)
19585 lt_cv_sys_dlopen_deplibs=yes
19586 ;;
19587 irix[12345]*|irix6.[01]*)
19588 # Catch all versions of IRIX before 6.2, and indicate that we don't
19589 # know how it worked for any of those versions.
19590 lt_cv_sys_dlopen_deplibs=unknown
19591 ;;
19592 irix*)
19593 # The case above catches anything before 6.2, and it's known that
19594 # at 6.2 and later dlopen does load deplibs.
19595 lt_cv_sys_dlopen_deplibs=yes
19596 ;;
19597 netbsd*)
19598 lt_cv_sys_dlopen_deplibs=yes
19599 ;;
19600 openbsd*)
19601 lt_cv_sys_dlopen_deplibs=yes
19602 ;;
19603 osf[1234]*)
19604 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
19605 # it did *not* use an RPATH in a shared library to find objects the
19606 # library depends on, so we explicitly say `no'.
19607 lt_cv_sys_dlopen_deplibs=no
19608 ;;
19609 osf5.0|osf5.0a|osf5.1)
19610 # dlopen *does* load deplibs and with the right loader patch applied
19611 # it even uses RPATH in a shared library to search for shared objects
19612 # that the library depends on, but there's no easy way to know if that
19613 # patch is installed. Since this is the case, all we can really
19614 # say is unknown -- it depends on the patch being installed. If
19615 # it is, this changes to `yes'. Without it, it would be `no'.
19616 lt_cv_sys_dlopen_deplibs=unknown
19617 ;;
19618 osf*)
19619 # the two cases above should catch all versions of osf <= 5.1. Read
19620 # the comments above for what we know about them.
19621 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
19622 # is used to find them so we can finally say `yes'.
19623 lt_cv_sys_dlopen_deplibs=yes
19624 ;;
19625 qnx*)
19626 lt_cv_sys_dlopen_deplibs=yes
19627 ;;
19628 solaris*)
19629 lt_cv_sys_dlopen_deplibs=yes
19630 ;;
19631 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19632 libltdl_cv_sys_dlopen_deplibs=yes
19633 ;;
19634 esac
19635
19636fi
cristy8b350f62009-11-15 23:12:43 +000019637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
cristy3ed852e2009-09-05 21:47:34 +000019638$as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
19639if test "$lt_cv_sys_dlopen_deplibs" != yes; then
19640
cristy8b350f62009-11-15 23:12:43 +000019641$as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019642
19643fi
19644
19645:
19646
cristy3ed852e2009-09-05 21:47:34 +000019647for ac_header in argz.h
cristy8b350f62009-11-15 23:12:43 +000019648do :
19649 ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
19650"
19651if test "x$ac_cv_header_argz_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019652 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019653#define HAVE_ARGZ_H 1
cristy3ed852e2009-09-05 21:47:34 +000019654_ACEOF
19655
19656fi
19657
19658done
19659
19660
cristy8b350f62009-11-15 23:12:43 +000019661ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
cristy3ed852e2009-09-05 21:47:34 +000019662# include <argz.h>
19663#endif
cristy8b350f62009-11-15 23:12:43 +000019664"
19665if test "x$ac_cv_type_error_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019666
19667cat >>confdefs.h <<_ACEOF
19668#define HAVE_ERROR_T 1
19669_ACEOF
19670
19671
19672else
19673
cristy8b350f62009-11-15 23:12:43 +000019674$as_echo "#define error_t int" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019675
19676
cristy8b350f62009-11-15 23:12:43 +000019677$as_echo "#define __error_t_defined 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019678
19679fi
19680
19681
19682ARGZ_H=
cristy3ed852e2009-09-05 21:47:34 +000019683for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
19684 argz_next argz_stringify
cristy8b350f62009-11-15 23:12:43 +000019685do :
19686 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19687ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19688eval as_val=\$$as_ac_var
19689 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019690 cat >>confdefs.h <<_ACEOF
19691#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19692_ACEOF
19693
19694else
19695 ARGZ_H=argz.h;
19696
19697 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
19698
19699fi
19700done
19701
19702
cristy8b350f62009-11-15 23:12:43 +000019703if test -z "$ARGZ_H"; then :
19704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
cristy3ed852e2009-09-05 21:47:34 +000019705$as_echo_n "checking if argz actually works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019706if test "${lt_cv_sys_argz_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019707 $as_echo_n "(cached) " >&6
19708else
19709 case $host_os in #(
19710 *cygwin*)
19711 lt_cv_sys_argz_works=no
19712 if test "$cross_compiling" != no; then
19713 lt_cv_sys_argz_works="guessing no"
19714 else
19715 lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
19716 save_IFS=$IFS
19717 IFS=-.
19718 set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
19719 IFS=$save_IFS
19720 lt_os_major=${2-0}
19721 lt_os_minor=${3-0}
19722 lt_os_micro=${4-0}
19723 if test "$lt_os_major" -gt 1 \
19724 || { test "$lt_os_major" -eq 1 \
19725 && { test "$lt_os_minor" -gt 5 \
19726 || { test "$lt_os_minor" -eq 5 \
19727 && test "$lt_os_micro" -gt 24; }; }; }; then
19728 lt_cv_sys_argz_works=yes
19729 fi
19730 fi
19731 ;; #(
19732 *) lt_cv_sys_argz_works=yes ;;
19733 esac
19734fi
cristy8b350f62009-11-15 23:12:43 +000019735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000019736$as_echo "$lt_cv_sys_argz_works" >&6; }
cristy8b350f62009-11-15 23:12:43 +000019737 if test $lt_cv_sys_argz_works = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019738
cristy8b350f62009-11-15 23:12:43 +000019739$as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019740
19741else
19742 ARGZ_H=argz.h
19743
19744
19745 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
19746
19747fi
cristy3ed852e2009-09-05 21:47:34 +000019748fi
19749
19750
19751
cristy8b350f62009-11-15 23:12:43 +000019752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000019753$as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019754if test "${libltdl_cv_preloaded_symbols+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019755 $as_echo_n "(cached) " >&6
19756else
19757 if test -n "$lt_cv_sys_global_symbol_pipe"; then
19758 libltdl_cv_preloaded_symbols=yes
19759 else
19760 libltdl_cv_preloaded_symbols=no
19761 fi
19762
19763fi
cristy8b350f62009-11-15 23:12:43 +000019764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
cristy3ed852e2009-09-05 21:47:34 +000019765$as_echo "$libltdl_cv_preloaded_symbols" >&6; }
19766if test x"$libltdl_cv_preloaded_symbols" = xyes; then
19767
cristy8b350f62009-11-15 23:12:43 +000019768$as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019769
19770fi
19771
19772# Set options
19773
19774
19775
19776
19777
19778
19779
19780
19781
19782
19783
19784# Check whether --with-included_ltdl was given.
cristy8b350f62009-11-15 23:12:43 +000019785if test "${with_included_ltdl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019786 withval=$with_included_ltdl;
19787fi
19788
19789
19790if test "x$with_included_ltdl" != xyes; then
19791 # We are not being forced to use the included libltdl sources, so
19792 # decide whether there is a useful installed version we can use.
cristy8b350f62009-11-15 23:12:43 +000019793 ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
cristy3ed852e2009-09-05 21:47:34 +000019794
cristy8b350f62009-11-15 23:12:43 +000019795"
19796if test "x$ac_cv_header_ltdl_h" = x""yes; then :
19797 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 +000019798 #include <ltdl.h>
cristy8b350f62009-11-15 23:12:43 +000019799"
19800if test "x$ac_cv_have_decl_lt_dlinterface_register" = x""yes; then :
19801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
cristy3ed852e2009-09-05 21:47:34 +000019802$as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019803if test "${ac_cv_lib_ltdl_lt_dladvise_preload+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019804 $as_echo_n "(cached) " >&6
19805else
19806 ac_check_lib_save_LIBS=$LIBS
19807LIBS="-lltdl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000019808cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019809/* end confdefs.h. */
19810
19811/* Override any GCC internal prototype to avoid an error.
19812 Use char because int might match the return type of a GCC
19813 builtin and then its argument prototype would still apply. */
19814#ifdef __cplusplus
19815extern "C"
19816#endif
19817char lt_dladvise_preload ();
19818int
19819main ()
19820{
19821return lt_dladvise_preload ();
19822 ;
19823 return 0;
19824}
19825_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019826if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019827 ac_cv_lib_ltdl_lt_dladvise_preload=yes
19828else
cristy8b350f62009-11-15 23:12:43 +000019829 ac_cv_lib_ltdl_lt_dladvise_preload=no
cristy3ed852e2009-09-05 21:47:34 +000019830fi
cristy8b350f62009-11-15 23:12:43 +000019831rm -f core conftest.err conftest.$ac_objext \
19832 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019833LIBS=$ac_check_lib_save_LIBS
19834fi
cristy8b350f62009-11-15 23:12:43 +000019835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
cristy3ed852e2009-09-05 21:47:34 +000019836$as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
cristy8b350f62009-11-15 23:12:43 +000019837if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019838 with_included_ltdl=no
19839else
19840 with_included_ltdl=yes
19841fi
19842
19843else
19844 with_included_ltdl=yes
19845fi
19846
19847else
19848 with_included_ltdl=yes
19849fi
19850
19851
19852fi
19853
19854
19855
19856
19857# Check whether --with-ltdl_include was given.
cristy8b350f62009-11-15 23:12:43 +000019858if test "${with_ltdl_include+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019859 withval=$with_ltdl_include;
19860fi
19861
19862
19863if test -n "$with_ltdl_include"; then
19864 if test -f "$with_ltdl_include/ltdl.h"; then :
19865 else
cristy8b350f62009-11-15 23:12:43 +000019866 as_fn_error "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000019867 fi
19868else
19869 with_ltdl_include=no
19870fi
19871
19872
19873# Check whether --with-ltdl_lib was given.
cristy8b350f62009-11-15 23:12:43 +000019874if test "${with_ltdl_lib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019875 withval=$with_ltdl_lib;
19876fi
19877
19878
19879if test -n "$with_ltdl_lib"; then
19880 if test -f "$with_ltdl_lib/libltdl.la"; then :
19881 else
cristy8b350f62009-11-15 23:12:43 +000019882 as_fn_error "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000019883 fi
19884else
19885 with_ltdl_lib=no
19886fi
19887
19888case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
19889 ,yes,no,no,)
19890 case $enable_ltdl_convenience in
cristy8b350f62009-11-15 23:12:43 +000019891 no) as_fn_error "this package needs a convenience libltdl" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000019892 "") enable_ltdl_convenience=yes
19893 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
19894esac
19895LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
19896LTDLDEPS=$LIBLTDL
19897LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
19898
19899
19900
19901
19902
19903# For backwards non-gettext consistent compatibility...
19904INCLTDL="$LTDLINCL"
19905
19906
19907 ;;
19908 ,no,no,no,)
19909 # If the included ltdl is not to be used, then use the
19910 # preinstalled libltdl we found.
19911
cristy8b350f62009-11-15 23:12:43 +000019912$as_echo "#define HAVE_LTDL 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019913
19914 LIBLTDL=-lltdl
19915 LTDLDEPS=
19916 LTDLINCL=
19917 ;;
19918 ,no*,no,*)
cristy8b350f62009-11-15 23:12:43 +000019919 as_fn_error "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000019920 ;;
19921 *) with_included_ltdl=no
19922 LIBLTDL="-L$with_ltdl_lib -lltdl"
19923 LTDLDEPS=
19924 LTDLINCL="-I$with_ltdl_include"
19925 ;;
19926esac
19927INCLTDL="$LTDLINCL"
19928
19929# Report our decision...
cristy8b350f62009-11-15 23:12:43 +000019930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
cristy3ed852e2009-09-05 21:47:34 +000019931$as_echo_n "checking where to find libltdl headers... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000019933$as_echo "$LTDLINCL" >&6; }
cristy8b350f62009-11-15 23:12:43 +000019934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
cristy3ed852e2009-09-05 21:47:34 +000019935$as_echo_n "checking where to find libltdl library... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
cristy3ed852e2009-09-05 21:47:34 +000019937$as_echo "$LIBLTDL" >&6; }
19938
19939
19940
19941# Check whether --enable-ltdl-install was given.
cristy8b350f62009-11-15 23:12:43 +000019942if test "${enable_ltdl_install+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019943 enableval=$enable_ltdl_install;
19944fi
19945
19946
19947case ,${enable_ltdl_install},${enable_ltdl_convenience} in
19948 *yes*) ;;
19949 *) enable_ltdl_convenience=yes ;;
19950esac
19951
19952 if test x"${enable_ltdl_install-no}" != xno; then
19953 INSTALL_LTDL_TRUE=
19954 INSTALL_LTDL_FALSE='#'
19955else
19956 INSTALL_LTDL_TRUE='#'
19957 INSTALL_LTDL_FALSE=
19958fi
19959
19960 if test x"${enable_ltdl_convenience-no}" != xno; then
19961 CONVENIENCE_LTDL_TRUE=
19962 CONVENIENCE_LTDL_FALSE='#'
19963else
19964 CONVENIENCE_LTDL_TRUE='#'
19965 CONVENIENCE_LTDL_FALSE=
19966fi
19967
19968
19969
19970
19971
19972
cristy18304f92009-11-22 15:48:26 +000019973
cristy3ed852e2009-09-05 21:47:34 +000019974# In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
19975# the user used. This is so that ltdl.h can pick up the parent projects
19976# config.h file, The first file in AC_CONFIG_HEADERS must contain the
19977# definitions required by ltdl.c.
19978# FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
19979
19980
19981
cristy3ed852e2009-09-05 21:47:34 +000019982for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
cristy8b350f62009-11-15 23:12:43 +000019983do :
19984 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19985ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
19986"
19987eval as_val=\$$as_ac_Header
19988 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019989 cat >>confdefs.h <<_ACEOF
19990#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19991_ACEOF
19992
19993fi
19994
19995done
19996
19997
cristy3ed852e2009-09-05 21:47:34 +000019998for ac_func in closedir opendir readdir
cristy8b350f62009-11-15 23:12:43 +000019999do :
20000 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20001ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20002eval as_val=\$$as_ac_var
20003 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020004 cat >>confdefs.h <<_ACEOF
20005#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20006_ACEOF
20007
20008else
20009
20010
20011 _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
20012
20013fi
20014done
20015
cristy3ed852e2009-09-05 21:47:34 +000020016for ac_func in strlcat strlcpy
cristy8b350f62009-11-15 23:12:43 +000020017do :
20018 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20019ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20020eval as_val=\$$as_ac_var
20021 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020022 cat >>confdefs.h <<_ACEOF
20023#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20024_ACEOF
20025
20026else
20027
20028
20029 _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
20030
20031fi
20032done
20033
20034
20035
20036cat >>confdefs.h <<_ACEOF
20037#define LT_LIBEXT "$libext"
20038_ACEOF
20039
20040
20041name=ltdl
20042LTDLOPEN=`eval "\\$ECHO \"$libname_spec\""`
20043
20044
20045
20046
20047
20048
20049
20050
20051# Only expand once:
20052
20053
20054
20055# Check to see if building shared libraries
20056libtool_build_shared_libs='no'
20057if test "$enable_shared" = 'yes'; then
20058 libtool_build_shared_libs='yes'
20059fi
20060
20061# Check to see if building static libraries
20062libtool_build_static_libs='no'
20063if test "$enable_static" = 'yes'; then
20064 libtool_build_static_libs='yes'
20065fi
20066
cristyfa112112010-01-04 17:48:07 +000020067 if test "${libtool_build_shared_libs}" = 'yes'; then
20068 WITH_SHARED_LIBS_TRUE=
20069 WITH_SHARED_LIBS_FALSE='#'
20070else
20071 WITH_SHARED_LIBS_TRUE='#'
20072 WITH_SHARED_LIBS_FALSE=
cristy3ed852e2009-09-05 21:47:34 +000020073fi
20074
20075#
20076# Enable support for building loadable modules
20077#
20078
20079# Check whether --with-modules was given.
cristy8b350f62009-11-15 23:12:43 +000020080if test "${with_modules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020081 withval=$with_modules; with_modules=$withval
20082else
cristy5a1cefd2010-01-06 20:42:35 +000020083 with_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000020084fi
20085
20086
20087# Only allow building loadable modules if we are building shared libraries
20088if test "$with_modules" != 'no' ; then
20089 if test "$libtool_build_shared_libs" = 'no'; then
cristy8b350f62009-11-15 23:12:43 +000020090 { $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 +000020091$as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
20092 with_modules='no'
20093 fi
20094fi
20095if test "$with_modules" != 'no'; then
20096
cristy8b350f62009-11-15 23:12:43 +000020097$as_echo "#define BUILD_MODULES 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020098
20099fi
20100 if test "$with_modules" != 'no'; then
20101 WITH_MODULES_TRUE=
20102 WITH_MODULES_FALSE='#'
20103else
20104 WITH_MODULES_TRUE='#'
20105 WITH_MODULES_FALSE=
20106fi
20107
20108
20109# Enable building/use of libltdl if we are building shared libraries regardless
20110# of whether modules are built or not.
20111with_ltdl='no'
20112if test "$libtool_build_shared_libs" != 'no'; then
20113 with_ltdl='yes'
20114fi
20115
20116 if test "$with_ltdl" != 'no'; then
20117 WITH_LTDL_TRUE=
20118 WITH_LTDL_FALSE='#'
20119else
20120 WITH_LTDL_TRUE='#'
20121 WITH_LTDL_FALSE=
20122fi
20123
20124if test "$with_ltdl" != 'no'; then
20125
cristy8b350f62009-11-15 23:12:43 +000020126$as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020127
20128
20129 # Set DLLDFLAGS
20130 if test X"$enable_shared" = Xyes; then
20131 DLLDFLAGS=-export-dynamic
20132
20133 fi
20134fi
20135
20136# Enable build using delegate libraries built in subdirectories rather than installed
cristy5850e4b2010-01-08 14:28:24 +000020137# delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms png tiff ttf wmf xml zlib)
cristy3ed852e2009-09-05 21:47:34 +000020138# Check whether --enable-delegate-build was given.
cristy8b350f62009-11-15 23:12:43 +000020139if test "${enable_delegate_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020140 enableval=$enable_delegate_build; enable_delegate_build=$enableval
20141else
20142 enable_delegate_build='no'
20143fi
20144
20145
20146# Check whether --enable-deprecated was given.
cristy8b350f62009-11-15 23:12:43 +000020147if test "${enable_deprecated+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020148 enableval=$enable_deprecated; enable_deprecated=$enableval
20149else
20150 enable_deprecated='no'
20151fi
20152
20153
20154if test "$enable_deprecated" = 'yes'; then
20155
cristy8b350f62009-11-15 23:12:43 +000020156$as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020157
20158else
20159 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
20160fi
20161
20162# Build a version of ImageMagick which operates uninstalled.
20163# Used to build distributions located via MAGICK_HOME / executable path
20164# Check whether --enable-installed was given.
cristy8b350f62009-11-15 23:12:43 +000020165if test "${enable_installed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020166 enableval=$enable_installed; enable_installed=$enableval
20167else
20168 enable_installed='yes'
20169fi
20170
20171
20172if test "$enable_installed" = 'yes'; then
20173
cristy8b350f62009-11-15 23:12:43 +000020174$as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020175
20176else
20177 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
20178fi
20179
20180# Permit enciphering and deciphering image pixels.
20181# Check whether --enable-cipher was given.
cristy8b350f62009-11-15 23:12:43 +000020182if test "${enable_cipher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020183 enableval=$enable_cipher; enable_cipher=$enableval
20184else
20185 enable_cipher='yes'
20186fi
20187
20188
20189if test "$enable_cipher" = 'yes'; then
20190
cristy8b350f62009-11-15 23:12:43 +000020191$as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020192
20193fi
20194
20195# Build an embeddable version of ImageMagick.
20196# Check whether --enable-embeddable was given.
cristy8b350f62009-11-15 23:12:43 +000020197if test "${enable_embeddable+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020198 enableval=$enable_embeddable; enable_embeddable=$enableval
20199else
20200 enable_embeddable='no'
20201fi
20202
20203
20204if test "$enable_embeddable" = 'yes'; then
20205
cristy8b350f62009-11-15 23:12:43 +000020206$as_echo "#define EMBEDDABLE_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020207
20208fi
20209
20210# Build a high dynamic range version of ImageMagick.
20211# Check whether --enable-hdri was given.
cristy8b350f62009-11-15 23:12:43 +000020212if test "${enable_hdri+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020213 enableval=$enable_hdri; enable_hdri=$enableval
20214else
20215 enable_hdri='no'
20216fi
20217
20218
20219MAGICK_HDRI=""
20220if test "$enable_hdri" = 'yes'; then
20221 MAGICK_HDRI="HDRI"
20222
cristy8b350f62009-11-15 23:12:43 +000020223$as_echo "#define HDRI_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020224
20225fi
20226
cristy3ed852e2009-09-05 21:47:34 +000020227# Build a version of ImageMagick with assert statements.
20228# Check whether --enable-assert was given.
cristy8b350f62009-11-15 23:12:43 +000020229if test "${enable_assert+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020230 enableval=$enable_assert; enable_assert=$enableval
20231else
20232 enable_assert='yes'
20233fi
20234
20235
20236if test "$enable_assert" = 'no'; then
20237
cristy8b350f62009-11-15 23:12:43 +000020238$as_echo "#define NDEBUG 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020239
20240fi
20241
20242# Add configure option --enable-maintainer-mode which enables dependency
20243# checking and generation useful to package maintainers. This is made an
20244# option to avoid confusing end users.
20245
cristy8b350f62009-11-15 23:12:43 +000020246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
cristy3ed852e2009-09-05 21:47:34 +000020247$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
20248 # Check whether --enable-maintainer-mode was given.
cristy8b350f62009-11-15 23:12:43 +000020249if test "${enable_maintainer_mode+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020250 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
20251else
20252 USE_MAINTAINER_MODE=no
20253fi
20254
cristy8b350f62009-11-15 23:12:43 +000020255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
cristy3ed852e2009-09-05 21:47:34 +000020256$as_echo "$USE_MAINTAINER_MODE" >&6; }
20257 if test $USE_MAINTAINER_MODE = yes; then
20258 MAINTAINER_MODE_TRUE=
20259 MAINTAINER_MODE_FALSE='#'
20260else
20261 MAINTAINER_MODE_TRUE='#'
20262 MAINTAINER_MODE_FALSE=
20263fi
20264
20265 MAINT=$MAINTAINER_MODE_TRUE
20266
20267
20268
20269
20270# Enable ccmalloc memory debugging support
20271# Check whether --enable-ccmalloc was given.
cristy8b350f62009-11-15 23:12:43 +000020272if test "${enable_ccmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020273 enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
20274else
20275 enable_ccmalloc='no'
20276fi
20277
20278
20279# Enable Electric Fence memory debugging support
20280# Check whether --enable-efence was given.
cristy8b350f62009-11-15 23:12:43 +000020281if test "${enable_efence+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020282 enableval=$enable_efence; enable_efence=$enableval
20283else
20284 enable_efence='no'
20285fi
20286
20287
20288# Enable prof-based profiling support
20289# Check whether --enable-prof was given.
cristy8b350f62009-11-15 23:12:43 +000020290if test "${enable_prof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020291 enableval=$enable_prof; enable_prof=$enableval
20292else
20293 enable_prof='no'
20294fi
20295
20296
20297# Enable gprof-based profiling support
20298# Check whether --enable-gprof was given.
cristy8b350f62009-11-15 23:12:43 +000020299if test "${enable_gprof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020300 enableval=$enable_gprof; enable_gprof=$enableval
20301else
20302 enable_gprof='no'
20303fi
20304
20305
20306# Enable gcov-based profiling support
20307# Check whether --enable-gcov was given.
cristy8b350f62009-11-15 23:12:43 +000020308if test "${enable_gcov+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020309 enableval=$enable_gcov; enable_gcov=$enableval
20310else
20311 enable_gcov='no'
20312fi
20313
20314
20315enable_profiling='no'
20316if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
20317 enable_profiling='yes'
20318 if test "$libtool_build_shared_libs" = 'yes'; then
20319 echo "Warning: Can not profile code using shared libraries"
20320 fi
20321fi
20322
20323# Magick API method prefix
20324
20325# Check whether --with-method-prefix was given.
cristy8b350f62009-11-15 23:12:43 +000020326if test "${with_method_prefix+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020327 withval=$with_method_prefix; with_method_prefix=$enableval
20328else
20329 with_method_prefix=''
20330fi
20331
20332
20333if test "$with_method_prefix" != ''; then
20334
20335cat >>confdefs.h <<_ACEOF
20336#define NAMESPACE_PREFIX $with_method_prefix
20337_ACEOF
20338
20339fi
20340
20341# Number of bits in a Quantum
20342
20343# Check whether --with-quantum-depth was given.
cristy8b350f62009-11-15 23:12:43 +000020344if test "${with_quantum_depth+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020345 withval=$with_quantum_depth; with_quantum_depth=$withval
20346else
20347 with_quantum_depth=16
20348fi
20349
20350
20351if test "$with_quantum_depth" != '8'; then
20352 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
20353fi
20354
20355case "${with_quantum_depth}" in
20356 8 ) ;;
20357 16 ) ;;
20358 32 ) ;;
20359 64 ) ;;
cristy8b350f62009-11-15 23:12:43 +000020360 * ) { as_fn_set_status 16
20361as_fn_error "\"Pixel quantum depth must have value of 8" "$LINENO" 5; } ;;
cristy3ed852e2009-09-05 21:47:34 +000020362esac
20363QUANTUM_DEPTH="$with_quantum_depth"
20364
20365cat >>confdefs.h <<_ACEOF
20366#define QUANTUM_DEPTH $QUANTUM_DEPTH
20367_ACEOF
20368
20369
20370# Set pixel cache threshold
20371
20372# Check whether --with-cache was given.
cristy8b350f62009-11-15 23:12:43 +000020373if test "${with_cache+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020374 withval=$with_cache; with_cache=$withval
20375else
20376 with_cache=''
20377fi
20378
20379
20380if test "$with_cache" != ''; then
20381
20382cat >>confdefs.h <<_ACEOF
20383#define PixelCacheThreshold $with_cache
20384_ACEOF
20385
20386 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
20387fi
20388
20389# Disable/Enable support for full delegate paths
20390
20391# Check whether --with-frozenpaths was given.
cristy8b350f62009-11-15 23:12:43 +000020392if test "${with_frozenpaths+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020393 withval=$with_frozenpaths; with_frozenpaths=$withval
20394else
20395 with_frozenpaths='no'
20396fi
20397
20398
20399# Enable build/install of Magick++
20400
20401# Check whether --with-magick-plus-plus was given.
cristy8b350f62009-11-15 23:12:43 +000020402if test "${with_magick_plus_plus+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020403 withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
20404else
20405 with_magick_plus_plus='yes'
20406fi
20407
20408
20409# Disable build/install of PerlMagick.
20410
20411# Check whether --with-perl was given.
cristy8b350f62009-11-15 23:12:43 +000020412if test "${with_perl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020413 withval=$with_perl; with_perl=$withval
20414else
cristyb5f4e2f2010-04-25 00:49:11 +000020415 with_perl='no'
cristy3ed852e2009-09-05 21:47:34 +000020416fi
20417
20418
20419# Options to pass when configuring PerlMagick
20420
20421# Check whether --with-perl-options was given.
cristy8b350f62009-11-15 23:12:43 +000020422if test "${with_perl_options+set}" = set; then :
cristy949301e2010-01-06 01:38:40 +000020423 withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
cristy3ed852e2009-09-05 21:47:34 +000020424fi
20425
20426
cristy3ed852e2009-09-05 21:47:34 +000020427
20428# Enable umem, object-caching memory allocation library.
20429
20430# Check whether --with-umem was given.
cristy8b350f62009-11-15 23:12:43 +000020431if test "${with_umem+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020432 withval=$with_umem; with_umem=$withval
20433else
20434 with_umem='no'
20435fi
20436
20437if test "$with_umem" != 'yes' ; then
20438 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
20439fi
20440
20441#
20442# Specify path to shared libstdc++ if not in normal location
20443#
20444
20445# Check whether --with-libstdc was given.
cristy8b350f62009-11-15 23:12:43 +000020446if test "${with_libstdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020447 withval=$with_libstdc; with_libstdc=$withval
20448else
20449 with_libstdc=''
20450fi
20451
20452
20453if test "$with_libstdc" != ''; then
20454 if test -d "$with_libstdc"; then
20455 LIBSTDCLDFLAGS="-L$with_libstdc"
20456 fi
20457fi
20458
20459
20460# Does gcc required -traditional?
20461if test $ac_cv_c_compiler_gnu = yes; then
cristy8b350f62009-11-15 23:12:43 +000020462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000020463$as_echo_n "checking whether $CC needs -traditional... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020464if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020465 $as_echo_n "(cached) " >&6
20466else
20467 ac_pattern="Autoconf.*'x'"
cristy8b350f62009-11-15 23:12:43 +000020468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020469/* end confdefs.h. */
20470#include <sgtty.h>
20471Autoconf TIOCGETP
20472_ACEOF
20473if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000020474 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000020475 ac_cv_prog_gcc_traditional=yes
20476else
20477 ac_cv_prog_gcc_traditional=no
20478fi
20479rm -f conftest*
20480
20481
20482 if test $ac_cv_prog_gcc_traditional = no; then
cristy8b350f62009-11-15 23:12:43 +000020483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020484/* end confdefs.h. */
20485#include <termio.h>
20486Autoconf TCGETA
20487_ACEOF
20488if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000020489 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000020490 ac_cv_prog_gcc_traditional=yes
20491fi
20492rm -f conftest*
20493
20494 fi
20495fi
cristy8b350f62009-11-15 23:12:43 +000020496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000020497$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
20498 if test $ac_cv_prog_gcc_traditional = yes; then
20499 CC="$CC -traditional"
20500 fi
20501fi
20502
20503
20504########
20505#
20506# Set defines required to build DLLs and modules using MinGW
20507#
20508########
20509# These options are set for multi-thread DLL module build
20510# libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_
20511# module: _DLL
20512# executable/Magick++: _DLL _MAGICKMOD_
20513MODULE_EXTRA_CPPFLAGS=''
20514LIBRARY_EXTRA_CPPFLAGS=''
20515if test "${native_win32_build}" = 'yes'; then
20516 if test "${libtool_build_shared_libs}" = 'yes'; then
20517 CPPFLAGS="$CPPFLAGS -D_DLL"
20518 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
20519 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
20520 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
20521 if test "$with_modules" = 'yes'; then
20522 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
20523 else
20524 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
20525 fi
20526 else
20527 CPPFLAGS="$CPPFLAGS -D_LIB"
20528 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
20529 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
20530 fi
20531 if test "$with_threads" = 'yes'; then
20532 CPPFLAGS="$CPPFLAGS -D_MT"
20533 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
20534 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
20535 fi
20536fi
20537
20538
20539
20540# Check standard headers
cristy8b350f62009-11-15 23:12:43 +000020541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
cristy3ed852e2009-09-05 21:47:34 +000020542$as_echo_n "checking for ANSI C header files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020543if test "${ac_cv_header_stdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020544 $as_echo_n "(cached) " >&6
20545else
cristy8b350f62009-11-15 23:12:43 +000020546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020547/* end confdefs.h. */
20548#include <stdlib.h>
20549#include <stdarg.h>
20550#include <string.h>
20551#include <float.h>
20552
20553int
20554main ()
20555{
20556
20557 ;
20558 return 0;
20559}
20560_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020561if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020562 ac_cv_header_stdc=yes
20563else
cristy8b350f62009-11-15 23:12:43 +000020564 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000020565fi
cristy3ed852e2009-09-05 21:47:34 +000020566rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20567
20568if test $ac_cv_header_stdc = yes; then
20569 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000020570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020571/* end confdefs.h. */
20572#include <string.h>
20573
20574_ACEOF
20575if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000020576 $EGREP "memchr" >/dev/null 2>&1; then :
20577
cristy3ed852e2009-09-05 21:47:34 +000020578else
20579 ac_cv_header_stdc=no
20580fi
20581rm -f conftest*
20582
20583fi
20584
20585if test $ac_cv_header_stdc = yes; then
20586 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000020587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020588/* end confdefs.h. */
20589#include <stdlib.h>
20590
20591_ACEOF
20592if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000020593 $EGREP "free" >/dev/null 2>&1; then :
20594
cristy3ed852e2009-09-05 21:47:34 +000020595else
20596 ac_cv_header_stdc=no
20597fi
20598rm -f conftest*
20599
20600fi
20601
20602if test $ac_cv_header_stdc = yes; then
20603 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cristy8b350f62009-11-15 23:12:43 +000020604 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020605 :
20606else
cristy8b350f62009-11-15 23:12:43 +000020607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020608/* end confdefs.h. */
20609#include <ctype.h>
20610#include <stdlib.h>
20611#if ((' ' & 0x0FF) == 0x020)
20612# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20613# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20614#else
20615# define ISLOWER(c) \
20616 (('a' <= (c) && (c) <= 'i') \
20617 || ('j' <= (c) && (c) <= 'r') \
20618 || ('s' <= (c) && (c) <= 'z'))
20619# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20620#endif
20621
20622#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20623int
20624main ()
20625{
20626 int i;
20627 for (i = 0; i < 256; i++)
20628 if (XOR (islower (i), ISLOWER (i))
20629 || toupper (i) != TOUPPER (i))
20630 return 2;
20631 return 0;
20632}
20633_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020634if ac_fn_c_try_run "$LINENO"; then :
20635
cristy3ed852e2009-09-05 21:47:34 +000020636else
cristy8b350f62009-11-15 23:12:43 +000020637 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000020638fi
cristy8b350f62009-11-15 23:12:43 +000020639rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20640 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020641fi
20642
cristy3ed852e2009-09-05 21:47:34 +000020643fi
20644fi
cristy8b350f62009-11-15 23:12:43 +000020645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +000020646$as_echo "$ac_cv_header_stdc" >&6; }
20647if test $ac_cv_header_stdc = yes; then
20648
cristy8b350f62009-11-15 23:12:43 +000020649$as_echo "#define STDC_HEADERS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020650
20651fi
20652
20653if ! test x"$ac_cv_header_stdc" = x"yes"; then
cristy8b350f62009-11-15 23:12:43 +000020654 { $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 +000020655 header files. Compilation cannot proceed. Please install the ANSI C
20656 headers and rerun this script." >&5
20657$as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
20658 header files. Compilation cannot proceed. Please install the ANSI C
20659 headers and rerun this script." >&2;};
20660fi
cristya0b81c32010-01-22 02:54:33 +000020661
20662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
20663$as_echo_n "checking whether to enable assertions... " >&6; }
20664 # Check whether --enable-assert was given.
20665if test "${enable_assert+set}" = set; then :
20666 enableval=$enable_assert; ac_enable_assert=$enableval
20667 if test "x$enableval" = xno; then :
20668
20669$as_echo "#define NDEBUG 1" >>confdefs.h
20670
20671elif test "x$enableval" != xyes; then :
20672 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
20673$as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
20674 ac_enable_assert=yes
20675fi
20676else
20677 ac_enable_assert=yes
20678fi
20679
20680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
20681$as_echo "$ac_enable_assert" >&6; }
20682
cristy3ed852e2009-09-05 21:47:34 +000020683ac_header_dirent=no
20684for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
20685 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
cristy8b350f62009-11-15 23:12:43 +000020686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
cristy3ed852e2009-09-05 21:47:34 +000020687$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020688if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
cristy3ed852e2009-09-05 21:47:34 +000020689 $as_echo_n "(cached) " >&6
20690else
cristy8b350f62009-11-15 23:12:43 +000020691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020692/* end confdefs.h. */
20693#include <sys/types.h>
20694#include <$ac_hdr>
20695
20696int
20697main ()
20698{
20699if ((DIR *) 0)
20700return 0;
20701 ;
20702 return 0;
20703}
20704_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020705if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020706 eval "$as_ac_Header=yes"
20707else
cristy8b350f62009-11-15 23:12:43 +000020708 eval "$as_ac_Header=no"
cristy3ed852e2009-09-05 21:47:34 +000020709fi
cristy3ed852e2009-09-05 21:47:34 +000020710rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20711fi
cristy8b350f62009-11-15 23:12:43 +000020712eval ac_res=\$$as_ac_Header
20713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cristy3ed852e2009-09-05 21:47:34 +000020714$as_echo "$ac_res" >&6; }
cristy8b350f62009-11-15 23:12:43 +000020715eval as_val=\$$as_ac_Header
20716 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020717 cat >>confdefs.h <<_ACEOF
20718#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20719_ACEOF
20720
20721ac_header_dirent=$ac_hdr; break
20722fi
20723
20724done
20725# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20726if test $ac_header_dirent = dirent.h; then
cristy8b350f62009-11-15 23:12:43 +000020727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000020728$as_echo_n "checking for library containing opendir... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020729if test "${ac_cv_search_opendir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020730 $as_echo_n "(cached) " >&6
20731else
20732 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000020733cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020734/* end confdefs.h. */
20735
20736/* Override any GCC internal prototype to avoid an error.
20737 Use char because int might match the return type of a GCC
20738 builtin and then its argument prototype would still apply. */
20739#ifdef __cplusplus
20740extern "C"
20741#endif
20742char opendir ();
20743int
20744main ()
20745{
20746return opendir ();
20747 ;
20748 return 0;
20749}
20750_ACEOF
20751for ac_lib in '' dir; do
20752 if test -z "$ac_lib"; then
20753 ac_res="none required"
20754 else
20755 ac_res=-l$ac_lib
20756 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20757 fi
cristy8b350f62009-11-15 23:12:43 +000020758 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020759 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000020760fi
cristy8b350f62009-11-15 23:12:43 +000020761rm -f core conftest.err conftest.$ac_objext \
20762 conftest$ac_exeext
20763 if test "${ac_cv_search_opendir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020764 break
20765fi
20766done
cristy8b350f62009-11-15 23:12:43 +000020767if test "${ac_cv_search_opendir+set}" = set; then :
20768
cristy3ed852e2009-09-05 21:47:34 +000020769else
20770 ac_cv_search_opendir=no
20771fi
20772rm conftest.$ac_ext
20773LIBS=$ac_func_search_save_LIBS
20774fi
cristy8b350f62009-11-15 23:12:43 +000020775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000020776$as_echo "$ac_cv_search_opendir" >&6; }
20777ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000020778if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000020779 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20780
20781fi
20782
20783else
cristy8b350f62009-11-15 23:12:43 +000020784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000020785$as_echo_n "checking for library containing opendir... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020786if test "${ac_cv_search_opendir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020787 $as_echo_n "(cached) " >&6
20788else
20789 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000020790cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020791/* end confdefs.h. */
20792
20793/* Override any GCC internal prototype to avoid an error.
20794 Use char because int might match the return type of a GCC
20795 builtin and then its argument prototype would still apply. */
20796#ifdef __cplusplus
20797extern "C"
20798#endif
20799char opendir ();
20800int
20801main ()
20802{
20803return opendir ();
20804 ;
20805 return 0;
20806}
20807_ACEOF
20808for ac_lib in '' x; do
20809 if test -z "$ac_lib"; then
20810 ac_res="none required"
20811 else
20812 ac_res=-l$ac_lib
20813 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20814 fi
cristy8b350f62009-11-15 23:12:43 +000020815 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020816 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000020817fi
cristy8b350f62009-11-15 23:12:43 +000020818rm -f core conftest.err conftest.$ac_objext \
20819 conftest$ac_exeext
20820 if test "${ac_cv_search_opendir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020821 break
20822fi
20823done
cristy8b350f62009-11-15 23:12:43 +000020824if test "${ac_cv_search_opendir+set}" = set; then :
20825
cristy3ed852e2009-09-05 21:47:34 +000020826else
20827 ac_cv_search_opendir=no
20828fi
20829rm conftest.$ac_ext
20830LIBS=$ac_func_search_save_LIBS
20831fi
cristy8b350f62009-11-15 23:12:43 +000020832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000020833$as_echo "$ac_cv_search_opendir" >&6; }
20834ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000020835if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000020836 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20837
20838fi
20839
20840fi
20841
20842
20843# Check additional headers
cristya0b81c32010-01-22 02:54:33 +000020844for 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 +000020845do :
20846 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20847ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20848eval as_val=\$$as_ac_Header
20849 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020850 cat >>confdefs.h <<_ACEOF
20851#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20852_ACEOF
20853
20854fi
20855
20856done
20857
20858
20859########
20860#
20861# Checks for typedefs, structures, and compiler characteristics.
20862#
20863########
20864
cristy8b350f62009-11-15 23:12:43 +000020865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
cristy3ed852e2009-09-05 21:47:34 +000020866$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020867if test "${ac_cv_header_stdbool_h+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020868 $as_echo_n "(cached) " >&6
20869else
cristy8b350f62009-11-15 23:12:43 +000020870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020871/* end confdefs.h. */
20872
20873#include <stdbool.h>
20874#ifndef bool
20875 "error: bool is not defined"
20876#endif
20877#ifndef false
20878 "error: false is not defined"
20879#endif
20880#if false
20881 "error: false is not 0"
20882#endif
20883#ifndef true
20884 "error: true is not defined"
20885#endif
20886#if true != 1
20887 "error: true is not 1"
20888#endif
20889#ifndef __bool_true_false_are_defined
20890 "error: __bool_true_false_are_defined is not defined"
20891#endif
20892
20893 struct s { _Bool s: 1; _Bool t; } s;
20894
20895 char a[true == 1 ? 1 : -1];
20896 char b[false == 0 ? 1 : -1];
20897 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
20898 char d[(bool) 0.5 == true ? 1 : -1];
20899 bool e = &s;
20900 char f[(_Bool) 0.0 == false ? 1 : -1];
20901 char g[true];
20902 char h[sizeof (_Bool)];
20903 char i[sizeof s.t];
20904 enum { j = false, k = true, l = false * true, m = true * 256 };
20905 /* The following fails for
20906 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
20907 _Bool n[m];
20908 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
20909 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
20910# if defined __xlc__ || defined __GNUC__
20911 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
20912 reported by James Lemley on 2005-10-05; see
20913 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
20914 This test is not quite right, since xlc is allowed to
20915 reject this program, as the initializer for xlcbug is
20916 not one of the forms that C requires support for.
20917 However, doing the test right would require a runtime
20918 test, and that would make cross-compilation harder.
20919 Let us hope that IBM fixes the xlc bug, and also adds
20920 support for this kind of constant expression. In the
20921 meantime, this test will reject xlc, which is OK, since
20922 our stdbool.h substitute should suffice. We also test
20923 this with GCC, where it should work, to detect more
20924 quickly whether someone messes up the test in the
20925 future. */
20926 char digs[] = "0123456789";
20927 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
20928# endif
20929 /* Catch a bug in an HP-UX C compiler. See
20930 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
20931 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
20932 */
20933 _Bool q = true;
20934 _Bool *pq = &q;
20935
20936int
20937main ()
20938{
20939
20940 *pq |= q;
20941 *pq |= ! q;
20942 /* Refer to every declared value, to avoid compiler optimizations. */
20943 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
20944 + !m + !n + !o + !p + !q + !pq);
20945
20946 ;
20947 return 0;
20948}
20949_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020950if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020951 ac_cv_header_stdbool_h=yes
20952else
cristy8b350f62009-11-15 23:12:43 +000020953 ac_cv_header_stdbool_h=no
cristy3ed852e2009-09-05 21:47:34 +000020954fi
cristy3ed852e2009-09-05 21:47:34 +000020955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20956fi
cristy8b350f62009-11-15 23:12:43 +000020957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
cristy3ed852e2009-09-05 21:47:34 +000020958$as_echo "$ac_cv_header_stdbool_h" >&6; }
cristy8b350f62009-11-15 23:12:43 +000020959ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
20960if test "x$ac_cv_type__Bool" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020961
20962cat >>confdefs.h <<_ACEOF
20963#define HAVE__BOOL 1
20964_ACEOF
20965
20966
20967fi
20968
20969if test $ac_cv_header_stdbool_h = yes; then
20970
cristy8b350f62009-11-15 23:12:43 +000020971$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020972
20973fi
20974
cristy8b350f62009-11-15 23:12:43 +000020975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000020976$as_echo_n "checking for working volatile... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020977if test "${ac_cv_c_volatile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020978 $as_echo_n "(cached) " >&6
20979else
cristy8b350f62009-11-15 23:12:43 +000020980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020981/* end confdefs.h. */
20982
20983int
20984main ()
20985{
20986
20987volatile int x;
20988int * volatile y = (int *) 0;
20989return !x && !y;
20990 ;
20991 return 0;
20992}
20993_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020994if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020995 ac_cv_c_volatile=yes
20996else
cristy8b350f62009-11-15 23:12:43 +000020997 ac_cv_c_volatile=no
cristy3ed852e2009-09-05 21:47:34 +000020998fi
cristy3ed852e2009-09-05 21:47:34 +000020999rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21000fi
cristy8b350f62009-11-15 23:12:43 +000021001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000021002$as_echo "$ac_cv_c_volatile" >&6; }
21003if test $ac_cv_c_volatile = no; then
21004
cristy8b350f62009-11-15 23:12:43 +000021005$as_echo "#define volatile /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021006
21007fi
21008
cristy8b350f62009-11-15 23:12:43 +000021009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
cristy3ed852e2009-09-05 21:47:34 +000021010$as_echo_n "checking for preprocessor stringizing operator... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021011if test "${ac_cv_c_stringize+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021012 $as_echo_n "(cached) " >&6
21013else
cristy8b350f62009-11-15 23:12:43 +000021014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021015/* end confdefs.h. */
21016#define x(y) #y
21017
21018char *s = x(teststring);
21019_ACEOF
21020if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021021 $EGREP "#teststring" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021022 ac_cv_c_stringize=no
21023else
21024 ac_cv_c_stringize=yes
21025fi
21026rm -f conftest*
21027
21028fi
cristy8b350f62009-11-15 23:12:43 +000021029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
cristy3ed852e2009-09-05 21:47:34 +000021030$as_echo "$ac_cv_c_stringize" >&6; }
21031if test $ac_cv_c_stringize = yes; then
21032
cristy8b350f62009-11-15 23:12:43 +000021033$as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021034
21035fi
21036
cristy8b350f62009-11-15 23:12:43 +000021037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000021038$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021039if test "${ac_cv_header_stat_broken+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021040 $as_echo_n "(cached) " >&6
21041else
cristy8b350f62009-11-15 23:12:43 +000021042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021043/* end confdefs.h. */
21044#include <sys/types.h>
21045#include <sys/stat.h>
21046
21047#if defined S_ISBLK && defined S_IFDIR
21048extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
21049#endif
21050
21051#if defined S_ISBLK && defined S_IFCHR
21052extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
21053#endif
21054
21055#if defined S_ISLNK && defined S_IFREG
21056extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
21057#endif
21058
21059#if defined S_ISSOCK && defined S_IFREG
21060extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
21061#endif
21062
21063_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021064if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021065 ac_cv_header_stat_broken=no
21066else
cristy8b350f62009-11-15 23:12:43 +000021067 ac_cv_header_stat_broken=yes
cristy3ed852e2009-09-05 21:47:34 +000021068fi
cristy3ed852e2009-09-05 21:47:34 +000021069rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21070fi
cristy8b350f62009-11-15 23:12:43 +000021071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000021072$as_echo "$ac_cv_header_stat_broken" >&6; }
21073if test $ac_cv_header_stat_broken = yes; then
21074
cristy8b350f62009-11-15 23:12:43 +000021075$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021076
21077fi
21078
cristy8b350f62009-11-15 23:12:43 +000021079{ $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 +000021080$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021081if test "${ac_cv_header_time+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021082 $as_echo_n "(cached) " >&6
21083else
cristy8b350f62009-11-15 23:12:43 +000021084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021085/* end confdefs.h. */
21086#include <sys/types.h>
21087#include <sys/time.h>
21088#include <time.h>
21089
21090int
21091main ()
21092{
21093if ((struct tm *) 0)
21094return 0;
21095 ;
21096 return 0;
21097}
21098_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021099if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021100 ac_cv_header_time=yes
21101else
cristy8b350f62009-11-15 23:12:43 +000021102 ac_cv_header_time=no
cristy3ed852e2009-09-05 21:47:34 +000021103fi
cristy3ed852e2009-09-05 21:47:34 +000021104rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21105fi
cristy8b350f62009-11-15 23:12:43 +000021106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
cristy3ed852e2009-09-05 21:47:34 +000021107$as_echo "$ac_cv_header_time" >&6; }
21108if test $ac_cv_header_time = yes; then
21109
cristy8b350f62009-11-15 23:12:43 +000021110$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021111
21112fi
21113
cristy8b350f62009-11-15 23:12:43 +000021114{ $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 +000021115$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021116if test "${ac_cv_struct_tm+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021117 $as_echo_n "(cached) " >&6
21118else
cristy8b350f62009-11-15 23:12:43 +000021119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021120/* end confdefs.h. */
21121#include <sys/types.h>
21122#include <time.h>
21123
21124int
21125main ()
21126{
21127struct tm tm;
21128 int *p = &tm.tm_sec;
21129 return !p;
21130 ;
21131 return 0;
21132}
21133_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021134if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021135 ac_cv_struct_tm=time.h
21136else
cristy8b350f62009-11-15 23:12:43 +000021137 ac_cv_struct_tm=sys/time.h
cristy3ed852e2009-09-05 21:47:34 +000021138fi
cristy3ed852e2009-09-05 21:47:34 +000021139rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21140fi
cristy8b350f62009-11-15 23:12:43 +000021141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
cristy3ed852e2009-09-05 21:47:34 +000021142$as_echo "$ac_cv_struct_tm" >&6; }
21143if test $ac_cv_struct_tm = sys/time.h; then
21144
cristy8b350f62009-11-15 23:12:43 +000021145$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021146
21147fi
21148
cristy92703d82010-04-26 00:18:18 +000021149ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
21150#include <$ac_cv_struct_tm>
21151
21152"
21153if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
21154
21155cat >>confdefs.h <<_ACEOF
21156#define HAVE_STRUCT_TM_TM_ZONE 1
21157_ACEOF
21158
21159
21160fi
21161
21162if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21163
21164$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
21165
21166else
21167 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
21168"
21169if test "x$ac_cv_have_decl_tzname" = x""yes; then :
21170 ac_have_decl=1
21171else
21172 ac_have_decl=0
21173fi
21174
21175cat >>confdefs.h <<_ACEOF
21176#define HAVE_DECL_TZNAME $ac_have_decl
21177_ACEOF
21178
21179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
21180$as_echo_n "checking for tzname... " >&6; }
21181if test "${ac_cv_var_tzname+set}" = set; then :
21182 $as_echo_n "(cached) " >&6
21183else
21184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21185/* end confdefs.h. */
21186#include <time.h>
21187#if !HAVE_DECL_TZNAME
21188extern char *tzname[];
21189#endif
21190
21191int
21192main ()
21193{
21194return tzname[0][0];
21195 ;
21196 return 0;
21197}
21198_ACEOF
21199if ac_fn_c_try_link "$LINENO"; then :
21200 ac_cv_var_tzname=yes
21201else
21202 ac_cv_var_tzname=no
21203fi
21204rm -f core conftest.err conftest.$ac_objext \
21205 conftest$ac_exeext conftest.$ac_ext
21206fi
21207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
21208$as_echo "$ac_cv_var_tzname" >&6; }
21209 if test $ac_cv_var_tzname = yes; then
21210
21211$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
21212
21213 fi
21214fi
21215
cristy8b350f62009-11-15 23:12:43 +000021216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
cristy3ed852e2009-09-05 21:47:34 +000021217$as_echo_n "checking whether #! works in shell scripts... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021218if test "${ac_cv_sys_interpreter+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021219 $as_echo_n "(cached) " >&6
21220else
21221 echo '#! /bin/cat
21222exit 69
21223' >conftest
21224chmod u+x conftest
21225(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
21226if test $? -ne 69; then
21227 ac_cv_sys_interpreter=yes
21228else
21229 ac_cv_sys_interpreter=no
21230fi
21231rm -f conftest
21232fi
cristy8b350f62009-11-15 23:12:43 +000021233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
cristy3ed852e2009-09-05 21:47:34 +000021234$as_echo "$ac_cv_sys_interpreter" >&6; }
21235interpval=$ac_cv_sys_interpreter
21236
21237
cristy3ed852e2009-09-05 21:47:34 +000021238# If the C compiler supports the keyword inline, do nothing. Otherwise
21239# define inline to __inline__ or __inline if it accepts one of those,
21240# otherwise define inline to be empty.
cristy8b350f62009-11-15 23:12:43 +000021241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000021242$as_echo_n "checking for inline... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021243if test "${ac_cv_c_inline+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021244 $as_echo_n "(cached) " >&6
21245else
21246 ac_cv_c_inline=no
21247for ac_kw in inline __inline__ __inline; do
cristy8b350f62009-11-15 23:12:43 +000021248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021249/* end confdefs.h. */
21250#ifndef __cplusplus
21251typedef int foo_t;
21252static $ac_kw foo_t static_foo () {return 0; }
21253$ac_kw foo_t foo () {return 0; }
21254#endif
21255
21256_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021257if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021258 ac_cv_c_inline=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000021259fi
cristy3ed852e2009-09-05 21:47:34 +000021260rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21261 test "$ac_cv_c_inline" != no && break
21262done
21263
21264fi
cristy8b350f62009-11-15 23:12:43 +000021265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000021266$as_echo "$ac_cv_c_inline" >&6; }
21267
cristy3ed852e2009-09-05 21:47:34 +000021268case $ac_cv_c_inline in
21269 inline | yes) ;;
21270 *)
21271 case $ac_cv_c_inline in
21272 no) ac_val=;;
21273 *) ac_val=$ac_cv_c_inline;;
21274 esac
21275 cat >>confdefs.h <<_ACEOF
21276#ifndef __cplusplus
21277#define inline $ac_val
21278#endif
21279_ACEOF
21280 ;;
21281esac
21282
21283
21284# If the C compiler supports the keyword restrict, do nothing. Otherwise
21285# define restrict to __restrict__ or __restrict if it accepts one of those,
21286# otherwise define restrict to be empty.
cristy8b350f62009-11-15 23:12:43 +000021287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
cristy3ed852e2009-09-05 21:47:34 +000021288$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021289if test "${ac_cv_c_restrict+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021290 $as_echo_n "(cached) " >&6
21291else
21292 ac_cv_c_restrict=no
21293 # The order here caters to the fact that C++ does not require restrict.
21294 for ac_kw in __restrict __restrict__ _Restrict restrict; do
cristy8b350f62009-11-15 23:12:43 +000021295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021296/* end confdefs.h. */
21297typedef int * int_ptr;
21298 int foo (int_ptr $ac_kw ip) {
21299 return ip[0];
21300 }
21301int
21302main ()
21303{
21304int s[1];
21305 int * $ac_kw t = s;
21306 t[0] = 0;
21307 return foo(t)
21308 ;
21309 return 0;
21310}
21311_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021312if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021313 ac_cv_c_restrict=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000021314fi
cristy3ed852e2009-09-05 21:47:34 +000021315rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21316 test "$ac_cv_c_restrict" != no && break
21317 done
21318
21319fi
cristy8b350f62009-11-15 23:12:43 +000021320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
cristy3ed852e2009-09-05 21:47:34 +000021321$as_echo "$ac_cv_c_restrict" >&6; }
21322
cristy3ed852e2009-09-05 21:47:34 +000021323 case $ac_cv_c_restrict in
21324 restrict) ;;
cristy8b350f62009-11-15 23:12:43 +000021325 no) $as_echo "#define restrict /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021326 ;;
21327 *) cat >>confdefs.h <<_ACEOF
21328#define restrict $ac_cv_c_restrict
21329_ACEOF
21330 ;;
21331 esac
21332
21333
21334# If words are stored with the most significant byte first (like
21335# Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
cristy8b350f62009-11-15 23:12:43 +000021336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000021337$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021338if test "${ac_cv_c_bigendian+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021339 $as_echo_n "(cached) " >&6
21340else
21341 ac_cv_c_bigendian=unknown
21342 # See if we're dealing with a universal compiler.
cristy8b350f62009-11-15 23:12:43 +000021343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021344/* end confdefs.h. */
21345#ifndef __APPLE_CC__
21346 not a universal capable compiler
21347 #endif
21348 typedef int dummy;
21349
21350_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021351if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021352
21353 # Check for potential -arch flags. It is not universal unless
cristy8b350f62009-11-15 23:12:43 +000021354 # there are at least two -arch flags with different values.
21355 ac_arch=
21356 ac_prev=
21357 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
21358 if test -n "$ac_prev"; then
21359 case $ac_word in
21360 i?86 | x86_64 | ppc | ppc64)
21361 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
21362 ac_arch=$ac_word
21363 else
21364 ac_cv_c_bigendian=universal
21365 break
21366 fi
21367 ;;
21368 esac
21369 ac_prev=
21370 elif test "x$ac_word" = "x-arch"; then
21371 ac_prev=arch
21372 fi
21373 done
cristy3ed852e2009-09-05 21:47:34 +000021374fi
cristy3ed852e2009-09-05 21:47:34 +000021375rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21376 if test $ac_cv_c_bigendian = unknown; then
21377 # See if sys/param.h defines the BYTE_ORDER macro.
cristy8b350f62009-11-15 23:12:43 +000021378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021379/* end confdefs.h. */
21380#include <sys/types.h>
21381 #include <sys/param.h>
21382
21383int
21384main ()
21385{
21386#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
21387 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
21388 && LITTLE_ENDIAN)
21389 bogus endian macros
21390 #endif
21391
21392 ;
21393 return 0;
21394}
21395_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021396if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021397 # It does; now see whether it defined to BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000021398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021399/* end confdefs.h. */
21400#include <sys/types.h>
21401 #include <sys/param.h>
21402
21403int
21404main ()
21405{
21406#if BYTE_ORDER != BIG_ENDIAN
21407 not big endian
21408 #endif
21409
21410 ;
21411 return 0;
21412}
21413_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021414if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021415 ac_cv_c_bigendian=yes
21416else
cristy8b350f62009-11-15 23:12:43 +000021417 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000021418fi
cristy3ed852e2009-09-05 21:47:34 +000021419rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021420fi
cristy3ed852e2009-09-05 21:47:34 +000021421rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21422 fi
21423 if test $ac_cv_c_bigendian = unknown; then
21424 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
cristy8b350f62009-11-15 23:12:43 +000021425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021426/* end confdefs.h. */
21427#include <limits.h>
21428
21429int
21430main ()
21431{
21432#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
21433 bogus endian macros
21434 #endif
21435
21436 ;
21437 return 0;
21438}
21439_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021440if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021441 # It does; now see whether it defined to _BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000021442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021443/* end confdefs.h. */
21444#include <limits.h>
21445
21446int
21447main ()
21448{
21449#ifndef _BIG_ENDIAN
21450 not big endian
21451 #endif
21452
21453 ;
21454 return 0;
21455}
21456_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021457if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021458 ac_cv_c_bigendian=yes
21459else
cristy8b350f62009-11-15 23:12:43 +000021460 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000021461fi
cristy3ed852e2009-09-05 21:47:34 +000021462rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021463fi
cristy3ed852e2009-09-05 21:47:34 +000021464rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21465 fi
21466 if test $ac_cv_c_bigendian = unknown; then
21467 # Compile a test program.
cristy8b350f62009-11-15 23:12:43 +000021468 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021469 # Try to guess by grepping values from an object file.
cristy8b350f62009-11-15 23:12:43 +000021470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021471/* end confdefs.h. */
21472short int ascii_mm[] =
21473 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
21474 short int ascii_ii[] =
21475 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
21476 int use_ascii (int i) {
21477 return ascii_mm[i] + ascii_ii[i];
21478 }
21479 short int ebcdic_ii[] =
21480 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
21481 short int ebcdic_mm[] =
21482 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
21483 int use_ebcdic (int i) {
21484 return ebcdic_mm[i] + ebcdic_ii[i];
21485 }
21486 extern int foo;
21487
21488int
21489main ()
21490{
21491return use_ascii (foo) == use_ebcdic (foo);
21492 ;
21493 return 0;
21494}
21495_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021496if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021497 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
21498 ac_cv_c_bigendian=yes
21499 fi
21500 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
21501 if test "$ac_cv_c_bigendian" = unknown; then
21502 ac_cv_c_bigendian=no
21503 else
21504 # finding both strings is unlikely to happen, but who knows?
21505 ac_cv_c_bigendian=unknown
21506 fi
21507 fi
cristy3ed852e2009-09-05 21:47:34 +000021508fi
cristy3ed852e2009-09-05 21:47:34 +000021509rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21510else
cristy8b350f62009-11-15 23:12:43 +000021511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021512/* end confdefs.h. */
21513$ac_includes_default
21514int
21515main ()
21516{
21517
21518 /* Are we little or big endian? From Harbison&Steele. */
21519 union
21520 {
21521 long int l;
21522 char c[sizeof (long int)];
21523 } u;
21524 u.l = 1;
21525 return u.c[sizeof (long int) - 1] == 1;
21526
21527 ;
21528 return 0;
21529}
21530_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021531if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021532 ac_cv_c_bigendian=no
21533else
cristy8b350f62009-11-15 23:12:43 +000021534 ac_cv_c_bigendian=yes
cristy3ed852e2009-09-05 21:47:34 +000021535fi
cristy8b350f62009-11-15 23:12:43 +000021536rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21537 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021538fi
21539
cristy3ed852e2009-09-05 21:47:34 +000021540 fi
21541fi
cristy8b350f62009-11-15 23:12:43 +000021542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000021543$as_echo "$ac_cv_c_bigendian" >&6; }
21544 case $ac_cv_c_bigendian in #(
21545 yes)
cristy8b350f62009-11-15 23:12:43 +000021546 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021547;; #(
21548 no)
21549 ;; #(
21550 universal)
21551
cristy8b350f62009-11-15 23:12:43 +000021552$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021553
21554 ;; #(
21555 *)
cristy8b350f62009-11-15 23:12:43 +000021556 as_fn_error "unknown endianness
21557 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000021558 esac
21559
21560
21561# Define mode_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000021562ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
21563if test "x$ac_cv_type_mode_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021564
cristy3ed852e2009-09-05 21:47:34 +000021565else
21566
21567cat >>confdefs.h <<_ACEOF
21568#define mode_t int
21569_ACEOF
21570
21571fi
21572
21573
21574# Define off_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000021575ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
21576if test "x$ac_cv_type_off_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021577
cristy3ed852e2009-09-05 21:47:34 +000021578else
21579
21580cat >>confdefs.h <<_ACEOF
21581#define off_t long int
21582_ACEOF
21583
21584fi
21585
21586
21587# Define pid_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000021588ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
21589if test "x$ac_cv_type_pid_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021590
cristy3ed852e2009-09-05 21:47:34 +000021591else
21592
21593cat >>confdefs.h <<_ACEOF
21594#define pid_t int
21595_ACEOF
21596
21597fi
21598
21599
21600# Define size_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000021601ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
21602if test "x$ac_cv_type_size_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021603
cristy3ed852e2009-09-05 21:47:34 +000021604else
21605
21606cat >>confdefs.h <<_ACEOF
21607#define size_t unsigned int
21608_ACEOF
21609
21610fi
21611
21612
21613# Define ssize_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000021614ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
21615if test "x$ac_cv_type_ssize_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021616
cristy3ed852e2009-09-05 21:47:34 +000021617else
21618
21619cat >>confdefs.h <<_ACEOF
21620#define ssize_t int
21621_ACEOF
21622
21623fi
21624
21625
21626# If the C compiler supports a working long double type with more range
21627# or precision than the double type, define HAVE_LONG_DOUBLE.
21628
cristy8b350f62009-11-15 23:12:43 +000021629 { $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 +000021630$as_echo_n "checking for long double with more range or precision than double... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021631if test "${ac_cv_type_long_double_wider+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021632 $as_echo_n "(cached) " >&6
21633else
cristy8b350f62009-11-15 23:12:43 +000021634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021635/* end confdefs.h. */
21636#include <float.h>
21637 long double const a[] =
21638 {
21639 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
21640 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
21641 };
21642 long double
21643 f (long double x)
21644 {
21645 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
21646 + (x ? f (x) : 'c'));
21647 }
21648
21649int
21650main ()
21651{
21652static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
21653 + (DBL_MANT_DIG < LDBL_MANT_DIG)
21654 - (LDBL_MAX_EXP < DBL_MAX_EXP)
21655 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
21656 && (int) LDBL_EPSILON == 0
21657 )];
21658test_array [0] = 0
21659
21660 ;
21661 return 0;
21662}
21663_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021664if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021665 ac_cv_type_long_double_wider=yes
21666else
cristy8b350f62009-11-15 23:12:43 +000021667 ac_cv_type_long_double_wider=no
cristy3ed852e2009-09-05 21:47:34 +000021668fi
cristy3ed852e2009-09-05 21:47:34 +000021669rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21670fi
cristy8b350f62009-11-15 23:12:43 +000021671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
cristy3ed852e2009-09-05 21:47:34 +000021672$as_echo "$ac_cv_type_long_double_wider" >&6; }
21673 if test $ac_cv_type_long_double_wider = yes; then
21674
cristy8b350f62009-11-15 23:12:43 +000021675$as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021676
21677 fi
21678
21679
21680# If the C type char is unsigned, define __CHAR_UNSIGNED__, unless the
21681# C compiler predefines it.
cristy8b350f62009-11-15 23:12:43 +000021682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000021683$as_echo_n "checking whether char is unsigned... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021684if test "${ac_cv_c_char_unsigned+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021685 $as_echo_n "(cached) " >&6
21686else
cristy8b350f62009-11-15 23:12:43 +000021687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021688/* end confdefs.h. */
21689$ac_includes_default
21690int
21691main ()
21692{
21693static int test_array [1 - 2 * !(((char) -1) < 0)];
21694test_array [0] = 0
21695
21696 ;
21697 return 0;
21698}
21699_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021700if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021701 ac_cv_c_char_unsigned=no
21702else
cristy8b350f62009-11-15 23:12:43 +000021703 ac_cv_c_char_unsigned=yes
cristy3ed852e2009-09-05 21:47:34 +000021704fi
cristy3ed852e2009-09-05 21:47:34 +000021705rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21706fi
cristy8b350f62009-11-15 23:12:43 +000021707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000021708$as_echo "$ac_cv_c_char_unsigned" >&6; }
21709if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
cristy8b350f62009-11-15 23:12:43 +000021710 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021711
21712fi
21713
21714
21715# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
21716# The cast to long int works around a bug in the HP C Compiler
21717# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21718# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21719# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
cristy3ed852e2009-09-05 21:47:34 +000021721$as_echo_n "checking size of signed short... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021722if test "${ac_cv_sizeof_signed_short+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021723 $as_echo_n "(cached) " >&6
21724else
cristy8b350f62009-11-15 23:12:43 +000021725 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 +000021726
cristy3ed852e2009-09-05 21:47:34 +000021727else
cristy8b350f62009-11-15 23:12:43 +000021728 if test "$ac_cv_type_signed_short" = yes; then
21729 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021730$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000021731{ as_fn_set_status 77
21732as_fn_error "cannot compute sizeof (signed short)
21733See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000021734 else
21735 ac_cv_sizeof_signed_short=0
21736 fi
21737fi
cristy8b350f62009-11-15 23:12:43 +000021738
cristy3ed852e2009-09-05 21:47:34 +000021739fi
cristy8b350f62009-11-15 23:12:43 +000021740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000021741$as_echo "$ac_cv_sizeof_signed_short" >&6; }
21742
21743
21744
21745cat >>confdefs.h <<_ACEOF
21746#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
21747_ACEOF
21748
21749
21750
21751# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
21752# The cast to long int works around a bug in the HP C Compiler
21753# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21754# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21755# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
cristy3ed852e2009-09-05 21:47:34 +000021757$as_echo_n "checking size of unsigned short... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021758if test "${ac_cv_sizeof_unsigned_short+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021759 $as_echo_n "(cached) " >&6
21760else
cristy8b350f62009-11-15 23:12:43 +000021761 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short))" "ac_cv_sizeof_unsigned_short" "$ac_includes_default"; then :
cristy3ed852e2009-09-05 21:47:34 +000021762
cristy3ed852e2009-09-05 21:47:34 +000021763else
cristy8b350f62009-11-15 23:12:43 +000021764 if test "$ac_cv_type_unsigned_short" = yes; then
21765 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021766$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000021767{ as_fn_set_status 77
21768as_fn_error "cannot compute sizeof (unsigned short)
21769See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000021770 else
21771 ac_cv_sizeof_unsigned_short=0
21772 fi
21773fi
cristy8b350f62009-11-15 23:12:43 +000021774
cristy3ed852e2009-09-05 21:47:34 +000021775fi
cristy8b350f62009-11-15 23:12:43 +000021776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000021777$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
21778
21779
21780
21781cat >>confdefs.h <<_ACEOF
21782#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
21783_ACEOF
21784
21785
21786
21787# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
21788# The cast to long int works around a bug in the HP C Compiler
21789# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21790# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21791# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
cristy3ed852e2009-09-05 21:47:34 +000021793$as_echo_n "checking size of signed int... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021794if test "${ac_cv_sizeof_signed_int+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021795 $as_echo_n "(cached) " >&6
21796else
cristy8b350f62009-11-15 23:12:43 +000021797 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 +000021798
cristy3ed852e2009-09-05 21:47:34 +000021799else
cristy8b350f62009-11-15 23:12:43 +000021800 if test "$ac_cv_type_signed_int" = yes; then
21801 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021802$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000021803{ as_fn_set_status 77
21804as_fn_error "cannot compute sizeof (signed int)
21805See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000021806 else
21807 ac_cv_sizeof_signed_int=0
21808 fi
21809fi
cristy8b350f62009-11-15 23:12:43 +000021810
cristy3ed852e2009-09-05 21:47:34 +000021811fi
cristy8b350f62009-11-15 23:12:43 +000021812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000021813$as_echo "$ac_cv_sizeof_signed_int" >&6; }
21814
21815
21816
21817cat >>confdefs.h <<_ACEOF
21818#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
21819_ACEOF
21820
21821
21822
21823# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
21824# The cast to long int works around a bug in the HP C Compiler
21825# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21826# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21827# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
cristy3ed852e2009-09-05 21:47:34 +000021829$as_echo_n "checking size of unsigned int... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021830if test "${ac_cv_sizeof_unsigned_int+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021831 $as_echo_n "(cached) " >&6
21832else
cristy8b350f62009-11-15 23:12:43 +000021833 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 +000021834
cristy3ed852e2009-09-05 21:47:34 +000021835else
cristy8b350f62009-11-15 23:12:43 +000021836 if test "$ac_cv_type_unsigned_int" = yes; then
21837 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021838$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000021839{ as_fn_set_status 77
21840as_fn_error "cannot compute sizeof (unsigned int)
21841See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000021842 else
21843 ac_cv_sizeof_unsigned_int=0
21844 fi
21845fi
cristy8b350f62009-11-15 23:12:43 +000021846
cristy3ed852e2009-09-05 21:47:34 +000021847fi
cristy8b350f62009-11-15 23:12:43 +000021848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000021849$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
21850
21851
21852
21853cat >>confdefs.h <<_ACEOF
21854#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
21855_ACEOF
21856
21857
21858
21859# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
21860# The cast to long int works around a bug in the HP C Compiler
21861# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21862# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21863# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021865$as_echo_n "checking size of signed long... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021866if test "${ac_cv_sizeof_signed_long+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021867 $as_echo_n "(cached) " >&6
21868else
cristy8b350f62009-11-15 23:12:43 +000021869 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 +000021870
cristy3ed852e2009-09-05 21:47:34 +000021871else
cristy8b350f62009-11-15 23:12:43 +000021872 if test "$ac_cv_type_signed_long" = yes; then
21873 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021874$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000021875{ as_fn_set_status 77
21876as_fn_error "cannot compute sizeof (signed long)
21877See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000021878 else
21879 ac_cv_sizeof_signed_long=0
21880 fi
21881fi
cristy8b350f62009-11-15 23:12:43 +000021882
cristy3ed852e2009-09-05 21:47:34 +000021883fi
cristy8b350f62009-11-15 23:12:43 +000021884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021885$as_echo "$ac_cv_sizeof_signed_long" >&6; }
21886
21887
21888
21889cat >>confdefs.h <<_ACEOF
21890#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
21891_ACEOF
21892
21893
21894
21895# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
21896# The cast to long int works around a bug in the HP C Compiler
21897# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21898# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21899# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021901$as_echo_n "checking size of unsigned long... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021902if test "${ac_cv_sizeof_unsigned_long+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021903 $as_echo_n "(cached) " >&6
21904else
cristy8b350f62009-11-15 23:12:43 +000021905 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 +000021906
cristy3ed852e2009-09-05 21:47:34 +000021907else
cristy8b350f62009-11-15 23:12:43 +000021908 if test "$ac_cv_type_unsigned_long" = yes; then
21909 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021910$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000021911{ as_fn_set_status 77
21912as_fn_error "cannot compute sizeof (unsigned long)
21913See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000021914 else
21915 ac_cv_sizeof_unsigned_long=0
21916 fi
21917fi
cristy8b350f62009-11-15 23:12:43 +000021918
cristy3ed852e2009-09-05 21:47:34 +000021919fi
cristy8b350f62009-11-15 23:12:43 +000021920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021921$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
21922
21923
21924
21925cat >>confdefs.h <<_ACEOF
21926#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
21927_ACEOF
21928
21929
21930
21931# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If
21932# 'signed long long' is not supported then the value defined is zero.
21933# The cast to long int works around a bug in the HP C Compiler
21934# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21935# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21936# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021938$as_echo_n "checking size of signed long long... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021939if test "${ac_cv_sizeof_signed_long_long+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021940 $as_echo_n "(cached) " >&6
21941else
cristy8b350f62009-11-15 23:12:43 +000021942 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 +000021943
cristy3ed852e2009-09-05 21:47:34 +000021944else
cristy8b350f62009-11-15 23:12:43 +000021945 if test "$ac_cv_type_signed_long_long" = yes; then
21946 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021947$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000021948{ as_fn_set_status 77
21949as_fn_error "cannot compute sizeof (signed long long)
21950See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000021951 else
21952 ac_cv_sizeof_signed_long_long=0
21953 fi
21954fi
cristy8b350f62009-11-15 23:12:43 +000021955
cristy3ed852e2009-09-05 21:47:34 +000021956fi
cristy8b350f62009-11-15 23:12:43 +000021957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021958$as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
21959
21960
21961
21962cat >>confdefs.h <<_ACEOF
21963#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
21964_ACEOF
21965
21966
21967
21968# Obtain size of a 'unsigned long long' and define as
21969# SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not
21970# supported then the value defined is zero.
21971# The cast to long int works around a bug in the HP C Compiler
21972# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21973# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21974# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021976$as_echo_n "checking size of unsigned long long... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021977if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021978 $as_echo_n "(cached) " >&6
21979else
cristy8b350f62009-11-15 23:12:43 +000021980 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 +000021981
cristy3ed852e2009-09-05 21:47:34 +000021982else
cristy8b350f62009-11-15 23:12:43 +000021983 if test "$ac_cv_type_unsigned_long_long" = yes; then
21984 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021985$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000021986{ as_fn_set_status 77
21987as_fn_error "cannot compute sizeof (unsigned long long)
21988See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000021989 else
21990 ac_cv_sizeof_unsigned_long_long=0
21991 fi
21992fi
cristy8b350f62009-11-15 23:12:43 +000021993
cristy3ed852e2009-09-05 21:47:34 +000021994fi
cristy8b350f62009-11-15 23:12:43 +000021995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021996$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
21997
21998
21999
22000cat >>confdefs.h <<_ACEOF
22001#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
22002_ACEOF
22003
22004
22005
22006# Obtain size of off_t and define as SIZEOF_OFF_T
22007# The cast to long int works around a bug in the HP C Compiler
22008# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22009# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22010# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000022011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000022012$as_echo_n "checking size of off_t... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022013if test "${ac_cv_sizeof_off_t+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022014 $as_echo_n "(cached) " >&6
22015else
cristy8b350f62009-11-15 23:12:43 +000022016 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 +000022017
cristy3ed852e2009-09-05 21:47:34 +000022018else
cristy8b350f62009-11-15 23:12:43 +000022019 if test "$ac_cv_type_off_t" = yes; then
22020 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000022021$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000022022{ as_fn_set_status 77
22023as_fn_error "cannot compute sizeof (off_t)
22024See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000022025 else
22026 ac_cv_sizeof_off_t=0
22027 fi
22028fi
cristy8b350f62009-11-15 23:12:43 +000022029
cristy3ed852e2009-09-05 21:47:34 +000022030fi
cristy8b350f62009-11-15 23:12:43 +000022031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000022032$as_echo "$ac_cv_sizeof_off_t" >&6; }
22033
22034
22035
22036cat >>confdefs.h <<_ACEOF
22037#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
22038_ACEOF
22039
22040
22041
22042# Obtain size of size_t and define as SIZEOF_SIZE_T
22043# The cast to long int works around a bug in the HP C Compiler
22044# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22045# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22046# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000022047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000022048$as_echo_n "checking size of size_t... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022049if test "${ac_cv_sizeof_size_t+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022050 $as_echo_n "(cached) " >&6
22051else
cristy8b350f62009-11-15 23:12:43 +000022052 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 +000022053
cristy3ed852e2009-09-05 21:47:34 +000022054else
cristy8b350f62009-11-15 23:12:43 +000022055 if test "$ac_cv_type_size_t" = yes; then
22056 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000022057$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000022058{ as_fn_set_status 77
22059as_fn_error "cannot compute sizeof (size_t)
22060See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000022061 else
22062 ac_cv_sizeof_size_t=0
22063 fi
22064fi
cristy8b350f62009-11-15 23:12:43 +000022065
cristy3ed852e2009-09-05 21:47:34 +000022066fi
cristy8b350f62009-11-15 23:12:43 +000022067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000022068$as_echo "$ac_cv_sizeof_size_t" >&6; }
22069
22070
22071
22072cat >>confdefs.h <<_ACEOF
22073#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
22074_ACEOF
22075
22076
22077
22078# Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
22079# The cast to long int works around a bug in the HP C Compiler
22080# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22081# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22082# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000022083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
cristy3ed852e2009-09-05 21:47:34 +000022084$as_echo_n "checking size of unsigned int*... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022085if test "${ac_cv_sizeof_unsigned_intp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022086 $as_echo_n "(cached) " >&6
22087else
cristy8b350f62009-11-15 23:12:43 +000022088 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 +000022089
cristy3ed852e2009-09-05 21:47:34 +000022090else
cristy8b350f62009-11-15 23:12:43 +000022091 if test "$ac_cv_type_unsigned_intp" = yes; then
22092 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000022093$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000022094{ as_fn_set_status 77
22095as_fn_error "cannot compute sizeof (unsigned int*)
22096See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000022097 else
22098 ac_cv_sizeof_unsigned_intp=0
22099 fi
22100fi
cristy8b350f62009-11-15 23:12:43 +000022101
cristy3ed852e2009-09-05 21:47:34 +000022102fi
cristy8b350f62009-11-15 23:12:43 +000022103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
cristy3ed852e2009-09-05 21:47:34 +000022104$as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
22105
22106
22107
22108cat >>confdefs.h <<_ACEOF
22109#define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
22110_ACEOF
22111
22112
22113
22114#
22115# Compute sized types for current CPU and compiler options.
22116#
22117
cristy8b350f62009-11-15 23:12:43 +000022118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022119$as_echo_n "checking for signed 8-bit type... " >&6; }
22120INT8_T='signed char'
cristy8b350f62009-11-15 23:12:43 +000022121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT8_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022122$as_echo "$INT8_T" >&6; }
22123
22124
cristy8b350f62009-11-15 23:12:43 +000022125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022126$as_echo_n "checking for unsigned 8-bit type... " >&6; }
22127UINT8_T='unsigned char'
cristy8b350f62009-11-15 23:12:43 +000022128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT8_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022129$as_echo "$UINT8_T" >&6; }
22130
22131
cristy8b350f62009-11-15 23:12:43 +000022132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022133$as_echo_n "checking for signed 16-bit type... " >&6; }
22134INT16_T='signed short'
cristy8b350f62009-11-15 23:12:43 +000022135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT16_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022136$as_echo "$INT16_T" >&6; }
22137
22138
cristy8b350f62009-11-15 23:12:43 +000022139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022140$as_echo_n "checking for unsigned 16-bit type... " >&6; }
22141UINT16_T='unsigned short'
cristy8b350f62009-11-15 23:12:43 +000022142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT16_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022143$as_echo "$UINT16_T" >&6; }
22144
22145
cristy8b350f62009-11-15 23:12:43 +000022146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022147$as_echo_n "checking for signed 32-bit type... " >&6; }
22148INT32_T='none'
22149if test $ac_cv_sizeof_signed_int -eq 4; then
22150 INT32_T='signed int'
22151elif test $ac_cv_sizeof_signed_long -eq 4; then
22152 INT32_T='signed long'
22153fi
cristy8b350f62009-11-15 23:12:43 +000022154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT32_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022155$as_echo "$INT32_T" >&6; }
22156
22157
cristy8b350f62009-11-15 23:12:43 +000022158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022159$as_echo_n "checking for unsigned 32-bit type... " >&6; }
22160UINT32_T='none'
22161if test $ac_cv_sizeof_unsigned_int -eq 4; then
22162 UINT32_T='unsigned int'
22163elif test $ac_cv_sizeof_unsigned_long -eq 4; then
22164 UINT32_T='unsigned long'
22165fi
cristy8b350f62009-11-15 23:12:43 +000022166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT32_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022167$as_echo "$UINT32_T" >&6; }
22168
22169
cristy8b350f62009-11-15 23:12:43 +000022170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022171$as_echo_n "checking for signed 64-bit type... " >&6; }
22172INT64_T='none'
22173if test $ac_cv_sizeof_signed_long -eq 8; then
22174 INT64_T='signed long'
22175elif test $ac_cv_sizeof_signed_long_long -eq 8; then
22176 INT64_T='signed long long'
22177fi
cristy8b350f62009-11-15 23:12:43 +000022178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT64_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022179$as_echo "$INT64_T" >&6; }
22180
22181
cristy8b350f62009-11-15 23:12:43 +000022182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022183$as_echo_n "checking for unsigned 64-bit type... " >&6; }
22184UINT64_T='none'
22185if test $ac_cv_sizeof_unsigned_long -eq 8; then
22186 UINT64_T='unsigned long'
22187elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
22188 UINT64_T='unsigned long long'
22189fi
cristy8b350f62009-11-15 23:12:43 +000022190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT64_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022191$as_echo "$UINT64_T" >&6; }
22192
22193
cristy8b350f62009-11-15 23:12:43 +000022194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022195$as_echo_n "checking for unsigned maximum type... " >&6; }
22196UINTMAX_T='none'
22197if test "$UINT64_T" != 'none'; then
22198 UINTMAX_T=$UINT64_T
22199elif test "$UINT32_T" != 'none'; then
22200 UINTMAX_T=$UINT32_T
22201fi
cristy8b350f62009-11-15 23:12:43 +000022202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTMAX_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022203$as_echo "$UINTMAX_T" >&6; }
22204
22205
cristy8b350f62009-11-15 23:12:43 +000022206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022207$as_echo_n "checking for pointer difference type... " >&6; }
22208UINTPTR_T='none'
22209if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
22210 UINTPTR_T='unsigned long'
22211elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
22212 UINTPTR_T='unsigned long long'
22213fi
cristy8b350f62009-11-15 23:12:43 +000022214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTPTR_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022215$as_echo "$UINTPTR_T" >&6; }
22216
22217
cristy8b350f62009-11-15 23:12:43 +000022218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
cristy3ed852e2009-09-05 21:47:34 +000022219$as_echo_n "checking whether our compiler supports __func__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022220cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022221/* end confdefs.h. */
22222
22223int
22224main ()
22225{
22226{ const char *func = __func__; return(func != 0 ? 0 : 1); }
22227 ;
22228 return 0;
22229}
22230_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022231if ac_fn_c_try_compile "$LINENO"; then :
22232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000022233$as_echo "yes" >&6; }
22234else
cristy8b350f62009-11-15 23:12:43 +000022235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000022236$as_echo "no" >&6; }
cristy8b350f62009-11-15 23:12:43 +000022237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
cristy3ed852e2009-09-05 21:47:34 +000022238$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022240/* end confdefs.h. */
22241
22242int
22243main ()
22244{
22245{ const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
22246 ;
22247 return 0;
22248}
22249_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022250if ac_fn_c_try_compile "$LINENO"; then :
22251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000022252$as_echo "yes" >&6; }
22253
cristy8b350f62009-11-15 23:12:43 +000022254$as_echo "#define __func__ __FUNCTION__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022255
22256else
cristy8b350f62009-11-15 23:12:43 +000022257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000022258$as_echo "no" >&6; }
22259
cristy8b350f62009-11-15 23:12:43 +000022260$as_echo "#define __func__ __FILE__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022261
22262fi
cristy3ed852e2009-09-05 21:47:34 +000022263rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22264fi
cristy3ed852e2009-09-05 21:47:34 +000022265rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22266
22267########
22268#
22269# Check for functions
22270#
22271########
cristy3ed852e2009-09-05 21:47:34 +000022272for ac_header in stdlib.h unistd.h
cristy8b350f62009-11-15 23:12:43 +000022273do :
22274 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22275ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22276eval as_val=\$$as_ac_Header
22277 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022278 cat >>confdefs.h <<_ACEOF
22279#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22280_ACEOF
22281
22282fi
22283
22284done
22285
cristy3ed852e2009-09-05 21:47:34 +000022286for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000022287do :
22288 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
22289if test "x$ac_cv_func_getpagesize" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022290 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022291#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000022292_ACEOF
22293
22294fi
22295done
22296
cristy8b350f62009-11-15 23:12:43 +000022297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap file i/o" >&5
cristy3ed852e2009-09-05 21:47:34 +000022298$as_echo_n "checking for working mmap file i/o... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022299if test "${magick_cv_func_mmap_fileio+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022300 $as_echo_n "(cached) " >&6
22301else
cristy8b350f62009-11-15 23:12:43 +000022302 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022303 magick_cv_func_mmap_fileio=no
22304else
cristy8b350f62009-11-15 23:12:43 +000022305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022306/* end confdefs.h. */
22307$ac_includes_default
22308/* malloc might have been renamed as rpl_malloc. */
22309#undef malloc
22310
22311/*
22312 This test is derived from GNU Autoconf's similar macro.
22313 The purpose of this test is to verify that files may be memory
22314 mapped, and that memory mapping and file I/O are coherent.
22315
22316 The test creates a test file, memory maps the file, updates
22317 the file using the memory map, and then reads the file using
22318 file I/O to verify that the file contains the updates.
22319*/
22320
22321#include <fcntl.h>
22322#include <sys/mman.h>
22323
22324#if !STDC_HEADERS && !HAVE_STDLIB_H
22325char *malloc ();
22326#endif
22327
22328/* This mess was copied from the GNU getpagesize.h. */
22329#if !HAVE_GETPAGESIZE
22330/* Assume that all systems that can run configure have sys/param.h. */
22331# if !HAVE_SYS_PARAM_H
22332# define HAVE_SYS_PARAM_H 1
22333# endif
22334
22335# ifdef _SC_PAGESIZE
22336# define getpagesize() sysconf(_SC_PAGESIZE)
22337# else /* no _SC_PAGESIZE */
22338# if HAVE_SYS_PARAM_H
22339# include <sys/param.h>
22340# ifdef EXEC_PAGESIZE
22341# define getpagesize() EXEC_PAGESIZE
22342# else /* no EXEC_PAGESIZE */
22343# ifdef NBPG
22344# define getpagesize() NBPG * CLSIZE
22345# ifndef CLSIZE
22346# define CLSIZE 1
22347# endif /* no CLSIZE */
22348# else /* no NBPG */
22349# ifdef NBPC
22350# define getpagesize() NBPC
22351# else /* no NBPC */
22352# ifdef PAGESIZE
22353# define getpagesize() PAGESIZE
22354# endif /* PAGESIZE */
22355# endif /* no NBPC */
22356# endif /* no NBPG */
22357# endif /* no EXEC_PAGESIZE */
22358# else /* no HAVE_SYS_PARAM_H */
22359# define getpagesize() 8192 /* punt totally */
22360# endif /* no HAVE_SYS_PARAM_H */
22361# endif /* no _SC_PAGESIZE */
22362
22363#endif /* no HAVE_GETPAGESIZE */
22364
22365int
22366main ()
22367{
22368 char *data, *data2, *data3;
22369 int i, pagesize;
22370 int fd;
22371
22372 pagesize = getpagesize ();
22373
22374 /* First, make a file with some known garbage in it. */
22375 data = (char *) malloc (pagesize);
22376 if (!data)
22377 exit (1);
22378 for (i = 0; i < pagesize; ++i)
22379 *(data + i) = rand ();
22380 umask (0);
22381 fd = creat ("conftest.mmap", 0600);
22382 if (fd < 0)
22383 exit (1);
22384 if (write (fd, data, pagesize) != pagesize)
22385 exit (1);
22386 close (fd);
22387
22388 /* Mmap the file as read/write/shared and verify that we see the
22389 same garbage. */
22390 fd = open ("conftest.mmap", O_RDWR);
22391 if (fd < 0)
22392 exit (1);
22393 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0L);
22394 if (data2 == 0)
22395 exit (1);
22396 for (i = 0; i < pagesize; ++i)
22397 if (*(data + i) != *(data2 + i))
22398 exit (1);
22399
22400 /* Finally, make sure that changes to the mapped area
22401 percolate back to the file as seen by read(). */
22402 for (i = 0; i < pagesize; ++i)
22403 *(data2 + i) = *(data2 + i) + 1;
22404 data3 = (char *) malloc (pagesize);
22405 if (!data3)
22406 exit (1);
22407 if (read (fd, data3, pagesize) != pagesize)
22408 exit (1);
22409 for (i = 0; i < pagesize; ++i)
22410 if (*(data2 + i) != *(data3 + i))
22411 exit (1);
22412 close (fd);
22413 exit (0);
22414}
22415_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022416if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022417 magick_cv_func_mmap_fileio=yes
22418else
cristy8b350f62009-11-15 23:12:43 +000022419 magick_cv_func_mmap_fileio=no
cristy3ed852e2009-09-05 21:47:34 +000022420fi
cristy8b350f62009-11-15 23:12:43 +000022421rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22422 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022423fi
22424
cristy3ed852e2009-09-05 21:47:34 +000022425fi
cristy8b350f62009-11-15 23:12:43 +000022426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $magick_cv_func_mmap_fileio" >&5
cristy3ed852e2009-09-05 21:47:34 +000022427$as_echo "$magick_cv_func_mmap_fileio" >&6; }
22428if test $magick_cv_func_mmap_fileio = yes; then
22429
cristy8b350f62009-11-15 23:12:43 +000022430$as_echo "#define HAVE_MMAP_FILEIO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022431
22432fi
22433rm -f conftest.mmap
22434
cristy8b350f62009-11-15 23:12:43 +000022435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
cristy3ed852e2009-09-05 21:47:34 +000022436$as_echo_n "checking whether closedir returns void... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022437if test "${ac_cv_func_closedir_void+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022438 $as_echo_n "(cached) " >&6
22439else
cristy8b350f62009-11-15 23:12:43 +000022440 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022441 ac_cv_func_closedir_void=yes
22442else
cristy8b350f62009-11-15 23:12:43 +000022443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022444/* end confdefs.h. */
22445$ac_includes_default
22446#include <$ac_header_dirent>
22447#ifndef __cplusplus
22448int closedir ();
22449#endif
22450
22451int
22452main ()
22453{
22454return closedir (opendir (".")) != 0;
22455 ;
22456 return 0;
22457}
22458_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022459if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022460 ac_cv_func_closedir_void=no
22461else
cristy8b350f62009-11-15 23:12:43 +000022462 ac_cv_func_closedir_void=yes
cristy3ed852e2009-09-05 21:47:34 +000022463fi
cristy8b350f62009-11-15 23:12:43 +000022464rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22465 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022466fi
22467
cristy3ed852e2009-09-05 21:47:34 +000022468fi
cristy8b350f62009-11-15 23:12:43 +000022469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
cristy3ed852e2009-09-05 21:47:34 +000022470$as_echo "$ac_cv_func_closedir_void" >&6; }
22471if test $ac_cv_func_closedir_void = yes; then
22472
cristy8b350f62009-11-15 23:12:43 +000022473$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022474
22475fi
22476
cristycd4c5312009-11-22 01:19:08 +000022477
22478
22479
22480 for ac_header in $ac_header_list
cristy8b350f62009-11-15 23:12:43 +000022481do :
22482 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
cristycd4c5312009-11-22 01:19:08 +000022483ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
22484"
cristy8b350f62009-11-15 23:12:43 +000022485eval as_val=\$$as_ac_Header
22486 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022487 cat >>confdefs.h <<_ACEOF
22488#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22489_ACEOF
22490
22491fi
22492
22493done
22494
cristycd4c5312009-11-22 01:19:08 +000022495
22496
22497
22498
22499
22500
22501
cristy3ed852e2009-09-05 21:47:34 +000022502for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000022503do :
22504 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
22505if test "x$ac_cv_func_getpagesize" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022506 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022507#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000022508_ACEOF
22509
22510fi
22511done
22512
cristy8b350f62009-11-15 23:12:43 +000022513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
cristy3ed852e2009-09-05 21:47:34 +000022514$as_echo_n "checking for working mmap... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022515if test "${ac_cv_func_mmap_fixed_mapped+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_mmap_fixed_mapped=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$ac_includes_default
22524/* malloc might have been renamed as rpl_malloc. */
22525#undef malloc
22526
22527/* Thanks to Mike Haertel and Jim Avera for this test.
22528 Here is a matrix of mmap possibilities:
22529 mmap private not fixed
22530 mmap private fixed at somewhere currently unmapped
22531 mmap private fixed at somewhere already mapped
22532 mmap shared not fixed
22533 mmap shared fixed at somewhere currently unmapped
22534 mmap shared fixed at somewhere already mapped
22535 For private mappings, we should verify that changes cannot be read()
22536 back from the file, nor mmap's back from the file at a different
22537 address. (There have been systems where private was not correctly
22538 implemented like the infamous i386 svr4.0, and systems where the
22539 VM page cache was not coherent with the file system buffer cache
22540 like early versions of FreeBSD and possibly contemporary NetBSD.)
22541 For shared mappings, we should conversely verify that changes get
22542 propagated back to all the places they're supposed to be.
22543
22544 Grep wants private fixed already mapped.
22545 The main things grep needs to know about mmap are:
22546 * does it exist and is it safe to write into the mmap'd area
22547 * how to use it (BSD variants) */
22548
22549#include <fcntl.h>
22550#include <sys/mman.h>
22551
22552#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
22553char *malloc ();
22554#endif
22555
22556/* This mess was copied from the GNU getpagesize.h. */
22557#ifndef HAVE_GETPAGESIZE
cristy3ed852e2009-09-05 21:47:34 +000022558# ifdef _SC_PAGESIZE
22559# define getpagesize() sysconf(_SC_PAGESIZE)
22560# else /* no _SC_PAGESIZE */
22561# ifdef HAVE_SYS_PARAM_H
22562# include <sys/param.h>
22563# ifdef EXEC_PAGESIZE
22564# define getpagesize() EXEC_PAGESIZE
22565# else /* no EXEC_PAGESIZE */
22566# ifdef NBPG
22567# define getpagesize() NBPG * CLSIZE
22568# ifndef CLSIZE
22569# define CLSIZE 1
22570# endif /* no CLSIZE */
22571# else /* no NBPG */
22572# ifdef NBPC
22573# define getpagesize() NBPC
22574# else /* no NBPC */
22575# ifdef PAGESIZE
22576# define getpagesize() PAGESIZE
22577# endif /* PAGESIZE */
22578# endif /* no NBPC */
22579# endif /* no NBPG */
22580# endif /* no EXEC_PAGESIZE */
22581# else /* no HAVE_SYS_PARAM_H */
22582# define getpagesize() 8192 /* punt totally */
22583# endif /* no HAVE_SYS_PARAM_H */
22584# endif /* no _SC_PAGESIZE */
22585
22586#endif /* no HAVE_GETPAGESIZE */
22587
22588int
22589main ()
22590{
22591 char *data, *data2, *data3;
cristyc54f5d42009-11-27 21:36:31 +000022592 const char *cdata2;
cristy3ed852e2009-09-05 21:47:34 +000022593 int i, pagesize;
cristycd4c5312009-11-22 01:19:08 +000022594 int fd, fd2;
cristy3ed852e2009-09-05 21:47:34 +000022595
22596 pagesize = getpagesize ();
22597
22598 /* First, make a file with some known garbage in it. */
22599 data = (char *) malloc (pagesize);
22600 if (!data)
22601 return 1;
22602 for (i = 0; i < pagesize; ++i)
22603 *(data + i) = rand ();
22604 umask (0);
22605 fd = creat ("conftest.mmap", 0600);
22606 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000022607 return 2;
cristy3ed852e2009-09-05 21:47:34 +000022608 if (write (fd, data, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000022609 return 3;
cristy3ed852e2009-09-05 21:47:34 +000022610 close (fd);
22611
cristycd4c5312009-11-22 01:19:08 +000022612 /* Next, check that the tail of a page is zero-filled. File must have
22613 non-zero length, otherwise we risk SIGBUS for entire page. */
22614 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
22615 if (fd2 < 0)
22616 return 4;
cristyc54f5d42009-11-27 21:36:31 +000022617 cdata2 = "";
22618 if (write (fd2, cdata2, 1) != 1)
cristycd4c5312009-11-22 01:19:08 +000022619 return 5;
cristyc54f5d42009-11-27 21:36:31 +000022620 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
cristycd4c5312009-11-22 01:19:08 +000022621 if (data2 == MAP_FAILED)
22622 return 6;
22623 for (i = 0; i < pagesize; ++i)
22624 if (*(data2 + i))
22625 return 7;
22626 close (fd2);
22627 if (munmap (data2, pagesize))
22628 return 8;
22629
cristy3ed852e2009-09-05 21:47:34 +000022630 /* Next, try to mmap the file at a fixed address which already has
22631 something else allocated at it. If we can, also make sure that
22632 we see the same garbage. */
22633 fd = open ("conftest.mmap", O_RDWR);
22634 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000022635 return 9;
cristy3ed852e2009-09-05 21:47:34 +000022636 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
22637 MAP_PRIVATE | MAP_FIXED, fd, 0L))
cristycd4c5312009-11-22 01:19:08 +000022638 return 10;
cristy3ed852e2009-09-05 21:47:34 +000022639 for (i = 0; i < pagesize; ++i)
22640 if (*(data + i) != *(data2 + i))
cristycd4c5312009-11-22 01:19:08 +000022641 return 11;
cristy3ed852e2009-09-05 21:47:34 +000022642
22643 /* Finally, make sure that changes to the mapped area do not
22644 percolate back to the file as seen by read(). (This is a bug on
22645 some variants of i386 svr4.0.) */
22646 for (i = 0; i < pagesize; ++i)
22647 *(data2 + i) = *(data2 + i) + 1;
22648 data3 = (char *) malloc (pagesize);
22649 if (!data3)
cristycd4c5312009-11-22 01:19:08 +000022650 return 12;
cristy3ed852e2009-09-05 21:47:34 +000022651 if (read (fd, data3, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000022652 return 13;
cristy3ed852e2009-09-05 21:47:34 +000022653 for (i = 0; i < pagesize; ++i)
22654 if (*(data + i) != *(data3 + i))
cristycd4c5312009-11-22 01:19:08 +000022655 return 14;
cristy3ed852e2009-09-05 21:47:34 +000022656 close (fd);
22657 return 0;
22658}
22659_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022660if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022661 ac_cv_func_mmap_fixed_mapped=yes
22662else
cristy8b350f62009-11-15 23:12:43 +000022663 ac_cv_func_mmap_fixed_mapped=no
cristy3ed852e2009-09-05 21:47:34 +000022664fi
cristy8b350f62009-11-15 23:12:43 +000022665rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22666 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022667fi
22668
cristy3ed852e2009-09-05 21:47:34 +000022669fi
cristy8b350f62009-11-15 23:12:43 +000022670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000022671$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
22672if test $ac_cv_func_mmap_fixed_mapped = yes; then
22673
cristy8b350f62009-11-15 23:12:43 +000022674$as_echo "#define HAVE_MMAP 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022675
22676fi
cristycd4c5312009-11-22 01:19:08 +000022677rm -f conftest.mmap conftest.txt
cristy3ed852e2009-09-05 21:47:34 +000022678
cristy3ed852e2009-09-05 21:47:34 +000022679for ac_header in vfork.h
cristy8b350f62009-11-15 23:12:43 +000022680do :
22681 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
22682if test "x$ac_cv_header_vfork_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022683 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022684#define HAVE_VFORK_H 1
cristy3ed852e2009-09-05 21:47:34 +000022685_ACEOF
22686
22687fi
22688
22689done
22690
cristy3ed852e2009-09-05 21:47:34 +000022691for ac_func in fork vfork
cristy8b350f62009-11-15 23:12:43 +000022692do :
22693 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22694ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22695eval as_val=\$$as_ac_var
22696 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022697 cat >>confdefs.h <<_ACEOF
22698#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22699_ACEOF
22700
22701fi
22702done
22703
22704if test "x$ac_cv_func_fork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000022705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
cristy3ed852e2009-09-05 21:47:34 +000022706$as_echo_n "checking for working fork... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022707if test "${ac_cv_func_fork_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022708 $as_echo_n "(cached) " >&6
22709else
cristy8b350f62009-11-15 23:12:43 +000022710 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022711 ac_cv_func_fork_works=cross
22712else
cristy8b350f62009-11-15 23:12:43 +000022713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022714/* end confdefs.h. */
22715$ac_includes_default
22716int
22717main ()
22718{
22719
22720 /* By Ruediger Kuhlmann. */
22721 return fork () < 0;
22722
22723 ;
22724 return 0;
22725}
22726_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022727if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022728 ac_cv_func_fork_works=yes
22729else
cristy8b350f62009-11-15 23:12:43 +000022730 ac_cv_func_fork_works=no
cristy3ed852e2009-09-05 21:47:34 +000022731fi
cristy8b350f62009-11-15 23:12:43 +000022732rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22733 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022734fi
22735
cristy3ed852e2009-09-05 21:47:34 +000022736fi
cristy8b350f62009-11-15 23:12:43 +000022737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000022738$as_echo "$ac_cv_func_fork_works" >&6; }
22739
22740else
22741 ac_cv_func_fork_works=$ac_cv_func_fork
22742fi
22743if test "x$ac_cv_func_fork_works" = xcross; then
22744 case $host in
22745 *-*-amigaos* | *-*-msdosdjgpp*)
22746 # Override, as these systems have only a dummy fork() stub
22747 ac_cv_func_fork_works=no
22748 ;;
22749 *)
22750 ac_cv_func_fork_works=yes
22751 ;;
22752 esac
cristy8b350f62009-11-15 23:12:43 +000022753 { $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 +000022754$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
22755fi
22756ac_cv_func_vfork_works=$ac_cv_func_vfork
22757if test "x$ac_cv_func_vfork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000022758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
cristy3ed852e2009-09-05 21:47:34 +000022759$as_echo_n "checking for working vfork... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022760if test "${ac_cv_func_vfork_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022761 $as_echo_n "(cached) " >&6
22762else
cristy8b350f62009-11-15 23:12:43 +000022763 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022764 ac_cv_func_vfork_works=cross
22765else
cristy8b350f62009-11-15 23:12:43 +000022766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022767/* end confdefs.h. */
22768/* Thanks to Paul Eggert for this test. */
22769$ac_includes_default
22770#include <sys/wait.h>
22771#ifdef HAVE_VFORK_H
22772# include <vfork.h>
22773#endif
22774/* On some sparc systems, changes by the child to local and incoming
22775 argument registers are propagated back to the parent. The compiler
22776 is told about this with #include <vfork.h>, but some compilers
22777 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
22778 static variable whose address is put into a register that is
22779 clobbered by the vfork. */
22780static void
22781#ifdef __cplusplus
22782sparc_address_test (int arg)
22783# else
22784sparc_address_test (arg) int arg;
22785#endif
22786{
22787 static pid_t child;
22788 if (!child) {
22789 child = vfork ();
22790 if (child < 0) {
22791 perror ("vfork");
22792 _exit(2);
22793 }
22794 if (!child) {
22795 arg = getpid();
22796 write(-1, "", 0);
22797 _exit (arg);
22798 }
22799 }
22800}
22801
22802int
22803main ()
22804{
22805 pid_t parent = getpid ();
22806 pid_t child;
22807
22808 sparc_address_test (0);
22809
22810 child = vfork ();
22811
22812 if (child == 0) {
22813 /* Here is another test for sparc vfork register problems. This
22814 test uses lots of local variables, at least as many local
22815 variables as main has allocated so far including compiler
22816 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
22817 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
22818 reuse the register of parent for one of the local variables,
22819 since it will think that parent can't possibly be used any more
22820 in this routine. Assigning to the local variable will thus
22821 munge parent in the parent process. */
22822 pid_t
22823 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22824 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22825 /* Convince the compiler that p..p7 are live; otherwise, it might
22826 use the same hardware register for all 8 local variables. */
22827 if (p != p1 || p != p2 || p != p3 || p != p4
22828 || p != p5 || p != p6 || p != p7)
22829 _exit(1);
22830
22831 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22832 from child file descriptors. If the child closes a descriptor
22833 before it execs or exits, this munges the parent's descriptor
22834 as well. Test for this by closing stdout in the child. */
22835 _exit(close(fileno(stdout)) != 0);
22836 } else {
22837 int status;
22838 struct stat st;
22839
22840 while (wait(&status) != child)
22841 ;
22842 return (
22843 /* Was there some problem with vforking? */
22844 child < 0
22845
22846 /* Did the child fail? (This shouldn't happen.) */
22847 || status
22848
22849 /* Did the vfork/compiler bug occur? */
22850 || parent != getpid()
22851
22852 /* Did the file descriptor bug occur? */
22853 || fstat(fileno(stdout), &st) != 0
22854 );
22855 }
22856}
22857_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022858if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022859 ac_cv_func_vfork_works=yes
22860else
cristy8b350f62009-11-15 23:12:43 +000022861 ac_cv_func_vfork_works=no
cristy3ed852e2009-09-05 21:47:34 +000022862fi
cristy8b350f62009-11-15 23:12:43 +000022863rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22864 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022865fi
22866
cristy3ed852e2009-09-05 21:47:34 +000022867fi
cristy8b350f62009-11-15 23:12:43 +000022868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000022869$as_echo "$ac_cv_func_vfork_works" >&6; }
22870
22871fi;
22872if test "x$ac_cv_func_fork_works" = xcross; then
22873 ac_cv_func_vfork_works=$ac_cv_func_vfork
cristy8b350f62009-11-15 23:12:43 +000022874 { $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 +000022875$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
22876fi
22877
22878if test "x$ac_cv_func_vfork_works" = xyes; then
22879
cristy8b350f62009-11-15 23:12:43 +000022880$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022881
22882else
22883
cristy8b350f62009-11-15 23:12:43 +000022884$as_echo "#define vfork fork" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022885
22886fi
22887if test "x$ac_cv_func_fork_works" = xyes; then
22888
cristy8b350f62009-11-15 23:12:43 +000022889$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022890
22891fi
22892
cristy8b350f62009-11-15 23:12:43 +000022893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000022894$as_echo_n "checking for working memcmp... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022895if test "${ac_cv_func_memcmp_working+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022896 $as_echo_n "(cached) " >&6
22897else
cristy8b350f62009-11-15 23:12:43 +000022898 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022899 ac_cv_func_memcmp_working=no
22900else
cristy8b350f62009-11-15 23:12:43 +000022901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022902/* end confdefs.h. */
22903$ac_includes_default
22904int
22905main ()
22906{
22907
22908 /* Some versions of memcmp are not 8-bit clean. */
22909 char c0 = '\100', c1 = '\200', c2 = '\201';
22910 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
22911 return 1;
22912
22913 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
22914 or more and with at least one buffer not starting on a 4-byte boundary.
22915 William Lewis provided this test program. */
22916 {
22917 char foo[21];
22918 char bar[21];
22919 int i;
22920 for (i = 0; i < 4; i++)
22921 {
22922 char *a = foo + i;
22923 char *b = bar + i;
22924 strcpy (a, "--------01111111");
22925 strcpy (b, "--------10000000");
22926 if (memcmp (a, b, 16) >= 0)
22927 return 1;
22928 }
22929 return 0;
22930 }
22931
22932 ;
22933 return 0;
22934}
22935_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022936if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022937 ac_cv_func_memcmp_working=yes
22938else
cristy8b350f62009-11-15 23:12:43 +000022939 ac_cv_func_memcmp_working=no
cristy3ed852e2009-09-05 21:47:34 +000022940fi
cristy8b350f62009-11-15 23:12:43 +000022941rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22942 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022943fi
22944
cristy3ed852e2009-09-05 21:47:34 +000022945fi
cristy8b350f62009-11-15 23:12:43 +000022946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
cristy3ed852e2009-09-05 21:47:34 +000022947$as_echo "$ac_cv_func_memcmp_working" >&6; }
22948test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
22949 *" memcmp.$ac_objext "* ) ;;
22950 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
22951 ;;
22952esac
22953
22954
cristy3ed852e2009-09-05 21:47:34 +000022955for ac_header in sys/select.h sys/socket.h
cristy8b350f62009-11-15 23:12:43 +000022956do :
22957 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22958ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22959eval as_val=\$$as_ac_Header
22960 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022961 cat >>confdefs.h <<_ACEOF
22962#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22963_ACEOF
22964
22965fi
22966
22967done
22968
cristy8b350f62009-11-15 23:12:43 +000022969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
cristy3ed852e2009-09-05 21:47:34 +000022970$as_echo_n "checking types of arguments for select... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022971if test "${ac_cv_func_select_args+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022972 $as_echo_n "(cached) " >&6
22973else
22974 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
22975 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
22976 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
cristy8b350f62009-11-15 23:12:43 +000022977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022978/* end confdefs.h. */
22979$ac_includes_default
22980#ifdef HAVE_SYS_SELECT_H
22981# include <sys/select.h>
22982#endif
22983#ifdef HAVE_SYS_SOCKET_H
22984# include <sys/socket.h>
22985#endif
22986
22987int
22988main ()
22989{
22990extern int select ($ac_arg1,
22991 $ac_arg234, $ac_arg234, $ac_arg234,
22992 $ac_arg5);
22993 ;
22994 return 0;
22995}
22996_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022997if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022998 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
cristy3ed852e2009-09-05 21:47:34 +000022999fi
cristy3ed852e2009-09-05 21:47:34 +000023000rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23001 done
23002 done
23003done
23004# Provide a safe default value.
23005: ${ac_cv_func_select_args='int,int *,struct timeval *'}
23006
23007fi
cristy8b350f62009-11-15 23:12:43 +000023008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
cristy3ed852e2009-09-05 21:47:34 +000023009$as_echo "$ac_cv_func_select_args" >&6; }
23010ac_save_IFS=$IFS; IFS=','
23011set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
23012IFS=$ac_save_IFS
23013shift
23014
23015cat >>confdefs.h <<_ACEOF
23016#define SELECT_TYPE_ARG1 $1
23017_ACEOF
23018
23019
23020cat >>confdefs.h <<_ACEOF
23021#define SELECT_TYPE_ARG234 ($2)
23022_ACEOF
23023
23024
23025cat >>confdefs.h <<_ACEOF
23026#define SELECT_TYPE_ARG5 ($3)
23027_ACEOF
23028
23029rm -f conftest*
23030
cristy8b350f62009-11-15 23:12:43 +000023031if test "${ac_cv_func_setvbuf_reversed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023032 $as_echo_n "(cached) " >&6
23033else
23034 ac_cv_func_setvbuf_reversed=no
23035fi
23036
23037
cristy8b350f62009-11-15 23:12:43 +000023038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
cristy3ed852e2009-09-05 21:47:34 +000023039$as_echo_n "checking return type of signal handlers... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023040if test "${ac_cv_type_signal+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023041 $as_echo_n "(cached) " >&6
23042else
cristy8b350f62009-11-15 23:12:43 +000023043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023044/* end confdefs.h. */
23045#include <sys/types.h>
23046#include <signal.h>
23047
23048int
23049main ()
23050{
23051return *(signal (0, 0)) (0) == 1;
23052 ;
23053 return 0;
23054}
23055_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023056if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023057 ac_cv_type_signal=int
23058else
cristy8b350f62009-11-15 23:12:43 +000023059 ac_cv_type_signal=void
cristy3ed852e2009-09-05 21:47:34 +000023060fi
cristy3ed852e2009-09-05 21:47:34 +000023061rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23062fi
cristy8b350f62009-11-15 23:12:43 +000023063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
cristy3ed852e2009-09-05 21:47:34 +000023064$as_echo "$ac_cv_type_signal" >&6; }
23065
23066cat >>confdefs.h <<_ACEOF
23067#define RETSIGTYPE $ac_cv_type_signal
23068_ACEOF
23069
23070
cristy8b350f62009-11-15 23:12:43 +000023071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000023072$as_echo_n "checking for working strtod... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023073if test "${ac_cv_func_strtod+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023074 $as_echo_n "(cached) " >&6
23075else
cristy8b350f62009-11-15 23:12:43 +000023076 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023077 ac_cv_func_strtod=no
23078else
cristy8b350f62009-11-15 23:12:43 +000023079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023080/* end confdefs.h. */
23081
23082$ac_includes_default
23083#ifndef strtod
23084double strtod ();
23085#endif
23086int
23087main()
23088{
23089 {
23090 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
23091 char *string = " +69";
23092 char *term;
23093 double value;
23094 value = strtod (string, &term);
23095 if (value != 69 || term != (string + 4))
23096 return 1;
23097 }
23098
23099 {
23100 /* Under Solaris 2.4, strtod returns the wrong value for the
23101 terminating character under some conditions. */
23102 char *string = "NaN";
23103 char *term;
23104 strtod (string, &term);
23105 if (term != string && *(term - 1) == 0)
23106 return 1;
23107 }
23108 return 0;
23109}
23110
23111_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023112if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023113 ac_cv_func_strtod=yes
23114else
cristy8b350f62009-11-15 23:12:43 +000023115 ac_cv_func_strtod=no
cristy3ed852e2009-09-05 21:47:34 +000023116fi
cristy8b350f62009-11-15 23:12:43 +000023117rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23118 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023119fi
23120
cristy3ed852e2009-09-05 21:47:34 +000023121fi
cristy8b350f62009-11-15 23:12:43 +000023122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000023123$as_echo "$ac_cv_func_strtod" >&6; }
23124if test $ac_cv_func_strtod = no; then
23125 case " $LIBOBJS " in
23126 *" strtod.$ac_objext "* ) ;;
23127 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
23128 ;;
23129esac
23130
cristy8b350f62009-11-15 23:12:43 +000023131ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
23132if test "x$ac_cv_func_pow" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023133
cristy3ed852e2009-09-05 21:47:34 +000023134fi
23135
cristy3ed852e2009-09-05 21:47:34 +000023136if test $ac_cv_func_pow = no; then
cristy8b350f62009-11-15 23:12:43 +000023137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
cristy3ed852e2009-09-05 21:47:34 +000023138$as_echo_n "checking for pow in -lm... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023139if test "${ac_cv_lib_m_pow+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023140 $as_echo_n "(cached) " >&6
23141else
23142 ac_check_lib_save_LIBS=$LIBS
23143LIBS="-lm $LIBS"
cristy8b350f62009-11-15 23:12:43 +000023144cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023145/* end confdefs.h. */
23146
23147/* Override any GCC internal prototype to avoid an error.
23148 Use char because int might match the return type of a GCC
23149 builtin and then its argument prototype would still apply. */
23150#ifdef __cplusplus
23151extern "C"
23152#endif
23153char pow ();
23154int
23155main ()
23156{
23157return pow ();
23158 ;
23159 return 0;
23160}
23161_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023162if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023163 ac_cv_lib_m_pow=yes
23164else
cristy8b350f62009-11-15 23:12:43 +000023165 ac_cv_lib_m_pow=no
cristy3ed852e2009-09-05 21:47:34 +000023166fi
cristy8b350f62009-11-15 23:12:43 +000023167rm -f core conftest.err conftest.$ac_objext \
23168 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023169LIBS=$ac_check_lib_save_LIBS
23170fi
cristy8b350f62009-11-15 23:12:43 +000023171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000023172$as_echo "$ac_cv_lib_m_pow" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023173if test "x$ac_cv_lib_m_pow" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023174 POW_LIB=-lm
23175else
cristy8b350f62009-11-15 23:12:43 +000023176 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000023177$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
23178fi
23179
23180fi
23181
23182fi
23183
cristy3ed852e2009-09-05 21:47:34 +000023184for ac_func in vprintf
cristy8b350f62009-11-15 23:12:43 +000023185do :
23186 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
23187if test "x$ac_cv_func_vprintf" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023188 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023189#define HAVE_VPRINTF 1
cristy3ed852e2009-09-05 21:47:34 +000023190_ACEOF
23191
cristy8b350f62009-11-15 23:12:43 +000023192ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
23193if test "x$ac_cv_func__doprnt" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023194
cristy8b350f62009-11-15 23:12:43 +000023195$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023196
23197fi
23198
23199fi
23200done
23201
23202
23203
cristy161b9262010-03-20 19:34:32 +000023204#
23205# Find math library
23206#
23207MATH_LIBS=''
23208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
23209$as_echo_n "checking for sqrt in -lm... " >&6; }
23210if test "${ac_cv_lib_m_sqrt+set}" = set; then :
23211 $as_echo_n "(cached) " >&6
23212else
23213 ac_check_lib_save_LIBS=$LIBS
23214LIBS="-lm $LIBS"
23215cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23216/* end confdefs.h. */
23217
23218/* Override any GCC internal prototype to avoid an error.
23219 Use char because int might match the return type of a GCC
23220 builtin and then its argument prototype would still apply. */
23221#ifdef __cplusplus
23222extern "C"
23223#endif
23224char sqrt ();
23225int
23226main ()
23227{
23228return sqrt ();
23229 ;
23230 return 0;
23231}
23232_ACEOF
23233if ac_fn_c_try_link "$LINENO"; then :
23234 ac_cv_lib_m_sqrt=yes
23235else
23236 ac_cv_lib_m_sqrt=no
23237fi
23238rm -f core conftest.err conftest.$ac_objext \
23239 conftest$ac_exeext conftest.$ac_ext
23240LIBS=$ac_check_lib_save_LIBS
23241fi
23242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
23243$as_echo "$ac_cv_lib_m_sqrt" >&6; }
23244if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
23245 MATH_LIBS="-lm"
23246fi
23247
23248LIBS="$MATH_LIBS $LIBS"
23249
23250
cristy56ed31c2010-03-22 00:46:21 +000023251for 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 +000023252do :
23253 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23254ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23255eval as_val=\$$as_ac_var
23256 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023257 cat >>confdefs.h <<_ACEOF
23258#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23259_ACEOF
23260
23261fi
23262done
23263
23264
cristye43a45e2009-09-28 14:49:00 +000023265#
23266# Check for clock_gettime().
23267#
cristy8b350f62009-11-15 23:12:43 +000023268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000023269$as_echo_n "checking for library containing clock_gettime... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023270if test "${ac_cv_search_clock_gettime+set}" = set; then :
cristye43a45e2009-09-28 14:49:00 +000023271 $as_echo_n "(cached) " >&6
23272else
23273 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000023274cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000023275/* end confdefs.h. */
23276
23277/* Override any GCC internal prototype to avoid an error.
23278 Use char because int might match the return type of a GCC
23279 builtin and then its argument prototype would still apply. */
23280#ifdef __cplusplus
23281extern "C"
23282#endif
23283char clock_gettime ();
23284int
23285main ()
23286{
23287return clock_gettime ();
23288 ;
23289 return 0;
23290}
23291_ACEOF
23292for ac_lib in '' rt; do
23293 if test -z "$ac_lib"; then
23294 ac_res="none required"
23295 else
23296 ac_res=-l$ac_lib
23297 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23298 fi
cristy8b350f62009-11-15 23:12:43 +000023299 if ac_fn_c_try_link "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000023300 ac_cv_search_clock_gettime=$ac_res
cristye43a45e2009-09-28 14:49:00 +000023301fi
cristy8b350f62009-11-15 23:12:43 +000023302rm -f core conftest.err conftest.$ac_objext \
23303 conftest$ac_exeext
23304 if test "${ac_cv_search_clock_gettime+set}" = set; then :
cristye43a45e2009-09-28 14:49:00 +000023305 break
23306fi
23307done
cristy8b350f62009-11-15 23:12:43 +000023308if test "${ac_cv_search_clock_gettime+set}" = set; then :
23309
cristye43a45e2009-09-28 14:49:00 +000023310else
23311 ac_cv_search_clock_gettime=no
23312fi
23313rm conftest.$ac_ext
23314LIBS=$ac_func_search_save_LIBS
23315fi
cristy8b350f62009-11-15 23:12:43 +000023316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000023317$as_echo "$ac_cv_search_clock_gettime" >&6; }
23318ac_res=$ac_cv_search_clock_gettime
cristy8b350f62009-11-15 23:12:43 +000023319if test "$ac_res" != no; then :
cristye43a45e2009-09-28 14:49:00 +000023320 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23321
23322
cristy8b350f62009-11-15 23:12:43 +000023323$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000023324
cristy8b350f62009-11-15 23:12:43 +000023325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
cristye43a45e2009-09-28 14:49:00 +000023326$as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000023328/* end confdefs.h. */
23329#include <time.h>
23330int
23331main ()
23332{
23333clockid_t clockType = CLOCK_REALTIME;
cristye43a45e2009-09-28 14:49:00 +000023334 ;
23335 return 0;
23336}
23337_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023338if ac_fn_c_try_compile "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000023339
cristy8b350f62009-11-15 23:12:43 +000023340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristye43a45e2009-09-28 14:49:00 +000023341$as_echo "yes" >&6; }
23342
cristy8b350f62009-11-15 23:12:43 +000023343$as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000023344
23345
23346else
cristy8b350f62009-11-15 23:12:43 +000023347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristye43a45e2009-09-28 14:49:00 +000023348$as_echo "no" >&6; }
23349
23350fi
cristye43a45e2009-09-28 14:49:00 +000023351rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23352
23353else
23354
cristy8b350f62009-11-15 23:12:43 +000023355 for ac_func in gettimeofday ftime
23356do :
23357 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23358ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23359eval as_val=\$$as_ac_var
23360 if test "x$as_val" = x""yes; then :
cristye43a45e2009-09-28 14:49:00 +000023361 cat >>confdefs.h <<_ACEOF
23362#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23363_ACEOF
23364 break
23365fi
23366done
23367
23368
23369
23370fi
23371
23372
cristy3ed852e2009-09-05 21:47:34 +000023373########
23374#
23375# Check for function prototypes
23376#
23377########
23378
cristy8b350f62009-11-15 23:12:43 +000023379ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
cristy3ed852e2009-09-05 21:47:34 +000023380#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000023381"
23382if test "x$ac_cv_have_decl_pread" = x""yes; then :
23383 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000023384else
cristy8b350f62009-11-15 23:12:43 +000023385 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000023386fi
23387
cristy3ed852e2009-09-05 21:47:34 +000023388cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023389#define HAVE_DECL_PREAD $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000023390_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023391ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
cristy3ed852e2009-09-05 21:47:34 +000023392#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000023393"
23394if test "x$ac_cv_have_decl_pwrite" = x""yes; then :
23395 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000023396else
cristy8b350f62009-11-15 23:12:43 +000023397 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000023398fi
23399
cristy3ed852e2009-09-05 21:47:34 +000023400cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023401#define HAVE_DECL_PWRITE $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000023402_ACEOF
23403
23404
cristy8b350f62009-11-15 23:12:43 +000023405ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
cristy3ed852e2009-09-05 21:47:34 +000023406#include <strings.h>
cristy8b350f62009-11-15 23:12:43 +000023407"
23408if test "x$ac_cv_have_decl_strlcpy" = x""yes; then :
23409 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000023410else
cristy8b350f62009-11-15 23:12:43 +000023411 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000023412fi
23413
cristy3ed852e2009-09-05 21:47:34 +000023414cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023415#define HAVE_DECL_STRLCPY $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000023416_ACEOF
23417
23418
cristy8b350f62009-11-15 23:12:43 +000023419ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
cristy3ed852e2009-09-05 21:47:34 +000023420#include <stdio.h>
23421#include <stdarg.h>
cristy8b350f62009-11-15 23:12:43 +000023422"
23423if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
23424 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000023425else
cristy8b350f62009-11-15 23:12:43 +000023426 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000023427fi
23428
cristy3ed852e2009-09-05 21:47:34 +000023429cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023430#define HAVE_DECL_VSNPRINTF $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000023431_ACEOF
23432
23433
cristy3ed852e2009-09-05 21:47:34 +000023434########
23435#
23436# C++ Support Tests (For Magick++)
23437#
23438########
23439have_magick_plus_plus='no'
23440if test "$with_magick_plus_plus" = 'yes'; then
23441 OLIBS="$LIBS"
23442 LIBS=''
23443 ac_ext=cpp
23444ac_cpp='$CXXCPP $CPPFLAGS'
23445ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23446ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23447ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23448
23449
23450 # Full set of headers used...
23451 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
23452 # functional iomanip iosfwd iostream iterator list string strstream utility
23453 ac_ext=cpp
23454ac_cpp='$CXXCPP $CPPFLAGS'
23455ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23456ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23457ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23458
23459 ac_ext=cpp
23460ac_cpp='$CXXCPP $CPPFLAGS'
23461ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23462ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23463ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23464if test -z "$CXX"; then
23465 if test -n "$CCC"; then
23466 CXX=$CCC
23467 else
23468 if test -n "$ac_tool_prefix"; then
23469 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
23470 do
23471 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
23472set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000023473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000023474$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023475if test "${ac_cv_prog_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023476 $as_echo_n "(cached) " >&6
23477else
23478 if test -n "$CXX"; then
23479 ac_cv_prog_CXX="$CXX" # Let the user override the test.
23480else
23481as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23482for as_dir in $PATH
23483do
23484 IFS=$as_save_IFS
23485 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000023486 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000023487 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23488 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000023489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000023490 break 2
23491 fi
23492done
cristy8b350f62009-11-15 23:12:43 +000023493 done
cristy3ed852e2009-09-05 21:47:34 +000023494IFS=$as_save_IFS
23495
23496fi
23497fi
23498CXX=$ac_cv_prog_CXX
23499if test -n "$CXX"; then
cristy8b350f62009-11-15 23:12:43 +000023500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000023501$as_echo "$CXX" >&6; }
23502else
cristy8b350f62009-11-15 23:12:43 +000023503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000023504$as_echo "no" >&6; }
23505fi
23506
23507
23508 test -n "$CXX" && break
23509 done
23510fi
23511if test -z "$CXX"; then
23512 ac_ct_CXX=$CXX
23513 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
23514do
23515 # Extract the first word of "$ac_prog", so it can be a program name with args.
23516set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000023517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000023518$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023519if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023520 $as_echo_n "(cached) " >&6
23521else
23522 if test -n "$ac_ct_CXX"; then
23523 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
23524else
23525as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23526for as_dir in $PATH
23527do
23528 IFS=$as_save_IFS
23529 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000023530 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000023531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23532 ac_cv_prog_ac_ct_CXX="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000023533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000023534 break 2
23535 fi
23536done
cristy8b350f62009-11-15 23:12:43 +000023537 done
cristy3ed852e2009-09-05 21:47:34 +000023538IFS=$as_save_IFS
23539
23540fi
23541fi
23542ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
23543if test -n "$ac_ct_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000023544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000023545$as_echo "$ac_ct_CXX" >&6; }
23546else
cristy8b350f62009-11-15 23:12:43 +000023547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000023548$as_echo "no" >&6; }
23549fi
23550
23551
23552 test -n "$ac_ct_CXX" && break
23553done
23554
23555 if test "x$ac_ct_CXX" = x; then
23556 CXX="g++"
23557 else
23558 case $cross_compiling:$ac_tool_warned in
23559yes:)
cristy8b350f62009-11-15 23:12:43 +000023560{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000023561$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23562ac_tool_warned=yes ;;
23563esac
23564 CXX=$ac_ct_CXX
23565 fi
23566fi
23567
23568 fi
23569fi
23570# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +000023571$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +000023572set X $ac_compile
23573ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +000023574for ac_option in --version -v -V -qversion; do
23575 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +000023576case "(($ac_try" in
23577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23578 *) ac_try_echo=$ac_try;;
23579esac
cristy8b350f62009-11-15 23:12:43 +000023580eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
23581$as_echo "$ac_try_echo"; } >&5
23582 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +000023583 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000023584 if test -s conftest.err; then
23585 sed '10a\
23586... rest of stderr output deleted ...
23587 10q' conftest.err >conftest.er1
23588 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +000023589 fi
cristycd4c5312009-11-22 01:19:08 +000023590 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +000023591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23592 test $ac_status = 0; }
23593done
cristy3ed852e2009-09-05 21:47:34 +000023594
cristy8b350f62009-11-15 23:12:43 +000023595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +000023596$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023597if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023598 $as_echo_n "(cached) " >&6
23599else
cristy8b350f62009-11-15 23:12:43 +000023600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023601/* end confdefs.h. */
23602
23603int
23604main ()
23605{
23606#ifndef __GNUC__
23607 choke me
23608#endif
23609
23610 ;
23611 return 0;
23612}
23613_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023614if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023615 ac_compiler_gnu=yes
23616else
cristy8b350f62009-11-15 23:12:43 +000023617 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +000023618fi
cristy3ed852e2009-09-05 21:47:34 +000023619rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23620ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
23621
23622fi
cristy8b350f62009-11-15 23:12:43 +000023623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +000023624$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
23625if test $ac_compiler_gnu = yes; then
23626 GXX=yes
23627else
23628 GXX=
23629fi
23630ac_test_CXXFLAGS=${CXXFLAGS+set}
23631ac_save_CXXFLAGS=$CXXFLAGS
cristy8b350f62009-11-15 23:12:43 +000023632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +000023633$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023634if test "${ac_cv_prog_cxx_g+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023635 $as_echo_n "(cached) " >&6
23636else
23637 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
23638 ac_cxx_werror_flag=yes
23639 ac_cv_prog_cxx_g=no
23640 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000023641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023642/* end confdefs.h. */
23643
23644int
23645main ()
23646{
23647
23648 ;
23649 return 0;
23650}
23651_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023652if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023653 ac_cv_prog_cxx_g=yes
23654else
cristy8b350f62009-11-15 23:12:43 +000023655 CXXFLAGS=""
23656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023657/* end confdefs.h. */
23658
23659int
23660main ()
23661{
23662
23663 ;
23664 return 0;
23665}
23666_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023667if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023668
cristy8b350f62009-11-15 23:12:43 +000023669else
23670 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
cristy3ed852e2009-09-05 21:47:34 +000023671 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000023672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023673/* end confdefs.h. */
23674
23675int
23676main ()
23677{
23678
23679 ;
23680 return 0;
23681}
23682_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023683if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023684 ac_cv_prog_cxx_g=yes
cristy3ed852e2009-09-05 21:47:34 +000023685fi
cristy3ed852e2009-09-05 21:47:34 +000023686rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23687fi
cristy3ed852e2009-09-05 21:47:34 +000023688rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23689fi
cristy3ed852e2009-09-05 21:47:34 +000023690rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23691 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
23692fi
cristy8b350f62009-11-15 23:12:43 +000023693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
cristy3ed852e2009-09-05 21:47:34 +000023694$as_echo "$ac_cv_prog_cxx_g" >&6; }
23695if test "$ac_test_CXXFLAGS" = set; then
23696 CXXFLAGS=$ac_save_CXXFLAGS
23697elif test $ac_cv_prog_cxx_g = yes; then
23698 if test "$GXX" = yes; then
23699 CXXFLAGS="-g -O2"
23700 else
23701 CXXFLAGS="-g"
23702 fi
23703else
23704 if test "$GXX" = yes; then
23705 CXXFLAGS="-O2"
23706 else
23707 CXXFLAGS=
23708 fi
23709fi
23710ac_ext=cpp
23711ac_cpp='$CXXCPP $CPPFLAGS'
23712ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23713ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23714ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23715
23716depcc="$CXX" am_compiler_list=
23717
cristy8b350f62009-11-15 23:12:43 +000023718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
cristy3ed852e2009-09-05 21:47:34 +000023719$as_echo_n "checking dependency style of $depcc... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023720if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023721 $as_echo_n "(cached) " >&6
23722else
23723 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
23724 # We make a subdir and do the tests there. Otherwise we can end up
23725 # making bogus files that we don't know about and never remove. For
23726 # instance it was reported that on HP-UX the gcc test will end up
23727 # making a dummy file named `D' -- because `-MD' means `put the output
23728 # in D'.
23729 mkdir conftest.dir
23730 # Copy depcomp to subdir because otherwise we won't find it if we're
23731 # using a relative directory.
23732 cp "$am_depcomp" conftest.dir
23733 cd conftest.dir
23734 # We will build objects and dependencies in a subdirectory because
23735 # it helps to detect inapplicable dependency modes. For instance
23736 # both Tru64's cc and ICC support -MD to output dependencies as a
23737 # side effect of compilation, but ICC will put the dependencies in
23738 # the current directory while Tru64 will put them in the object
23739 # directory.
23740 mkdir sub
23741
23742 am_cv_CXX_dependencies_compiler_type=none
23743 if test "$am_compiler_list" = ""; then
23744 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
23745 fi
23746 am__universal=false
23747 case " $depcc " in #(
23748 *\ -arch\ *\ -arch\ *) am__universal=true ;;
23749 esac
23750
23751 for depmode in $am_compiler_list; do
23752 # Setup a source with many dependencies, because some compilers
23753 # like to wrap large dependency lists on column 80 (with \), and
23754 # we should not choose a depcomp mode which is confused by this.
23755 #
23756 # We need to recreate these files for each test, as the compiler may
23757 # overwrite some of them when testing with obscure command lines.
23758 # This happens at least with the AIX C compiler.
23759 : > sub/conftest.c
23760 for i in 1 2 3 4 5 6; do
23761 echo '#include "conftst'$i'.h"' >> sub/conftest.c
23762 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
23763 # Solaris 8's {/usr,}/bin/sh.
23764 touch sub/conftst$i.h
23765 done
23766 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
23767
23768 # We check with `-c' and `-o' for the sake of the "dashmstdout"
23769 # mode. It turns out that the SunPro C++ compiler does not properly
23770 # handle `-M -o', and we need to detect this. Also, some Intel
23771 # versions had trouble with output in subdirs
23772 am__obj=sub/conftest.${OBJEXT-o}
23773 am__minus_obj="-o $am__obj"
23774 case $depmode in
23775 gcc)
23776 # This depmode causes a compiler race in universal mode.
23777 test "$am__universal" = false || continue
23778 ;;
23779 nosideeffect)
23780 # after this tag, mechanisms are not by side-effect, so they'll
23781 # only be used when explicitly requested
23782 if test "x$enable_dependency_tracking" = xyes; then
23783 continue
23784 else
23785 break
23786 fi
23787 ;;
23788 msvisualcpp | msvcmsys)
23789 # This compiler won't grok `-c -o', but also, the minuso test has
23790 # not run yet. These depmodes are late enough in the game, and
23791 # so weak that their functioning should not be impacted.
23792 am__obj=conftest.${OBJEXT-o}
23793 am__minus_obj=
23794 ;;
23795 none) break ;;
23796 esac
23797 if depmode=$depmode \
23798 source=sub/conftest.c object=$am__obj \
23799 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
23800 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
23801 >/dev/null 2>conftest.err &&
23802 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
23803 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
23804 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
23805 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
23806 # icc doesn't choke on unknown options, it will just issue warnings
23807 # or remarks (even with -Werror). So we grep stderr for any message
23808 # that says an option was ignored or not supported.
23809 # When given -MP, icc 7.0 and 7.1 complain thusly:
23810 # icc: Command line warning: ignoring option '-M'; no argument required
23811 # The diagnosis changed in icc 8.0:
23812 # icc: Command line remark: option '-MP' not supported
23813 if (grep 'ignoring option' conftest.err ||
23814 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
23815 am_cv_CXX_dependencies_compiler_type=$depmode
23816 break
23817 fi
23818 fi
23819 done
23820
23821 cd ..
23822 rm -rf conftest.dir
23823else
23824 am_cv_CXX_dependencies_compiler_type=none
23825fi
23826
23827fi
cristy8b350f62009-11-15 23:12:43 +000023828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023829$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
23830CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
23831
23832 if
23833 test "x$enable_dependency_tracking" != xno \
23834 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
23835 am__fastdepCXX_TRUE=
23836 am__fastdepCXX_FALSE='#'
23837else
23838 am__fastdepCXX_TRUE='#'
23839 am__fastdepCXX_FALSE=
23840fi
23841
23842
cristy8b350f62009-11-15 23:12:43 +000023843 { $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 +000023844$as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
cristy964cb7f2010-04-25 23:18:00 +000023845if test "${ax_cv_cxx_bool+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023846 $as_echo_n "(cached) " >&6
23847else
23848
23849 ac_ext=cpp
23850ac_cpp='$CXXCPP $CPPFLAGS'
23851ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23852ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23853ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23854
cristy8b350f62009-11-15 23:12:43 +000023855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023856/* end confdefs.h. */
23857
23858int f(int x){return 1;}
23859int f(char x){return 1;}
23860int f(bool x){return 1;}
23861
23862int
23863main ()
23864{
23865bool b = true; return f(b);
23866 ;
23867 return 0;
23868}
23869_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023870if ac_fn_cxx_try_compile "$LINENO"; then :
cristy964cb7f2010-04-25 23:18:00 +000023871 ax_cv_cxx_bool=yes
cristy3ed852e2009-09-05 21:47:34 +000023872else
cristy964cb7f2010-04-25 23:18:00 +000023873 ax_cv_cxx_bool=no
cristy3ed852e2009-09-05 21:47:34 +000023874fi
cristy3ed852e2009-09-05 21:47:34 +000023875rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23876 ac_ext=cpp
23877ac_cpp='$CXXCPP $CPPFLAGS'
23878ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23879ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23880ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23881
23882
23883fi
cristy964cb7f2010-04-25 23:18:00 +000023884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_bool" >&5
23885$as_echo "$ax_cv_cxx_bool" >&6; }
23886if test "$ax_cv_cxx_bool" = yes; then
cristy3ed852e2009-09-05 21:47:34 +000023887
cristy8b350f62009-11-15 23:12:43 +000023888$as_echo "#define HAVE_BOOL /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023889
23890fi
23891
cristy8b350f62009-11-15 23:12:43 +000023892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
cristy3ed852e2009-09-05 21:47:34 +000023893$as_echo_n "checking whether the compiler implements namespaces... " >&6; }
cristy964cb7f2010-04-25 23:18:00 +000023894if test "${ax_cv_cxx_namespaces+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023895 $as_echo_n "(cached) " >&6
23896else
23897
23898 ac_ext=cpp
23899ac_cpp='$CXXCPP $CPPFLAGS'
23900ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23901ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23902ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23903
cristy8b350f62009-11-15 23:12:43 +000023904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023905/* end confdefs.h. */
23906namespace Outer { namespace Inner { int i = 0; }}
23907int
23908main ()
23909{
23910using namespace Outer::Inner; return i;
23911 ;
23912 return 0;
23913}
23914_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023915if ac_fn_cxx_try_compile "$LINENO"; then :
cristy964cb7f2010-04-25 23:18:00 +000023916 ax_cv_cxx_namespaces=yes
cristy3ed852e2009-09-05 21:47:34 +000023917else
cristy964cb7f2010-04-25 23:18:00 +000023918 ax_cv_cxx_namespaces=no
cristy3ed852e2009-09-05 21:47:34 +000023919fi
cristy3ed852e2009-09-05 21:47:34 +000023920rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23921 ac_ext=cpp
23922ac_cpp='$CXXCPP $CPPFLAGS'
23923ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23924ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23925ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23926
23927
23928fi
cristy964cb7f2010-04-25 23:18:00 +000023929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_namespaces" >&5
23930$as_echo "$ax_cv_cxx_namespaces" >&6; }
23931if test "$ax_cv_cxx_namespaces" = yes; then
cristy3ed852e2009-09-05 21:47:34 +000023932
cristy8b350f62009-11-15 23:12:43 +000023933$as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023934
23935fi
23936
cristy964cb7f2010-04-25 23:18:00 +000023937
23938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports namespace std" >&5
23939$as_echo_n "checking if g++ supports namespace std... " >&6; }
23940if test "${ax_cv_cxx_have_std_namespace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023941 $as_echo_n "(cached) " >&6
23942else
23943
cristy964cb7f2010-04-25 23:18:00 +000023944 ac_ext=cpp
cristy3ed852e2009-09-05 21:47:34 +000023945ac_cpp='$CXXCPP $CPPFLAGS'
23946ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23947ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23948ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23949
cristy964cb7f2010-04-25 23:18:00 +000023950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023951/* end confdefs.h. */
23952#include <iostream>
cristy964cb7f2010-04-25 23:18:00 +000023953 std::istream& is = std::cin;
cristy3ed852e2009-09-05 21:47:34 +000023954int
23955main ()
23956{
cristy964cb7f2010-04-25 23:18:00 +000023957
cristy3ed852e2009-09-05 21:47:34 +000023958 ;
23959 return 0;
23960}
23961_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023962if ac_fn_cxx_try_compile "$LINENO"; then :
cristy964cb7f2010-04-25 23:18:00 +000023963 ax_cv_cxx_have_std_namespace=yes
cristy3ed852e2009-09-05 21:47:34 +000023964else
cristy964cb7f2010-04-25 23:18:00 +000023965 ax_cv_cxx_have_std_namespace=no
cristy3ed852e2009-09-05 21:47:34 +000023966fi
cristy3ed852e2009-09-05 21:47:34 +000023967rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy964cb7f2010-04-25 23:18:00 +000023968 ac_ext=cpp
cristy3ed852e2009-09-05 21:47:34 +000023969ac_cpp='$CXXCPP $CPPFLAGS'
23970ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23971ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23972ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23973
23974
23975fi
cristy964cb7f2010-04-25 23:18:00 +000023976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_have_std_namespace" >&5
23977$as_echo "$ax_cv_cxx_have_std_namespace" >&6; }
23978 if test "$ax_cv_cxx_have_std_namespace" = yes; then
cristy3ed852e2009-09-05 21:47:34 +000023979
cristy964cb7f2010-04-25 23:18:00 +000023980$as_echo "#define HAVE_NAMESPACE_STD /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023981
cristy964cb7f2010-04-25 23:18:00 +000023982 fi
cristy3ed852e2009-09-05 21:47:34 +000023983
cristy8b350f62009-11-15 23:12:43 +000023984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
cristy3ed852e2009-09-05 21:47:34 +000023985$as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023986if test "${ac_cv_cxx_have_std_libs+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023987 $as_echo_n "(cached) " >&6
23988else
23989
23990
23991 ac_ext=cpp
23992ac_cpp='$CXXCPP $CPPFLAGS'
23993ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23994ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23995ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23996
cristy8b350f62009-11-15 23:12:43 +000023997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023998/* end confdefs.h. */
23999#include <iostream>
24000#include <map>
24001#include <iomanip>
24002#include <cmath>
24003#ifdef HAVE_NAMESPACES
24004using namespace std;
24005#endif
24006int
24007main ()
24008{
24009return 0;
24010 ;
24011 return 0;
24012}
24013_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024014if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024015 ac_cv_cxx_have_std_libs=yes
24016else
cristy8b350f62009-11-15 23:12:43 +000024017 ac_cv_cxx_have_std_libs=no
cristy3ed852e2009-09-05 21:47:34 +000024018fi
cristy3ed852e2009-09-05 21:47:34 +000024019rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24020 ac_ext=cpp
24021ac_cpp='$CXXCPP $CPPFLAGS'
24022ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24023ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24024ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24025
24026
24027fi
cristy8b350f62009-11-15 23:12:43 +000024028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
cristy3ed852e2009-09-05 21:47:34 +000024029$as_echo "$ac_cv_cxx_have_std_libs" >&6; }
24030if test "$ac_cv_cxx_have_std_libs" = yes; then
24031
cristy8b350f62009-11-15 23:12:43 +000024032$as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024033
24034fi
24035
cristy8b350f62009-11-15 23:12:43 +000024036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements L\"widestring\"" >&5
cristy3ed852e2009-09-05 21:47:34 +000024037$as_echo_n "checking whether the compiler implements L\"widestring\"... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024038if test "${ac_cv_cxx_have_lstring+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024039 $as_echo_n "(cached) " >&6
24040else
24041
24042 ac_ext=cpp
24043ac_cpp='$CXXCPP $CPPFLAGS'
24044ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24045ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24046ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24047
cristy8b350f62009-11-15 23:12:43 +000024048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024049/* end confdefs.h. */
24050const wchar_t* s=L"wide string";
24051_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024052if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024053 ac_cv_cxx_have_lstring=yes
24054else
cristy8b350f62009-11-15 23:12:43 +000024055 ac_cv_cxx_have_lstring=no
cristy3ed852e2009-09-05 21:47:34 +000024056fi
cristy3ed852e2009-09-05 21:47:34 +000024057rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24058 ac_ext=cpp
24059ac_cpp='$CXXCPP $CPPFLAGS'
24060ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24061ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24062ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24063
24064
24065fi
cristy8b350f62009-11-15 23:12:43 +000024066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_lstring" >&5
cristy3ed852e2009-09-05 21:47:34 +000024067$as_echo "$ac_cv_cxx_have_lstring" >&6; }
24068if test "$ac_cv_cxx_have_lstring" = yes; then
24069
cristy8b350f62009-11-15 23:12:43 +000024070$as_echo "#define HAVE_LSTRING /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024071
24072fi
24073
24074
24075 OPENMP_CXXFLAGS=
24076 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +000024077if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024078 enableval=$enable_openmp;
24079fi
24080
24081 if test "$enable_openmp" != no; then
cristycd4c5312009-11-22 01:19:08 +000024082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
24083$as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024084if test "${ac_cv_prog_cxx_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024085 $as_echo_n "(cached) " >&6
24086else
cristy8b350f62009-11-15 23:12:43 +000024087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24088/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000024089
24090#ifndef _OPENMP
24091 choke me
24092#endif
24093#include <omp.h>
24094int main () { return omp_get_num_threads (); }
24095
24096_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024097if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024098 ac_cv_prog_cxx_openmp='none needed'
24099else
cristy8b350f62009-11-15 23:12:43 +000024100 ac_cv_prog_cxx_openmp='unsupported'
cristy3ed852e2009-09-05 21:47:34 +000024101 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
24102 ac_save_CXXFLAGS=$CXXFLAGS
24103 CXXFLAGS="$CXXFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +000024104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24105/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000024106
24107#ifndef _OPENMP
24108 choke me
24109#endif
24110#include <omp.h>
24111int main () { return omp_get_num_threads (); }
24112
24113_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024114if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024115 ac_cv_prog_cxx_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +000024116fi
cristy8b350f62009-11-15 23:12:43 +000024117rm -f core conftest.err conftest.$ac_objext \
24118 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024119 CXXFLAGS=$ac_save_CXXFLAGS
24120 if test "$ac_cv_prog_cxx_openmp" != unsupported; then
24121 break
24122 fi
24123 done
24124fi
cristy8b350f62009-11-15 23:12:43 +000024125rm -f core conftest.err conftest.$ac_objext \
24126 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024127fi
cristy8b350f62009-11-15 23:12:43 +000024128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024129$as_echo "$ac_cv_prog_cxx_openmp" >&6; }
24130 case $ac_cv_prog_cxx_openmp in #(
24131 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +000024132 ;; #(
cristy3ed852e2009-09-05 21:47:34 +000024133 *)
cristy8b350f62009-11-15 23:12:43 +000024134 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +000024135 esac
24136 fi
24137
24138
24139 ac_ext=c
24140ac_cpp='$CPP $CPPFLAGS'
24141ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24142ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24143ac_compiler_gnu=$ac_cv_c_compiler_gnu
24144
24145
cristy8b350f62009-11-15 23:12:43 +000024146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
cristy3ed852e2009-09-05 21:47:34 +000024147$as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
24148 if \
cristy964cb7f2010-04-25 23:18:00 +000024149 test $ax_cv_cxx_bool = 'yes' && \
cristy3ed852e2009-09-05 21:47:34 +000024150 test $ac_cv_cxx_have_lstring = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000024151 test $ax_cv_cxx_namespaces = 'yes' && \
cristy3ed852e2009-09-05 21:47:34 +000024152 test $ac_cv_cxx_have_std_libs = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000024153 test $ax_cv_cxx_have_std_namespace = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000024154 have_magick_plus_plus='yes'
24155 else
24156 have_magick_plus_plus='no (failed tests)'
24157 fi
cristy8b350f62009-11-15 23:12:43 +000024158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_magick_plus_plus" >&5
cristy3ed852e2009-09-05 21:47:34 +000024159$as_echo "$have_magick_plus_plus" >&6; }
24160 LIBS="$OLIBS"
24161fi
24162 if test "$have_magick_plus_plus" = 'yes'; then
24163 WITH_MAGICK_PLUS_PLUS_TRUE=
24164 WITH_MAGICK_PLUS_PLUS_FALSE='#'
24165else
24166 WITH_MAGICK_PLUS_PLUS_TRUE='#'
24167 WITH_MAGICK_PLUS_PLUS_FALSE=
24168fi
24169
24170
24171# Only check for delegate libraries in subdirectories if requested.
24172if test "$enable_delegate_build" != 'no'; then
24173 # Check for delegate sub-directories and add -I & -L options as required.
24174 # This presumes that delegates are installed as detailed in the ImageMagick
24175 # README. If delegates are installed in a standard location where the
24176 # compiler will automatically find them then these options should not be
24177 # required.
24178
24179 #
24180 # Most delegates have includes in the same directory as the library, but not all...
24181 #
24182 # Includes
cristy5850e4b2010-01-08 14:28:24 +000024183 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 +000024184 if test -d "$builddir/$dir"; then
24185 CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
24186 else
24187 if test -d "$srcdirfull/$dir"; then
24188 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
24189 fi
24190 fi
24191 done
24192
24193 # Libraries
cristy5850e4b2010-01-08 14:28:24 +000024194 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 +000024195 if test -d "$builddir/$dir/.libs"; then
24196 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
24197 else
24198 if test -d "$srcdirfull/$dir/.libs"; then
24199 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
24200 fi
24201 fi
24202 if test -d "$builddir/$dir"; then
24203 LDFLAGS="$LDFLAGS -L$builddir/$dir"
24204 else
24205 if test -d "$srcdirfull/$dir"; then
24206 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
24207 fi
24208 fi
24209 done
24210fi
24211
24212# Assume that delegate headers reside under same directory as ImageMagick
24213# installation prefix.
24214MAGICK_CPPFLAGS="-I$INCLUDE_DIR/ImageMagick $MAGICK_CPPFLAGS"
24215
24216#
24217# Find the X11 RGB database
24218#
cristy8b350f62009-11-15 23:12:43 +000024219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
cristy3ed852e2009-09-05 21:47:34 +000024220$as_echo_n "checking for X11 configure files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024221if test "${im_cv_x_configure+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024222 $as_echo_n "(cached) " >&6
24223else
24224 # Look for the header file in a standard set of common directories.
24225# Check X11 before X11Rn because it is often a symlink to the current release.
24226 for ac_dir in \
24227 /lib/usr/lib/X11 \
24228 /usr/X11/lib \
24229 /usr/X11R4/lib \
24230 /usr/X11R5/lib \
24231 /usr/X11R6/lib \
24232 /usr/X11R7/lib \
24233 /usr/X386/lib \
24234 /usr/XFree86/lib/X11 \
24235 /usr/athena/lib \
24236 /usr/lib \
24237 /usr/lib/X11 \
24238 /usr/lib/X11R4 \
24239 /usr/lib/X11R5 \
24240 /usr/lib/X11R6 \
24241 /usr/lib/X11R7 \
24242 /usr/local/X11/lib \
24243 /usr/local/X11R4/lib \
24244 /usr/local/X11R5/lib \
24245 /usr/local/X11R6/lib \
24246 /usr/local/lib \
24247 /usr/local/lib/X11 \
24248 /usr/local/lib/X11R4 \
24249 /usr/local/lib/X11R5 \
24250 /usr/local/lib/X11R6 \
24251 /usr/local/lib/X11R7 \
24252 /usr/local/x11r5/lib \
24253 /usr/lpp/Xamples/lib \
24254 /usr/openwin/lib \
24255 /usr/openwin/share/lib \
24256 /usr/unsupported/lib \
24257 /usr/x386/lib \
24258 ; do
24259 if test -f "$ac_dir/X11/rgb.txt"; then
24260 im_cv_x_configure="$ac_dir/X11/"
24261 break
24262 elif test -f "$ac_dir/rgb.txt"; then
24263 im_cv_x_configure="$ac_dir/"
24264 break
24265 fi
24266
24267 done
24268fi
cristy8b350f62009-11-15 23:12:43 +000024269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
cristy3ed852e2009-09-05 21:47:34 +000024270$as_echo "$im_cv_x_configure" >&6; }
24271X11_CONFIGURE_PATH="$im_cv_x_configure"
24272case "${build_os}" in
24273 mingw* )
24274 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
24275 ;;
24276esac
24277
24278cat >>confdefs.h <<_ACEOF
24279#define X11_CONFIGURE_PATH "$X11ConfigurePath"
24280_ACEOF
24281
24282
24283#
24284# Find OpenMP library
24285#
24286GOMP_LIBS=''
24287if test "$enable_openmp" != 'no'; then
24288 if test "${GCC}" = "yes"; then
cristy8b350f62009-11-15 23:12:43 +000024289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024290$as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024291if test "${ac_cv_lib_gomp_GOMP_parallel_start+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024292 $as_echo_n "(cached) " >&6
24293else
24294 ac_check_lib_save_LIBS=$LIBS
24295LIBS="-lgomp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024296cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024297/* end confdefs.h. */
24298
24299/* Override any GCC internal prototype to avoid an error.
24300 Use char because int might match the return type of a GCC
24301 builtin and then its argument prototype would still apply. */
24302#ifdef __cplusplus
24303extern "C"
24304#endif
24305char GOMP_parallel_start ();
24306int
24307main ()
24308{
24309return GOMP_parallel_start ();
24310 ;
24311 return 0;
24312}
24313_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024314if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024315 ac_cv_lib_gomp_GOMP_parallel_start=yes
24316else
cristy8b350f62009-11-15 23:12:43 +000024317 ac_cv_lib_gomp_GOMP_parallel_start=no
cristy3ed852e2009-09-05 21:47:34 +000024318fi
cristy8b350f62009-11-15 23:12:43 +000024319rm -f core conftest.err conftest.$ac_objext \
24320 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024321LIBS=$ac_check_lib_save_LIBS
24322fi
cristy8b350f62009-11-15 23:12:43 +000024323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
cristy3ed852e2009-09-05 21:47:34 +000024324$as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024325if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024326 GOMP_LIBS="-lgomp"
24327fi
24328 # gcc
24329 else
cristy8b350f62009-11-15 23:12:43 +000024330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
cristy3ed852e2009-09-05 21:47:34 +000024331$as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024332if test "${ac_cv_lib_mtsk_sunw_mp_register_warn+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024333 $as_echo_n "(cached) " >&6
24334else
24335 ac_check_lib_save_LIBS=$LIBS
24336LIBS="-lmtsk $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024337cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024338/* end confdefs.h. */
24339
24340/* Override any GCC internal prototype to avoid an error.
24341 Use char because int might match the return type of a GCC
24342 builtin and then its argument prototype would still apply. */
24343#ifdef __cplusplus
24344extern "C"
24345#endif
24346char sunw_mp_register_warn ();
24347int
24348main ()
24349{
24350return sunw_mp_register_warn ();
24351 ;
24352 return 0;
24353}
24354_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024355if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024356 ac_cv_lib_mtsk_sunw_mp_register_warn=yes
24357else
cristy8b350f62009-11-15 23:12:43 +000024358 ac_cv_lib_mtsk_sunw_mp_register_warn=no
cristy3ed852e2009-09-05 21:47:34 +000024359fi
cristy8b350f62009-11-15 23:12:43 +000024360rm -f core conftest.err conftest.$ac_objext \
24361 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024362LIBS=$ac_check_lib_save_LIBS
24363fi
cristy8b350f62009-11-15 23:12:43 +000024364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
cristy3ed852e2009-09-05 21:47:34 +000024365$as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024366if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024367 GOMP_LIBS="-lmtsk"
24368fi
24369 # solaris cc
cristy8b350f62009-11-15 23:12:43 +000024370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024371$as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024372if test "${ac_cv_lib_xlsmp__xlsmpFlush+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024373 $as_echo_n "(cached) " >&6
24374else
24375 ac_check_lib_save_LIBS=$LIBS
24376LIBS="-lxlsmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024377cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024378/* end confdefs.h. */
24379
24380/* Override any GCC internal prototype to avoid an error.
24381 Use char because int might match the return type of a GCC
24382 builtin and then its argument prototype would still apply. */
24383#ifdef __cplusplus
24384extern "C"
24385#endif
24386char _xlsmpFlush ();
24387int
24388main ()
24389{
24390return _xlsmpFlush ();
24391 ;
24392 return 0;
24393}
24394_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024395if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024396 ac_cv_lib_xlsmp__xlsmpFlush=yes
24397else
cristy8b350f62009-11-15 23:12:43 +000024398 ac_cv_lib_xlsmp__xlsmpFlush=no
cristy3ed852e2009-09-05 21:47:34 +000024399fi
cristy8b350f62009-11-15 23:12:43 +000024400rm -f core conftest.err conftest.$ac_objext \
24401 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024402LIBS=$ac_check_lib_save_LIBS
24403fi
cristy8b350f62009-11-15 23:12:43 +000024404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
cristy3ed852e2009-09-05 21:47:34 +000024405$as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024406if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024407 GOMP_LIBS="-lxlsmp"
24408fi
24409 # AIX xlc
cristy8b350f62009-11-15 23:12:43 +000024410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024411$as_echo_n "checking for mp_destroy in -lmp... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024412if test "${ac_cv_lib_mp_mp_destroy+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024413 $as_echo_n "(cached) " >&6
24414else
24415 ac_check_lib_save_LIBS=$LIBS
24416LIBS="-lmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024417cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024418/* end confdefs.h. */
24419
24420/* Override any GCC internal prototype to avoid an error.
24421 Use char because int might match the return type of a GCC
24422 builtin and then its argument prototype would still apply. */
24423#ifdef __cplusplus
24424extern "C"
24425#endif
24426char mp_destroy ();
24427int
24428main ()
24429{
24430return mp_destroy ();
24431 ;
24432 return 0;
24433}
24434_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024435if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024436 ac_cv_lib_mp_mp_destroy=yes
24437else
cristy8b350f62009-11-15 23:12:43 +000024438 ac_cv_lib_mp_mp_destroy=no
cristy3ed852e2009-09-05 21:47:34 +000024439fi
cristy8b350f62009-11-15 23:12:43 +000024440rm -f core conftest.err conftest.$ac_objext \
24441 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024442LIBS=$ac_check_lib_save_LIBS
24443fi
cristy8b350f62009-11-15 23:12:43 +000024444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
cristy3ed852e2009-09-05 21:47:34 +000024445$as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024446if test "x$ac_cv_lib_mp_mp_destroy" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024447 GOMP_LIBS="-lmp"
24448fi
24449 # SGI IRIX 6.5 MIPSpro C/C++
24450 fi
24451 LIBS="$GOMP_LIBS $LIBS"
24452fi
24453
24454
24455#
24456# Find Posix threads library
24457#
24458THREAD_LIBS=''
24459if test "$with_threads" != 'no' && test "$have_threads" = 'yes'; then
24460
24461 if test "x$PTHREAD_LIBS" = "x"; then
24462 case "${host_cpu}-${host_os}" in
24463 *-freebsd*)
24464
24465
24466
24467ac_ext=c
24468ac_cpp='$CPP $CPPFLAGS'
24469ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24470ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24471ac_compiler_gnu=$ac_cv_c_compiler_gnu
24472
24473magick_pthread_lib_ok=no
24474
24475LIB=-lc_r
24476save_LIBS="$LIBS"
24477LIBS="$LIBS $LIB"
24478
cristy8b350f62009-11-15 23:12:43 +000024479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000024480$as_echo_n "checking for the pthreads library $LIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024481cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024482/* end confdefs.h. */
24483#include <pthread.h>
24484int
24485main ()
24486{
24487 pthread_t th;
24488 pthread_join(th, 0);
24489 pthread_attr_init(0);
24490 pthread_cleanup_push(0, 0);
24491 pthread_create(0,0,0,0);
24492 pthread_cleanup_pop(0);
24493 ;
24494 return 0;
24495}
24496_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024497if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024498 magick_pthread_lib_ok=yes
cristy3ed852e2009-09-05 21:47:34 +000024499fi
cristy8b350f62009-11-15 23:12:43 +000024500rm -f core conftest.err conftest.$ac_objext \
24501 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024502
cristy8b350f62009-11-15 23:12:43 +000024503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
cristy3ed852e2009-09-05 21:47:34 +000024504$as_echo "${magick_pthread_lib_ok}" >&6; }
24505if test "$magick_pthread_lib_ok" = yes
24506then
24507 PTHREAD_LIBS=-lc_r
24508 :
24509else
24510
24511 :
24512fi
24513
24514LIBS="$save_LIBS"
24515
24516ac_ext=c
24517ac_cpp='$CPP $CPPFLAGS'
24518ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24519ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24520ac_compiler_gnu=$ac_cv_c_compiler_gnu
24521
24522 ;;
24523 esac
24524 fi
24525
24526 for lib in pthread pthreads; do
24527 if test "x$PTHREAD_LIBS" = "x"; then
24528
24529
24530
24531ac_ext=c
24532ac_cpp='$CPP $CPPFLAGS'
24533ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24534ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24535ac_compiler_gnu=$ac_cv_c_compiler_gnu
24536
24537magick_pthread_lib_ok=no
24538
24539LIB=-l$lib
24540save_LIBS="$LIBS"
24541LIBS="$LIBS $LIB"
24542
cristy8b350f62009-11-15 23:12:43 +000024543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000024544$as_echo_n "checking for the pthreads library $LIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024545cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024546/* end confdefs.h. */
24547#include <pthread.h>
24548int
24549main ()
24550{
24551 pthread_t th;
24552 pthread_join(th, 0);
24553 pthread_attr_init(0);
24554 pthread_cleanup_push(0, 0);
24555 pthread_create(0,0,0,0);
24556 pthread_cleanup_pop(0);
24557 ;
24558 return 0;
24559}
24560_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024561if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024562 magick_pthread_lib_ok=yes
cristy3ed852e2009-09-05 21:47:34 +000024563fi
cristy8b350f62009-11-15 23:12:43 +000024564rm -f core conftest.err conftest.$ac_objext \
24565 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024566
cristy8b350f62009-11-15 23:12:43 +000024567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
cristy3ed852e2009-09-05 21:47:34 +000024568$as_echo "${magick_pthread_lib_ok}" >&6; }
24569if test "$magick_pthread_lib_ok" = yes
24570then
24571 PTHREAD_LIBS=-l$lib
24572 :
24573else
24574
24575 :
24576fi
24577
24578LIBS="$save_LIBS"
24579
24580ac_ext=c
24581ac_cpp='$CPP $CPPFLAGS'
24582ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24583ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24584ac_compiler_gnu=$ac_cv_c_compiler_gnu
24585
24586
24587 fi
24588 done
24589
24590 THREAD_LIBS="$PTHREAD_LIBS"
24591 LIBS="$LIBS $THREAD_LIBS"
24592fi
24593
24594
24595#
24596# Check for umem.
24597#
24598have_umem='no'
24599UMEM_LIBS=''
24600if test "$with_umem" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000024601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
cristy3ed852e2009-09-05 21:47:34 +000024602$as_echo_n "checking for UMEM support ... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000024604$as_echo "" >&6; }
24605 failed=0
24606 passed=0
cristy8b350f62009-11-15 23:12:43 +000024607 ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
24608if test "x$ac_cv_header_umem_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024609 passed=`expr $passed + 1`
24610else
24611 failed=`expr $failed + 1`
24612fi
24613
24614
cristy8b350f62009-11-15 23:12:43 +000024615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000024616$as_echo_n "checking for umem_alloc in -lumem... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024617if test "${ac_cv_lib_umem_umem_alloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024618 $as_echo_n "(cached) " >&6
24619else
24620 ac_check_lib_save_LIBS=$LIBS
24621LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024622cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024623/* end confdefs.h. */
24624
24625/* Override any GCC internal prototype to avoid an error.
24626 Use char because int might match the return type of a GCC
24627 builtin and then its argument prototype would still apply. */
24628#ifdef __cplusplus
24629extern "C"
24630#endif
24631char umem_alloc ();
24632int
24633main ()
24634{
24635return umem_alloc ();
24636 ;
24637 return 0;
24638}
24639_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024640if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024641 ac_cv_lib_umem_umem_alloc=yes
24642else
cristy8b350f62009-11-15 23:12:43 +000024643 ac_cv_lib_umem_umem_alloc=no
cristy3ed852e2009-09-05 21:47:34 +000024644fi
cristy8b350f62009-11-15 23:12:43 +000024645rm -f core conftest.err conftest.$ac_objext \
24646 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024647LIBS=$ac_check_lib_save_LIBS
24648fi
cristy8b350f62009-11-15 23:12:43 +000024649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000024650$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024651if test "x$ac_cv_lib_umem_umem_alloc" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024652 passed=`expr $passed + 1`
24653else
24654 failed=`expr $failed + 1`
24655fi
24656
cristy8b350f62009-11-15 23:12:43 +000024657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000024658$as_echo_n "checking for umem_free in -lumem... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024659if test "${ac_cv_lib_umem_umem_free+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024660 $as_echo_n "(cached) " >&6
24661else
24662 ac_check_lib_save_LIBS=$LIBS
24663LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024664cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024665/* end confdefs.h. */
24666
24667/* Override any GCC internal prototype to avoid an error.
24668 Use char because int might match the return type of a GCC
24669 builtin and then its argument prototype would still apply. */
24670#ifdef __cplusplus
24671extern "C"
24672#endif
24673char umem_free ();
24674int
24675main ()
24676{
24677return umem_free ();
24678 ;
24679 return 0;
24680}
24681_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024682if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024683 ac_cv_lib_umem_umem_free=yes
24684else
cristy8b350f62009-11-15 23:12:43 +000024685 ac_cv_lib_umem_umem_free=no
cristy3ed852e2009-09-05 21:47:34 +000024686fi
cristy8b350f62009-11-15 23:12:43 +000024687rm -f core conftest.err conftest.$ac_objext \
24688 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024689LIBS=$ac_check_lib_save_LIBS
24690fi
cristy8b350f62009-11-15 23:12:43 +000024691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
cristy3ed852e2009-09-05 21:47:34 +000024692$as_echo "$ac_cv_lib_umem_umem_free" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024693if test "x$ac_cv_lib_umem_umem_free" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024694 passed=`expr $passed + 1`
24695else
24696 failed=`expr $failed + 1`
24697fi
24698
cristy8b350f62009-11-15 23:12:43 +000024699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000024700$as_echo_n "checking if umem memory allocation library is complete... " >&6; }
24701 if test $passed -gt 0; then
24702 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000024703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000024704$as_echo "no -- some components failed test" >&6; }
24705 have_umem='no (failed tests)'
24706 else
24707 UMEM_LIBS='-lumem'
24708 LIBS="$UMEM_LIBS $LIBS"
24709
cristy8b350f62009-11-15 23:12:43 +000024710$as_echo "#define HasUMEM 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024711
cristy8b350f62009-11-15 23:12:43 +000024712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000024713$as_echo "yes" >&6; }
24714 have_umem='yes'
24715 fi
24716 else
cristy8b350f62009-11-15 23:12:43 +000024717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000024718$as_echo "no" >&6; }
24719 fi
24720fi
24721 if test "$have_umem" = 'yes'; then
24722 HasUMEM_TRUE=
24723 HasUMEM_FALSE='#'
24724else
24725 HasUMEM_TRUE='#'
24726 HasUMEM_FALSE=
24727fi
24728
24729
24730
24731#
24732# Add support for ccmalloc memory debugging library if requested
24733#
24734have_ccmalloc='no'
24735CCMALLOC_LIBS=''
24736if test "$enable_ccmalloc" = 'yes'; then
24737 # Extract the first word of "ccmalloc", so it can be a program name with args.
24738set dummy ccmalloc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000024739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000024740$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024741if test "${ac_cv_path_CCMALLOCDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024742 $as_echo_n "(cached) " >&6
24743else
24744 case $CCMALLOCDelegate in
24745 [\\/]* | ?:[\\/]*)
24746 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
24747 ;;
24748 *)
24749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24750for as_dir in $PATH
24751do
24752 IFS=$as_save_IFS
24753 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000024754 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000024755 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24756 ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000024757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000024758 break 2
24759 fi
24760done
cristy8b350f62009-11-15 23:12:43 +000024761 done
cristy3ed852e2009-09-05 21:47:34 +000024762IFS=$as_save_IFS
24763
24764 ;;
24765esac
24766fi
24767CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
24768if test -n "$CCMALLOCDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000024769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000024770$as_echo "$CCMALLOCDelegate" >&6; }
24771else
cristy8b350f62009-11-15 23:12:43 +000024772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000024773$as_echo "no" >&6; }
24774fi
24775
24776
24777 if test -n "$CCMALLOCDelegate"; then
24778 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
24779 OLIBS="$LIBS"
24780 # Assume that gcc is used with ccmalloc.
24781 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
cristy8b350f62009-11-15 23:12:43 +000024782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000024783$as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024784if test "${ac_cv_lib_ccmalloc_ccmalloc_malloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024785 $as_echo_n "(cached) " >&6
24786else
24787 ac_check_lib_save_LIBS=$LIBS
24788LIBS="-lccmalloc -ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024789cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024790/* end confdefs.h. */
24791
24792/* Override any GCC internal prototype to avoid an error.
24793 Use char because int might match the return type of a GCC
24794 builtin and then its argument prototype would still apply. */
24795#ifdef __cplusplus
24796extern "C"
24797#endif
24798char ccmalloc_malloc ();
24799int
24800main ()
24801{
24802return ccmalloc_malloc ();
24803 ;
24804 return 0;
24805}
24806_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024807if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024808 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
24809else
cristy8b350f62009-11-15 23:12:43 +000024810 ac_cv_lib_ccmalloc_ccmalloc_malloc=no
cristy3ed852e2009-09-05 21:47:34 +000024811fi
cristy8b350f62009-11-15 23:12:43 +000024812rm -f core conftest.err conftest.$ac_objext \
24813 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024814LIBS=$ac_check_lib_save_LIBS
24815fi
cristy8b350f62009-11-15 23:12:43 +000024816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000024817$as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024818if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024819 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
24820fi
24821
24822 if test -n "$CCMALLOC_LIBS"; then
24823 LIBS="$OLIBS"
24824 LIBS="$LIBS $CCMALLOC_LIBS"
24825 have_ccmalloc='yes'
24826 else
24827 LIBS="$OLIBS"
24828 fi
24829 fi
24830fi
24831
24832#
24833# Add support for efence memory debugging library if requested
24834#
24835if test "$enable_efence" = 'yes'; then
24836 EFENCE_LIBS='-lefence'
24837 LIBS="$EFENCE_LIBS $LIBS"
24838fi
24839
cristy3ed852e2009-09-05 21:47:34 +000024840
24841#
24842# Check for BZLIB
24843#
24844
24845
24846# Check whether --with-bzlib was given.
cristy8b350f62009-11-15 23:12:43 +000024847if test "${with_bzlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024848 withval=$with_bzlib; with_bzlib=$withval
24849else
24850 with_bzlib='yes'
24851fi
24852
24853
24854if test "$with_bzlib" != 'yes'; then
24855 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
24856fi
24857
24858have_bzlib='no'
24859if test "$with_bzlib" != 'no'; then
24860 BZLIB_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000024861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000024862$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000024864$as_echo_n "checking for BZLIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000024866$as_echo "" >&6; }
24867 failed=0
24868 passed=0
24869 found_libbz=0
cristy8b350f62009-11-15 23:12:43 +000024870 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
24871if test "x$ac_cv_header_bzlib_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024872 passed=`expr $passed + 1`
24873else
24874 failed=`expr $failed + 1`
24875fi
24876
24877
cristy8b350f62009-11-15 23:12:43 +000024878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000024879$as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024880if test "${ac_cv_lib_bz2_BZ2_bzDecompress+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024881 $as_echo_n "(cached) " >&6
24882else
24883 ac_check_lib_save_LIBS=$LIBS
24884LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024885cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024886/* end confdefs.h. */
24887
24888/* Override any GCC internal prototype to avoid an error.
24889 Use char because int might match the return type of a GCC
24890 builtin and then its argument prototype would still apply. */
24891#ifdef __cplusplus
24892extern "C"
24893#endif
24894char BZ2_bzDecompress ();
24895int
24896main ()
24897{
24898return BZ2_bzDecompress ();
24899 ;
24900 return 0;
24901}
24902_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024903if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024904 ac_cv_lib_bz2_BZ2_bzDecompress=yes
24905else
cristy8b350f62009-11-15 23:12:43 +000024906 ac_cv_lib_bz2_BZ2_bzDecompress=no
cristy3ed852e2009-09-05 21:47:34 +000024907fi
cristy8b350f62009-11-15 23:12:43 +000024908rm -f core conftest.err conftest.$ac_objext \
24909 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024910LIBS=$ac_check_lib_save_LIBS
24911fi
cristy8b350f62009-11-15 23:12:43 +000024912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000024913$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024914if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024915 found_libbz=`expr $found_libbz + 1`
24916fi
24917
24918 if test "$native_win32_build" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000024919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000024920$as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024921if test "${ac_cv_lib_bz2__imp__BZ2_decompress+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024922 $as_echo_n "(cached) " >&6
24923else
24924 ac_check_lib_save_LIBS=$LIBS
24925LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024926cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024927/* end confdefs.h. */
24928
24929/* Override any GCC internal prototype to avoid an error.
24930 Use char because int might match the return type of a GCC
24931 builtin and then its argument prototype would still apply. */
24932#ifdef __cplusplus
24933extern "C"
24934#endif
24935char _imp__BZ2_decompress ();
24936int
24937main ()
24938{
24939return _imp__BZ2_decompress ();
24940 ;
24941 return 0;
24942}
24943_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024944if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024945 ac_cv_lib_bz2__imp__BZ2_decompress=yes
24946else
cristy8b350f62009-11-15 23:12:43 +000024947 ac_cv_lib_bz2__imp__BZ2_decompress=no
cristy3ed852e2009-09-05 21:47:34 +000024948fi
cristy8b350f62009-11-15 23:12:43 +000024949rm -f core conftest.err conftest.$ac_objext \
24950 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024951LIBS=$ac_check_lib_save_LIBS
24952fi
cristy8b350f62009-11-15 23:12:43 +000024953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000024954$as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024955if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024956 found_libbz=`expr $found_libbz + 1`
24957fi
24958
24959 fi
24960 if test $found_libbz -gt 0; then
24961 passed=`expr $passed + 1`
24962 else
24963 failed=`expr $failed + 1`
24964 fi
cristy8b350f62009-11-15 23:12:43 +000024965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000024966$as_echo_n "checking if BZLIB package is complete... " >&6; }
24967 if test $passed -gt 0; then
24968 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000024969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000024970$as_echo "no -- some components failed test" >&6; }
24971 have_bzlib='no (failed tests)'
24972 else
24973 BZLIB_LIBS='-lbz2'
24974 LIBS="$BZLIB_LIBS $LIBS"
24975
cristy8b350f62009-11-15 23:12:43 +000024976$as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024977
cristy8b350f62009-11-15 23:12:43 +000024978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000024979$as_echo "yes" >&6; }
24980 have_bzlib='yes'
24981 fi
24982 else
cristy8b350f62009-11-15 23:12:43 +000024983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000024984$as_echo "no" >&6; }
24985 fi
24986fi
24987 if test "$have_bzlib" = 'yes'; then
24988 BZLIB_DELEGATE_TRUE=
24989 BZLIB_DELEGATE_FALSE='#'
24990else
24991 BZLIB_DELEGATE_TRUE='#'
24992 BZLIB_DELEGATE_FALSE=
24993fi
24994
24995
24996
24997#
24998# Find the X11 include and library directories.
24999#
25000IPC_LIBS=''
25001X11_LIBS=''
25002XEXT_LIBS=''
25003XT_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000025004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
cristyc7083c12009-10-14 03:16:55 +000025005$as_echo_n "checking for X... " >&6; }
25006
25007
25008# Check whether --with-x was given.
cristy8b350f62009-11-15 23:12:43 +000025009if test "${with_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000025010 withval=$with_x;
25011fi
25012
25013# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
25014if test "x$with_x" = xno; then
25015 # The user explicitly disabled X.
25016 have_x=disabled
25017else
25018 case $x_includes,$x_libraries in #(
cristy8b350f62009-11-15 23:12:43 +000025019 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
25020 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000025021 $as_echo_n "(cached) " >&6
25022else
25023 # One or both of the vars are not set, and there is no cached value.
25024ac_x_includes=no ac_x_libraries=no
25025rm -f -r conftest.dir
25026if mkdir conftest.dir; then
25027 cd conftest.dir
25028 cat >Imakefile <<'_ACEOF'
25029incroot:
25030 @echo incroot='${INCROOT}'
25031usrlibdir:
25032 @echo usrlibdir='${USRLIBDIR}'
25033libdir:
25034 @echo libdir='${LIBDIR}'
25035_ACEOF
25036 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
25037 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
25038 for ac_var in incroot usrlibdir libdir; do
25039 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
25040 done
25041 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
25042 for ac_extension in a so sl dylib la dll; do
25043 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
25044 test -f "$ac_im_libdir/libX11.$ac_extension"; then
25045 ac_im_usrlibdir=$ac_im_libdir; break
25046 fi
25047 done
25048 # Screen out bogus values from the imake configuration. They are
25049 # bogus both because they are the default anyway, and because
25050 # using them would break gcc on systems where it needs fixed includes.
25051 case $ac_im_incroot in
25052 /usr/include) ac_x_includes= ;;
25053 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
25054 esac
25055 case $ac_im_usrlibdir in
25056 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
25057 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
25058 esac
25059 fi
25060 cd ..
25061 rm -f -r conftest.dir
25062fi
25063
25064# Standard set of common directories for X headers.
25065# Check X11 before X11Rn because it is often a symlink to the current release.
25066ac_x_header_dirs='
25067/usr/X11/include
cristy8b350f62009-11-15 23:12:43 +000025068/usr/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000025069/usr/X11R6/include
25070/usr/X11R5/include
25071/usr/X11R4/include
25072
25073/usr/include/X11
cristy8b350f62009-11-15 23:12:43 +000025074/usr/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000025075/usr/include/X11R6
25076/usr/include/X11R5
25077/usr/include/X11R4
25078
25079/usr/local/X11/include
cristy8b350f62009-11-15 23:12:43 +000025080/usr/local/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000025081/usr/local/X11R6/include
25082/usr/local/X11R5/include
25083/usr/local/X11R4/include
25084
25085/usr/local/include/X11
cristy8b350f62009-11-15 23:12:43 +000025086/usr/local/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000025087/usr/local/include/X11R6
25088/usr/local/include/X11R5
25089/usr/local/include/X11R4
25090
25091/usr/X386/include
25092/usr/x386/include
25093/usr/XFree86/include/X11
25094
25095/usr/include
25096/usr/local/include
25097/usr/unsupported/include
25098/usr/athena/include
25099/usr/local/x11r5/include
25100/usr/lpp/Xamples/include
25101
25102/usr/openwin/include
25103/usr/openwin/share/include'
25104
25105if test "$ac_x_includes" = no; then
25106 # Guess where to find include files, by looking for Xlib.h.
25107 # First, try using that file with no special directory specified.
cristy8b350f62009-11-15 23:12:43 +000025108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000025109/* end confdefs.h. */
25110#include <X11/Xlib.h>
25111_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025112if ac_fn_c_try_cpp "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000025113 # We can compile using X headers with no special include directory.
25114ac_x_includes=
25115else
cristyc7083c12009-10-14 03:16:55 +000025116 for ac_dir in $ac_x_header_dirs; do
25117 if test -r "$ac_dir/X11/Xlib.h"; then
25118 ac_x_includes=$ac_dir
25119 break
25120 fi
25121done
25122fi
cristyc7083c12009-10-14 03:16:55 +000025123rm -f conftest.err conftest.$ac_ext
25124fi # $ac_x_includes = no
25125
25126if test "$ac_x_libraries" = no; then
25127 # Check for the libraries.
25128 # See if we find them without any special options.
25129 # Don't add to $LIBS permanently.
25130 ac_save_LIBS=$LIBS
25131 LIBS="-lX11 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000025133/* end confdefs.h. */
25134#include <X11/Xlib.h>
25135int
25136main ()
25137{
25138XrmInitialize ()
25139 ;
25140 return 0;
25141}
25142_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025143if ac_fn_c_try_link "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000025144 LIBS=$ac_save_LIBS
25145# We can link X programs with no special library path.
25146ac_x_libraries=
25147else
cristy8b350f62009-11-15 23:12:43 +000025148 LIBS=$ac_save_LIBS
cristyc7083c12009-10-14 03:16:55 +000025149for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
25150do
25151 # Don't even attempt the hair of trying to link an X program!
25152 for ac_extension in a so sl dylib la dll; do
25153 if test -r "$ac_dir/libX11.$ac_extension"; then
25154 ac_x_libraries=$ac_dir
25155 break 2
25156 fi
25157 done
25158done
25159fi
cristy8b350f62009-11-15 23:12:43 +000025160rm -f core conftest.err conftest.$ac_objext \
25161 conftest$ac_exeext conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000025162fi # $ac_x_libraries = no
25163
25164case $ac_x_includes,$ac_x_libraries in #(
25165 no,* | *,no | *\'*)
25166 # Didn't find X, or a directory has "'" in its name.
25167 ac_cv_have_x="have_x=no";; #(
25168 *)
25169 # Record where we found X for the cache.
25170 ac_cv_have_x="have_x=yes\
25171 ac_x_includes='$ac_x_includes'\
25172 ac_x_libraries='$ac_x_libraries'"
25173esac
25174fi
25175;; #(
25176 *) have_x=yes;;
25177 esac
25178 eval "$ac_cv_have_x"
25179fi # $with_x != no
25180
25181if test "$have_x" != yes; then
cristy8b350f62009-11-15 23:12:43 +000025182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
cristyc7083c12009-10-14 03:16:55 +000025183$as_echo "$have_x" >&6; }
25184 no_x=yes
25185else
25186 # If each of the values was on the command line, it overrides each guess.
25187 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
25188 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
25189 # Update the cache value to reflect the command line values.
25190 ac_cv_have_x="have_x=yes\
25191 ac_x_includes='$x_includes'\
25192 ac_x_libraries='$x_libraries'"
cristy8b350f62009-11-15 23:12:43 +000025193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
cristyc7083c12009-10-14 03:16:55 +000025194$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
25195fi
25196
cristy3ed852e2009-09-05 21:47:34 +000025197if test "$no_x" = yes; then
25198 # Not all programs may use this symbol, but it does not hurt to define it.
25199
cristy8b350f62009-11-15 23:12:43 +000025200$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025201
25202 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
25203else
25204 if test -n "$x_includes"; then
25205 X_CFLAGS="$X_CFLAGS -I$x_includes"
25206 fi
25207
25208 # It would also be nice to do this for all -L options, not just this one.
25209 if test -n "$x_libraries"; then
25210 X_LIBS="$X_LIBS -L$x_libraries"
25211 # For Solaris; some versions of Sun CC require a space after -R and
25212 # others require no space. Words are not sufficient . . . .
cristy8b350f62009-11-15 23:12:43 +000025213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
cristy3ed852e2009-09-05 21:47:34 +000025214$as_echo_n "checking whether -R must be followed by a space... " >&6; }
25215 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
25216 ac_xsave_c_werror_flag=$ac_c_werror_flag
25217 ac_c_werror_flag=yes
cristy8b350f62009-11-15 23:12:43 +000025218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025219/* end confdefs.h. */
25220
25221int
25222main ()
25223{
25224
25225 ;
25226 return 0;
25227}
25228_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025229if ac_fn_c_try_link "$LINENO"; then :
25230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025231$as_echo "no" >&6; }
25232 X_LIBS="$X_LIBS -R$x_libraries"
25233else
cristy8b350f62009-11-15 23:12:43 +000025234 LIBS="$ac_xsave_LIBS -R $x_libraries"
25235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025236/* end confdefs.h. */
25237
25238int
25239main ()
25240{
25241
25242 ;
25243 return 0;
25244}
25245_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025246if ac_fn_c_try_link "$LINENO"; then :
25247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000025248$as_echo "yes" >&6; }
25249 X_LIBS="$X_LIBS -R $x_libraries"
25250else
cristy8b350f62009-11-15 23:12:43 +000025251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
cristy3ed852e2009-09-05 21:47:34 +000025252$as_echo "neither works" >&6; }
25253fi
cristy8b350f62009-11-15 23:12:43 +000025254rm -f core conftest.err conftest.$ac_objext \
25255 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025256fi
cristy8b350f62009-11-15 23:12:43 +000025257rm -f core conftest.err conftest.$ac_objext \
25258 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025259 ac_c_werror_flag=$ac_xsave_c_werror_flag
25260 LIBS=$ac_xsave_LIBS
25261 fi
25262
25263 # Check for system-dependent libraries X programs must link with.
25264 # Do this before checking for the system-independent R6 libraries
25265 # (-lICE), since we may need -lsocket or whatever for X linking.
25266
25267 if test "$ISC" = yes; then
25268 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
25269 else
25270 # Martyn Johnson says this is needed for Ultrix, if the X
25271 # libraries were built with DECnet support. And Karl Berry says
25272 # the Alpha needs dnet_stub (dnet does not exist).
25273 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
cristy8b350f62009-11-15 23:12:43 +000025274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025275/* end confdefs.h. */
25276
25277/* Override any GCC internal prototype to avoid an error.
25278 Use char because int might match the return type of a GCC
25279 builtin and then its argument prototype would still apply. */
25280#ifdef __cplusplus
25281extern "C"
25282#endif
25283char XOpenDisplay ();
25284int
25285main ()
25286{
25287return XOpenDisplay ();
25288 ;
25289 return 0;
25290}
25291_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025292if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025293
cristy8b350f62009-11-15 23:12:43 +000025294else
25295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
cristy3ed852e2009-09-05 21:47:34 +000025296$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025297if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025298 $as_echo_n "(cached) " >&6
25299else
25300 ac_check_lib_save_LIBS=$LIBS
25301LIBS="-ldnet $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025302cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025303/* end confdefs.h. */
25304
25305/* Override any GCC internal prototype to avoid an error.
25306 Use char because int might match the return type of a GCC
25307 builtin and then its argument prototype would still apply. */
25308#ifdef __cplusplus
25309extern "C"
25310#endif
25311char dnet_ntoa ();
25312int
25313main ()
25314{
25315return dnet_ntoa ();
25316 ;
25317 return 0;
25318}
25319_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025320if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025321 ac_cv_lib_dnet_dnet_ntoa=yes
25322else
cristy8b350f62009-11-15 23:12:43 +000025323 ac_cv_lib_dnet_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000025324fi
cristy8b350f62009-11-15 23:12:43 +000025325rm -f core conftest.err conftest.$ac_objext \
25326 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025327LIBS=$ac_check_lib_save_LIBS
25328fi
cristy8b350f62009-11-15 23:12:43 +000025329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000025330$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025331if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025332 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
25333fi
25334
25335 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
cristy8b350f62009-11-15 23:12:43 +000025336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
cristy3ed852e2009-09-05 21:47:34 +000025337$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025338if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025339 $as_echo_n "(cached) " >&6
25340else
25341 ac_check_lib_save_LIBS=$LIBS
25342LIBS="-ldnet_stub $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025343cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025344/* end confdefs.h. */
25345
25346/* Override any GCC internal prototype to avoid an error.
25347 Use char because int might match the return type of a GCC
25348 builtin and then its argument prototype would still apply. */
25349#ifdef __cplusplus
25350extern "C"
25351#endif
25352char dnet_ntoa ();
25353int
25354main ()
25355{
25356return dnet_ntoa ();
25357 ;
25358 return 0;
25359}
25360_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025361if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025362 ac_cv_lib_dnet_stub_dnet_ntoa=yes
25363else
cristy8b350f62009-11-15 23:12:43 +000025364 ac_cv_lib_dnet_stub_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000025365fi
cristy8b350f62009-11-15 23:12:43 +000025366rm -f core conftest.err conftest.$ac_objext \
25367 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025368LIBS=$ac_check_lib_save_LIBS
25369fi
cristy8b350f62009-11-15 23:12:43 +000025370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000025371$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025372if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025373 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
25374fi
25375
25376 fi
25377fi
cristy8b350f62009-11-15 23:12:43 +000025378rm -f core conftest.err conftest.$ac_objext \
25379 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025380 LIBS="$ac_xsave_LIBS"
25381
25382 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
25383 # to get the SysV transport functions.
25384 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
25385 # needs -lnsl.
25386 # The nsl library prevents programs from opening the X display
25387 # on Irix 5.2, according to T.E. Dickey.
25388 # The functions gethostbyname, getservbyname, and inet_addr are
25389 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
cristy8b350f62009-11-15 23:12:43 +000025390 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
25391if test "x$ac_cv_func_gethostbyname" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025392
cristy3ed852e2009-09-05 21:47:34 +000025393fi
25394
cristy3ed852e2009-09-05 21:47:34 +000025395 if test $ac_cv_func_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000025396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
cristy3ed852e2009-09-05 21:47:34 +000025397$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025398if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025399 $as_echo_n "(cached) " >&6
25400else
25401 ac_check_lib_save_LIBS=$LIBS
25402LIBS="-lnsl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025403cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025404/* end confdefs.h. */
25405
25406/* Override any GCC internal prototype to avoid an error.
25407 Use char because int might match the return type of a GCC
25408 builtin and then its argument prototype would still apply. */
25409#ifdef __cplusplus
25410extern "C"
25411#endif
25412char gethostbyname ();
25413int
25414main ()
25415{
25416return gethostbyname ();
25417 ;
25418 return 0;
25419}
25420_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025421if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025422 ac_cv_lib_nsl_gethostbyname=yes
25423else
cristy8b350f62009-11-15 23:12:43 +000025424 ac_cv_lib_nsl_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000025425fi
cristy8b350f62009-11-15 23:12:43 +000025426rm -f core conftest.err conftest.$ac_objext \
25427 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025428LIBS=$ac_check_lib_save_LIBS
25429fi
cristy8b350f62009-11-15 23:12:43 +000025430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000025431$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025432if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025433 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
25434fi
25435
25436 if test $ac_cv_lib_nsl_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000025437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
cristy3ed852e2009-09-05 21:47:34 +000025438$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025439if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025440 $as_echo_n "(cached) " >&6
25441else
25442 ac_check_lib_save_LIBS=$LIBS
25443LIBS="-lbsd $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025444cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025445/* end confdefs.h. */
25446
25447/* Override any GCC internal prototype to avoid an error.
25448 Use char because int might match the return type of a GCC
25449 builtin and then its argument prototype would still apply. */
25450#ifdef __cplusplus
25451extern "C"
25452#endif
25453char gethostbyname ();
25454int
25455main ()
25456{
25457return gethostbyname ();
25458 ;
25459 return 0;
25460}
25461_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025462if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025463 ac_cv_lib_bsd_gethostbyname=yes
25464else
cristy8b350f62009-11-15 23:12:43 +000025465 ac_cv_lib_bsd_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000025466fi
cristy8b350f62009-11-15 23:12:43 +000025467rm -f core conftest.err conftest.$ac_objext \
25468 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025469LIBS=$ac_check_lib_save_LIBS
25470fi
cristy8b350f62009-11-15 23:12:43 +000025471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000025472$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025473if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025474 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
25475fi
25476
25477 fi
25478 fi
25479
25480 # lieder@skyler.mavd.honeywell.com says without -lsocket,
25481 # socket/setsockopt and other routines are undefined under SCO ODT
25482 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
25483 # on later versions), says Simon Leinen: it contains gethostby*
25484 # variants that don't use the name server (or something). -lsocket
25485 # must be given before -lnsl if both are needed. We assume that
25486 # if connect needs -lnsl, so does gethostbyname.
cristy8b350f62009-11-15 23:12:43 +000025487 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
25488if test "x$ac_cv_func_connect" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025489
cristy3ed852e2009-09-05 21:47:34 +000025490fi
25491
cristy3ed852e2009-09-05 21:47:34 +000025492 if test $ac_cv_func_connect = no; then
cristy8b350f62009-11-15 23:12:43 +000025493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
cristy3ed852e2009-09-05 21:47:34 +000025494$as_echo_n "checking for connect in -lsocket... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025495if test "${ac_cv_lib_socket_connect+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025496 $as_echo_n "(cached) " >&6
25497else
25498 ac_check_lib_save_LIBS=$LIBS
25499LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025500cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025501/* end confdefs.h. */
25502
25503/* Override any GCC internal prototype to avoid an error.
25504 Use char because int might match the return type of a GCC
25505 builtin and then its argument prototype would still apply. */
25506#ifdef __cplusplus
25507extern "C"
25508#endif
25509char connect ();
25510int
25511main ()
25512{
25513return connect ();
25514 ;
25515 return 0;
25516}
25517_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025518if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025519 ac_cv_lib_socket_connect=yes
25520else
cristy8b350f62009-11-15 23:12:43 +000025521 ac_cv_lib_socket_connect=no
cristy3ed852e2009-09-05 21:47:34 +000025522fi
cristy8b350f62009-11-15 23:12:43 +000025523rm -f core conftest.err conftest.$ac_objext \
25524 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025525LIBS=$ac_check_lib_save_LIBS
25526fi
cristy8b350f62009-11-15 23:12:43 +000025527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
cristy3ed852e2009-09-05 21:47:34 +000025528$as_echo "$ac_cv_lib_socket_connect" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025529if test "x$ac_cv_lib_socket_connect" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025530 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
25531fi
25532
25533 fi
25534
25535 # Guillermo Gomez says -lposix is necessary on A/UX.
cristy8b350f62009-11-15 23:12:43 +000025536 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
25537if test "x$ac_cv_func_remove" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025538
cristy3ed852e2009-09-05 21:47:34 +000025539fi
25540
cristy3ed852e2009-09-05 21:47:34 +000025541 if test $ac_cv_func_remove = no; then
cristy8b350f62009-11-15 23:12:43 +000025542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
cristy3ed852e2009-09-05 21:47:34 +000025543$as_echo_n "checking for remove in -lposix... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025544if test "${ac_cv_lib_posix_remove+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025545 $as_echo_n "(cached) " >&6
25546else
25547 ac_check_lib_save_LIBS=$LIBS
25548LIBS="-lposix $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025549cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025550/* end confdefs.h. */
25551
25552/* Override any GCC internal prototype to avoid an error.
25553 Use char because int might match the return type of a GCC
25554 builtin and then its argument prototype would still apply. */
25555#ifdef __cplusplus
25556extern "C"
25557#endif
25558char remove ();
25559int
25560main ()
25561{
25562return remove ();
25563 ;
25564 return 0;
25565}
25566_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025567if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025568 ac_cv_lib_posix_remove=yes
25569else
cristy8b350f62009-11-15 23:12:43 +000025570 ac_cv_lib_posix_remove=no
cristy3ed852e2009-09-05 21:47:34 +000025571fi
cristy8b350f62009-11-15 23:12:43 +000025572rm -f core conftest.err conftest.$ac_objext \
25573 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025574LIBS=$ac_check_lib_save_LIBS
25575fi
cristy8b350f62009-11-15 23:12:43 +000025576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
cristy3ed852e2009-09-05 21:47:34 +000025577$as_echo "$ac_cv_lib_posix_remove" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025578if test "x$ac_cv_lib_posix_remove" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025579 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
25580fi
25581
25582 fi
25583
25584 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
cristy8b350f62009-11-15 23:12:43 +000025585 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
25586if test "x$ac_cv_func_shmat" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025587
cristy3ed852e2009-09-05 21:47:34 +000025588fi
25589
cristy3ed852e2009-09-05 21:47:34 +000025590 if test $ac_cv_func_shmat = no; then
cristy8b350f62009-11-15 23:12:43 +000025591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
cristy3ed852e2009-09-05 21:47:34 +000025592$as_echo_n "checking for shmat in -lipc... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025593if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025594 $as_echo_n "(cached) " >&6
25595else
25596 ac_check_lib_save_LIBS=$LIBS
25597LIBS="-lipc $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025598cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025599/* end confdefs.h. */
25600
25601/* Override any GCC internal prototype to avoid an error.
25602 Use char because int might match the return type of a GCC
25603 builtin and then its argument prototype would still apply. */
25604#ifdef __cplusplus
25605extern "C"
25606#endif
25607char shmat ();
25608int
25609main ()
25610{
25611return shmat ();
25612 ;
25613 return 0;
25614}
25615_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025616if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025617 ac_cv_lib_ipc_shmat=yes
25618else
cristy8b350f62009-11-15 23:12:43 +000025619 ac_cv_lib_ipc_shmat=no
cristy3ed852e2009-09-05 21:47:34 +000025620fi
cristy8b350f62009-11-15 23:12:43 +000025621rm -f core conftest.err conftest.$ac_objext \
25622 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025623LIBS=$ac_check_lib_save_LIBS
25624fi
cristy8b350f62009-11-15 23:12:43 +000025625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
cristy3ed852e2009-09-05 21:47:34 +000025626$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025627if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025628 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
25629fi
25630
25631 fi
25632 fi
25633
25634 # Check for libraries that X11R6 Xt/Xaw programs need.
25635 ac_save_LDFLAGS=$LDFLAGS
25636 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
25637 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
25638 # check for ICE first), but we must link in the order -lSM -lICE or
25639 # we get undefined symbols. So assume we have SM if we have ICE.
25640 # These have to be linked with before -lX11, unlike the other
25641 # libraries we check for below, so use a different variable.
25642 # John Interrante, Karl Berry
cristy8b350f62009-11-15 23:12:43 +000025643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
cristy3ed852e2009-09-05 21:47:34 +000025644$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025645if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025646 $as_echo_n "(cached) " >&6
25647else
25648 ac_check_lib_save_LIBS=$LIBS
25649LIBS="-lICE $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025650cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025651/* end confdefs.h. */
25652
25653/* Override any GCC internal prototype to avoid an error.
25654 Use char because int might match the return type of a GCC
25655 builtin and then its argument prototype would still apply. */
25656#ifdef __cplusplus
25657extern "C"
25658#endif
25659char IceConnectionNumber ();
25660int
25661main ()
25662{
25663return IceConnectionNumber ();
25664 ;
25665 return 0;
25666}
25667_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025668if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025669 ac_cv_lib_ICE_IceConnectionNumber=yes
25670else
cristy8b350f62009-11-15 23:12:43 +000025671 ac_cv_lib_ICE_IceConnectionNumber=no
cristy3ed852e2009-09-05 21:47:34 +000025672fi
cristy8b350f62009-11-15 23:12:43 +000025673rm -f core conftest.err conftest.$ac_objext \
25674 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025675LIBS=$ac_check_lib_save_LIBS
25676fi
cristy8b350f62009-11-15 23:12:43 +000025677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
cristy3ed852e2009-09-05 21:47:34 +000025678$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025679if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025680 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
25681fi
25682
25683 LDFLAGS=$ac_save_LDFLAGS
25684
25685fi
25686
25687if test "$no_x" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000025688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000025689$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
cristy3ed852e2009-09-05 21:47:34 +000025691$as_echo_n "checking for X11... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000025693$as_echo "" >&6; }
25694 LDFLAGS="$LDFLAGS $X_LIBS"
25695 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
25696 LIBS="$X11_LIBS $LIBS"
25697 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
25698
25699
cristy8b350f62009-11-15 23:12:43 +000025700$as_echo "#define X11_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025701
25702 #
25703 # Check for X11 shared memory extension
25704 #
25705 # shmctl is required to support the shared memory extension
cristy8b350f62009-11-15 23:12:43 +000025706 ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
25707if test "x$ac_cv_func_shmctl" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025708 have_shmctl='yes'
25709fi
25710
25711 if test "$have_shmctl" != 'yes'; then
25712 PERSIST_LIBS=$LIBS
25713 LIBS="$LIBS -lcygipc"
cristy8b350f62009-11-15 23:12:43 +000025714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025715/* end confdefs.h. */
25716
25717/* Override any GCC internal prototype to avoid an error.
25718 Use char because int might match the return type of a GCC
25719 builtin and then its argument prototype would still apply. */
25720#ifdef __cplusplus
25721extern "C"
25722#endif
25723char shmctl ();
25724int
25725main ()
25726{
25727return shmctl ();
25728 ;
25729 return 0;
25730}
25731_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025732if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025733 have_shmctl='yes'; IPC_LIBS='-lcygipc'
cristy3ed852e2009-09-05 21:47:34 +000025734fi
cristy8b350f62009-11-15 23:12:43 +000025735rm -f core conftest.err conftest.$ac_objext \
25736 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025737 LIBS=$PERSIST_LIBS
25738 fi
25739
25740 if test "$have_shmctl" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000025741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025742$as_echo_n "checking for XShmAttach in -lXext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025743if test "${ac_cv_lib_Xext_XShmAttach+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025744 $as_echo_n "(cached) " >&6
25745else
25746 ac_check_lib_save_LIBS=$LIBS
25747LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025748cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025749/* end confdefs.h. */
25750
25751/* Override any GCC internal prototype to avoid an error.
25752 Use char because int might match the return type of a GCC
25753 builtin and then its argument prototype would still apply. */
25754#ifdef __cplusplus
25755extern "C"
25756#endif
25757char XShmAttach ();
25758int
25759main ()
25760{
25761return XShmAttach ();
25762 ;
25763 return 0;
25764}
25765_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025766if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025767 ac_cv_lib_Xext_XShmAttach=yes
25768else
cristy8b350f62009-11-15 23:12:43 +000025769 ac_cv_lib_Xext_XShmAttach=no
cristy3ed852e2009-09-05 21:47:34 +000025770fi
cristy8b350f62009-11-15 23:12:43 +000025771rm -f core conftest.err conftest.$ac_objext \
25772 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025773LIBS=$ac_check_lib_save_LIBS
25774fi
cristy8b350f62009-11-15 23:12:43 +000025775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
cristy3ed852e2009-09-05 21:47:34 +000025776$as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025777if test "x$ac_cv_lib_Xext_XShmAttach" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025778 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000025779$as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025780
25781fi
25782
25783 fi
25784
25785 #
25786 # Check for X11 shape extension
25787 #
cristy8b350f62009-11-15 23:12:43 +000025788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025789$as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025790if test "${ac_cv_lib_Xext_XShapeCombineMask+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025791 $as_echo_n "(cached) " >&6
25792else
25793 ac_check_lib_save_LIBS=$LIBS
25794LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025795cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025796/* end confdefs.h. */
25797
25798/* Override any GCC internal prototype to avoid an error.
25799 Use char because int might match the return type of a GCC
25800 builtin and then its argument prototype would still apply. */
25801#ifdef __cplusplus
25802extern "C"
25803#endif
25804char XShapeCombineMask ();
25805int
25806main ()
25807{
25808return XShapeCombineMask ();
25809 ;
25810 return 0;
25811}
25812_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025813if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025814 ac_cv_lib_Xext_XShapeCombineMask=yes
25815else
cristy8b350f62009-11-15 23:12:43 +000025816 ac_cv_lib_Xext_XShapeCombineMask=no
cristy3ed852e2009-09-05 21:47:34 +000025817fi
cristy8b350f62009-11-15 23:12:43 +000025818rm -f core conftest.err conftest.$ac_objext \
25819 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025820LIBS=$ac_check_lib_save_LIBS
25821fi
cristy8b350f62009-11-15 23:12:43 +000025822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
cristy3ed852e2009-09-05 21:47:34 +000025823$as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025824if test "x$ac_cv_lib_Xext_XShapeCombineMask" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025825 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000025826$as_echo "#define HAVE_SHAPE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025827
25828fi
25829
cristy8b350f62009-11-15 23:12:43 +000025830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
cristy3ed852e2009-09-05 21:47:34 +000025831$as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025832if test "${ac_cv_lib_Xt_XtSetEventDispatcher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025833 $as_echo_n "(cached) " >&6
25834else
25835 ac_check_lib_save_LIBS=$LIBS
25836LIBS="-lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025837cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025838/* end confdefs.h. */
25839
25840/* Override any GCC internal prototype to avoid an error.
25841 Use char because int might match the return type of a GCC
25842 builtin and then its argument prototype would still apply. */
25843#ifdef __cplusplus
25844extern "C"
25845#endif
25846char XtSetEventDispatcher ();
25847int
25848main ()
25849{
25850return XtSetEventDispatcher ();
25851 ;
25852 return 0;
25853}
25854_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025855if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025856 ac_cv_lib_Xt_XtSetEventDispatcher=yes
25857else
cristy8b350f62009-11-15 23:12:43 +000025858 ac_cv_lib_Xt_XtSetEventDispatcher=no
cristy3ed852e2009-09-05 21:47:34 +000025859fi
cristy8b350f62009-11-15 23:12:43 +000025860rm -f core conftest.err conftest.$ac_objext \
25861 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025862LIBS=$ac_check_lib_save_LIBS
25863fi
cristy8b350f62009-11-15 23:12:43 +000025864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
cristy3ed852e2009-09-05 21:47:34 +000025865$as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025866if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025867 XT_LIBS='-lXt'
25868fi
25869
25870 LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
25871fi
25872if test "$no_x" != 'yes'; then
25873 have_x='yes'
25874else
25875 have_x='no'
25876fi
25877 if test "$have_x" = 'yes'; then
25878 X11_DELEGATE_TRUE=
25879 X11_DELEGATE_FALSE='#'
25880else
25881 X11_DELEGATE_TRUE='#'
25882 X11_DELEGATE_FALSE=
25883fi
25884
25885
25886
25887
25888
25889#
25890# Check for ZLIB
25891#
25892
25893# Check whether --with-zlib was given.
cristy8b350f62009-11-15 23:12:43 +000025894if test "${with_zlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025895 withval=$with_zlib; with_zlib=$withval
25896else
25897 with_zlib='yes'
25898fi
25899
25900
25901if test "$with_zlib" != 'yes'; then
25902 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
25903fi
25904
25905have_zlib='no'
25906ZLIB_LIBS=''
25907if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000025908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000025909$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000025911$as_echo_n "checking for ZLIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000025913$as_echo "" >&6; }
25914 ZLIB_LIBS=''
25915 failed=0
25916 passed=0
cristy8b350f62009-11-15 23:12:43 +000025917 ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
25918if test "x$ac_cv_header_zconf_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025919 passed=`expr $passed + 1`
25920else
25921 failed=`expr $failed + 1`
25922fi
25923
25924
cristy8b350f62009-11-15 23:12:43 +000025925 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
25926if test "x$ac_cv_header_zlib_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025927 passed=`expr $passed + 1`
25928else
25929 failed=`expr $failed + 1`
25930fi
25931
25932
cristy8b350f62009-11-15 23:12:43 +000025933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000025934$as_echo_n "checking for compress in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025935if test "${ac_cv_lib_z_compress+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025936 $as_echo_n "(cached) " >&6
25937else
25938 ac_check_lib_save_LIBS=$LIBS
25939LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025940cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025941/* end confdefs.h. */
25942
25943/* Override any GCC internal prototype to avoid an error.
25944 Use char because int might match the return type of a GCC
25945 builtin and then its argument prototype would still apply. */
25946#ifdef __cplusplus
25947extern "C"
25948#endif
25949char compress ();
25950int
25951main ()
25952{
25953return compress ();
25954 ;
25955 return 0;
25956}
25957_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025958if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025959 ac_cv_lib_z_compress=yes
25960else
cristy8b350f62009-11-15 23:12:43 +000025961 ac_cv_lib_z_compress=no
cristy3ed852e2009-09-05 21:47:34 +000025962fi
cristy8b350f62009-11-15 23:12:43 +000025963rm -f core conftest.err conftest.$ac_objext \
25964 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025965LIBS=$ac_check_lib_save_LIBS
25966fi
cristy8b350f62009-11-15 23:12:43 +000025967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
cristy3ed852e2009-09-05 21:47:34 +000025968$as_echo "$ac_cv_lib_z_compress" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025969if test "x$ac_cv_lib_z_compress" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025970 passed=`expr $passed + 1`
25971else
25972 failed=`expr $failed + 1`
25973fi
25974
cristy8b350f62009-11-15 23:12:43 +000025975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000025976$as_echo_n "checking for uncompress in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025977if test "${ac_cv_lib_z_uncompress+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025978 $as_echo_n "(cached) " >&6
25979else
25980 ac_check_lib_save_LIBS=$LIBS
25981LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025982cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025983/* end confdefs.h. */
25984
25985/* Override any GCC internal prototype to avoid an error.
25986 Use char because int might match the return type of a GCC
25987 builtin and then its argument prototype would still apply. */
25988#ifdef __cplusplus
25989extern "C"
25990#endif
25991char uncompress ();
25992int
25993main ()
25994{
25995return uncompress ();
25996 ;
25997 return 0;
25998}
25999_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026000if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026001 ac_cv_lib_z_uncompress=yes
26002else
cristy8b350f62009-11-15 23:12:43 +000026003 ac_cv_lib_z_uncompress=no
cristy3ed852e2009-09-05 21:47:34 +000026004fi
cristy8b350f62009-11-15 23:12:43 +000026005rm -f core conftest.err conftest.$ac_objext \
26006 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026007LIBS=$ac_check_lib_save_LIBS
26008fi
cristy8b350f62009-11-15 23:12:43 +000026009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000026010$as_echo "$ac_cv_lib_z_uncompress" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026011if test "x$ac_cv_lib_z_uncompress" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026012 passed=`expr $passed + 1`
26013else
26014 failed=`expr $failed + 1`
26015fi
26016
cristy8b350f62009-11-15 23:12:43 +000026017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000026018$as_echo_n "checking for deflate in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026019if test "${ac_cv_lib_z_deflate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026020 $as_echo_n "(cached) " >&6
26021else
26022 ac_check_lib_save_LIBS=$LIBS
26023LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026024cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026025/* end confdefs.h. */
26026
26027/* Override any GCC internal prototype to avoid an error.
26028 Use char because int might match the return type of a GCC
26029 builtin and then its argument prototype would still apply. */
26030#ifdef __cplusplus
26031extern "C"
26032#endif
26033char deflate ();
26034int
26035main ()
26036{
26037return deflate ();
26038 ;
26039 return 0;
26040}
26041_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026042if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026043 ac_cv_lib_z_deflate=yes
26044else
cristy8b350f62009-11-15 23:12:43 +000026045 ac_cv_lib_z_deflate=no
cristy3ed852e2009-09-05 21:47:34 +000026046fi
cristy8b350f62009-11-15 23:12:43 +000026047rm -f core conftest.err conftest.$ac_objext \
26048 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026049LIBS=$ac_check_lib_save_LIBS
26050fi
cristy8b350f62009-11-15 23:12:43 +000026051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000026052$as_echo "$ac_cv_lib_z_deflate" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026053if test "x$ac_cv_lib_z_deflate" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026054 passed=`expr $passed + 1`
26055else
26056 failed=`expr $failed + 1`
26057fi
26058
cristy8b350f62009-11-15 23:12:43 +000026059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000026060$as_echo_n "checking for inflate in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026061if test "${ac_cv_lib_z_inflate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026062 $as_echo_n "(cached) " >&6
26063else
26064 ac_check_lib_save_LIBS=$LIBS
26065LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026066cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026067/* end confdefs.h. */
26068
26069/* Override any GCC internal prototype to avoid an error.
26070 Use char because int might match the return type of a GCC
26071 builtin and then its argument prototype would still apply. */
26072#ifdef __cplusplus
26073extern "C"
26074#endif
26075char inflate ();
26076int
26077main ()
26078{
26079return inflate ();
26080 ;
26081 return 0;
26082}
26083_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026084if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026085 ac_cv_lib_z_inflate=yes
26086else
cristy8b350f62009-11-15 23:12:43 +000026087 ac_cv_lib_z_inflate=no
cristy3ed852e2009-09-05 21:47:34 +000026088fi
cristy8b350f62009-11-15 23:12:43 +000026089rm -f core conftest.err conftest.$ac_objext \
26090 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026091LIBS=$ac_check_lib_save_LIBS
26092fi
cristy8b350f62009-11-15 23:12:43 +000026093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000026094$as_echo "$ac_cv_lib_z_inflate" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026095if test "x$ac_cv_lib_z_inflate" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026096 passed=`expr $passed + 1`
26097else
26098 failed=`expr $failed + 1`
26099fi
26100
cristy8b350f62009-11-15 23:12:43 +000026101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000026102$as_echo_n "checking for gzseek in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026103if test "${ac_cv_lib_z_gzseek+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026104 $as_echo_n "(cached) " >&6
26105else
26106 ac_check_lib_save_LIBS=$LIBS
26107LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026108cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026109/* end confdefs.h. */
26110
26111/* Override any GCC internal prototype to avoid an error.
26112 Use char because int might match the return type of a GCC
26113 builtin and then its argument prototype would still apply. */
26114#ifdef __cplusplus
26115extern "C"
26116#endif
26117char gzseek ();
26118int
26119main ()
26120{
26121return gzseek ();
26122 ;
26123 return 0;
26124}
26125_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026126if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026127 ac_cv_lib_z_gzseek=yes
26128else
cristy8b350f62009-11-15 23:12:43 +000026129 ac_cv_lib_z_gzseek=no
cristy3ed852e2009-09-05 21:47:34 +000026130fi
cristy8b350f62009-11-15 23:12:43 +000026131rm -f core conftest.err conftest.$ac_objext \
26132 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026133LIBS=$ac_check_lib_save_LIBS
26134fi
cristy8b350f62009-11-15 23:12:43 +000026135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
cristy3ed852e2009-09-05 21:47:34 +000026136$as_echo "$ac_cv_lib_z_gzseek" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026137if test "x$ac_cv_lib_z_gzseek" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026138 passed=`expr $passed + 1`
26139else
26140 failed=`expr $failed + 1`
26141fi
26142
cristy8b350f62009-11-15 23:12:43 +000026143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000026144$as_echo_n "checking for gztell in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026145if test "${ac_cv_lib_z_gztell+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026146 $as_echo_n "(cached) " >&6
26147else
26148 ac_check_lib_save_LIBS=$LIBS
26149LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026150cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026151/* end confdefs.h. */
26152
26153/* Override any GCC internal prototype to avoid an error.
26154 Use char because int might match the return type of a GCC
26155 builtin and then its argument prototype would still apply. */
26156#ifdef __cplusplus
26157extern "C"
26158#endif
26159char gztell ();
26160int
26161main ()
26162{
26163return gztell ();
26164 ;
26165 return 0;
26166}
26167_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026168if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026169 ac_cv_lib_z_gztell=yes
26170else
cristy8b350f62009-11-15 23:12:43 +000026171 ac_cv_lib_z_gztell=no
cristy3ed852e2009-09-05 21:47:34 +000026172fi
cristy8b350f62009-11-15 23:12:43 +000026173rm -f core conftest.err conftest.$ac_objext \
26174 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026175LIBS=$ac_check_lib_save_LIBS
26176fi
cristy8b350f62009-11-15 23:12:43 +000026177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
cristy3ed852e2009-09-05 21:47:34 +000026178$as_echo "$ac_cv_lib_z_gztell" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026179if test "x$ac_cv_lib_z_gztell" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026180 passed=`expr $passed + 1`
26181else
26182 failed=`expr $failed + 1`
26183fi
26184
cristy8b350f62009-11-15 23:12:43 +000026185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026186$as_echo_n "checking if ZLIB package is complete... " >&6; }
26187 if test $passed -gt 0; then
26188 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026190$as_echo "no -- some components failed test" >&6; }
26191 have_zlib='no (failed tests)'
26192 else
26193 ZLIB_LIBS='-lz'
26194 LIBS="$ZLIB_LIBS $LIBS"
26195
cristy8b350f62009-11-15 23:12:43 +000026196$as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026197
cristy8b350f62009-11-15 23:12:43 +000026198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026199$as_echo "yes" >&6; }
26200 have_zlib='yes'
26201 fi
26202 else
cristy8b350f62009-11-15 23:12:43 +000026203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026204$as_echo "no" >&6; }
26205 fi
26206fi
26207 if test "$have_zlib" = 'yes'; then
26208 ZLIB_DELEGATE_TRUE=
26209 ZLIB_DELEGATE_FALSE='#'
26210else
26211 ZLIB_DELEGATE_TRUE='#'
26212 ZLIB_DELEGATE_FALSE=
26213fi
26214
26215
26216
26217#
26218# If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
26219#
26220LIB_DL=''
26221if test "$enable_profiling" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000026222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000026223$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026224if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026225 $as_echo_n "(cached) " >&6
26226else
26227 ac_check_lib_save_LIBS=$LIBS
26228LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026229cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026230/* end confdefs.h. */
26231
26232/* Override any GCC internal prototype to avoid an error.
26233 Use char because int might match the return type of a GCC
26234 builtin and then its argument prototype would still apply. */
26235#ifdef __cplusplus
26236extern "C"
26237#endif
26238char dlopen ();
26239int
26240main ()
26241{
26242return dlopen ();
26243 ;
26244 return 0;
26245}
26246_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026247if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026248 ac_cv_lib_dl_dlopen=yes
26249else
cristy8b350f62009-11-15 23:12:43 +000026250 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000026251fi
cristy8b350f62009-11-15 23:12:43 +000026252rm -f core conftest.err conftest.$ac_objext \
26253 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026254LIBS=$ac_check_lib_save_LIBS
26255fi
cristy8b350f62009-11-15 23:12:43 +000026256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000026257$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026258if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026259 LIB_DL='-ldl'
26260fi
26261
26262 LIBS="$LIB_DL $LIBS"
26263fi
26264
26265
26266
26267#
26268# Check for Autotrace delegate library.
26269#
26270
26271# Check whether --with-autotrace was given.
cristy8b350f62009-11-15 23:12:43 +000026272if test "${with_autotrace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026273 withval=$with_autotrace; with_autotrace=$withval
26274else
26275 with_autotrace='no'
26276fi
26277
26278
26279if test "$with_autotrace" != 'yes'; then
26280 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
26281fi
26282
26283have_autotrace='no'
26284AUTOTRACE_CFLAGS=""
26285AUTOTRACE_LIBS=""
26286AUTOTRACE_PKG=""
26287if test "x$with_autotrace" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000026288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026289$as_echo "-------------------------------------------------------------" >&6; }
26290
26291pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000026292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
cristy3ed852e2009-09-05 21:47:34 +000026293$as_echo_n "checking for AUTOTRACE... " >&6; }
26294
26295if test -n "$AUTOTRACE_CFLAGS"; then
26296 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
26297 elif test -n "$PKG_CONFIG"; then
26298 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000026299 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000026300 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
26301 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000026302 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26303 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000026304 pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
26305else
26306 pkg_failed=yes
26307fi
26308 else
26309 pkg_failed=untried
26310fi
26311if test -n "$AUTOTRACE_LIBS"; then
26312 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
26313 elif test -n "$PKG_CONFIG"; then
26314 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000026315 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000026316 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
26317 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000026318 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26319 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000026320 pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
26321else
26322 pkg_failed=yes
26323fi
26324 else
26325 pkg_failed=untried
26326fi
26327
26328
26329
26330if test $pkg_failed = yes; then
26331
26332if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26333 _pkg_short_errors_supported=yes
26334else
26335 _pkg_short_errors_supported=no
26336fi
26337 if test $_pkg_short_errors_supported = yes; then
26338 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1`
26339 else
26340 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1`
26341 fi
26342 # Put the nasty error message in config.log where it belongs
26343 echo "$AUTOTRACE_PKG_ERRORS" >&5
26344
cristy8b350f62009-11-15 23:12:43 +000026345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026346$as_echo "no" >&6; }
26347 have_autotrace=no
26348elif test $pkg_failed = untried; then
26349 have_autotrace=no
26350else
26351 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
26352 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
cristy8b350f62009-11-15 23:12:43 +000026353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026354$as_echo "yes" >&6; }
26355 have_autotrace=yes
26356fi
cristy8b350f62009-11-15 23:12:43 +000026357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026358$as_echo "" >&6; }
26359fi
26360
26361if test "$have_autotrace" = 'yes'; then
26362 failed=0
26363
cristy8b350f62009-11-15 23:12:43 +000026364$as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026365
26366 if test "$with_modules" = 'no'; then
26367 CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
26368 fi
26369fi
26370
26371 if test "$have_autotrace" = 'yes'; then
26372 AUTOTRACE_DELEGATE_TRUE=
26373 AUTOTRACE_DELEGATE_FALSE='#'
26374else
26375 AUTOTRACE_DELEGATE_TRUE='#'
26376 AUTOTRACE_DELEGATE_FALSE=
26377fi
26378
26379
26380
26381
26382
26383#
26384# Check for Display Postscript delegate library.
26385#
26386
26387# Check whether --with-dps was given.
cristy8b350f62009-11-15 23:12:43 +000026388if test "${with_dps+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026389 withval=$with_dps; with_dps=$withval
26390else
26391 with_dps='yes'
26392fi
26393
26394
26395if test "$with_dps" != 'yes'; then
26396 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
26397fi
26398
26399have_dps='no'
26400DPS_LIBS=''
26401if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026403$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000026405$as_echo_n "checking for DPS... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026407$as_echo "" >&6; }
26408 failed=0
26409 passed=0
26410 PERSIST_CPPFLAGS="$CPPFLAGS"
26411 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
cristy8b350f62009-11-15 23:12:43 +000026412 ac_fn_c_check_header_mongrel "$LINENO" "DPS/dpsXclient.h" "ac_cv_header_DPS_dpsXclient_h" "$ac_includes_default"
26413if test "x$ac_cv_header_DPS_dpsXclient_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026414 passed=`expr $passed + 1`
26415else
26416 failed=`expr $failed + 1`
26417fi
26418
26419
26420 # DPS issues:
26421 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
26422 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
26423 # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
26424 # ImageMagick itself doesn't use -lXt.
26425 have_libdps='no'
26426 LIBDPS_XT=''
cristy8b350f62009-11-15 23:12:43 +000026427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000026428$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026429if test "${ac_cv_lib_dps_DPSInitialize+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026430 $as_echo_n "(cached) " >&6
26431else
26432 ac_check_lib_save_LIBS=$LIBS
26433LIBS="-ldps $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026434cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026435/* end confdefs.h. */
26436
26437/* Override any GCC internal prototype to avoid an error.
26438 Use char because int might match the return type of a GCC
26439 builtin and then its argument prototype would still apply. */
26440#ifdef __cplusplus
26441extern "C"
26442#endif
26443char DPSInitialize ();
26444int
26445main ()
26446{
26447return DPSInitialize ();
26448 ;
26449 return 0;
26450}
26451_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026452if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026453 ac_cv_lib_dps_DPSInitialize=yes
26454else
cristy8b350f62009-11-15 23:12:43 +000026455 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000026456fi
cristy8b350f62009-11-15 23:12:43 +000026457rm -f core conftest.err conftest.$ac_objext \
26458 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026459LIBS=$ac_check_lib_save_LIBS
26460fi
cristy8b350f62009-11-15 23:12:43 +000026461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000026462$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026463if test "x$ac_cv_lib_dps_DPSInitialize" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026464 have_libdps='yes'
26465else
26466 have_libdps='no'
26467fi
26468
26469 if test "$have_libdps" != 'yes'; then
26470 # Unset cache variable so we can try again.
26471 unset ac_cv_lib_dps_DPSInitialize
cristy8b350f62009-11-15 23:12:43 +000026472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000026473$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026474if test "${ac_cv_lib_dps_DPSInitialize+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026475 $as_echo_n "(cached) " >&6
26476else
26477 ac_check_lib_save_LIBS=$LIBS
26478LIBS="-ldps -lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026479cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026480/* end confdefs.h. */
26481
26482/* Override any GCC internal prototype to avoid an error.
26483 Use char because int might match the return type of a GCC
26484 builtin and then its argument prototype would still apply. */
26485#ifdef __cplusplus
26486extern "C"
26487#endif
26488char DPSInitialize ();
26489int
26490main ()
26491{
26492return DPSInitialize ();
26493 ;
26494 return 0;
26495}
26496_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026497if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026498 ac_cv_lib_dps_DPSInitialize=yes
26499else
cristy8b350f62009-11-15 23:12:43 +000026500 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000026501fi
cristy8b350f62009-11-15 23:12:43 +000026502rm -f core conftest.err conftest.$ac_objext \
26503 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026504LIBS=$ac_check_lib_save_LIBS
26505fi
cristy8b350f62009-11-15 23:12:43 +000026506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000026507$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026508if test "x$ac_cv_lib_dps_DPSInitialize" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026509 have_libdps='yes'
26510else
26511 have_libdps='no'
26512fi
26513
26514 if test "$have_libdps" = 'yes'; then
26515 LIBDPS_XT='-lXt'
26516 fi
26517 fi
26518 if test "$have_libdps" = 'yes'; then
26519 passed=`expr $passed + 1`
26520 else
26521 failed=`expr $failed + 1`
26522 fi
cristy8b350f62009-11-15 23:12:43 +000026523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
cristy3ed852e2009-09-05 21:47:34 +000026524$as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026525if test "${ac_cv_lib_dpstk_XDPSPixelsPerPoint+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026526 $as_echo_n "(cached) " >&6
26527else
26528 ac_check_lib_save_LIBS=$LIBS
26529LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026530cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026531/* end confdefs.h. */
26532
26533/* Override any GCC internal prototype to avoid an error.
26534 Use char because int might match the return type of a GCC
26535 builtin and then its argument prototype would still apply. */
26536#ifdef __cplusplus
26537extern "C"
26538#endif
26539char XDPSPixelsPerPoint ();
26540int
26541main ()
26542{
26543return XDPSPixelsPerPoint ();
26544 ;
26545 return 0;
26546}
26547_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026548if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026549 ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
26550else
cristy8b350f62009-11-15 23:12:43 +000026551 ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
cristy3ed852e2009-09-05 21:47:34 +000026552fi
cristy8b350f62009-11-15 23:12:43 +000026553rm -f core conftest.err conftest.$ac_objext \
26554 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026555LIBS=$ac_check_lib_save_LIBS
26556fi
cristy8b350f62009-11-15 23:12:43 +000026557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
cristy3ed852e2009-09-05 21:47:34 +000026558$as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026559if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026560 passed=`expr $passed + 1`
26561else
26562 failed=`expr $failed + 1`
26563fi
26564
cristy8b350f62009-11-15 23:12:43 +000026565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026566$as_echo_n "checking if DPS package is complete... " >&6; }
26567 if test $passed -gt 0; then
26568 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026570$as_echo "no -- some components failed test" >&6; }
26571 have_dps='no (failed tests)'
26572 CPPFLAGS="$PERSIST_CPPFLAGS"
26573 else
26574 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
26575 LIBS="$DPS_LIBS $LIBS"
26576
cristy8b350f62009-11-15 23:12:43 +000026577$as_echo "#define DPS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026578
cristy8b350f62009-11-15 23:12:43 +000026579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026580$as_echo "yes" >&6; }
26581 have_dps='yes'
26582 fi
26583 else
cristy8b350f62009-11-15 23:12:43 +000026584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026585$as_echo "no" >&6; }
26586 CPPFLAGS=$PERSIST_CPPFLAGS
26587 fi
26588fi
26589 if test "$have_dps" = 'yes'; then
26590 DPS_DELEGATE_TRUE=
26591 DPS_DELEGATE_FALSE='#'
26592else
26593 DPS_DELEGATE_TRUE='#'
26594 DPS_DELEGATE_FALSE=
26595fi
26596
26597
26598
26599
26600#
26601# Check for DJVU delegate library.
26602#
26603
26604# Check whether --with-djvu was given.
cristy8b350f62009-11-15 23:12:43 +000026605if test "${with_djvu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026606 withval=$with_djvu; with_djvu=$withval
26607else
26608 with_djvu='yes'
26609fi
26610
26611
26612if test "$with_djvu" != 'yes'; then
26613 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
26614fi
26615
26616have_djvu='no'
26617DJVU_LIBS=''
26618if test "$with_djvu" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026620$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5
cristy3ed852e2009-09-05 21:47:34 +000026622$as_echo_n "checking for DJVU... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026624$as_echo "" >&6; }
26625 failed=0
26626 passed=0
cristy8b350f62009-11-15 23:12:43 +000026627 ac_fn_c_check_header_mongrel "$LINENO" "libdjvu/ddjvuapi.h" "ac_cv_header_libdjvu_ddjvuapi_h" "$ac_includes_default"
26628if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026629 passed=`expr $passed + 1`
26630else
26631 failed=`expr $failed + 1`
26632fi
26633
26634
cristy8b350f62009-11-15 23:12:43 +000026635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_context_create in -ldjvulibre" >&5
cristy3ed852e2009-09-05 21:47:34 +000026636$as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026637if test "${ac_cv_lib_djvulibre_ddjvu_context_create+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026638 $as_echo_n "(cached) " >&6
26639else
26640 ac_check_lib_save_LIBS=$LIBS
26641LIBS="-ldjvulibre $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026642cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026643/* end confdefs.h. */
26644
26645/* Override any GCC internal prototype to avoid an error.
26646 Use char because int might match the return type of a GCC
26647 builtin and then its argument prototype would still apply. */
26648#ifdef __cplusplus
26649extern "C"
26650#endif
26651char ddjvu_context_create ();
26652int
26653main ()
26654{
26655return ddjvu_context_create ();
26656 ;
26657 return 0;
26658}
26659_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026660if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026661 ac_cv_lib_djvulibre_ddjvu_context_create=yes
26662else
cristy8b350f62009-11-15 23:12:43 +000026663 ac_cv_lib_djvulibre_ddjvu_context_create=no
cristy3ed852e2009-09-05 21:47:34 +000026664fi
cristy8b350f62009-11-15 23:12:43 +000026665rm -f core conftest.err conftest.$ac_objext \
26666 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026667LIBS=$ac_check_lib_save_LIBS
26668fi
cristy8b350f62009-11-15 23:12:43 +000026669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
cristy3ed852e2009-09-05 21:47:34 +000026670$as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026671if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026672 passed=`expr $passed + 1`
26673else
26674 failed=`expr $failed + 1`
26675fi
26676
cristy8b350f62009-11-15 23:12:43 +000026677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DJVU package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026678$as_echo_n "checking if DJVU package is complete... " >&6; }
26679 if test $passed -gt 0; then
26680 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026682$as_echo "no -- some components failed test" >&6; }
26683 have_djvu='no (failed tests)'
26684 else
26685 DJVU_LIBS='-ldjvulibre'
26686 LIBS="$DJVU_LIBS $LIBS"
26687
cristy8b350f62009-11-15 23:12:43 +000026688$as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026689
cristy8b350f62009-11-15 23:12:43 +000026690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026691$as_echo "yes" >&6; }
26692 have_djvu='yes'
26693 fi
26694 else
cristy8b350f62009-11-15 23:12:43 +000026695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026696$as_echo "no" >&6; }
26697 fi
26698fi
26699 if test "$have_djvu" = 'yes'; then
26700 DJVU_DELEGATE_TRUE=
26701 DJVU_DELEGATE_FALSE='#'
26702else
26703 DJVU_DELEGATE_TRUE='#'
26704 DJVU_DELEGATE_FALSE=
26705fi
26706
26707
26708
26709
26710#
cristy430a7312010-01-21 20:44:04 +000026711# Set DejaVu font directory.
26712#
26713
26714# Check whether --with-dejavu-font-dir was given.
26715if test "${with_dejavu_font_dir+set}" = set; then :
26716 withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval
26717else
26718 with_dejavu_font_dir='default'
26719fi
26720
26721
26722if test "$with_dejavu_font_dir" != 'default'; then
26723 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir "
26724fi
26725
26726
26727#
cristy3ed852e2009-09-05 21:47:34 +000026728# Check for FFTW delegate library.
26729#
26730
26731# Check whether --with-fftw was given.
cristy8b350f62009-11-15 23:12:43 +000026732if test "${with_fftw+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026733 withval=$with_fftw; with_fftw=$withval
26734else
26735 with_fftw='yes'
26736fi
26737
26738
26739if test "$with_fftw" != 'yes'; then
26740 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
26741fi
26742
26743have_fftw='no'
26744FFTW_LIBS=''
26745if test "$with_fftw" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026747$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5
cristy3ed852e2009-09-05 21:47:34 +000026749$as_echo_n "checking for FFTW... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026751$as_echo "" >&6; }
26752 failed=0
26753 passed=0
cristy8b350f62009-11-15 23:12:43 +000026754 ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
26755if test "x$ac_cv_header_fftw3_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026756 passed=`expr $passed + 1`
26757else
26758 failed=`expr $failed + 1`
26759fi
26760
26761
cristy8b350f62009-11-15 23:12:43 +000026762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
cristy3ed852e2009-09-05 21:47:34 +000026763$as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026764if test "${ac_cv_lib_fftw3_fftw_execute+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026765 $as_echo_n "(cached) " >&6
26766else
26767 ac_check_lib_save_LIBS=$LIBS
26768LIBS="-lfftw3 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026769cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026770/* end confdefs.h. */
26771
26772/* Override any GCC internal prototype to avoid an error.
26773 Use char because int might match the return type of a GCC
26774 builtin and then its argument prototype would still apply. */
26775#ifdef __cplusplus
26776extern "C"
26777#endif
26778char fftw_execute ();
26779int
26780main ()
26781{
26782return fftw_execute ();
26783 ;
26784 return 0;
26785}
26786_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026787if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026788 ac_cv_lib_fftw3_fftw_execute=yes
26789else
cristy8b350f62009-11-15 23:12:43 +000026790 ac_cv_lib_fftw3_fftw_execute=no
cristy3ed852e2009-09-05 21:47:34 +000026791fi
cristy8b350f62009-11-15 23:12:43 +000026792rm -f core conftest.err conftest.$ac_objext \
26793 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026794LIBS=$ac_check_lib_save_LIBS
26795fi
cristy8b350f62009-11-15 23:12:43 +000026796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
cristy3ed852e2009-09-05 21:47:34 +000026797$as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026798if test "x$ac_cv_lib_fftw3_fftw_execute" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026799 passed=`expr $passed + 1`
26800else
26801 failed=`expr $failed + 1`
26802fi
26803
cristy8b350f62009-11-15 23:12:43 +000026804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026805$as_echo_n "checking if FFTW package is complete... " >&6; }
26806 if test $passed -gt 0; then
26807 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026809$as_echo "no -- some components failed test" >&6; }
26810 have_fftw='no (failed tests)'
26811 else
26812 FFTW_LIBS='-lfftw3'
26813 LIBS="$FFTW_LIBS $LIBS"
26814
cristy8b350f62009-11-15 23:12:43 +000026815$as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026816
cristy8b350f62009-11-15 23:12:43 +000026817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026818$as_echo "yes" >&6; }
26819 have_fftw='yes'
26820 fi
26821 else
cristy8b350f62009-11-15 23:12:43 +000026822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026823$as_echo "no" >&6; }
26824 fi
26825fi
26826 if test "$have_fftw" = 'yes'; then
26827 FFTW_DELEGATE_TRUE=
26828 FFTW_DELEGATE_FALSE='#'
26829else
26830 FFTW_DELEGATE_TRUE='#'
26831 FFTW_DELEGATE_FALSE=
26832fi
26833
26834
26835
26836
26837#
26838# Check for FlashPIX delegate library.
26839#
26840
26841# Check whether --with-fpx was given.
cristy8b350f62009-11-15 23:12:43 +000026842if test "${with_fpx+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026843 withval=$with_fpx; with_fpx=$withval
26844else
26845 with_fpx='yes'
26846fi
26847
26848
26849if test "$with_fpx" != 'yes'; then
26850 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
26851fi
26852
26853have_fpx='no'
26854FPX_LIBS=''
26855if test "$with_fpx" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026857$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
cristy3ed852e2009-09-05 21:47:34 +000026859$as_echo_n "checking for FlashPIX... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026861$as_echo "" >&6; }
26862 failed=0
26863 passed=0
26864 ac_ext=cpp
26865ac_cpp='$CXXCPP $CPPFLAGS'
26866ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26867ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26868ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26869
26870
cristy8b350f62009-11-15 23:12:43 +000026871ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
26872if test "x$ac_cv_header_fpxlib_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026873 passed=`expr $passed + 1`
26874else
26875 failed=`expr $failed + 1`
26876fi
26877
26878
cristy8b350f62009-11-15 23:12:43 +000026879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
cristy3ed852e2009-09-05 21:47:34 +000026880$as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026881if test "${ac_cv_lib_fpx_FPX_OpenImageByFilename+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026882 $as_echo_n "(cached) " >&6
26883else
26884 ac_check_lib_save_LIBS=$LIBS
26885LIBS="-lfpx $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026886cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026887/* end confdefs.h. */
26888
26889/* Override any GCC internal prototype to avoid an error.
26890 Use char because int might match the return type of a GCC
26891 builtin and then its argument prototype would still apply. */
26892#ifdef __cplusplus
26893extern "C"
26894#endif
26895char FPX_OpenImageByFilename ();
26896int
26897main ()
26898{
26899return FPX_OpenImageByFilename ();
26900 ;
26901 return 0;
26902}
26903_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026904if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026905 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
26906else
cristy8b350f62009-11-15 23:12:43 +000026907 ac_cv_lib_fpx_FPX_OpenImageByFilename=no
cristy3ed852e2009-09-05 21:47:34 +000026908fi
cristy8b350f62009-11-15 23:12:43 +000026909rm -f core conftest.err conftest.$ac_objext \
26910 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026911LIBS=$ac_check_lib_save_LIBS
26912fi
cristy8b350f62009-11-15 23:12:43 +000026913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
cristy3ed852e2009-09-05 21:47:34 +000026914$as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026915if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026916 passed=`expr $passed + 1`
26917else
26918 failed=`expr $failed + 1`
26919fi
26920
26921 ac_ext=c
26922ac_cpp='$CPP $CPPFLAGS'
26923ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26924ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26925ac_compiler_gnu=$ac_cv_c_compiler_gnu
26926
cristy8b350f62009-11-15 23:12:43 +000026927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026928$as_echo_n "checking if FlashPIX package is complete... " >&6; }
26929 if test $passed -gt 0; then
26930 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026932$as_echo "no -- some components failed test" >&6; }
26933 have_fpx='no (failed tests)'
26934 else
26935 FPX_LIBS='-lfpx'
26936
cristy8b350f62009-11-15 23:12:43 +000026937$as_echo "#define FPX_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026938
cristy8b350f62009-11-15 23:12:43 +000026939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026940$as_echo "yes" >&6; }
26941 have_fpx='yes'
26942 PERLMAINCC="$CXX"
26943 fi
26944 else
cristy8b350f62009-11-15 23:12:43 +000026945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026946$as_echo "no" >&6; }
26947 fi
26948fi
26949 if test "$have_fpx" = 'yes'; then
26950 FPX_DELEGATE_TRUE=
26951 FPX_DELEGATE_FALSE='#'
26952else
26953 FPX_DELEGATE_TRUE='#'
26954 FPX_DELEGATE_FALSE=
26955fi
26956
26957
26958
26959
26960#
26961# Check for fontconfig delegate library.
26962#
26963
26964# Check whether --with-fontconfig was given.
cristy8b350f62009-11-15 23:12:43 +000026965if test "${with_fontconfig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026966 withval=$with_fontconfig; with_fontconfig=$withval
26967else
26968 with_fontconfig=$have_x
26969fi
26970
26971
26972if test "$with_fontconfig" != 'yes'; then
26973 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
26974fi
26975
26976have_fontconfig='no'
26977FONTCONFIG_CFLAGS=""
26978FONTCONFIG_LIBS=""
26979FONTCONFIG_PKG=""
26980if test "x$with_fontconfig" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000026981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026982$as_echo "-------------------------------------------------------------" >&6; }
26983
26984pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000026985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000026986$as_echo_n "checking for FONTCONFIG... " >&6; }
26987
26988if test -n "$FONTCONFIG_CFLAGS"; then
26989 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
26990 elif test -n "$PKG_CONFIG"; then
26991 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000026992 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000026993 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
26994 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000026995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26996 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000026997 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
26998else
26999 pkg_failed=yes
27000fi
27001 else
27002 pkg_failed=untried
27003fi
27004if test -n "$FONTCONFIG_LIBS"; then
27005 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
27006 elif test -n "$PKG_CONFIG"; then
27007 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000027008 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000027009 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
27010 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000027011 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27012 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000027013 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
27014else
27015 pkg_failed=yes
27016fi
27017 else
27018 pkg_failed=untried
27019fi
27020
27021
27022
27023if test $pkg_failed = yes; then
27024
27025if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27026 _pkg_short_errors_supported=yes
27027else
27028 _pkg_short_errors_supported=no
27029fi
27030 if test $_pkg_short_errors_supported = yes; then
27031 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1`
27032 else
27033 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1`
27034 fi
27035 # Put the nasty error message in config.log where it belongs
27036 echo "$FONTCONFIG_PKG_ERRORS" >&5
27037
cristy8b350f62009-11-15 23:12:43 +000027038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027039$as_echo "no" >&6; }
27040 have_fontconfig=no
27041elif test $pkg_failed = untried; then
27042 have_fontconfig=no
27043else
27044 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
27045 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
cristy8b350f62009-11-15 23:12:43 +000027046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027047$as_echo "yes" >&6; }
27048 have_fontconfig=yes
27049fi
cristy8b350f62009-11-15 23:12:43 +000027050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027051$as_echo "" >&6; }
27052fi
27053
27054if test "$have_fontconfig" = 'yes'; then
27055
cristy8b350f62009-11-15 23:12:43 +000027056$as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027057
cristyd09bcf92010-03-25 03:04:45 +000027058 if test "$with_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000027059 CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
cristyd09bcf92010-03-25 03:04:45 +000027060 fi
cristy3ed852e2009-09-05 21:47:34 +000027061fi
27062
27063 if test "$have_fontconfig" = 'yes'; then
27064 FONTCONFIG_DELEGATE_TRUE=
27065 FONTCONFIG_DELEGATE_FALSE='#'
27066else
27067 FONTCONFIG_DELEGATE_TRUE='#'
27068 FONTCONFIG_DELEGATE_FALSE=
27069fi
27070
27071
27072
27073
27074
27075#
27076# Check for freetype delegate library.
27077#
27078
27079# Check whether --with-freetype was given.
cristy8b350f62009-11-15 23:12:43 +000027080if test "${with_freetype+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027081 withval=$with_freetype; with_freetype=$withval
27082else
27083 with_freetype='yes'
27084fi
27085
27086
27087
27088if test "$with_freetype" != 'yes'; then
27089 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
27090fi
27091
27092have_freetype='no'
27093FREETYPE_LIBS=''
27094if test "$with_freetype" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027096$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeType 2.0" >&5
cristy3ed852e2009-09-05 21:47:34 +000027098$as_echo_n "checking for FreeType 2.0... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027100$as_echo "" >&6; }
27101 failed=0
27102 passed=0
cristy66291112009-10-03 22:44:36 +000027103 PERSIST_LIBS="$LIBS"
cristy3ed852e2009-09-05 21:47:34 +000027104 PERSIST_CPPFLAGS="$CPPFLAGS"
27105 if test "$enable_delegate_build" != 'no' && test -d "$builddir/freetype/include"; then
27106 :
27107 else
27108 freetype_config=''
27109 for ac_prog in freetype-config
27110do
27111 # Extract the first word of "$ac_prog", so it can be a program name with args.
27112set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000027113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000027114$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027115if test "${ac_cv_prog_freetype_config+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027116 $as_echo_n "(cached) " >&6
27117else
27118 if test -n "$freetype_config"; then
27119 ac_cv_prog_freetype_config="$freetype_config" # Let the user override the test.
27120else
27121as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27122for as_dir in $PATH
27123do
27124 IFS=$as_save_IFS
27125 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000027126 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000027127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27128 ac_cv_prog_freetype_config="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000027129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027130 break 2
27131 fi
27132done
cristy8b350f62009-11-15 23:12:43 +000027133 done
cristy3ed852e2009-09-05 21:47:34 +000027134IFS=$as_save_IFS
27135
27136fi
27137fi
27138freetype_config=$ac_cv_prog_freetype_config
27139if test -n "$freetype_config"; then
cristy8b350f62009-11-15 23:12:43 +000027140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $freetype_config" >&5
cristy3ed852e2009-09-05 21:47:34 +000027141$as_echo "$freetype_config" >&6; }
27142else
cristy8b350f62009-11-15 23:12:43 +000027143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027144$as_echo "no" >&6; }
27145fi
27146
27147
27148 test -n "$freetype_config" && break
27149done
27150 if test -n "$freetype_config"; then
27151 freetype_cflags=`$freetype_config --cflags`
27152 freetype_libs=`$freetype_config --libs`
cristy66291112009-10-03 22:44:36 +000027153 LIBS="$LIBS $freetype_libs"
cristy3ed852e2009-09-05 21:47:34 +000027154 CPPFLAGS="$freetype_cflags $CPPFLAGS"
27155 fi
27156 fi
27157
27158 if test "$FREETYPE_LIBS" = ''; then
cristy8b350f62009-11-15 23:12:43 +000027159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_Init_FreeType in -lfreetype" >&5
cristy3ed852e2009-09-05 21:47:34 +000027160$as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027161if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027162 $as_echo_n "(cached) " >&6
27163else
27164 ac_check_lib_save_LIBS=$LIBS
27165LIBS="-lfreetype $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027166cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027167/* end confdefs.h. */
27168
27169/* Override any GCC internal prototype to avoid an error.
27170 Use char because int might match the return type of a GCC
27171 builtin and then its argument prototype would still apply. */
27172#ifdef __cplusplus
27173extern "C"
27174#endif
27175char FT_Init_FreeType ();
27176int
27177main ()
27178{
27179return FT_Init_FreeType ();
27180 ;
27181 return 0;
27182}
27183_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027184if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027185 ac_cv_lib_freetype_FT_Init_FreeType=yes
27186else
cristy8b350f62009-11-15 23:12:43 +000027187 ac_cv_lib_freetype_FT_Init_FreeType=no
cristy3ed852e2009-09-05 21:47:34 +000027188fi
cristy8b350f62009-11-15 23:12:43 +000027189rm -f core conftest.err conftest.$ac_objext \
27190 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027191LIBS=$ac_check_lib_save_LIBS
27192fi
cristy8b350f62009-11-15 23:12:43 +000027193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
cristy3ed852e2009-09-05 21:47:34 +000027194$as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027195if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027196 FREETYPE_LIBS='-lfreetype'
27197fi
27198
27199 if test "$FREETYPE_LIBS" != ''; then
27200 passed=`expr $passed + 1`
27201 else
27202 failed=`expr $failed + 1`
cristy66291112009-10-03 22:44:36 +000027203 LIBS="$PERSIST_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000027204 fi
27205 fi
27206
cristy8b350f62009-11-15 23:12:43 +000027207 ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
27208if test "x$ac_cv_header_ft2build_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027209 FT2BUILD_H='#include <ft2build.h>'
27210else
27211 ft2build=''
27212fi
27213
27214
cristy8b350f62009-11-15 23:12:43 +000027215 ac_fn_c_check_header_compile "$LINENO" "freetype/freetype.h" "ac_cv_header_freetype_freetype_h" "$FT2BUILD_H
27216"
27217if test "x$ac_cv_header_freetype_freetype_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027218 have_freetype_h='yes'
27219else
27220 have_freetype_h='no'
27221fi
27222
27223
27224 if test "$ac_cv_header_ft2build_h" = 'yes' || test "$have_freetype_h" = 'yes'; then
27225 passed=`expr $passed + 1`
27226 else
27227 failed=`expr $failed + 1`
27228 CPPFLAGS="$PERSIST_CPPFLAGS"
27229 fi
27230
cristy8b350f62009-11-15 23:12:43 +000027231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FreeType package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027232$as_echo_n "checking if FreeType package is complete... " >&6; }
27233 if test $passed -gt 0; then
27234 if test $failed -gt 0; then
27235 FREETYPE_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000027236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027237$as_echo "no -- some components failed test" >&6; }
27238 have_freetype='no (failed tests)'
27239 else
27240 LIBS="$FREETYPE_LIBS $LIBS"
27241
cristy8b350f62009-11-15 23:12:43 +000027242$as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027243
27244 if test "$ac_cv_header_ft2build_h" = 'yes'; then
27245
cristy8b350f62009-11-15 23:12:43 +000027246$as_echo "#define HAVE_FT2BUILD_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027247
27248 fi
cristy8b350f62009-11-15 23:12:43 +000027249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027250$as_echo "yes" >&6; }
27251 have_freetype='yes'
27252 fi
27253 else
cristy8b350f62009-11-15 23:12:43 +000027254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027255$as_echo "no" >&6; }
27256 fi
27257fi
27258 if test "$have_freetype" = 'yes'; then
27259 FREETYPE_DELEGATE_TRUE=
27260 FREETYPE_DELEGATE_FALSE='#'
27261else
27262 FREETYPE_DELEGATE_TRUE='#'
27263 FREETYPE_DELEGATE_FALSE=
27264fi
27265
27266
27267
27268
27269
27270#
27271# Check for Ghostscript library or framework.
27272#
27273# Test for iapi.h & test for gsapi_new_instance in -lgs
27274# or -framework Ghostscript
27275
27276
27277# Check whether --with-gslib was given.
cristy8b350f62009-11-15 23:12:43 +000027278if test "${with_gslib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027279 withval=$with_gslib; with_gslib=$withval
27280else
27281 with_gslib='no'
27282fi
27283
27284
cristyb7931f12009-09-25 10:22:21 +000027285gslib_framework='no'
cristy3ed852e2009-09-05 21:47:34 +000027286if test "$with_gslib" != 'yes'; then
27287 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
27288fi
27289
27290have_gslib='no'
27291GS_LIBS=''
27292if test "$with_gslib" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027294$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000027296$as_echo_n "checking for Ghostscript... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027298$as_echo "" >&6; }
cristyb7931f12009-09-25 10:22:21 +000027299 framework=0
cristy3ed852e2009-09-05 21:47:34 +000027300 failed=0
27301 passed=0
cristy8b350f62009-11-15 23:12:43 +000027302 ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/iapi.h" "ac_cv_header_ghostscript_iapi_h" "$ac_includes_default"
27303if test "x$ac_cv_header_ghostscript_iapi_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027304 passed=`expr $passed + 1`
27305else
27306 failed=`expr $failed + 1`
27307fi
27308
27309
cristy8b350f62009-11-15 23:12:43 +000027310 ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/ierrors.h" "ac_cv_header_ghostscript_ierrors_h" "$ac_includes_default"
27311if test "x$ac_cv_header_ghostscript_ierrors_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027312 passed=`expr $passed + 1`
27313else
27314 failed=`expr $failed + 1`
27315fi
27316
27317
cristy8b350f62009-11-15 23:12:43 +000027318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
cristy3ed852e2009-09-05 21:47:34 +000027319$as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027320if test "${ac_cv_framework_Ghostscript_gsapi_new_instance+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027321 $as_echo_n "(cached) " >&6
27322else
27323 ac_check_framework_save_LIBS=$LIBS
27324LIBS="-framework Ghostscript $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027325cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027326/* end confdefs.h. */
27327
27328/* Override any GCC internal prototype to avoid an error.
27329 Use char because int might match the return type of a GCC
27330 builtin and then its argument prototype would still apply. */
27331#ifdef __cplusplus
27332extern "C"
27333#endif
27334char gsapi_new_instance ();
27335int
27336main ()
27337{
27338return gsapi_new_instance ();
27339 ;
27340 return 0;
27341}
27342_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027343if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027344 ac_cv_framework_Ghostscript_gsapi_new_instance=yes
27345else
cristy8b350f62009-11-15 23:12:43 +000027346 ac_cv_framework_Ghostscript_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000027347fi
cristy8b350f62009-11-15 23:12:43 +000027348rm -f core conftest.err conftest.$ac_objext \
27349 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027350LIBS=$ac_check_framework_save_LIBS
27351fi
cristy8b350f62009-11-15 23:12:43 +000027352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000027353$as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027354if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027355 framework=`expr $framework + 1`
27356else
cristy8b350f62009-11-15 23:12:43 +000027357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
cristy3ed852e2009-09-05 21:47:34 +000027358$as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027359if test "${ac_cv_lib_gs_gsapi_new_instance+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027360 $as_echo_n "(cached) " >&6
27361else
27362 ac_check_lib_save_LIBS=$LIBS
27363LIBS="-lgs $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027364cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027365/* end confdefs.h. */
27366
27367/* Override any GCC internal prototype to avoid an error.
27368 Use char because int might match the return type of a GCC
27369 builtin and then its argument prototype would still apply. */
27370#ifdef __cplusplus
27371extern "C"
27372#endif
27373char gsapi_new_instance ();
27374int
27375main ()
27376{
27377return gsapi_new_instance ();
27378 ;
27379 return 0;
27380}
27381_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027382if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027383 ac_cv_lib_gs_gsapi_new_instance=yes
27384else
cristy8b350f62009-11-15 23:12:43 +000027385 ac_cv_lib_gs_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000027386fi
cristy8b350f62009-11-15 23:12:43 +000027387rm -f core conftest.err conftest.$ac_objext \
27388 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027389LIBS=$ac_check_lib_save_LIBS
27390fi
cristy8b350f62009-11-15 23:12:43 +000027391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000027392$as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027393if test "x$ac_cv_lib_gs_gsapi_new_instance" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027394 passed=`expr $passed + 1`
27395else
27396 failed=`expr $failed + 1`
27397fi
27398
27399fi
cristy8b350f62009-11-15 23:12:43 +000027400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027401$as_echo_n "checking if Ghostscript package is complete... " >&6; }
27402 if test $passed -gt 0; then
27403 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027405$as_echo "no -- some components failed test" >&6; }
27406 have_gslib='no (failed tests)'
27407 else
27408 if test $framework -gt 0; then
27409 GS_LIBS='-framework Ghostscript'
cristyb7931f12009-09-25 10:22:21 +000027410 gslib_framework='yes'
cristy8b350f62009-11-15 23:12:43 +000027411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using framework." >&5
cristy3ed852e2009-09-05 21:47:34 +000027412$as_echo "yes, using framework." >&6; }
27413 else
cristy8b350f62009-11-15 23:12:43 +000027414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using library." >&5
cristy3ed852e2009-09-05 21:47:34 +000027415$as_echo "yes, using library." >&6; }
27416 GS_LIBS='-lgs'
27417 fi
27418 LIBS="$GS_LIBS $LIBS"
27419
cristy8b350f62009-11-15 23:12:43 +000027420$as_echo "#define GS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027421
27422 have_gslib='yes'
27423 fi
27424 else
cristy8b350f62009-11-15 23:12:43 +000027425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027426$as_echo "no" >&6; }
27427 fi
27428fi
27429 if test "$have_gslib" = 'yes'; then
27430 GS_DELEGATE_TRUE=
27431 GS_DELEGATE_FALSE='#'
27432else
27433 GS_DELEGATE_TRUE='#'
27434 GS_DELEGATE_FALSE=
27435fi
27436
27437
27438
27439# Set default font search path
27440
27441# Check whether --with-fontpath was given.
cristy8b350f62009-11-15 23:12:43 +000027442if test "${with_fontpath+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027443 withval=$with_fontpath; with_fontpath=$withval
27444else
27445 with_fontpath=''
27446fi
27447
27448
27449if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
27450 with_fontpath=''
27451else
27452
27453cat >>confdefs.h <<_ACEOF
27454#define MAGICK_FONT_PATH "$with_fontpath"
27455_ACEOF
27456
27457fi
27458if test "$with_fontpath=" != ''; then
27459 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
27460fi
27461
27462# Set Ghostscript font directory
27463
27464# Check whether --with-gs-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000027465if test "${with_gs_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027466 withval=$with_gs_font_dir; with_gs_font_dir=$withval
27467else
27468 with_gs_font_dir='default'
27469fi
27470
27471
27472if test "$with_gs_font_dir" != 'default'; then
27473 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
27474fi
27475
27476
27477#
27478# Check for GVC delegate library.
27479#
27480
27481# Check whether --with-gvc was given.
cristy8b350f62009-11-15 23:12:43 +000027482if test "${with_gvc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027483 withval=$with_gvc; with_gvc=$withval
27484else
27485 with_gvc='yes'
27486fi
27487
27488
27489if test "$with_gvc" != 'yes'; then
27490 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
27491fi
27492
27493GVC_PKG=""
27494if test "x$with_gvc" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000027495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027496$as_echo "-------------------------------------------------------------" >&6; }
27497
27498pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000027499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
cristy3ed852e2009-09-05 21:47:34 +000027500$as_echo_n "checking for GVC... " >&6; }
27501
27502if test -n "$GVC_CFLAGS"; then
27503 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
27504 elif test -n "$PKG_CONFIG"; then
27505 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000027506 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000027507 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
27508 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000027509 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27510 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000027511 pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
27512else
27513 pkg_failed=yes
27514fi
27515 else
27516 pkg_failed=untried
27517fi
27518if test -n "$GVC_LIBS"; then
27519 pkg_cv_GVC_LIBS="$GVC_LIBS"
27520 elif test -n "$PKG_CONFIG"; then
27521 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000027522 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000027523 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
27524 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000027525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27526 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000027527 pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
27528else
27529 pkg_failed=yes
27530fi
27531 else
27532 pkg_failed=untried
27533fi
27534
27535
27536
27537if test $pkg_failed = yes; then
27538
27539if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27540 _pkg_short_errors_supported=yes
27541else
27542 _pkg_short_errors_supported=no
27543fi
27544 if test $_pkg_short_errors_supported = yes; then
27545 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1`
27546 else
27547 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1`
27548 fi
27549 # Put the nasty error message in config.log where it belongs
27550 echo "$GVC_PKG_ERRORS" >&5
27551
cristy8b350f62009-11-15 23:12:43 +000027552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027553$as_echo "no" >&6; }
27554 have_gvc=no
27555elif test $pkg_failed = untried; then
27556 have_gvc=no
27557else
27558 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
27559 GVC_LIBS=$pkg_cv_GVC_LIBS
cristy8b350f62009-11-15 23:12:43 +000027560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027561$as_echo "yes" >&6; }
27562 have_gvc=yes
27563fi
cristy8b350f62009-11-15 23:12:43 +000027564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027565$as_echo "" >&6; }
27566fi
27567
27568if test "$have_gvc" = 'yes'; then
27569
cristy8b350f62009-11-15 23:12:43 +000027570$as_echo "#define GVC_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027571
27572 if test "$with_modules" = 'no'; then
27573 CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
27574 fi
27575fi
27576
27577 if test "$have_gvc" = 'yes'; then
27578 GVC_DELEGATE_TRUE=
27579 GVC_DELEGATE_FALSE='#'
27580else
27581 GVC_DELEGATE_TRUE='#'
27582 GVC_DELEGATE_FALSE=
27583fi
27584
27585
27586
27587
27588
27589#
27590# Check for JBIG delegate library.
27591#
27592
27593
27594# Check whether --with-jbig was given.
cristy8b350f62009-11-15 23:12:43 +000027595if test "${with_jbig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027596 withval=$with_jbig; with_jbig=$withval
27597else
27598 with_jbig='yes'
27599fi
27600
27601
27602have_jbig='no'
27603JBIG_LIBS=''
27604if test "$with_jbig" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027606$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000027608$as_echo_n "checking for JBIG... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027610$as_echo "" >&6; }
27611 failed=0
27612 passed=0
cristy8b350f62009-11-15 23:12:43 +000027613 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
27614if test "x$ac_cv_header_jbig_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027615 passed=`expr $passed + 1`
27616else
27617 failed=`expr $failed + 1`
27618fi
27619
27620
cristy8b350f62009-11-15 23:12:43 +000027621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
cristy3ed852e2009-09-05 21:47:34 +000027622$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027623if test "${ac_cv_lib_jbig_jbg_dec_init+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027624 $as_echo_n "(cached) " >&6
27625else
27626 ac_check_lib_save_LIBS=$LIBS
27627LIBS="-ljbig $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027628cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027629/* end confdefs.h. */
27630
27631/* Override any GCC internal prototype to avoid an error.
27632 Use char because int might match the return type of a GCC
27633 builtin and then its argument prototype would still apply. */
27634#ifdef __cplusplus
27635extern "C"
27636#endif
27637char jbg_dec_init ();
27638int
27639main ()
27640{
27641return jbg_dec_init ();
27642 ;
27643 return 0;
27644}
27645_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027646if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027647 ac_cv_lib_jbig_jbg_dec_init=yes
27648else
cristy8b350f62009-11-15 23:12:43 +000027649 ac_cv_lib_jbig_jbg_dec_init=no
cristy3ed852e2009-09-05 21:47:34 +000027650fi
cristy8b350f62009-11-15 23:12:43 +000027651rm -f core conftest.err conftest.$ac_objext \
27652 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027653LIBS=$ac_check_lib_save_LIBS
27654fi
cristy8b350f62009-11-15 23:12:43 +000027655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000027656$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027657if test "x$ac_cv_lib_jbig_jbg_dec_init" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027658 passed=`expr $passed + 1`
27659else
27660 failed=`expr $failed + 1`
27661fi
27662
cristy8b350f62009-11-15 23:12:43 +000027663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027664$as_echo_n "checking if JBIG package is complete... " >&6; }
27665 if test $passed -gt 0; then
27666 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027668$as_echo "no -- some components failed test" >&6; }
27669 have_jbig='no (failed tests)'
27670 else
27671 JBIG_LIBS='-ljbig'
27672 LIBS="$JBIG_LIBS $LIBS"
27673
cristy8b350f62009-11-15 23:12:43 +000027674$as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027675
cristy8b350f62009-11-15 23:12:43 +000027676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027677$as_echo "yes" >&6; }
27678 have_jbig='yes'
27679 fi
27680 else
cristy8b350f62009-11-15 23:12:43 +000027681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027682$as_echo "no" >&6; }
27683 fi
27684fi
27685 if test "$have_jbig" = 'yes'; then
27686 JBIG_DELEGATE_TRUE=
27687 JBIG_DELEGATE_FALSE='#'
27688else
27689 JBIG_DELEGATE_TRUE='#'
27690 JBIG_DELEGATE_FALSE=
27691fi
27692
27693
27694
27695
27696#
27697# Check for JPEG delegate library.
27698#
27699
27700# Check whether --with-jpeg was given.
cristy8b350f62009-11-15 23:12:43 +000027701if test "${with_jpeg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027702 withval=$with_jpeg; with_jpeg=$withval
27703else
27704 with_jpeg='yes'
27705fi
27706
27707
27708if test "$with_jpeg" != 'yes'; then
27709 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
27710fi
27711
27712have_jpeg='no'
27713JPEG_LIBS=''
27714if test "$with_jpeg" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027716$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
cristy3ed852e2009-09-05 21:47:34 +000027718$as_echo_n "checking for JPEG... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027720$as_echo "" >&6; }
27721 failed=0
27722 passed=0
cristy8b350f62009-11-15 23:12:43 +000027723 ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
27724if test "x$ac_cv_header_jconfig_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027725 passed=`expr $passed + 1`
27726else
27727 failed=`expr $failed + 1`
27728fi
27729
27730
cristy8b350f62009-11-15 23:12:43 +000027731 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
27732if test "x$ac_cv_header_jerror_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027733 passed=`expr $passed + 1`
27734else
27735 failed=`expr $failed + 1`
27736fi
27737
27738
cristy8b350f62009-11-15 23:12:43 +000027739 ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
27740if test "x$ac_cv_header_jmorecfg_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027741 passed=`expr $passed + 1`
27742else
27743 failed=`expr $failed + 1`
27744fi
27745
27746
cristy8b350f62009-11-15 23:12:43 +000027747 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
27748if test "x$ac_cv_header_jpeglib_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027749 passed=`expr $passed + 1`
27750else
27751 failed=`expr $failed + 1`
27752fi
27753
27754
cristy8b350f62009-11-15 23:12:43 +000027755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
cristy3ed852e2009-09-05 21:47:34 +000027756$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027757if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027758 $as_echo_n "(cached) " >&6
27759else
27760 ac_check_lib_save_LIBS=$LIBS
27761LIBS="-ljpeg $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027762cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027763/* end confdefs.h. */
27764
27765/* Override any GCC internal prototype to avoid an error.
27766 Use char because int might match the return type of a GCC
27767 builtin and then its argument prototype would still apply. */
27768#ifdef __cplusplus
27769extern "C"
27770#endif
27771char jpeg_read_header ();
27772int
27773main ()
27774{
27775return jpeg_read_header ();
27776 ;
27777 return 0;
27778}
27779_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027780if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027781 ac_cv_lib_jpeg_jpeg_read_header=yes
27782else
cristy8b350f62009-11-15 23:12:43 +000027783 ac_cv_lib_jpeg_jpeg_read_header=no
cristy3ed852e2009-09-05 21:47:34 +000027784fi
cristy8b350f62009-11-15 23:12:43 +000027785rm -f core conftest.err conftest.$ac_objext \
27786 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027787LIBS=$ac_check_lib_save_LIBS
27788fi
cristy8b350f62009-11-15 23:12:43 +000027789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
cristy3ed852e2009-09-05 21:47:34 +000027790$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027791if test "x$ac_cv_lib_jpeg_jpeg_read_header" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027792 passed=`expr $passed + 1`
27793else
27794 failed=`expr $failed + 1`
27795fi
27796
27797
27798# Test for compatible JPEG library
27799if test "$ac_cv_jpeg_version_ok" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
cristy3ed852e2009-09-05 21:47:34 +000027801$as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027802if test "${ac_cv_jpeg_version_ok+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027803 $as_echo_n "(cached) " >&6
27804else
cristy8b350f62009-11-15 23:12:43 +000027805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027806/* end confdefs.h. */
27807#include <stdio.h>
27808#include <stdlib.h>
27809#include <jpeglib.h>
27810
27811int
27812main ()
27813{
27814
27815#if JPEG_LIB_VERSION < 62
27816#error IJG JPEG library must be version 6b or newer!
27817#endif
27818return 0;
27819
27820 ;
27821 return 0;
27822}
27823_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027824if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027825 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
27826else
cristy8b350f62009-11-15 23:12:43 +000027827 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000027828fi
cristy3ed852e2009-09-05 21:47:34 +000027829rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27830fi
cristy8b350f62009-11-15 23:12:43 +000027831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000027832$as_echo "$ac_cv_jpeg_version_ok" >&6; }
27833fi
cristy8b350f62009-11-15 23:12:43 +000027834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027835$as_echo_n "checking if JPEG package is complete... " >&6; }
27836 if test $passed -gt 0; then
27837 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027839$as_echo "no -- some components failed test" >&6; }
27840 have_jpeg='no (failed tests)'
27841 else
27842 JPEG_LIBS='-ljpeg'
27843 LIBS="$JPEG_LIBS $LIBS"
27844
cristy8b350f62009-11-15 23:12:43 +000027845$as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027846
cristy8b350f62009-11-15 23:12:43 +000027847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027848$as_echo "yes" >&6; }
27849 have_jpeg='yes'
27850 fi
27851 else
cristy8b350f62009-11-15 23:12:43 +000027852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027853$as_echo "no" >&6; }
27854 fi
27855fi
27856 if test "$have_jpeg" = 'yes'; then
27857 JPEG_DELEGATE_TRUE=
27858 JPEG_DELEGATE_FALSE='#'
27859else
27860 JPEG_DELEGATE_TRUE='#'
27861 JPEG_DELEGATE_FALSE=
27862fi
27863
27864
27865
27866
27867#
27868# Check for JPEG Version 2 delegate library.
27869#
27870
27871# Check whether --with-jp2 was given.
cristy8b350f62009-11-15 23:12:43 +000027872if test "${with_jp2+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027873 withval=$with_jp2; with_jp2=$withval
27874else
27875 with_jp2='yes'
27876fi
27877
27878
27879if test "$with_jp2" != 'yes'; then
27880 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jp2=$with_jp2 "
27881fi
27882
27883have_jp2='no'
27884JP2_LIBS=''
27885if test "$with_jp2" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027887$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG Version 2" >&5
cristy3ed852e2009-09-05 21:47:34 +000027889$as_echo_n "checking for JPEG Version 2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027891$as_echo "" >&6; }
27892 failed=0
27893 passed=0
cristy8b350f62009-11-15 23:12:43 +000027894 ac_fn_c_check_header_mongrel "$LINENO" "jasper/jasper.h" "ac_cv_header_jasper_jasper_h" "$ac_includes_default"
27895if test "x$ac_cv_header_jasper_jasper_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027896 passed=`expr $passed + 1`
27897else
27898 failed=`expr $failed + 1`
27899fi
27900
27901
cristy8b350f62009-11-15 23:12:43 +000027902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jas_stream_fopen in -ljasper" >&5
cristy3ed852e2009-09-05 21:47:34 +000027903$as_echo_n "checking for jas_stream_fopen in -ljasper... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027904if test "${ac_cv_lib_jasper_jas_stream_fopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027905 $as_echo_n "(cached) " >&6
27906else
27907 ac_check_lib_save_LIBS=$LIBS
27908LIBS="-ljasper $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027909cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027910/* end confdefs.h. */
27911
27912/* Override any GCC internal prototype to avoid an error.
27913 Use char because int might match the return type of a GCC
27914 builtin and then its argument prototype would still apply. */
27915#ifdef __cplusplus
27916extern "C"
27917#endif
27918char jas_stream_fopen ();
27919int
27920main ()
27921{
27922return jas_stream_fopen ();
27923 ;
27924 return 0;
27925}
27926_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027927if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027928 ac_cv_lib_jasper_jas_stream_fopen=yes
27929else
cristy8b350f62009-11-15 23:12:43 +000027930 ac_cv_lib_jasper_jas_stream_fopen=no
cristy3ed852e2009-09-05 21:47:34 +000027931fi
cristy8b350f62009-11-15 23:12:43 +000027932rm -f core conftest.err conftest.$ac_objext \
27933 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027934LIBS=$ac_check_lib_save_LIBS
27935fi
cristy8b350f62009-11-15 23:12:43 +000027936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jasper_jas_stream_fopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000027937$as_echo "$ac_cv_lib_jasper_jas_stream_fopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027938if test "x$ac_cv_lib_jasper_jas_stream_fopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027939 passed=`expr $passed + 1`
27940else
27941 failed=`expr $failed + 1`
27942fi
27943
cristy8b350f62009-11-15 23:12:43 +000027944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG version 2 support package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027945$as_echo_n "checking if JPEG version 2 support package is complete... " >&6; }
27946 if test $passed -gt 0; then
27947 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027949$as_echo "no -- some components failed test" >&6; }
27950 have_jp2='no (failed tests)'
27951 else
27952 JP2_LIBS='-ljasper'
27953 LIBS="$JP2_LIBS $LIBS"
27954
cristy8b350f62009-11-15 23:12:43 +000027955$as_echo "#define JP2_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027956
cristy8b350f62009-11-15 23:12:43 +000027957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027958$as_echo "yes" >&6; }
27959 have_jp2='yes'
27960 fi
27961 else
cristy8b350f62009-11-15 23:12:43 +000027962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027963$as_echo "no" >&6; }
27964 fi
27965fi
27966 if test "$have_jp2" = 'yes'; then
27967 JP2_DELEGATE_TRUE=
27968 JP2_DELEGATE_FALSE='#'
27969else
27970 JP2_DELEGATE_TRUE='#'
27971 JP2_DELEGATE_FALSE=
27972fi
27973
27974
27975
27976
27977#
27978# Check for LCMS delegate library.
27979#
27980
27981# Check whether --with-lcms was given.
cristy8b350f62009-11-15 23:12:43 +000027982if test "${with_lcms+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027983 withval=$with_lcms; with_lcms=$withval
27984else
27985 with_lcms='yes'
27986fi
27987
27988
27989if test "$with_lcms" != 'yes'; then
27990 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
27991fi
27992
27993have_lcms='no'
27994LCMS_LIBS=''
27995if test "$with_lcms" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027997$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS" >&5
cristy3ed852e2009-09-05 21:47:34 +000027999$as_echo_n "checking for LCMS... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028001$as_echo "" >&6; }
28002 failed=0
28003 passed=0
28004 have_lcms_header='no'
cristyd09bcf92010-03-25 03:04:45 +000028005 ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default"
28006if test "x$ac_cv_header_lcms2_h" = x""yes; then :
28007 have_lcms_header='yes'
28008fi
28009
28010
28011 if test "$have_lcms_header" = 'yes'; then
28012 passed=`expr $passed + 1`
28013
28014$as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h
28015
28016 else
28017 ac_fn_c_check_header_mongrel "$LINENO" "lcms/lcms2.h" "ac_cv_header_lcms_lcms2_h" "$ac_includes_default"
28018if test "x$ac_cv_header_lcms_lcms2_h" = x""yes; then :
28019 have_lcms_header='yes'
28020fi
28021
28022
28023 if test "$have_lcms_header" = 'yes'; then
28024 passed=`expr $passed + 1`
28025
28026$as_echo "#define HAVE_LCMS_LCMS2_H 1" >>confdefs.h
28027
28028 else
28029 failed=`expr $failed + 1`
28030 fi
28031 fi
28032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsOpenProfileFromMem in -llcms2" >&5
28033$as_echo_n "checking for cmsOpenProfileFromMem in -llcms2... " >&6; }
28034if test "${ac_cv_lib_lcms2_cmsOpenProfileFromMem+set}" = set; then :
28035 $as_echo_n "(cached) " >&6
28036else
28037 ac_check_lib_save_LIBS=$LIBS
28038LIBS="-llcms2 $LIBS"
28039cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28040/* end confdefs.h. */
28041
28042/* Override any GCC internal prototype to avoid an error.
28043 Use char because int might match the return type of a GCC
28044 builtin and then its argument prototype would still apply. */
28045#ifdef __cplusplus
28046extern "C"
28047#endif
28048char cmsOpenProfileFromMem ();
28049int
28050main ()
28051{
28052return cmsOpenProfileFromMem ();
28053 ;
28054 return 0;
28055}
28056_ACEOF
28057if ac_fn_c_try_link "$LINENO"; then :
28058 ac_cv_lib_lcms2_cmsOpenProfileFromMem=yes
28059else
28060 ac_cv_lib_lcms2_cmsOpenProfileFromMem=no
28061fi
28062rm -f core conftest.err conftest.$ac_objext \
28063 conftest$ac_exeext conftest.$ac_ext
28064LIBS=$ac_check_lib_save_LIBS
28065fi
28066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsOpenProfileFromMem" >&5
28067$as_echo "$ac_cv_lib_lcms2_cmsOpenProfileFromMem" >&6; }
28068if test "x$ac_cv_lib_lcms2_cmsOpenProfileFromMem" = x""yes; then :
28069 passed=`expr $passed + 1`
28070else
28071 failed=`expr $failed + 1`
28072fi
28073
28074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS2 package is complete" >&5
28075$as_echo_n "checking if LCMS2 package is complete... " >&6; }
28076 if test $passed -gt 0; then
28077 if test $failed -gt 0; then
28078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28079$as_echo "no -- some components failed test" >&6; }
28080 have_lcms='no (failed tests)'
28081 else
28082 LCMS_LIBS='-llcms2'
28083 LIBS="$LCMS_LIBS $LIBS"
28084
28085$as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
28086
28087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28088$as_echo "yes" >&6; }
28089 have_lcms='yes'
28090 fi
28091 else
28092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28093$as_echo "no" >&6; }
28094 fi
28095fi
28096
28097if test "$with_lcms" != 'no'; then
28098if test "$have_lcms" == 'no'; then
28099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28100$as_echo "-------------------------------------------------------------" >&6; }
28101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS" >&5
28102$as_echo_n "checking for LCMS... " >&6; }
28103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28104$as_echo "" >&6; }
28105 failed=0
28106 passed=0
28107 have_lcms_header='no'
cristy8b350f62009-11-15 23:12:43 +000028108 ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default"
28109if test "x$ac_cv_header_lcms_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028110 have_lcms_header='yes'
28111fi
28112
28113
28114 if test "$have_lcms_header" = 'yes'; then
28115 passed=`expr $passed + 1`
28116
cristy8b350f62009-11-15 23:12:43 +000028117$as_echo "#define HAVE_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028118
28119 else
cristy8b350f62009-11-15 23:12:43 +000028120 ac_fn_c_check_header_mongrel "$LINENO" "lcms/lcms.h" "ac_cv_header_lcms_lcms_h" "$ac_includes_default"
28121if test "x$ac_cv_header_lcms_lcms_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028122 have_lcms_header='yes'
28123fi
28124
28125
28126 if test "$have_lcms_header" = 'yes'; then
28127 passed=`expr $passed + 1`
28128
cristy8b350f62009-11-15 23:12:43 +000028129$as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028130
28131 else
28132 failed=`expr $failed + 1`
28133 fi
28134 fi
cristy8b350f62009-11-15 23:12:43 +000028135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsOpenProfileFromMem in -llcms" >&5
cristy3ed852e2009-09-05 21:47:34 +000028136$as_echo_n "checking for cmsOpenProfileFromMem in -llcms... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028137if test "${ac_cv_lib_lcms_cmsOpenProfileFromMem+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028138 $as_echo_n "(cached) " >&6
28139else
28140 ac_check_lib_save_LIBS=$LIBS
28141LIBS="-llcms $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028142cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028143/* end confdefs.h. */
28144
28145/* Override any GCC internal prototype to avoid an error.
28146 Use char because int might match the return type of a GCC
28147 builtin and then its argument prototype would still apply. */
28148#ifdef __cplusplus
28149extern "C"
28150#endif
28151char cmsOpenProfileFromMem ();
28152int
28153main ()
28154{
28155return cmsOpenProfileFromMem ();
28156 ;
28157 return 0;
28158}
28159_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028160if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028161 ac_cv_lib_lcms_cmsOpenProfileFromMem=yes
28162else
cristy8b350f62009-11-15 23:12:43 +000028163 ac_cv_lib_lcms_cmsOpenProfileFromMem=no
cristy3ed852e2009-09-05 21:47:34 +000028164fi
cristy8b350f62009-11-15 23:12:43 +000028165rm -f core conftest.err conftest.$ac_objext \
28166 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028167LIBS=$ac_check_lib_save_LIBS
28168fi
cristy8b350f62009-11-15 23:12:43 +000028169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsOpenProfileFromMem" >&5
cristy3ed852e2009-09-05 21:47:34 +000028170$as_echo "$ac_cv_lib_lcms_cmsOpenProfileFromMem" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028171if test "x$ac_cv_lib_lcms_cmsOpenProfileFromMem" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028172 passed=`expr $passed + 1`
28173else
28174 failed=`expr $failed + 1`
28175fi
28176
cristy8b350f62009-11-15 23:12:43 +000028177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028178$as_echo_n "checking if LCMS package is complete... " >&6; }
28179 if test $passed -gt 0; then
28180 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000028181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000028182$as_echo "no -- some components failed test" >&6; }
28183 have_lcms='no (failed tests)'
28184 else
28185 LCMS_LIBS='-llcms'
28186 LIBS="$LCMS_LIBS $LIBS"
28187
cristy8b350f62009-11-15 23:12:43 +000028188$as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028189
cristy8b350f62009-11-15 23:12:43 +000028190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028191$as_echo "yes" >&6; }
28192 have_lcms='yes'
28193 fi
28194 else
cristy8b350f62009-11-15 23:12:43 +000028195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028196$as_echo "no" >&6; }
28197 fi
28198fi
cristyd09bcf92010-03-25 03:04:45 +000028199fi
cristy3ed852e2009-09-05 21:47:34 +000028200 if test "$have_lcms" = 'yes'; then
28201 LCMS_DELEGATE_TRUE=
28202 LCMS_DELEGATE_FALSE='#'
28203else
28204 LCMS_DELEGATE_TRUE='#'
28205 LCMS_DELEGATE_FALSE=
28206fi
28207
28208
28209
28210
28211#
28212# Check for the LQR (Liquid Rescale) delegate library.
28213#
28214
28215# Check whether --with-lqr was given.
cristy8b350f62009-11-15 23:12:43 +000028216if test "${with_lqr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028217 withval=$with_lqr; with_lqr=$withval
28218else
28219 with_lqr='yes'
28220fi
28221
28222
28223if test "$with_lqr" != 'yes'; then
28224 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
28225fi
28226
28227have_lqr='no'
28228LQR_CFLAGS=""
28229LQR_LIBS=""
28230LQR_PKG=""
28231if test "x$with_lqr" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000028232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028233$as_echo "-------------------------------------------------------------" >&6; }
28234
28235pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000028236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
cristy3ed852e2009-09-05 21:47:34 +000028237$as_echo_n "checking for LQR... " >&6; }
28238
28239if test -n "$LQR_CFLAGS"; then
28240 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
28241 elif test -n "$PKG_CONFIG"; then
28242 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000028243 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000028244 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
28245 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000028246 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28247 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000028248 pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
28249else
28250 pkg_failed=yes
28251fi
28252 else
28253 pkg_failed=untried
28254fi
28255if test -n "$LQR_LIBS"; then
28256 pkg_cv_LQR_LIBS="$LQR_LIBS"
28257 elif test -n "$PKG_CONFIG"; then
28258 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000028259 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000028260 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
28261 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000028262 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28263 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000028264 pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
28265else
28266 pkg_failed=yes
28267fi
28268 else
28269 pkg_failed=untried
28270fi
28271
28272
28273
28274if test $pkg_failed = yes; then
28275
28276if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28277 _pkg_short_errors_supported=yes
28278else
28279 _pkg_short_errors_supported=no
28280fi
28281 if test $_pkg_short_errors_supported = yes; then
28282 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1`
28283 else
28284 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1`
28285 fi
28286 # Put the nasty error message in config.log where it belongs
28287 echo "$LQR_PKG_ERRORS" >&5
28288
cristy8b350f62009-11-15 23:12:43 +000028289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028290$as_echo "no" >&6; }
28291 have_lqr=no
28292elif test $pkg_failed = untried; then
28293 have_lqr=no
28294else
28295 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
28296 LQR_LIBS=$pkg_cv_LQR_LIBS
cristy8b350f62009-11-15 23:12:43 +000028297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028298$as_echo "yes" >&6; }
28299 have_lqr=yes
28300fi
cristy8b350f62009-11-15 23:12:43 +000028301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028302$as_echo "" >&6; }
28303fi
28304
28305if test "$have_lqr" = 'yes'; then
28306
cristy8b350f62009-11-15 23:12:43 +000028307$as_echo "#define LQR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028308
28309 CFLAGS="$LQR_CFLAGS $CFLAGS"
28310fi
28311
28312 if test "$have_lqr" = 'yes'; then
28313 LQR_DELEGATE_TRUE=
28314 LQR_DELEGATE_FALSE='#'
28315else
28316 LQR_DELEGATE_TRUE='#'
28317 LQR_DELEGATE_FALSE=
28318fi
28319
28320
28321
28322
28323
28324#
28325# Check for the OpenEXR delegate library.
28326#
28327
28328# Check whether --with-openexr was given.
cristy8b350f62009-11-15 23:12:43 +000028329if test "${with_openexr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028330 withval=$with_openexr; with_openexr=$withval
28331else
28332 with_openexr='yes'
28333fi
28334
28335
28336if test "$with_openexr" != 'yes'; then
28337 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
28338fi
28339
28340have_openexr='no'
28341OPENEXR_CFLAGS=""
28342OPENEXR_LIBS=""
28343OPENEXR_PKG=""
28344if test "x$with_openexr" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000028345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028346$as_echo "-------------------------------------------------------------" >&6; }
28347
28348pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000028349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
cristy3ed852e2009-09-05 21:47:34 +000028350$as_echo_n "checking for OPENEXR... " >&6; }
28351
28352if test -n "$OPENEXR_CFLAGS"; then
28353 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
28354 elif test -n "$PKG_CONFIG"; then
28355 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000028356 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000028357 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
28358 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000028359 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28360 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000028361 pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
28362else
28363 pkg_failed=yes
28364fi
28365 else
28366 pkg_failed=untried
28367fi
28368if test -n "$OPENEXR_LIBS"; then
28369 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
28370 elif test -n "$PKG_CONFIG"; then
28371 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000028372 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000028373 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
28374 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000028375 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28376 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000028377 pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
28378else
28379 pkg_failed=yes
28380fi
28381 else
28382 pkg_failed=untried
28383fi
28384
28385
28386
28387if test $pkg_failed = yes; then
28388
28389if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28390 _pkg_short_errors_supported=yes
28391else
28392 _pkg_short_errors_supported=no
28393fi
28394 if test $_pkg_short_errors_supported = yes; then
28395 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1`
28396 else
28397 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1`
28398 fi
28399 # Put the nasty error message in config.log where it belongs
28400 echo "$OPENEXR_PKG_ERRORS" >&5
28401
cristy8b350f62009-11-15 23:12:43 +000028402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028403$as_echo "no" >&6; }
28404 have_openexr=no
28405elif test $pkg_failed = untried; then
28406 have_openexr=no
28407else
28408 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
28409 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
cristy8b350f62009-11-15 23:12:43 +000028410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028411$as_echo "yes" >&6; }
28412 have_openexr=yes
28413fi
cristy8b350f62009-11-15 23:12:43 +000028414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028415$as_echo "" >&6; }
28416fi
28417
28418if test "$have_openexr" = 'yes'; then
28419
cristy8b350f62009-11-15 23:12:43 +000028420$as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028421
28422 if test "$with_modules" = 'no'; then
28423 CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
28424 fi
28425fi
28426
28427 if test "$have_openexr" = 'yes'; then
28428 OPENEXR_DELEGATE_TRUE=
28429 OPENEXR_DELEGATE_FALSE='#'
28430else
28431 OPENEXR_DELEGATE_TRUE='#'
28432 OPENEXR_DELEGATE_FALSE=
28433fi
28434
28435
28436
28437
28438
28439#
28440# Check for PNG delegate library.
28441#
28442
28443# Check whether --with-png was given.
cristy8b350f62009-11-15 23:12:43 +000028444if test "${with_png+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028445 withval=$with_png; with_png=$withval
28446else
28447 with_png='yes'
28448fi
28449
28450
28451if test "$with_png" != 'yes'; then
28452 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
28453fi
28454
28455have_png='no'
28456PNG_LIBS=''
28457if test "$with_png" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000028458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028459$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5
cristy3ed852e2009-09-05 21:47:34 +000028461$as_echo_n "checking for PNG... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028463$as_echo "" >&6; }
28464 failed=0
28465 passed=0
cristy8b350f62009-11-15 23:12:43 +000028466 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
28467if test "x$ac_cv_header_png_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028468 passed=`expr $passed + 1`
28469else
28470 failed=`expr $failed + 1`
28471fi
28472
28473
cristy8b350f62009-11-15 23:12:43 +000028474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5
cristy3ed852e2009-09-05 21:47:34 +000028475$as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028476if test "${ac_cv_lib_png_png_get_io_ptr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028477 $as_echo_n "(cached) " >&6
28478else
28479 ac_check_lib_save_LIBS=$LIBS
28480LIBS="-lpng $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028481cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028482/* end confdefs.h. */
28483
28484/* Override any GCC internal prototype to avoid an error.
28485 Use char because int might match the return type of a GCC
28486 builtin and then its argument prototype would still apply. */
28487#ifdef __cplusplus
28488extern "C"
28489#endif
28490char png_get_io_ptr ();
28491int
28492main ()
28493{
28494return png_get_io_ptr ();
28495 ;
28496 return 0;
28497}
28498_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028499if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028500 ac_cv_lib_png_png_get_io_ptr=yes
28501else
cristy8b350f62009-11-15 23:12:43 +000028502 ac_cv_lib_png_png_get_io_ptr=no
cristy3ed852e2009-09-05 21:47:34 +000028503fi
cristy8b350f62009-11-15 23:12:43 +000028504rm -f core conftest.err conftest.$ac_objext \
28505 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028506LIBS=$ac_check_lib_save_LIBS
28507fi
cristy8b350f62009-11-15 23:12:43 +000028508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5
cristy3ed852e2009-09-05 21:47:34 +000028509$as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028510if test "x$ac_cv_lib_png_png_get_io_ptr" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028511 passed=`expr $passed + 1`
28512else
28513 failed=`expr $failed + 1`
28514fi
28515
cristy8b350f62009-11-15 23:12:43 +000028516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PNG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028517$as_echo_n "checking if PNG package is complete... " >&6; }
28518 if test $passed -gt 0; then
28519 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000028520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000028521$as_echo "no -- some components failed test" >&6; }
28522 have_png='no (failed tests)'
28523 else
28524 PNG_LIBS='-lpng'
28525 LIBS="$PNG_LIBS $LIBS"
28526
cristy8b350f62009-11-15 23:12:43 +000028527$as_echo "#define PNG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028528
cristy8b350f62009-11-15 23:12:43 +000028529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028530$as_echo "yes" >&6; }
28531 have_png='yes'
28532 fi
28533 else
cristy8b350f62009-11-15 23:12:43 +000028534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028535$as_echo "no" >&6; }
28536 fi
28537fi
28538 if test "$have_png" = 'yes'; then
28539 PNG_DELEGATE_TRUE=
28540 PNG_DELEGATE_FALSE='#'
28541else
28542 PNG_DELEGATE_TRUE='#'
28543 PNG_DELEGATE_FALSE=
28544fi
28545
28546
28547
28548
28549#
28550# Check for RSVG delegate library.
28551#
28552
28553# Check whether --with-rsvg was given.
cristy8b350f62009-11-15 23:12:43 +000028554if test "${with_rsvg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028555 withval=$with_rsvg; with_rsvg=$withval
28556else
28557 with_rsvg=$have_x
28558fi
28559
28560
28561if test "$with_rsvg" != 'yes'; then
28562 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
28563fi
28564
28565have_rsvg='no'
28566have_cairo='no'
28567RSVG_CFLAGS=""
28568RSVG_LIBS=""
28569RSVG_PKG=""
28570if test "x$with_rsvg" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000028571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028572$as_echo "-------------------------------------------------------------" >&6; }
28573
28574pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000028575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
cristy3ed852e2009-09-05 21:47:34 +000028576$as_echo_n "checking for RSVG... " >&6; }
28577
28578if test -n "$RSVG_CFLAGS"; then
28579 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
28580 elif test -n "$PKG_CONFIG"; then
28581 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000028582 { { $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 +000028583 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
28584 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000028585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28586 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000028587 pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
28588else
28589 pkg_failed=yes
28590fi
28591 else
28592 pkg_failed=untried
28593fi
28594if test -n "$RSVG_LIBS"; then
28595 pkg_cv_RSVG_LIBS="$RSVG_LIBS"
28596 elif test -n "$PKG_CONFIG"; then
28597 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000028598 { { $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 +000028599 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
28600 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000028601 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28602 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000028603 pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
28604else
28605 pkg_failed=yes
28606fi
28607 else
28608 pkg_failed=untried
28609fi
28610
28611
28612
28613if test $pkg_failed = yes; then
28614
28615if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28616 _pkg_short_errors_supported=yes
28617else
28618 _pkg_short_errors_supported=no
28619fi
28620 if test $_pkg_short_errors_supported = yes; then
28621 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
28622 else
28623 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
28624 fi
28625 # Put the nasty error message in config.log where it belongs
28626 echo "$RSVG_PKG_ERRORS" >&5
28627
cristy8b350f62009-11-15 23:12:43 +000028628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028629$as_echo "no" >&6; }
28630 have_rsvg=no
28631elif test $pkg_failed = untried; then
28632 have_rsvg=no
28633else
28634 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
28635 RSVG_LIBS=$pkg_cv_RSVG_LIBS
cristy8b350f62009-11-15 23:12:43 +000028636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028637$as_echo "yes" >&6; }
28638 have_rsvg=yes
28639fi
cristy8b350f62009-11-15 23:12:43 +000028640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028641$as_echo "" >&6; }
28642
28643pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000028644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
cristy3ed852e2009-09-05 21:47:34 +000028645$as_echo_n "checking for CAIRO_SVG... " >&6; }
28646
28647if test -n "$CAIRO_SVG_CFLAGS"; then
28648 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
28649 elif test -n "$PKG_CONFIG"; then
28650 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000028651 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000028652 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
28653 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000028654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28655 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000028656 pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
28657else
28658 pkg_failed=yes
28659fi
28660 else
28661 pkg_failed=untried
28662fi
28663if test -n "$CAIRO_SVG_LIBS"; then
28664 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
28665 elif test -n "$PKG_CONFIG"; then
28666 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000028667 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000028668 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
28669 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000028670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28671 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000028672 pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
28673else
28674 pkg_failed=yes
28675fi
28676 else
28677 pkg_failed=untried
28678fi
28679
28680
28681
28682if test $pkg_failed = yes; then
28683
28684if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28685 _pkg_short_errors_supported=yes
28686else
28687 _pkg_short_errors_supported=no
28688fi
28689 if test $_pkg_short_errors_supported = yes; then
28690 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1`
28691 else
28692 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1`
28693 fi
28694 # Put the nasty error message in config.log where it belongs
28695 echo "$CAIRO_SVG_PKG_ERRORS" >&5
28696
cristy8b350f62009-11-15 23:12:43 +000028697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028698$as_echo "no" >&6; }
28699 have_cairo=no
28700elif test $pkg_failed = untried; then
28701 have_cairo=no
28702else
28703 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
28704 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
cristy8b350f62009-11-15 23:12:43 +000028705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028706$as_echo "yes" >&6; }
28707 have_cairo=yes
28708fi
cristy8b350f62009-11-15 23:12:43 +000028709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028710$as_echo "" >&6; }
28711fi
28712
28713if test "$have_rsvg" = 'yes'; then
28714
cristy8b350f62009-11-15 23:12:43 +000028715$as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028716
28717 if test "$with_modules" = 'no'; then
28718 CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
28719 fi
28720fi
28721
28722if test "$have_cairo" = 'yes'; then
28723
cristy8b350f62009-11-15 23:12:43 +000028724$as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028725
28726 if test "$with_modules" = 'no'; then
28727 CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
28728 fi
28729fi
28730
28731 if test "$have_rsvg" = 'yes'; then
28732 RSVG_DELEGATE_TRUE=
28733 RSVG_DELEGATE_FALSE='#'
28734else
28735 RSVG_DELEGATE_TRUE='#'
28736 RSVG_DELEGATE_FALSE=
28737fi
28738
28739 if test "$have_cairo" = 'yes'; then
28740 CAIRO_DELEGATE_TRUE=
28741 CAIRO_DELEGATE_FALSE='#'
28742else
28743 CAIRO_DELEGATE_TRUE='#'
28744 CAIRO_DELEGATE_FALSE=
28745fi
28746
28747
28748
28749
28750
28751#
28752# Check for TIFF delegate library.
28753#
28754
28755# Check whether --with-tiff was given.
cristy8b350f62009-11-15 23:12:43 +000028756if test "${with_tiff+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028757 withval=$with_tiff; with_tiff=$withval
28758else
28759 with_tiff='yes'
28760fi
28761
28762
28763if test "$with_tiff" != 'yes'; then
28764 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
28765fi
28766
28767have_tiff='no'
28768TIFF_LIBS=''
28769if test "$with_tiff" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000028770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028771$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
cristy3ed852e2009-09-05 21:47:34 +000028773$as_echo_n "checking for TIFF... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028775$as_echo "" >&6; }
28776 failed=0
28777 passed=0
cristy8b350f62009-11-15 23:12:43 +000028778 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
28779if test "x$ac_cv_header_tiff_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028780 passed=`expr $passed + 1`
28781else
28782 failed=`expr $failed + 1`
28783fi
28784
28785
cristy8b350f62009-11-15 23:12:43 +000028786 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
28787if test "x$ac_cv_header_tiffio_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028788 passed=`expr $passed + 1`
28789else
28790 failed=`expr $failed + 1`
28791fi
28792
28793
cristy8b350f62009-11-15 23:12:43 +000028794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000028795$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028796if test "${ac_cv_lib_tiff_TIFFOpen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028797 $as_echo_n "(cached) " >&6
28798else
28799 ac_check_lib_save_LIBS=$LIBS
28800LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028801cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028802/* end confdefs.h. */
28803
28804/* Override any GCC internal prototype to avoid an error.
28805 Use char because int might match the return type of a GCC
28806 builtin and then its argument prototype would still apply. */
28807#ifdef __cplusplus
28808extern "C"
28809#endif
28810char TIFFOpen ();
28811int
28812main ()
28813{
28814return TIFFOpen ();
28815 ;
28816 return 0;
28817}
28818_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028819if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028820 ac_cv_lib_tiff_TIFFOpen=yes
28821else
cristy8b350f62009-11-15 23:12:43 +000028822 ac_cv_lib_tiff_TIFFOpen=no
cristy3ed852e2009-09-05 21:47:34 +000028823fi
cristy8b350f62009-11-15 23:12:43 +000028824rm -f core conftest.err conftest.$ac_objext \
28825 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028826LIBS=$ac_check_lib_save_LIBS
28827fi
cristy8b350f62009-11-15 23:12:43 +000028828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000028829$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028830if test "x$ac_cv_lib_tiff_TIFFOpen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028831 passed=`expr $passed + 1`
28832else
28833 failed=`expr $failed + 1`
28834fi
28835
cristy8b350f62009-11-15 23:12:43 +000028836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000028837$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028838if test "${ac_cv_lib_tiff_TIFFClientOpen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028839 $as_echo_n "(cached) " >&6
28840else
28841 ac_check_lib_save_LIBS=$LIBS
28842LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028843cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028844/* end confdefs.h. */
28845
28846/* Override any GCC internal prototype to avoid an error.
28847 Use char because int might match the return type of a GCC
28848 builtin and then its argument prototype would still apply. */
28849#ifdef __cplusplus
28850extern "C"
28851#endif
28852char TIFFClientOpen ();
28853int
28854main ()
28855{
28856return TIFFClientOpen ();
28857 ;
28858 return 0;
28859}
28860_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028861if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028862 ac_cv_lib_tiff_TIFFClientOpen=yes
28863else
cristy8b350f62009-11-15 23:12:43 +000028864 ac_cv_lib_tiff_TIFFClientOpen=no
cristy3ed852e2009-09-05 21:47:34 +000028865fi
cristy8b350f62009-11-15 23:12:43 +000028866rm -f core conftest.err conftest.$ac_objext \
28867 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028868LIBS=$ac_check_lib_save_LIBS
28869fi
cristy8b350f62009-11-15 23:12:43 +000028870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000028871$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028872if test "x$ac_cv_lib_tiff_TIFFClientOpen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028873 passed=`expr $passed + 1`
28874else
28875 failed=`expr $failed + 1`
28876fi
28877
cristy8b350f62009-11-15 23:12:43 +000028878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000028879$as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028880if test "${ac_cv_lib_tiff_TIFFIsByteSwapped+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028881 $as_echo_n "(cached) " >&6
28882else
28883 ac_check_lib_save_LIBS=$LIBS
28884LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028885cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028886/* end confdefs.h. */
28887
28888/* Override any GCC internal prototype to avoid an error.
28889 Use char because int might match the return type of a GCC
28890 builtin and then its argument prototype would still apply. */
28891#ifdef __cplusplus
28892extern "C"
28893#endif
28894char TIFFIsByteSwapped ();
28895int
28896main ()
28897{
28898return TIFFIsByteSwapped ();
28899 ;
28900 return 0;
28901}
28902_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028903if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028904 ac_cv_lib_tiff_TIFFIsByteSwapped=yes
28905else
cristy8b350f62009-11-15 23:12:43 +000028906 ac_cv_lib_tiff_TIFFIsByteSwapped=no
cristy3ed852e2009-09-05 21:47:34 +000028907fi
cristy8b350f62009-11-15 23:12:43 +000028908rm -f core conftest.err conftest.$ac_objext \
28909 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028910LIBS=$ac_check_lib_save_LIBS
28911fi
cristy8b350f62009-11-15 23:12:43 +000028912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000028913$as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028914if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028915 passed=`expr $passed + 1`
28916else
28917 failed=`expr $failed + 1`
28918fi
28919
cristy8b350f62009-11-15 23:12:43 +000028920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000028921$as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028922if test "${ac_cv_lib_tiff_TIFFReadRGBATile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028923 $as_echo_n "(cached) " >&6
28924else
28925 ac_check_lib_save_LIBS=$LIBS
28926LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028927cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028928/* end confdefs.h. */
28929
28930/* Override any GCC internal prototype to avoid an error.
28931 Use char because int might match the return type of a GCC
28932 builtin and then its argument prototype would still apply. */
28933#ifdef __cplusplus
28934extern "C"
28935#endif
28936char TIFFReadRGBATile ();
28937int
28938main ()
28939{
28940return TIFFReadRGBATile ();
28941 ;
28942 return 0;
28943}
28944_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028945if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028946 ac_cv_lib_tiff_TIFFReadRGBATile=yes
28947else
cristy8b350f62009-11-15 23:12:43 +000028948 ac_cv_lib_tiff_TIFFReadRGBATile=no
cristy3ed852e2009-09-05 21:47:34 +000028949fi
cristy8b350f62009-11-15 23:12:43 +000028950rm -f core conftest.err conftest.$ac_objext \
28951 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028952LIBS=$ac_check_lib_save_LIBS
28953fi
cristy8b350f62009-11-15 23:12:43 +000028954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
cristy3ed852e2009-09-05 21:47:34 +000028955$as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028956if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028957 passed=`expr $passed + 1`
28958else
28959 failed=`expr $failed + 1`
28960fi
28961
cristy8b350f62009-11-15 23:12:43 +000028962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000028963$as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028964if test "${ac_cv_lib_tiff_TIFFReadRGBAStrip+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028965 $as_echo_n "(cached) " >&6
28966else
28967 ac_check_lib_save_LIBS=$LIBS
28968LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028969cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028970/* end confdefs.h. */
28971
28972/* Override any GCC internal prototype to avoid an error.
28973 Use char because int might match the return type of a GCC
28974 builtin and then its argument prototype would still apply. */
28975#ifdef __cplusplus
28976extern "C"
28977#endif
28978char TIFFReadRGBAStrip ();
28979int
28980main ()
28981{
28982return TIFFReadRGBAStrip ();
28983 ;
28984 return 0;
28985}
28986_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028987if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028988 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
28989else
cristy8b350f62009-11-15 23:12:43 +000028990 ac_cv_lib_tiff_TIFFReadRGBAStrip=no
cristy3ed852e2009-09-05 21:47:34 +000028991fi
cristy8b350f62009-11-15 23:12:43 +000028992rm -f core conftest.err conftest.$ac_objext \
28993 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028994LIBS=$ac_check_lib_save_LIBS
28995fi
cristy8b350f62009-11-15 23:12:43 +000028996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
cristy3ed852e2009-09-05 21:47:34 +000028997$as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028998if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028999 passed=`expr $passed + 1`
29000else
29001 failed=`expr $failed + 1`
29002fi
29003
cristy8b350f62009-11-15 23:12:43 +000029004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029005$as_echo_n "checking if TIFF package is complete... " >&6; }
29006 if test $passed -gt 0; then
29007 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000029008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000029009$as_echo "no -- some components failed test" >&6; }
29010 have_tiff='no (failed tests)'
29011 else
29012 TIFF_LIBS='-ltiff'
29013 LIBS="$TIFF_LIBS $LIBS"
29014
cristy8b350f62009-11-15 23:12:43 +000029015$as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029016
cristy8b350f62009-11-15 23:12:43 +000029017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000029018$as_echo "yes" >&6; }
29019 have_tiff='yes'
cristy8b350f62009-11-15 23:12:43 +000029020 for ac_header in tiffconf.h
29021do :
29022 ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
29023if test "x$ac_cv_header_tiffconf_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000029024 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029025#define HAVE_TIFFCONF_H 1
cristy3ed852e2009-09-05 21:47:34 +000029026_ACEOF
29027
29028fi
29029
29030done
29031
cristy8b350f62009-11-15 23:12:43 +000029032 for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
cristy3ed852e2009-09-05 21:47:34 +000029033 TIFFReadEXIFDirectory TIFFSetErrorHandlerExt TIFFSetTagExtender \
29034 TIFFSetWarningHandlerExt TIFFSwabArrayOfTriples
cristy8b350f62009-11-15 23:12:43 +000029035do :
29036 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29037ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29038eval as_val=\$$as_ac_var
29039 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000029040 cat >>confdefs.h <<_ACEOF
29041#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29042_ACEOF
29043
29044fi
29045done
29046
29047 fi
29048 else
cristy8b350f62009-11-15 23:12:43 +000029049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029050$as_echo "no" >&6; }
29051 fi
29052fi
29053 if test "$have_tiff" = 'yes'; then
29054 TIFF_DELEGATE_TRUE=
29055 TIFF_DELEGATE_FALSE='#'
29056else
29057 TIFF_DELEGATE_TRUE='#'
29058 TIFF_DELEGATE_FALSE=
29059fi
29060
29061
29062
29063
29064#
29065# Set Windows font directory.
29066#
29067
29068# Check whether --with-windows-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000029069if test "${with_windows_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029070 withval=$with_windows_font_dir; with_windows_font_dir=$withval
29071else
29072 with_windows_font_dir=''
29073fi
29074
29075if test "$with_windows_font_dir" != '' ; then
29076 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
29077fi
29078
29079
29080#
29081# Check for WMF delegate library.
29082#
29083
29084# Check whether --with-wmf was given.
cristy8b350f62009-11-15 23:12:43 +000029085if test "${with_wmf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029086 withval=$with_wmf; with_wmf=$withval
29087else
cristy8d63d1d2010-01-06 20:38:37 +000029088 with_wmf='yes'
cristy3ed852e2009-09-05 21:47:34 +000029089fi
29090
29091
29092if test "$with_wmf" != 'yes'; then
29093 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
29094fi
29095
29096have_wmf='no'
29097WMF_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +000029098if test "$with_wmf" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000029099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000029100$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5
cristy3ed852e2009-09-05 21:47:34 +000029102$as_echo_n "checking for WMF... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000029104$as_echo "" >&6; }
cristy735e8942010-04-02 20:32:57 +000029105 failed=0
29106 passed=0
29107 ac_fn_c_check_header_mongrel "$LINENO" "libwmf/eps.h" "ac_cv_header_libwmf_eps_h" "$ac_includes_default"
29108if test "x$ac_cv_header_libwmf_eps_h" = x""yes; then :
29109 passed=`expr $passed + 1`
29110else
29111 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000029112fi
29113
29114
cristy735e8942010-04-02 20:32:57 +000029115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_eps_function in -lwmf" >&5
29116$as_echo_n "checking for wmf_eps_function in -lwmf... " >&6; }
29117if test "${ac_cv_lib_wmf_wmf_eps_function+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029118 $as_echo_n "(cached) " >&6
29119else
29120 ac_check_lib_save_LIBS=$LIBS
cristy22652362010-04-02 23:22:31 +000029121LIBS="-lwmf "-lwmflite" $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029122cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029123/* end confdefs.h. */
29124
29125/* Override any GCC internal prototype to avoid an error.
29126 Use char because int might match the return type of a GCC
29127 builtin and then its argument prototype would still apply. */
29128#ifdef __cplusplus
29129extern "C"
29130#endif
cristy735e8942010-04-02 20:32:57 +000029131char wmf_eps_function ();
cristy3ed852e2009-09-05 21:47:34 +000029132int
29133main ()
29134{
cristy735e8942010-04-02 20:32:57 +000029135return wmf_eps_function ();
cristy3ed852e2009-09-05 21:47:34 +000029136 ;
29137 return 0;
29138}
29139_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029140if ac_fn_c_try_link "$LINENO"; then :
cristy735e8942010-04-02 20:32:57 +000029141 ac_cv_lib_wmf_wmf_eps_function=yes
cristy3ed852e2009-09-05 21:47:34 +000029142else
cristy735e8942010-04-02 20:32:57 +000029143 ac_cv_lib_wmf_wmf_eps_function=no
cristy3ed852e2009-09-05 21:47:34 +000029144fi
cristy8b350f62009-11-15 23:12:43 +000029145rm -f core conftest.err conftest.$ac_objext \
29146 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029147LIBS=$ac_check_lib_save_LIBS
29148fi
cristy735e8942010-04-02 20:32:57 +000029149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_eps_function" >&5
29150$as_echo "$ac_cv_lib_wmf_wmf_eps_function" >&6; }
29151if test "x$ac_cv_lib_wmf_wmf_eps_function" = x""yes; then :
29152 passed=`expr $passed + 1`
29153else
29154 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000029155fi
29156
cristy735e8942010-04-02 20:32:57 +000029157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5
29158$as_echo_n "checking if WMF package is complete... " >&6; }
29159 if test $passed -gt 0; then
29160 if test $failed -gt 0; then
29161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29162$as_echo "no -- some components failed test" >&6; }
29163 have_wmf='no (failed tests)'
cristy3ed852e2009-09-05 21:47:34 +000029164 else
cristy735e8942010-04-02 20:32:57 +000029165 WMF_LIBS='-lwmf -lwmflite'
29166 LIBS="$WMF_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000029167
cristy8b350f62009-11-15 23:12:43 +000029168$as_echo "#define WMF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029169
cristy735e8942010-04-02 20:32:57 +000029170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000029171$as_echo "yes" >&6; }
cristy735e8942010-04-02 20:32:57 +000029172 have_wmf='yes'
29173 fi
cristy3ed852e2009-09-05 21:47:34 +000029174 else
cristy8b350f62009-11-15 23:12:43 +000029175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029176$as_echo "no" >&6; }
29177 fi
29178fi
29179 if test "$have_wmf" = 'yes'; then
29180 WMF_DELEGATE_TRUE=
29181 WMF_DELEGATE_FALSE='#'
29182else
29183 WMF_DELEGATE_TRUE='#'
29184 WMF_DELEGATE_FALSE=
29185fi
29186
29187
29188
29189
29190
cristy735e8942010-04-02 20:32:57 +000029191
cristy3ed852e2009-09-05 21:47:34 +000029192#
29193# Check for XML delegate library.
29194#
29195
29196# Check whether --with-xml was given.
cristy8b350f62009-11-15 23:12:43 +000029197if test "${with_xml+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029198 withval=$with_xml; with_xml=$withval
29199else
29200 with_xml=$have_x
29201fi
29202
29203
29204if test "$with_xml" != 'yes' ; then
29205 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
29206fi
29207
29208have_xml='no'
29209XML_LIBS=''
29210if test "$with_xml" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000029211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000029212$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
cristy3ed852e2009-09-05 21:47:34 +000029214$as_echo_n "checking for XML... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000029216$as_echo "" >&6; }
29217 PERSIST_LDFLAGS=$LDFLAGS
29218 PERSIST_CPPFLAGS=$CPPFLAGS
29219 xml2_config=''
29220 for ac_prog in xml2-config
29221do
29222 # Extract the first word of "$ac_prog", so it can be a program name with args.
29223set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029225$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029226if test "${ac_cv_prog_xml2_config+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029227 $as_echo_n "(cached) " >&6
29228else
29229 if test -n "$xml2_config"; then
29230 ac_cv_prog_xml2_config="$xml2_config" # Let the user override the test.
29231else
29232as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29233for as_dir in $PATH
29234do
29235 IFS=$as_save_IFS
29236 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029237 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29239 ac_cv_prog_xml2_config="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000029240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029241 break 2
29242 fi
29243done
cristy8b350f62009-11-15 23:12:43 +000029244 done
cristy3ed852e2009-09-05 21:47:34 +000029245IFS=$as_save_IFS
29246
29247fi
29248fi
29249xml2_config=$ac_cv_prog_xml2_config
29250if test -n "$xml2_config"; then
cristy8b350f62009-11-15 23:12:43 +000029251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5
cristy3ed852e2009-09-05 21:47:34 +000029252$as_echo "$xml2_config" >&6; }
29253else
cristy8b350f62009-11-15 23:12:43 +000029254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029255$as_echo "no" >&6; }
29256fi
29257
29258
29259 test -n "$xml2_config" && break
29260done
29261 if test -n "$xml2_config"; then
29262 # Debian installs libxml headers under /usr/include/libxml2/libxml with
29263 # the shared library installed under /usr/lib, whereas the package
29264 # installs itself under $prefix/libxml and $prefix/lib.
29265 xml2_prefix=`xml2-config --prefix`
29266 if test -d "${xml2_prefix}/include/libxml2"; then
29267 CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
29268 fi
29269 if test "${xml2_prefix}" != '/usr'; then
29270 LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
29271 fi
29272 fi
29273 failed=0
29274 passed=0
cristy8b350f62009-11-15 23:12:43 +000029275 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
29276if test "x$ac_cv_header_libxml_parser_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000029277 passed=`expr $passed + 1`
29278else
29279 failed=`expr $failed + 1`
29280fi
29281
29282
cristy8b350f62009-11-15 23:12:43 +000029283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseExternalEntity in -lxml2" >&5
cristy3ed852e2009-09-05 21:47:34 +000029284$as_echo_n "checking for xmlParseExternalEntity in -lxml2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029285if test "${ac_cv_lib_xml2_xmlParseExternalEntity+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029286 $as_echo_n "(cached) " >&6
29287else
29288 ac_check_lib_save_LIBS=$LIBS
29289LIBS="-lxml2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029290cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029291/* end confdefs.h. */
29292
29293/* Override any GCC internal prototype to avoid an error.
29294 Use char because int might match the return type of a GCC
29295 builtin and then its argument prototype would still apply. */
29296#ifdef __cplusplus
29297extern "C"
29298#endif
29299char xmlParseExternalEntity ();
29300int
29301main ()
29302{
29303return xmlParseExternalEntity ();
29304 ;
29305 return 0;
29306}
29307_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029308if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029309 ac_cv_lib_xml2_xmlParseExternalEntity=yes
29310else
cristy8b350f62009-11-15 23:12:43 +000029311 ac_cv_lib_xml2_xmlParseExternalEntity=no
cristy3ed852e2009-09-05 21:47:34 +000029312fi
cristy8b350f62009-11-15 23:12:43 +000029313rm -f core conftest.err conftest.$ac_objext \
29314 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029315LIBS=$ac_check_lib_save_LIBS
29316fi
cristy8b350f62009-11-15 23:12:43 +000029317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseExternalEntity" >&5
cristy3ed852e2009-09-05 21:47:34 +000029318$as_echo "$ac_cv_lib_xml2_xmlParseExternalEntity" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029319if test "x$ac_cv_lib_xml2_xmlParseExternalEntity" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000029320 passed=`expr $passed + 1`
29321else
29322 failed=`expr $failed + 1`
29323fi
29324
cristy8b350f62009-11-15 23:12:43 +000029325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029326$as_echo_n "checking if XML package is complete... " >&6; }
29327 if test $passed -gt 0; then
29328 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000029329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000029330$as_echo "no -- some components failed test" >&6; }
29331 have_xml='no (failed tests)'
29332 LDFLAGS="$PERSIST_LDFLAGS"
29333 CPPFLAGS="$PERSIST_CPPFLAGS"
29334 else
29335 XML_LIBS='-lxml2'
29336 LIBS="$XML_LIBS $LIBS"
29337
cristy8b350f62009-11-15 23:12:43 +000029338$as_echo "#define XML_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029339
cristy8b350f62009-11-15 23:12:43 +000029340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000029341$as_echo "yes" >&6; }
29342 have_xml='yes'
29343 fi
29344 else
cristy8b350f62009-11-15 23:12:43 +000029345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029346$as_echo "no" >&6; }
29347 fi
29348fi
29349 if test "$have_xml" = 'yes'; then
29350 XML_DELEGATE_TRUE=
29351 XML_DELEGATE_FALSE='#'
29352else
29353 XML_DELEGATE_TRUE='#'
29354 XML_DELEGATE_FALSE=
29355fi
29356
29357
29358
29359
29360# Substitute compiler name to build/link PerlMagick
29361#
29362
29363
29364#
29365# Configure install Paths
29366#
29367
29368# Subdirectory under lib to place ImageMagick lib files
29369LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
29370
29371cat >>confdefs.h <<_ACEOF
29372#define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
29373_ACEOF
29374
29375
29376# Path to ImageMagick bin directory
29377EXECUTABLE_PATH="${BIN_DIR}"
29378DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
29379case "${build_os}" in
29380 mingw* )
29381 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
29382 ;;
29383esac
29384
29385cat >>confdefs.h <<_ACEOF
29386#define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
29387_ACEOF
29388
29389
29390
29391# Path to ImageMagick lib
29392LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
29393DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
29394case "${build_os}" in
29395 mingw* )
29396 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
29397 ;;
29398esac
29399
29400cat >>confdefs.h <<_ACEOF
29401#define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
29402_ACEOF
29403
29404
29405
29406# Subdirectory under lib to place ImageMagick configuration files
29407CONFIGURE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
29408
29409cat >>confdefs.h <<_ACEOF
29410#define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
29411_ACEOF
29412
29413CONFIGURE_PATH="${LIB_DIR}/${CONFIGURE_RELATIVE_PATH}/"
29414DEFINE_CONFIGURE_PATH="${LIB_DIR}/${CONFIGURE_RELATIVE_PATH}/"
29415case "${build_os}" in
29416 mingw* )
29417 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
29418 ;;
29419esac
29420
29421cat >>confdefs.h <<_ACEOF
29422#define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
29423_ACEOF
29424
29425
29426
29427#
29428# Subdirectory under lib to place ImageMagick coder module files
29429CODER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/coders"
29430
29431cat >>confdefs.h <<_ACEOF
29432#define CODER_RELATIVE_PATH "$CODER_RELATIVE_PATH"
29433_ACEOF
29434
29435CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}"
29436DEFINE_CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}/"
29437case "${build_os}" in
29438 mingw* )
29439 DEFINE_CODER_PATH=`$WinPathScript "$DEFINE_CODER_PATH" 1`
29440 ;;
29441esac
29442
29443cat >>confdefs.h <<_ACEOF
29444#define CODER_PATH "$DEFINE_CODER_PATH"
29445_ACEOF
29446
29447
29448
29449#
29450# Subdirectory under lib to place ImageMagick filter module files
29451FILTER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/filters"
29452
29453cat >>confdefs.h <<_ACEOF
29454#define FILTER_RELATIVE_PATH "$FILTER_RELATIVE_PATH"
29455_ACEOF
29456
29457FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}"
29458DEFINE_FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}/"
29459case "${build_os}" in
29460 mingw* )
29461 DEFINE_FILTER_PATH=`$WinPathScript "$DEFINE_FILTER_PATH" 1`
29462 ;;
29463esac
29464
29465cat >>confdefs.h <<_ACEOF
29466#define FILTER_PATH "$DEFINE_FILTER_PATH"
29467_ACEOF
29468
29469
29470
29471#
29472# Path to ImageMagick documentation files
29473DOCUMENTATION_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
29474DOCUMENTATION_PATH="${DATA_DIR}/doc/${DOCUMENTATION_RELATIVE_PATH}"
29475DEFINE_DOCUMENTATION_PATH="${DATA_DIR}/doc/${DOCUMENTATION_RELATIVE_PATH}/"
29476case "${build_os}" in
29477 mingw* )
29478 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
29479 ;;
29480esac
29481
29482cat >>confdefs.h <<_ACEOF
29483#define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
29484_ACEOF
29485
29486
29487
29488#
29489# Path to ImageMagick share files
29490SHARE_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
29491SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
29492DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
29493case "${build_os}" in
29494 mingw* )
29495 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
29496 ;;
29497esac
29498
29499cat >>confdefs.h <<_ACEOF
29500#define SHARE_PATH "$DEFINE_SHARE_PATH"
29501_ACEOF
29502
29503
29504
29505# Subdirectory under share to place ImageMagick configuration files
29506SHARE_CONFIGURE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
29507
29508cat >>confdefs.h <<_ACEOF
29509#define SHARE_CONFIGURE_RELATIVE_PATH "$SHARE_CONFIGURE_RELATIVE_PATH"
29510_ACEOF
29511
29512SHARE_CONFIGURE_PATH="${DATA_DIR}/${SHARE_CONFIGURE_RELATIVE_PATH}"
29513DEFINE_SHARE_CONFIGURE_PATH="${DATA_DIR}/${SHARE_CONFIGURE_RELATIVE_PATH}/"
29514case "${build_os}" in
29515 mingw* )
29516 DEFINE_SHARE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_SHARE_CONFIGURE_PATH" 1`
29517 ;;
29518esac
29519
29520cat >>confdefs.h <<_ACEOF
29521#define SHARE_CONFIGURE_PATH "$DEFINE_SHARE_CONFIGURE_PATH"
29522_ACEOF
29523
29524
29525
29526#
29527# program_transform_name is formed for use in a Makefile, so create a
29528# modified version for use in a shell script.
29529configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
29530
29531# Default delegate definitions
cristy8b350f62009-11-15 23:12:43 +000029532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000029533$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000029535$as_echo_n "checking for ImageMagick delegate programs... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000029537$as_echo "" >&6; }
29538AutotraceDecodeDelegateDefault='autotrace'
29539AVIDecodeDelegateDefault='mplayer'
cristy3d7f8062009-09-24 20:45:35 +000029540BlenderDecodeDelegateDefault='blender'
cristy3ed852e2009-09-05 21:47:34 +000029541BZIPDelegateDefault='bzip2'
29542BrowseDelegateDefault='xdg-open'
29543CGMDecodeDelegateDefault='ralcgm'
29544CatDelegateDefault='cat'
29545DNGDecodeDelegateDefault='ufraw-batch'
29546GVCDecodeDelegateDefault='dot'
29547DVIDecodeDelegateDefault='dvips'
29548EchoDelegateDefault='echo'
29549EditorDelegateDefault='xterm'
29550FIGDecodeDelegateDefault='fig2dev'
29551ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
29552DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
29553MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
29554GnuplotDecodeDelegateDefault='gnuplot'
29555HDRDecodeDelegateDefault='ra_pfm'
29556HPGLDecodeDelegateDefault='hp2xx'
29557HTMLDecodeDelegateDefault='html2ps'
29558ILBMDecodeDelegateDefault='ilbmtoppm'
29559ILBMEncodeDelegateDefault='ppmtoilbm'
29560LPDelegateDefault='lp'
29561LPRDelegateDefault='lpr'
29562LZWDecodeDelegateDefault='uncompress'
29563LZWEncodeDelegateDefault='compress'
29564LaunchDelegateDefault='gimp'
29565MANDelegateDefault='groff'
29566MPEGDecodeDelegateDefault='ffmpeg'
29567MPEGEncodeDelegateDefault='ffmpeg'
29568MVDelegateDefault='mv'
29569PCLDelegateDefault='pcl6'
29570PGPDecodeDelegateDefault='pgpv'
29571POVDelegateDefault='povray'
29572if test "$native_win32_build" = 'yes'; then
29573 PSDelegateDefault='gswin32c'
cristyb7931f12009-09-25 10:22:21 +000029574elif test "$gslib_framework" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000029575 PSDelegateDefault='gsc'
29576else
29577 PSDelegateDefault='gs'
29578fi
29579RLEEncodeDelegateDefault='rawtorle'
29580RMDelegateDefault='rm'
cristy4689cf02010-02-17 21:15:45 +000029581RSVGDecodeDelegateDefault='rsvg'
cristy3ed852e2009-09-05 21:47:34 +000029582SCANDecodeDelegateDefault='scanimage'
29583TXTDelegateDefault='enscript'
29584WMFDecodeDelegateDefault='wmf2eps'
29585WWWDecodeDelegateDefault='curl'
29586XPSDelegateDefault='gxps'
29587ZipDelegateDefault='gzip'
29588
29589# Search for delegates
29590# Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
29591set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029593$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029594if test "${ac_cv_path_AutotraceDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029595 $as_echo_n "(cached) " >&6
29596else
29597 case $AutotraceDecodeDelegate in
29598 [\\/]* | ?:[\\/]*)
29599 ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
29600 ;;
29601 *)
29602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29603for as_dir in $PATH
29604do
29605 IFS=$as_save_IFS
29606 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029607 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029608 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29609 ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029611 break 2
29612 fi
29613done
cristy8b350f62009-11-15 23:12:43 +000029614 done
cristy3ed852e2009-09-05 21:47:34 +000029615IFS=$as_save_IFS
29616
29617 test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
29618 ;;
29619esac
29620fi
29621AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
29622if test -n "$AutotraceDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029624$as_echo "$AutotraceDecodeDelegate" >&6; }
29625else
cristy8b350f62009-11-15 23:12:43 +000029626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029627$as_echo "no" >&6; }
29628fi
29629
29630
29631# Extract the first word of ""$AVIDecodeDelegateDefault"", so it can be a program name with args.
29632set dummy "$AVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029634$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029635if test "${ac_cv_path_AVIDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029636 $as_echo_n "(cached) " >&6
29637else
29638 case $AVIDecodeDelegate in
29639 [\\/]* | ?:[\\/]*)
29640 ac_cv_path_AVIDecodeDelegate="$AVIDecodeDelegate" # Let the user override the test with a path.
29641 ;;
29642 *)
29643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29644for as_dir in $PATH
29645do
29646 IFS=$as_save_IFS
29647 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029648 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029649 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29650 ac_cv_path_AVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029652 break 2
29653 fi
29654done
cristy8b350f62009-11-15 23:12:43 +000029655 done
cristy3ed852e2009-09-05 21:47:34 +000029656IFS=$as_save_IFS
29657
29658 test -z "$ac_cv_path_AVIDecodeDelegate" && ac_cv_path_AVIDecodeDelegate=""$AVIDecodeDelegateDefault""
29659 ;;
29660esac
29661fi
29662AVIDecodeDelegate=$ac_cv_path_AVIDecodeDelegate
29663if test -n "$AVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029665$as_echo "$AVIDecodeDelegate" >&6; }
29666else
cristy8b350f62009-11-15 23:12:43 +000029667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029668$as_echo "no" >&6; }
29669fi
29670
29671
29672# Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
29673set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029675$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029676if test "${ac_cv_path_BlenderDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029677 $as_echo_n "(cached) " >&6
29678else
29679 case $BlenderDecodeDelegate in
29680 [\\/]* | ?:[\\/]*)
29681 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
29682 ;;
29683 *)
29684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29685for as_dir in $PATH
29686do
29687 IFS=$as_save_IFS
29688 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029689 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029690 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29691 ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029693 break 2
29694 fi
29695done
cristy8b350f62009-11-15 23:12:43 +000029696 done
cristy3ed852e2009-09-05 21:47:34 +000029697IFS=$as_save_IFS
29698
29699 test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
29700 ;;
29701esac
29702fi
29703BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
29704if test -n "$BlenderDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029706$as_echo "$BlenderDecodeDelegate" >&6; }
29707else
cristy8b350f62009-11-15 23:12:43 +000029708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029709$as_echo "no" >&6; }
29710fi
29711
29712
29713# Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
29714set dummy "$BZIPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029716$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029717if test "${ac_cv_path_BZIPDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029718 $as_echo_n "(cached) " >&6
29719else
29720 case $BZIPDelegate in
29721 [\\/]* | ?:[\\/]*)
29722 ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
29723 ;;
29724 *)
29725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29726for as_dir in $PATH
29727do
29728 IFS=$as_save_IFS
29729 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029730 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029731 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29732 ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029734 break 2
29735 fi
29736done
cristy8b350f62009-11-15 23:12:43 +000029737 done
cristy3ed852e2009-09-05 21:47:34 +000029738IFS=$as_save_IFS
29739
29740 test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
29741 ;;
29742esac
29743fi
29744BZIPDelegate=$ac_cv_path_BZIPDelegate
29745if test -n "$BZIPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029747$as_echo "$BZIPDelegate" >&6; }
29748else
cristy8b350f62009-11-15 23:12:43 +000029749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029750$as_echo "no" >&6; }
29751fi
29752
29753
29754# Extract the first word of ""$BrowseDelegateDefault" mozilla firefox netscape", so it can be a program name with args.
29755set dummy "$BrowseDelegateDefault" mozilla firefox netscape; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029757$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029758if test "${ac_cv_path_BrowseDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029759 $as_echo_n "(cached) " >&6
29760else
29761 case $BrowseDelegate in
29762 [\\/]* | ?:[\\/]*)
29763 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
29764 ;;
29765 *)
29766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29767for as_dir in $PATH
29768do
29769 IFS=$as_save_IFS
29770 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029771 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029772 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29773 ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029775 break 2
29776 fi
29777done
cristy8b350f62009-11-15 23:12:43 +000029778 done
cristy3ed852e2009-09-05 21:47:34 +000029779IFS=$as_save_IFS
29780
29781 test -z "$ac_cv_path_BrowseDelegate" && ac_cv_path_BrowseDelegate=""$BrowseDelegateDefault""
29782 ;;
29783esac
29784fi
29785BrowseDelegate=$ac_cv_path_BrowseDelegate
29786if test -n "$BrowseDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029788$as_echo "$BrowseDelegate" >&6; }
29789else
cristy8b350f62009-11-15 23:12:43 +000029790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029791$as_echo "no" >&6; }
29792fi
29793
29794
29795# Extract the first word of ""$CGMDecodeDelegateDefault"", so it can be a program name with args.
29796set dummy "$CGMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029798$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029799if test "${ac_cv_path_CGMDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029800 $as_echo_n "(cached) " >&6
29801else
29802 case $CGMDecodeDelegate in
29803 [\\/]* | ?:[\\/]*)
29804 ac_cv_path_CGMDecodeDelegate="$CGMDecodeDelegate" # Let the user override the test with a path.
29805 ;;
29806 *)
29807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29808for as_dir in $PATH
29809do
29810 IFS=$as_save_IFS
29811 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029812 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29814 ac_cv_path_CGMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029816 break 2
29817 fi
29818done
cristy8b350f62009-11-15 23:12:43 +000029819 done
cristy3ed852e2009-09-05 21:47:34 +000029820IFS=$as_save_IFS
29821
29822 test -z "$ac_cv_path_CGMDecodeDelegate" && ac_cv_path_CGMDecodeDelegate=""$CGMDecodeDelegateDefault""
29823 ;;
29824esac
29825fi
29826CGMDecodeDelegate=$ac_cv_path_CGMDecodeDelegate
29827if test -n "$CGMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CGMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029829$as_echo "$CGMDecodeDelegate" >&6; }
29830else
cristy8b350f62009-11-15 23:12:43 +000029831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029832$as_echo "no" >&6; }
29833fi
29834
29835
29836# Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
29837set dummy "$CatDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029839$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029840if test "${ac_cv_path_CatDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029841 $as_echo_n "(cached) " >&6
29842else
29843 case $CatDelegate in
29844 [\\/]* | ?:[\\/]*)
29845 ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
29846 ;;
29847 *)
29848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29849for as_dir in $PATH
29850do
29851 IFS=$as_save_IFS
29852 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029853 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029854 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29855 ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029857 break 2
29858 fi
29859done
cristy8b350f62009-11-15 23:12:43 +000029860 done
cristy3ed852e2009-09-05 21:47:34 +000029861IFS=$as_save_IFS
29862
29863 test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
29864 ;;
29865esac
29866fi
29867CatDelegate=$ac_cv_path_CatDelegate
29868if test -n "$CatDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029870$as_echo "$CatDelegate" >&6; }
29871else
cristy8b350f62009-11-15 23:12:43 +000029872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029873$as_echo "no" >&6; }
29874fi
29875
29876
29877# Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
29878set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029880$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029881if test "${ac_cv_path_DNGDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029882 $as_echo_n "(cached) " >&6
29883else
29884 case $DNGDecodeDelegate in
29885 [\\/]* | ?:[\\/]*)
29886 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
29887 ;;
29888 *)
29889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29890for as_dir in $PATH
29891do
29892 IFS=$as_save_IFS
29893 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029894 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29896 ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029898 break 2
29899 fi
29900done
cristy8b350f62009-11-15 23:12:43 +000029901 done
cristy3ed852e2009-09-05 21:47:34 +000029902IFS=$as_save_IFS
29903
29904 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
29905 ;;
29906esac
29907fi
29908DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
29909if test -n "$DNGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029911$as_echo "$DNGDecodeDelegate" >&6; }
29912else
cristy8b350f62009-11-15 23:12:43 +000029913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029914$as_echo "no" >&6; }
29915fi
29916
29917
29918# Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
29919set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029921$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029922if test "${ac_cv_path_GVCDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029923 $as_echo_n "(cached) " >&6
29924else
29925 case $GVCDecodeDelegate in
29926 [\\/]* | ?:[\\/]*)
29927 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
29928 ;;
29929 *)
29930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29931for as_dir in $PATH
29932do
29933 IFS=$as_save_IFS
29934 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029935 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29937 ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029939 break 2
29940 fi
29941done
cristy8b350f62009-11-15 23:12:43 +000029942 done
cristy3ed852e2009-09-05 21:47:34 +000029943IFS=$as_save_IFS
29944
29945 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
29946 ;;
29947esac
29948fi
29949GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
29950if test -n "$GVCDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029952$as_echo "$GVCDecodeDelegate" >&6; }
29953else
cristy8b350f62009-11-15 23:12:43 +000029954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029955$as_echo "no" >&6; }
29956fi
29957
29958
29959# Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
29960set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029962$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029963if test "${ac_cv_path_DVIDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029964 $as_echo_n "(cached) " >&6
29965else
29966 case $DVIDecodeDelegate in
29967 [\\/]* | ?:[\\/]*)
29968 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
29969 ;;
29970 *)
29971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29972for as_dir in $PATH
29973do
29974 IFS=$as_save_IFS
29975 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029976 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029977 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29978 ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029980 break 2
29981 fi
29982done
cristy8b350f62009-11-15 23:12:43 +000029983 done
cristy3ed852e2009-09-05 21:47:34 +000029984IFS=$as_save_IFS
29985
29986 test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
29987 ;;
29988esac
29989fi
29990DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
29991if test -n "$DVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029993$as_echo "$DVIDecodeDelegate" >&6; }
29994else
cristy8b350f62009-11-15 23:12:43 +000029995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029996$as_echo "no" >&6; }
29997fi
29998
29999
30000# Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
30001set dummy "$EchoDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030003$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030004if test "${ac_cv_path_EchoDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030005 $as_echo_n "(cached) " >&6
30006else
30007 case $EchoDelegate in
30008 [\\/]* | ?:[\\/]*)
30009 ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
30010 ;;
30011 *)
30012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30013for as_dir in $PATH
30014do
30015 IFS=$as_save_IFS
30016 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030017 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30019 ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030021 break 2
30022 fi
30023done
cristy8b350f62009-11-15 23:12:43 +000030024 done
cristy3ed852e2009-09-05 21:47:34 +000030025IFS=$as_save_IFS
30026
30027 test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
30028 ;;
30029esac
30030fi
30031EchoDelegate=$ac_cv_path_EchoDelegate
30032if test -n "$EchoDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030034$as_echo "$EchoDelegate" >&6; }
30035else
cristy8b350f62009-11-15 23:12:43 +000030036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030037$as_echo "no" >&6; }
30038fi
30039
30040
30041# Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
30042set dummy "$EditorDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030044$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030045if test "${ac_cv_path_EditorDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030046 $as_echo_n "(cached) " >&6
30047else
30048 case $EditorDelegate in
30049 [\\/]* | ?:[\\/]*)
30050 ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
30051 ;;
30052 *)
30053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30054for as_dir in $PATH
30055do
30056 IFS=$as_save_IFS
30057 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030058 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030059 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30060 ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030062 break 2
30063 fi
30064done
cristy8b350f62009-11-15 23:12:43 +000030065 done
cristy3ed852e2009-09-05 21:47:34 +000030066IFS=$as_save_IFS
30067
30068 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
30069 ;;
30070esac
30071fi
30072EditorDelegate=$ac_cv_path_EditorDelegate
30073if test -n "$EditorDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030075$as_echo "$EditorDelegate" >&6; }
30076else
cristy8b350f62009-11-15 23:12:43 +000030077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030078$as_echo "no" >&6; }
30079fi
30080
30081
30082# Extract the first word of ""$FIGDecodeDelegateDefault"", so it can be a program name with args.
30083set dummy "$FIGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030085$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030086if test "${ac_cv_path_FIGDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030087 $as_echo_n "(cached) " >&6
30088else
30089 case $FIGDecodeDelegate in
30090 [\\/]* | ?:[\\/]*)
30091 ac_cv_path_FIGDecodeDelegate="$FIGDecodeDelegate" # Let the user override the test with a path.
30092 ;;
30093 *)
30094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30095for as_dir in $PATH
30096do
30097 IFS=$as_save_IFS
30098 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030099 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030100 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30101 ac_cv_path_FIGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030103 break 2
30104 fi
30105done
cristy8b350f62009-11-15 23:12:43 +000030106 done
cristy3ed852e2009-09-05 21:47:34 +000030107IFS=$as_save_IFS
30108
30109 test -z "$ac_cv_path_FIGDecodeDelegate" && ac_cv_path_FIGDecodeDelegate=""$FIGDecodeDelegateDefault""
30110 ;;
30111esac
30112fi
30113FIGDecodeDelegate=$ac_cv_path_FIGDecodeDelegate
30114if test -n "$FIGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030116$as_echo "$FIGDecodeDelegate" >&6; }
30117else
cristy8b350f62009-11-15 23:12:43 +000030118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030119$as_echo "no" >&6; }
30120fi
30121
30122
30123# Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
30124set dummy "$ConvertDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030126$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030127if test "${ac_cv_path_ConvertDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030128 $as_echo_n "(cached) " >&6
30129else
30130 case $ConvertDelegate in
30131 [\\/]* | ?:[\\/]*)
30132 ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
30133 ;;
30134 *)
30135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30136for as_dir in $PATH
30137do
30138 IFS=$as_save_IFS
30139 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030140 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030141 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30142 ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030144 break 2
30145 fi
30146done
cristy8b350f62009-11-15 23:12:43 +000030147 done
cristy3ed852e2009-09-05 21:47:34 +000030148IFS=$as_save_IFS
30149
30150 test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
30151 ;;
30152esac
30153fi
30154ConvertDelegate=$ac_cv_path_ConvertDelegate
30155if test -n "$ConvertDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030157$as_echo "$ConvertDelegate" >&6; }
30158else
cristy8b350f62009-11-15 23:12:43 +000030159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030160$as_echo "no" >&6; }
30161fi
30162
30163
30164# Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
30165set dummy "$DisplayDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030167$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030168if test "${ac_cv_path_DisplayDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030169 $as_echo_n "(cached) " >&6
30170else
30171 case $DisplayDelegate in
30172 [\\/]* | ?:[\\/]*)
30173 ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
30174 ;;
30175 *)
30176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30177for as_dir in $PATH
30178do
30179 IFS=$as_save_IFS
30180 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030181 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30183 ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030185 break 2
30186 fi
30187done
cristy8b350f62009-11-15 23:12:43 +000030188 done
cristy3ed852e2009-09-05 21:47:34 +000030189IFS=$as_save_IFS
30190
30191 test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
30192 ;;
30193esac
30194fi
30195DisplayDelegate=$ac_cv_path_DisplayDelegate
30196if test -n "$DisplayDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030198$as_echo "$DisplayDelegate" >&6; }
30199else
cristy8b350f62009-11-15 23:12:43 +000030200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030201$as_echo "no" >&6; }
30202fi
30203
30204
30205# Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
30206set dummy "$MogrifyDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030208$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030209if test "${ac_cv_path_MogrifyDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030210 $as_echo_n "(cached) " >&6
30211else
30212 case $MogrifyDelegate in
30213 [\\/]* | ?:[\\/]*)
30214 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
30215 ;;
30216 *)
30217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30218for as_dir in $PATH
30219do
30220 IFS=$as_save_IFS
30221 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030222 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030223 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30224 ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030226 break 2
30227 fi
30228done
cristy8b350f62009-11-15 23:12:43 +000030229 done
cristy3ed852e2009-09-05 21:47:34 +000030230IFS=$as_save_IFS
30231
30232 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
30233 ;;
30234esac
30235fi
30236MogrifyDelegate=$ac_cv_path_MogrifyDelegate
30237if test -n "$MogrifyDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030239$as_echo "$MogrifyDelegate" >&6; }
30240else
cristy8b350f62009-11-15 23:12:43 +000030241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030242$as_echo "no" >&6; }
30243fi
30244
30245
30246# Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
30247set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030249$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030250if test "${ac_cv_path_GnuplotDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030251 $as_echo_n "(cached) " >&6
30252else
30253 case $GnuplotDecodeDelegate in
30254 [\\/]* | ?:[\\/]*)
30255 ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
30256 ;;
30257 *)
30258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30259for as_dir in $PATH
30260do
30261 IFS=$as_save_IFS
30262 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030263 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030264 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30265 ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030267 break 2
30268 fi
30269done
cristy8b350f62009-11-15 23:12:43 +000030270 done
cristy3ed852e2009-09-05 21:47:34 +000030271IFS=$as_save_IFS
30272
30273 test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
30274 ;;
30275esac
30276fi
30277GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
30278if test -n "$GnuplotDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030280$as_echo "$GnuplotDecodeDelegate" >&6; }
30281else
cristy8b350f62009-11-15 23:12:43 +000030282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030283$as_echo "no" >&6; }
30284fi
30285
30286
30287# Extract the first word of ""$HDRDecodeDelegateDefault"", so it can be a program name with args.
30288set dummy "$HDRDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030290$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030291if test "${ac_cv_path_HDRDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030292 $as_echo_n "(cached) " >&6
30293else
30294 case $HDRDecodeDelegate in
30295 [\\/]* | ?:[\\/]*)
30296 ac_cv_path_HDRDecodeDelegate="$HDRDecodeDelegate" # Let the user override the test with a path.
30297 ;;
30298 *)
30299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30300for as_dir in $PATH
30301do
30302 IFS=$as_save_IFS
30303 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030304 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030305 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30306 ac_cv_path_HDRDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030308 break 2
30309 fi
30310done
cristy8b350f62009-11-15 23:12:43 +000030311 done
cristy3ed852e2009-09-05 21:47:34 +000030312IFS=$as_save_IFS
30313
30314 test -z "$ac_cv_path_HDRDecodeDelegate" && ac_cv_path_HDRDecodeDelegate=""$HDRDecodeDelegateDefault""
30315 ;;
30316esac
30317fi
30318HDRDecodeDelegate=$ac_cv_path_HDRDecodeDelegate
30319if test -n "$HDRDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HDRDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030321$as_echo "$HDRDecodeDelegate" >&6; }
30322else
cristy8b350f62009-11-15 23:12:43 +000030323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030324$as_echo "no" >&6; }
30325fi
30326
30327
30328# Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
30329set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030331$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030332if test "${ac_cv_path_HPGLDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030333 $as_echo_n "(cached) " >&6
30334else
30335 case $HPGLDecodeDelegate in
30336 [\\/]* | ?:[\\/]*)
30337 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
30338 ;;
30339 *)
30340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30341for as_dir in $PATH
30342do
30343 IFS=$as_save_IFS
30344 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030345 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030346 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30347 ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030349 break 2
30350 fi
30351done
cristy8b350f62009-11-15 23:12:43 +000030352 done
cristy3ed852e2009-09-05 21:47:34 +000030353IFS=$as_save_IFS
30354
30355 test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
30356 ;;
30357esac
30358fi
30359HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
30360if test -n "$HPGLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030362$as_echo "$HPGLDecodeDelegate" >&6; }
30363else
cristy8b350f62009-11-15 23:12:43 +000030364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030365$as_echo "no" >&6; }
30366fi
30367
30368
30369# Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
30370set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030372$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030373if test "${ac_cv_path_HTMLDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030374 $as_echo_n "(cached) " >&6
30375else
30376 case $HTMLDecodeDelegate in
30377 [\\/]* | ?:[\\/]*)
30378 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
30379 ;;
30380 *)
30381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30382for as_dir in $PATH
30383do
30384 IFS=$as_save_IFS
30385 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030386 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030387 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30388 ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030390 break 2
30391 fi
30392done
cristy8b350f62009-11-15 23:12:43 +000030393 done
cristy3ed852e2009-09-05 21:47:34 +000030394IFS=$as_save_IFS
30395
30396 test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
30397 ;;
30398esac
30399fi
30400HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
30401if test -n "$HTMLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030403$as_echo "$HTMLDecodeDelegate" >&6; }
30404else
cristy8b350f62009-11-15 23:12:43 +000030405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030406$as_echo "no" >&6; }
30407fi
30408
30409
30410# Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
30411set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030413$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030414if test "${ac_cv_path_ILBMDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030415 $as_echo_n "(cached) " >&6
30416else
30417 case $ILBMDecodeDelegate in
30418 [\\/]* | ?:[\\/]*)
30419 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
30420 ;;
30421 *)
30422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30423for as_dir in $PATH
30424do
30425 IFS=$as_save_IFS
30426 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030427 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30429 ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030431 break 2
30432 fi
30433done
cristy8b350f62009-11-15 23:12:43 +000030434 done
cristy3ed852e2009-09-05 21:47:34 +000030435IFS=$as_save_IFS
30436
30437 test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
30438 ;;
30439esac
30440fi
30441ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
30442if test -n "$ILBMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030444$as_echo "$ILBMDecodeDelegate" >&6; }
30445else
cristy8b350f62009-11-15 23:12:43 +000030446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030447$as_echo "no" >&6; }
30448fi
30449
30450
30451# Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
30452set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030454$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030455if test "${ac_cv_path_ILBMEncodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030456 $as_echo_n "(cached) " >&6
30457else
30458 case $ILBMEncodeDelegate in
30459 [\\/]* | ?:[\\/]*)
30460 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
30461 ;;
30462 *)
30463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30464for as_dir in $PATH
30465do
30466 IFS=$as_save_IFS
30467 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030468 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30470 ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030472 break 2
30473 fi
30474done
cristy8b350f62009-11-15 23:12:43 +000030475 done
cristy3ed852e2009-09-05 21:47:34 +000030476IFS=$as_save_IFS
30477
30478 test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
30479 ;;
30480esac
30481fi
30482ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
30483if test -n "$ILBMEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030485$as_echo "$ILBMEncodeDelegate" >&6; }
30486else
cristy8b350f62009-11-15 23:12:43 +000030487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030488$as_echo "no" >&6; }
30489fi
30490
30491
30492# Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
30493set dummy "$LPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030495$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030496if test "${ac_cv_path_LPDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030497 $as_echo_n "(cached) " >&6
30498else
30499 case $LPDelegate in
30500 [\\/]* | ?:[\\/]*)
30501 ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
30502 ;;
30503 *)
30504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30505for as_dir in $PATH
30506do
30507 IFS=$as_save_IFS
30508 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030509 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30511 ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030513 break 2
30514 fi
30515done
cristy8b350f62009-11-15 23:12:43 +000030516 done
cristy3ed852e2009-09-05 21:47:34 +000030517IFS=$as_save_IFS
30518
30519 test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
30520 ;;
30521esac
30522fi
30523LPDelegate=$ac_cv_path_LPDelegate
30524if test -n "$LPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030526$as_echo "$LPDelegate" >&6; }
30527else
cristy8b350f62009-11-15 23:12:43 +000030528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030529$as_echo "no" >&6; }
30530fi
30531
30532
30533# Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
30534set dummy "$LPRDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030536$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030537if test "${ac_cv_path_LPRDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030538 $as_echo_n "(cached) " >&6
30539else
30540 case $LPRDelegate in
30541 [\\/]* | ?:[\\/]*)
30542 ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
30543 ;;
30544 *)
30545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30546for as_dir in $PATH
30547do
30548 IFS=$as_save_IFS
30549 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030550 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30552 ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030554 break 2
30555 fi
30556done
cristy8b350f62009-11-15 23:12:43 +000030557 done
cristy3ed852e2009-09-05 21:47:34 +000030558IFS=$as_save_IFS
30559
30560 test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
30561 ;;
30562esac
30563fi
30564LPRDelegate=$ac_cv_path_LPRDelegate
30565if test -n "$LPRDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030567$as_echo "$LPRDelegate" >&6; }
30568else
cristy8b350f62009-11-15 23:12:43 +000030569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030570$as_echo "no" >&6; }
30571fi
30572
30573
30574# Extract the first word of ""$LZWDecodeDelegateDefault"", so it can be a program name with args.
30575set dummy "$LZWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030577$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030578if test "${ac_cv_path_LZWDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030579 $as_echo_n "(cached) " >&6
30580else
30581 case $LZWDecodeDelegate in
30582 [\\/]* | ?:[\\/]*)
30583 ac_cv_path_LZWDecodeDelegate="$LZWDecodeDelegate" # Let the user override the test with a path.
30584 ;;
30585 *)
30586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30587for as_dir in $PATH
30588do
30589 IFS=$as_save_IFS
30590 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030591 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030592 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30593 ac_cv_path_LZWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030595 break 2
30596 fi
30597done
cristy8b350f62009-11-15 23:12:43 +000030598 done
cristy3ed852e2009-09-05 21:47:34 +000030599IFS=$as_save_IFS
30600
30601 test -z "$ac_cv_path_LZWDecodeDelegate" && ac_cv_path_LZWDecodeDelegate=""$LZWDecodeDelegateDefault""
30602 ;;
30603esac
30604fi
30605LZWDecodeDelegate=$ac_cv_path_LZWDecodeDelegate
30606if test -n "$LZWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030608$as_echo "$LZWDecodeDelegate" >&6; }
30609else
cristy8b350f62009-11-15 23:12:43 +000030610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030611$as_echo "no" >&6; }
30612fi
30613
30614
30615# Extract the first word of ""$LZWEncodeDelegateDefault"", so it can be a program name with args.
30616set dummy "$LZWEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030618$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030619if test "${ac_cv_path_LZWEncodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030620 $as_echo_n "(cached) " >&6
30621else
30622 case $LZWEncodeDelegate in
30623 [\\/]* | ?:[\\/]*)
30624 ac_cv_path_LZWEncodeDelegate="$LZWEncodeDelegate" # Let the user override the test with a path.
30625 ;;
30626 *)
30627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30628for as_dir in $PATH
30629do
30630 IFS=$as_save_IFS
30631 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030632 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030633 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30634 ac_cv_path_LZWEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030636 break 2
30637 fi
30638done
cristy8b350f62009-11-15 23:12:43 +000030639 done
cristy3ed852e2009-09-05 21:47:34 +000030640IFS=$as_save_IFS
30641
30642 test -z "$ac_cv_path_LZWEncodeDelegate" && ac_cv_path_LZWEncodeDelegate=""$LZWEncodeDelegateDefault""
30643 ;;
30644esac
30645fi
30646LZWEncodeDelegate=$ac_cv_path_LZWEncodeDelegate
30647if test -n "$LZWEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030649$as_echo "$LZWEncodeDelegate" >&6; }
30650else
cristy8b350f62009-11-15 23:12:43 +000030651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030652$as_echo "no" >&6; }
30653fi
30654
30655
30656# Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
30657set dummy "$LaunchDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030659$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030660if test "${ac_cv_path_LaunchDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030661 $as_echo_n "(cached) " >&6
30662else
30663 case $LaunchDelegate in
30664 [\\/]* | ?:[\\/]*)
30665 ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
30666 ;;
30667 *)
30668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30669for as_dir in $PATH
30670do
30671 IFS=$as_save_IFS
30672 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030673 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30675 ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030677 break 2
30678 fi
30679done
cristy8b350f62009-11-15 23:12:43 +000030680 done
cristy3ed852e2009-09-05 21:47:34 +000030681IFS=$as_save_IFS
30682
30683 test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
30684 ;;
30685esac
30686fi
30687LaunchDelegate=$ac_cv_path_LaunchDelegate
30688if test -n "$LaunchDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030690$as_echo "$LaunchDelegate" >&6; }
30691else
cristy8b350f62009-11-15 23:12:43 +000030692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030693$as_echo "no" >&6; }
30694fi
30695
30696
30697# Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
30698set dummy "$MANDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030700$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030701if test "${ac_cv_path_MANDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030702 $as_echo_n "(cached) " >&6
30703else
30704 case $MANDelegate in
30705 [\\/]* | ?:[\\/]*)
30706 ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
30707 ;;
30708 *)
30709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30710for as_dir in $PATH
30711do
30712 IFS=$as_save_IFS
30713 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030714 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030715 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30716 ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030718 break 2
30719 fi
30720done
cristy8b350f62009-11-15 23:12:43 +000030721 done
cristy3ed852e2009-09-05 21:47:34 +000030722IFS=$as_save_IFS
30723
30724 test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
30725 ;;
30726esac
30727fi
30728MANDelegate=$ac_cv_path_MANDelegate
30729if test -n "$MANDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030731$as_echo "$MANDelegate" >&6; }
30732else
cristy8b350f62009-11-15 23:12:43 +000030733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030734$as_echo "no" >&6; }
30735fi
30736
30737
30738# Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
30739set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030741$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030742if test "${ac_cv_path_MPEGDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030743 $as_echo_n "(cached) " >&6
30744else
30745 case $MPEGDecodeDelegate in
30746 [\\/]* | ?:[\\/]*)
30747 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
30748 ;;
30749 *)
30750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30751for as_dir in $PATH
30752do
30753 IFS=$as_save_IFS
30754 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030755 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030756 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30757 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030759 break 2
30760 fi
30761done
cristy8b350f62009-11-15 23:12:43 +000030762 done
cristy3ed852e2009-09-05 21:47:34 +000030763IFS=$as_save_IFS
30764
30765 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
30766 ;;
30767esac
30768fi
30769MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
30770if test -n "$MPEGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030772$as_echo "$MPEGDecodeDelegate" >&6; }
30773else
cristy8b350f62009-11-15 23:12:43 +000030774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030775$as_echo "no" >&6; }
30776fi
30777
30778
30779# Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
30780set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030782$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030783if test "${ac_cv_path_MPEGEncodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030784 $as_echo_n "(cached) " >&6
30785else
30786 case $MPEGEncodeDelegate in
30787 [\\/]* | ?:[\\/]*)
30788 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
30789 ;;
30790 *)
30791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30792for as_dir in $PATH
30793do
30794 IFS=$as_save_IFS
30795 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030796 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030797 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30798 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030800 break 2
30801 fi
30802done
cristy8b350f62009-11-15 23:12:43 +000030803 done
cristy3ed852e2009-09-05 21:47:34 +000030804IFS=$as_save_IFS
30805
30806 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
30807 ;;
30808esac
30809fi
30810MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
30811if test -n "$MPEGEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030813$as_echo "$MPEGEncodeDelegate" >&6; }
30814else
cristy8b350f62009-11-15 23:12:43 +000030815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030816$as_echo "no" >&6; }
30817fi
30818
30819
30820# Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
30821set dummy "$MVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030823$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030824if test "${ac_cv_path_MVDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030825 $as_echo_n "(cached) " >&6
30826else
30827 case $MVDelegate in
30828 [\\/]* | ?:[\\/]*)
30829 ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
30830 ;;
30831 *)
30832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30833for as_dir in $PATH
30834do
30835 IFS=$as_save_IFS
30836 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030837 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30839 ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030841 break 2
30842 fi
30843done
cristy8b350f62009-11-15 23:12:43 +000030844 done
cristy3ed852e2009-09-05 21:47:34 +000030845IFS=$as_save_IFS
30846
30847 test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
30848 ;;
30849esac
30850fi
30851MVDelegate=$ac_cv_path_MVDelegate
30852if test -n "$MVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030854$as_echo "$MVDelegate" >&6; }
30855else
cristy8b350f62009-11-15 23:12:43 +000030856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030857$as_echo "no" >&6; }
30858fi
30859
30860
30861# Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
30862set dummy "$PCLDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030864$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030865if test "${ac_cv_path_PCLDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030866 $as_echo_n "(cached) " >&6
30867else
30868 case $PCLDelegate in
30869 [\\/]* | ?:[\\/]*)
30870 ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
30871 ;;
30872 *)
30873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30874for as_dir in $PATH
30875do
30876 IFS=$as_save_IFS
30877 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030878 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30880 ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030882 break 2
30883 fi
30884done
cristy8b350f62009-11-15 23:12:43 +000030885 done
cristy3ed852e2009-09-05 21:47:34 +000030886IFS=$as_save_IFS
30887
30888 test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
30889 ;;
30890esac
30891fi
30892PCLDelegate=$ac_cv_path_PCLDelegate
30893if test -n "$PCLDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030895$as_echo "$PCLDelegate" >&6; }
30896else
cristy8b350f62009-11-15 23:12:43 +000030897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030898$as_echo "no" >&6; }
30899fi
30900
30901
30902# Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
30903set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030905$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030906if test "${ac_cv_path_PGPDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030907 $as_echo_n "(cached) " >&6
30908else
30909 case $PGPDecodeDelegate in
30910 [\\/]* | ?:[\\/]*)
30911 ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
30912 ;;
30913 *)
30914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30915for as_dir in $PATH
30916do
30917 IFS=$as_save_IFS
30918 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030919 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030920 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30921 ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030923 break 2
30924 fi
30925done
cristy8b350f62009-11-15 23:12:43 +000030926 done
cristy3ed852e2009-09-05 21:47:34 +000030927IFS=$as_save_IFS
30928
30929 test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
30930 ;;
30931esac
30932fi
30933PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
30934if test -n "$PGPDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030936$as_echo "$PGPDecodeDelegate" >&6; }
30937else
cristy8b350f62009-11-15 23:12:43 +000030938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030939$as_echo "no" >&6; }
30940fi
30941
30942
30943# Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
30944set dummy "$POVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030946$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030947if test "${ac_cv_path_POVDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030948 $as_echo_n "(cached) " >&6
30949else
30950 case $POVDelegate in
30951 [\\/]* | ?:[\\/]*)
30952 ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
30953 ;;
30954 *)
30955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30956for as_dir in $PATH
30957do
30958 IFS=$as_save_IFS
30959 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030960 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30962 ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030964 break 2
30965 fi
30966done
cristy8b350f62009-11-15 23:12:43 +000030967 done
cristy3ed852e2009-09-05 21:47:34 +000030968IFS=$as_save_IFS
30969
30970 test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
30971 ;;
30972esac
30973fi
30974POVDelegate=$ac_cv_path_POVDelegate
30975if test -n "$POVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030977$as_echo "$POVDelegate" >&6; }
30978else
cristy8b350f62009-11-15 23:12:43 +000030979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030980$as_echo "no" >&6; }
30981fi
30982
30983
30984for ac_prog in gsx gsc "$PSDelegateDefault"
30985do
30986 # Extract the first word of "$ac_prog", so it can be a program name with args.
30987set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030989$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030990if test "${ac_cv_path_PSDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030991 $as_echo_n "(cached) " >&6
30992else
30993 case $PSDelegate in
30994 [\\/]* | ?:[\\/]*)
30995 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
30996 ;;
30997 *)
30998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30999for as_dir in $PATH
31000do
31001 IFS=$as_save_IFS
31002 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031003 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031004 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31005 ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031007 break 2
31008 fi
31009done
cristy8b350f62009-11-15 23:12:43 +000031010 done
cristy3ed852e2009-09-05 21:47:34 +000031011IFS=$as_save_IFS
31012
31013 ;;
31014esac
31015fi
31016PSDelegate=$ac_cv_path_PSDelegate
31017if test -n "$PSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031019$as_echo "$PSDelegate" >&6; }
31020else
cristy8b350f62009-11-15 23:12:43 +000031021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031022$as_echo "no" >&6; }
31023fi
31024
31025
31026 test -n "$PSDelegate" && break
31027done
31028test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
31029
31030# Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
31031set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031033$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031034if test "${ac_cv_path_RLEEncodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031035 $as_echo_n "(cached) " >&6
31036else
31037 case $RLEEncodeDelegate in
31038 [\\/]* | ?:[\\/]*)
31039 ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
31040 ;;
31041 *)
31042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31043for as_dir in $PATH
31044do
31045 IFS=$as_save_IFS
31046 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031047 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31049 ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031051 break 2
31052 fi
31053done
cristy8b350f62009-11-15 23:12:43 +000031054 done
cristy3ed852e2009-09-05 21:47:34 +000031055IFS=$as_save_IFS
31056
31057 test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
31058 ;;
31059esac
31060fi
31061RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
31062if test -n "$RLEEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031064$as_echo "$RLEEncodeDelegate" >&6; }
31065else
cristy8b350f62009-11-15 23:12:43 +000031066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031067$as_echo "no" >&6; }
31068fi
31069
31070
31071# Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
31072set dummy "$RMDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031074$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031075if test "${ac_cv_path_RMDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031076 $as_echo_n "(cached) " >&6
31077else
31078 case $RMDelegate in
31079 [\\/]* | ?:[\\/]*)
31080 ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
31081 ;;
31082 *)
31083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31084for as_dir in $PATH
31085do
31086 IFS=$as_save_IFS
31087 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031088 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031089 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31090 ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031092 break 2
31093 fi
31094done
cristy8b350f62009-11-15 23:12:43 +000031095 done
cristy3ed852e2009-09-05 21:47:34 +000031096IFS=$as_save_IFS
31097
31098 test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
31099 ;;
31100esac
31101fi
31102RMDelegate=$ac_cv_path_RMDelegate
31103if test -n "$RMDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031105$as_echo "$RMDelegate" >&6; }
31106else
cristy8b350f62009-11-15 23:12:43 +000031107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031108$as_echo "no" >&6; }
31109fi
31110
31111
cristy4689cf02010-02-17 21:15:45 +000031112# Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args.
31113set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2
31114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31115$as_echo_n "checking for $ac_word... " >&6; }
31116if test "${ac_cv_path_RSVGDecodeDelegate+set}" = set; then :
31117 $as_echo_n "(cached) " >&6
31118else
31119 case $RSVGDecodeDelegate in
31120 [\\/]* | ?:[\\/]*)
31121 ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path.
31122 ;;
31123 *)
31124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31125for as_dir in $PATH
31126do
31127 IFS=$as_save_IFS
31128 test -z "$as_dir" && as_dir=.
31129 for ac_exec_ext in '' $ac_executable_extensions; do
31130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31131 ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
31132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31133 break 2
31134 fi
31135done
31136 done
31137IFS=$as_save_IFS
31138
31139 test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault""
31140 ;;
31141esac
31142fi
31143RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate
31144if test -n "$RSVGDecodeDelegate"; then
31145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5
31146$as_echo "$RSVGDecodeDelegate" >&6; }
31147else
31148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31149$as_echo "no" >&6; }
31150fi
31151
31152
cristy3ed852e2009-09-05 21:47:34 +000031153# Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
31154set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031156$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031157if test "${ac_cv_path_SCANDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031158 $as_echo_n "(cached) " >&6
31159else
31160 case $SCANDecodeDelegate in
31161 [\\/]* | ?:[\\/]*)
31162 ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
31163 ;;
31164 *)
31165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31166for as_dir in $PATH
31167do
31168 IFS=$as_save_IFS
31169 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031170 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031171 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31172 ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031174 break 2
31175 fi
31176done
cristy8b350f62009-11-15 23:12:43 +000031177 done
cristy3ed852e2009-09-05 21:47:34 +000031178IFS=$as_save_IFS
31179
31180 test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
31181 ;;
31182esac
31183fi
31184SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
31185if test -n "$SCANDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031187$as_echo "$SCANDecodeDelegate" >&6; }
31188else
cristy8b350f62009-11-15 23:12:43 +000031189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031190$as_echo "no" >&6; }
31191fi
31192
31193
31194# Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
31195set dummy "$TXTDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031197$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031198if test "${ac_cv_path_TXTDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031199 $as_echo_n "(cached) " >&6
31200else
31201 case $TXTDelegate in
31202 [\\/]* | ?:[\\/]*)
31203 ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
31204 ;;
31205 *)
31206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31207for as_dir in $PATH
31208do
31209 IFS=$as_save_IFS
31210 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031211 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31213 ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031215 break 2
31216 fi
31217done
cristy8b350f62009-11-15 23:12:43 +000031218 done
cristy3ed852e2009-09-05 21:47:34 +000031219IFS=$as_save_IFS
31220
31221 test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
31222 ;;
31223esac
31224fi
31225TXTDelegate=$ac_cv_path_TXTDelegate
31226if test -n "$TXTDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031228$as_echo "$TXTDelegate" >&6; }
31229else
cristy8b350f62009-11-15 23:12:43 +000031230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031231$as_echo "no" >&6; }
31232fi
31233
31234
31235# Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
31236set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031238$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031239if test "${ac_cv_path_WMFDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031240 $as_echo_n "(cached) " >&6
31241else
31242 case $WMFDecodeDelegate in
31243 [\\/]* | ?:[\\/]*)
31244 ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
31245 ;;
31246 *)
31247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31248for as_dir in $PATH
31249do
31250 IFS=$as_save_IFS
31251 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031252 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031253 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31254 ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031256 break 2
31257 fi
31258done
cristy8b350f62009-11-15 23:12:43 +000031259 done
cristy3ed852e2009-09-05 21:47:34 +000031260IFS=$as_save_IFS
31261
31262 test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
31263 ;;
31264esac
31265fi
31266WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
31267if test -n "$WMFDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031269$as_echo "$WMFDecodeDelegate" >&6; }
31270else
cristy8b350f62009-11-15 23:12:43 +000031271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031272$as_echo "no" >&6; }
31273fi
31274
31275
31276# Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
31277set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031279$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031280if test "${ac_cv_path_WWWDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031281 $as_echo_n "(cached) " >&6
31282else
31283 case $WWWDecodeDelegate in
31284 [\\/]* | ?:[\\/]*)
31285 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
31286 ;;
31287 *)
31288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31289for as_dir in $PATH
31290do
31291 IFS=$as_save_IFS
31292 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031293 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31295 ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031297 break 2
31298 fi
31299done
cristy8b350f62009-11-15 23:12:43 +000031300 done
cristy3ed852e2009-09-05 21:47:34 +000031301IFS=$as_save_IFS
31302
31303 test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
31304 ;;
31305esac
31306fi
31307WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
31308if test -n "$WWWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031310$as_echo "$WWWDecodeDelegate" >&6; }
31311else
cristy8b350f62009-11-15 23:12:43 +000031312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031313$as_echo "no" >&6; }
31314fi
31315
31316
31317# Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
31318set dummy "$XPSDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031320$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031321if test "${ac_cv_path_XPSDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031322 $as_echo_n "(cached) " >&6
31323else
31324 case $XPSDelegate in
31325 [\\/]* | ?:[\\/]*)
31326 ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
31327 ;;
31328 *)
31329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31330for as_dir in $PATH
31331do
31332 IFS=$as_save_IFS
31333 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031334 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031335 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31336 ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031338 break 2
31339 fi
31340done
cristy8b350f62009-11-15 23:12:43 +000031341 done
cristy3ed852e2009-09-05 21:47:34 +000031342IFS=$as_save_IFS
31343
31344 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
31345 ;;
31346esac
31347fi
31348XPSDelegate=$ac_cv_path_XPSDelegate
31349if test -n "$XPSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031351$as_echo "$XPSDelegate" >&6; }
31352else
cristy8b350f62009-11-15 23:12:43 +000031353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031354$as_echo "no" >&6; }
31355fi
31356
31357
31358# Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
31359set dummy "$ZipDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031361$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031362if test "${ac_cv_path_ZipDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031363 $as_echo_n "(cached) " >&6
31364else
31365 case $ZipDelegate in
31366 [\\/]* | ?:[\\/]*)
31367 ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
31368 ;;
31369 *)
31370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31371for as_dir in $PATH
31372do
31373 IFS=$as_save_IFS
31374 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031375 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31377 ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031379 break 2
31380 fi
31381done
cristy8b350f62009-11-15 23:12:43 +000031382 done
cristy3ed852e2009-09-05 21:47:34 +000031383IFS=$as_save_IFS
31384
31385 test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
31386 ;;
31387esac
31388fi
31389ZipDelegate=$ac_cv_path_ZipDelegate
31390if test -n "$ZipDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031392$as_echo "$ZipDelegate" >&6; }
31393else
cristy8b350f62009-11-15 23:12:43 +000031394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031395$as_echo "no" >&6; }
31396fi
31397
31398
31399
31400# Prefer lpr to lp; lp needs options tacked on.
31401if test "$LPRDelegate" != no; then
31402 PrintDelegate="$LPRDelegate"
31403else
31404 PrintDelegate="$LPDelegate -c -s"
31405fi
31406
31407
31408# Installed ImageMagick utiltity paths
31409ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
31410DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
31411MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
31412
31413# Set delegate booleans
31414have_ffmpeg='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_ffmpeg='yes'; fi
31415have_fig2dev='no' ; if test "$FIGDecodeDelegate" != "$FIGDecodeDelegateDefault" ; then have_fig2dev='yes'; fi
31416have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
31417have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
31418have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
31419have_mplayer='no'; if test "$AVIDecodeDelegate" != "$AVIDecodeDelegateDefault" ; then have_mplayer='yes'; fi
31420have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
31421have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
31422have_ra_pfm='no' ; if test "$HDRDecodeDelegate" != "$HDRDecodeDelegateDefault" ; then have_ra_pfm='yes'; fi
31423have_ralcgm='no' ; if test "$CGMDecodeDelegate" != "$CGMDecodeDelegateDefault" ; then have_ralcgm='yes'; fi
31424have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
31425
31426#
31427# Test for font directories
31428#
31429type_include_files=''
31430
cristy430a7312010-01-21 20:44:04 +000031431# Dejavu fonts.
31432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5
31433$as_echo_n "checking for Dejavu fonts directory... " >&6; }
31434dejavu_font_dir=''
31435if test "${with_dejavu_font_dir}" != 'default'; then
31436 dejavu_font_dir="${with_dejavu_font_dir}/"
31437else
31438 for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do
31439 if test -f "${font_dir}DejaVuSerif.ttf"; then
31440 dejavu_font_dir="${font_dir}"
31441 break 1
31442 fi
31443 done
31444fi
31445if test "${dejavu_font_dir}x" != 'x'; then
31446 type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />'
31447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dejavu_font_dir" >&5
31448$as_echo "$dejavu_font_dir" >&6; }
31449else
31450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
31451$as_echo "not found!" >&6; };
31452fi
31453
31454
cristy3ed852e2009-09-05 21:47:34 +000031455# Windows
31456windows_font_dir=''
31457if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then
31458 windows_font_dir="${with_windows_font_dir}/"
31459fi
cristy430a7312010-01-21 20:44:04 +000031460if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000031461 if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then
31462 windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/'
31463 fi
31464 if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then
31465 windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/'
31466 fi
31467 if test -f '/usr/share/fonts/msttcore/arial.ttf'; then
31468 windows_font_dir='/usr/share/fonts/msttcore/truetype/'
31469 fi
31470fi
cristy430a7312010-01-21 20:44:04 +000031471if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000031472 type_include_files="$type_include_files "'<include file="type-windows.xml" />'
31473fi
31474
31475
31476# Ghostscript
cristy8b350f62009-11-15 23:12:43 +000031477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
cristy3ed852e2009-09-05 21:47:34 +000031478$as_echo_n "checking for Ghostscript fonts directory... " >&6; }
31479ghostscript_font_dir=''
31480if test "${with_gs_font_dir}" != 'default'; then
31481 ghostscript_font_dir="${with_gs_font_dir}/"
31482else
31483 if test "${native_win32_build}" = 'yes'; then
31484 # Native Windows Build
31485 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
31486 if test -f "${font_dir}a010013l.pfb"; then
31487 ghostscript_font_dir="$font_dir"
31488 break 1
31489 fi
31490 done
31491 if test "${PSDelegate}" != 'gswin32c'; then
31492 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
31493 fi
31494 else
31495 # Linux / Mac OS X / Unix Build
31496 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
31497 if test -f "${font_dir}a010013l.pfb"; then
31498 ghostscript_font_dir="${font_dir}"
31499 break 1
31500 fi
31501 done
31502 if test "${ghostscript_font_dir}x" = 'x'; then
31503 if test "$PSDelegate" != 'gs'; then
31504 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
31505 fi
31506 fi
31507 fi
31508fi
31509if test "${ghostscript_font_dir}x" != 'x'; then
31510 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
cristy8b350f62009-11-15 23:12:43 +000031511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ghostscript_font_dir" >&5
cristy3ed852e2009-09-05 21:47:34 +000031512$as_echo "$ghostscript_font_dir" >&6; }
31513else
cristy8b350f62009-11-15 23:12:43 +000031514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
cristy3ed852e2009-09-05 21:47:34 +000031515$as_echo "not found!" >&6; };
31516fi
31517
31518case "${build_os}" in
31519 mingw* )
31520 PSDelegate=`$WinPathScript "$PSDelegate" 1`
31521 ;;
31522esac
31523
31524
31525
31526#
31527# Handle case where user doesn't want frozen paths
31528#
31529if test "$with_frozenpaths" != 'yes'; then
31530 # Re-set delegate definitions to default (no paths)
31531 AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
31532 AVIDecodeDelegate="$AVIDecodeDelegateDefault"
31533 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
31534 BZIPDelegate="$BZIPDelegateDefault"
31535 BrowseDelegate="$BrowseDelegateDefault"
31536 CGMDecodeDelegate="$CGMDecodeDelegateDefault"
31537 CatDelegate="$CatDelegateDefault"
31538 ConvertDelegate="$ConvertDelegateDefault"
31539 GVCDecodeDelegate="$GVCDecodeDelegateDefault"
31540 DVIDecodeDelegate="$DVIDecodeDelegateDefault"
31541 EchoDelegate="$EchoDelegateDefault"
31542 EditorDelegate="$EditorDelegateDefault"
31543 FIGDecodeDelegate="$FIGDecodeDelegateDefault"
31544 GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
31545 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
31546 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
31547 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
31548 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
31549 LPDelegate="$LPDelegateDefault"
31550 LZWDecodeDelegate="$LZWDecodeDelegateDefault"
31551 LZWEncodeDelegate="$LZWEncodeDelegateDefault"
31552 LaunchDelegate="$LaunchDelegateDefault"
31553 MANDelegate="$MANDelegateDefault"
31554 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
31555 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
31556 MVDelegate="$MVDelegateDefault"
31557 MogrifyDelegate="$MogrifyDelegateDefault"
31558 PCLDelegate="$PCLDelegateDefault"
31559 PGPDecodeDelegate="$PGPDecodeDelegateDefault"
31560 POVDelegate="$POVDelegateDefault"
31561 PSDelegate="$PSDelegateDefault"
31562 HDRDecodeDelegate="$HDRDecodeDelegateDefault"
31563 RLEEncodeDelegate="$RLEEncodeDelegateDefault"
31564 RMDelegate="$RMDelegateDefault"
cristy4689cf02010-02-17 21:15:45 +000031565 RSVGDecodeDelegate="$RSVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000031566 SCANDecodeDelegate="$SCANDecodeDelegateDefault"
31567 ShowImageDelegate="$ShowImageDelegateDefault"
31568 TXTDelegate="$TXTDelegateDefault"
31569 WMFDecodeDelegate="$WMFDecodeDelegateDefault"
31570 WWWDecodeDelegate="$WWWDecodeDelegateDefault"
31571 XPSDelegate="$XPSDelegateDefault"
31572 ZipDelegate="$ZipDelegateDefault"
31573fi
31574
31575# Delegate substitutions
31576
31577
31578
31579
31580
31581
31582
31583
31584
31585
31586
31587
31588
31589
31590
31591
31592
31593
31594
31595
31596
31597
31598
31599
31600
31601
31602
31603
31604
31605
31606
31607
31608
31609
31610
31611
31612
31613
31614
31615
31616
31617
31618#
31619# RPM support.
31620#
31621RPM=''
31622for ac_prog in gnutar gtar tar
31623do
31624 # Extract the first word of "$ac_prog", so it can be a program name with args.
31625set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031627$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031628if test "${ac_cv_prog_TAR+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031629 $as_echo_n "(cached) " >&6
31630else
31631 if test -n "$TAR"; then
31632 ac_cv_prog_TAR="$TAR" # Let the user override the test.
31633else
31634as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31635for as_dir in $PATH
31636do
31637 IFS=$as_save_IFS
31638 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031639 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31641 ac_cv_prog_TAR="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000031642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031643 break 2
31644 fi
31645done
cristy8b350f62009-11-15 23:12:43 +000031646 done
cristy3ed852e2009-09-05 21:47:34 +000031647IFS=$as_save_IFS
31648
31649fi
31650fi
31651TAR=$ac_cv_prog_TAR
31652if test -n "$TAR"; then
cristy8b350f62009-11-15 23:12:43 +000031653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
cristy3ed852e2009-09-05 21:47:34 +000031654$as_echo "$TAR" >&6; }
31655else
cristy8b350f62009-11-15 23:12:43 +000031656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031657$as_echo "no" >&6; }
31658fi
31659
31660
31661 test -n "$TAR" && break
31662done
31663
31664for ac_prog in perl
31665do
31666 # Extract the first word of "$ac_prog", so it can be a program name with args.
31667set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031669$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031670if test "${ac_cv_prog_PERL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031671 $as_echo_n "(cached) " >&6
31672else
31673 if test -n "$PERL"; then
31674 ac_cv_prog_PERL="$PERL" # Let the user override the test.
31675else
31676as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31677for as_dir in $PATH
31678do
31679 IFS=$as_save_IFS
31680 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031681 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031682 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31683 ac_cv_prog_PERL="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000031684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031685 break 2
31686 fi
31687done
cristy8b350f62009-11-15 23:12:43 +000031688 done
cristy3ed852e2009-09-05 21:47:34 +000031689IFS=$as_save_IFS
31690
31691fi
31692fi
31693PERL=$ac_cv_prog_PERL
31694if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000031695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000031696$as_echo "$PERL" >&6; }
31697else
cristy8b350f62009-11-15 23:12:43 +000031698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031699$as_echo "no" >&6; }
31700fi
31701
31702
31703 test -n "$PERL" && break
31704done
31705
31706for ac_prog in rpmbuild rpm
31707do
31708 # Extract the first word of "$ac_prog", so it can be a program name with args.
31709set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031711$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031712if test "${ac_cv_prog_RPM+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031713 $as_echo_n "(cached) " >&6
31714else
31715 if test -n "$RPM"; then
31716 ac_cv_prog_RPM="$RPM" # Let the user override the test.
31717else
31718as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31719for as_dir in $PATH
31720do
31721 IFS=$as_save_IFS
31722 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031723 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031724 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31725 ac_cv_prog_RPM="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000031726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031727 break 2
31728 fi
31729done
cristy8b350f62009-11-15 23:12:43 +000031730 done
cristy3ed852e2009-09-05 21:47:34 +000031731IFS=$as_save_IFS
31732
31733fi
31734fi
31735RPM=$ac_cv_prog_RPM
31736if test -n "$RPM"; then
cristy8b350f62009-11-15 23:12:43 +000031737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
cristy3ed852e2009-09-05 21:47:34 +000031738$as_echo "$RPM" >&6; }
31739else
cristy8b350f62009-11-15 23:12:43 +000031740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031741$as_echo "no" >&6; }
31742fi
31743
31744
31745 test -n "$RPM" && break
31746done
31747
31748
31749ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
31750
31751
31752AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
31753
31754
31755AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
31756
31757
31758AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
31759
31760
31761 if test "x$RPM" != "x" ; then
31762 RPM_DELEGATE_TRUE=
31763 RPM_DELEGATE_FALSE='#'
31764else
31765 RPM_DELEGATE_TRUE='#'
31766 RPM_DELEGATE_FALSE=
31767fi
31768
31769
31770#
31771# 7ZIP support (http://p7zip.sourceforge.net/)
31772#
31773P7ZIP=''
31774for ac_prog in 7za
31775do
31776 # Extract the first word of "$ac_prog", so it can be a program name with args.
31777set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031779$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031780if test "${ac_cv_prog_P7ZIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031781 $as_echo_n "(cached) " >&6
31782else
31783 if test -n "$P7ZIP"; then
31784 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
31785else
31786as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31787for as_dir in $PATH
31788do
31789 IFS=$as_save_IFS
31790 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031791 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031792 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31793 ac_cv_prog_P7ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000031794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031795 break 2
31796 fi
31797done
cristy8b350f62009-11-15 23:12:43 +000031798 done
cristy3ed852e2009-09-05 21:47:34 +000031799IFS=$as_save_IFS
31800
31801fi
31802fi
31803P7ZIP=$ac_cv_prog_P7ZIP
31804if test -n "$P7ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000031805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000031806$as_echo "$P7ZIP" >&6; }
31807else
cristy8b350f62009-11-15 23:12:43 +000031808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031809$as_echo "no" >&6; }
31810fi
31811
31812
31813 test -n "$P7ZIP" && break
31814done
31815
31816
31817 if test "x$P7ZIP" != "x" ; then
31818 P7ZIP_DELEGATE_TRUE=
31819 P7ZIP_DELEGATE_FALSE='#'
31820else
31821 P7ZIP_DELEGATE_TRUE='#'
31822 P7ZIP_DELEGATE_FALSE=
31823fi
31824
31825
31826#
31827# ZIP support (http://www.info-zip.org/Zip.html)
31828#
31829ZIP=''
31830for ac_prog in zip
31831do
31832 # Extract the first word of "$ac_prog", so it can be a program name with args.
31833set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031835$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031836if test "${ac_cv_prog_ZIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031837 $as_echo_n "(cached) " >&6
31838else
31839 if test -n "$ZIP"; then
31840 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
31841else
31842as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31843for as_dir in $PATH
31844do
31845 IFS=$as_save_IFS
31846 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031847 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031848 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31849 ac_cv_prog_ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000031850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031851 break 2
31852 fi
31853done
cristy8b350f62009-11-15 23:12:43 +000031854 done
cristy3ed852e2009-09-05 21:47:34 +000031855IFS=$as_save_IFS
31856
31857fi
31858fi
31859ZIP=$ac_cv_prog_ZIP
31860if test -n "$ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000031861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000031862$as_echo "$ZIP" >&6; }
31863else
cristy8b350f62009-11-15 23:12:43 +000031864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031865$as_echo "no" >&6; }
31866fi
31867
31868
31869 test -n "$ZIP" && break
31870done
31871
31872
31873 if test "x$ZIP" != "x" ; then
31874 ZIP_DELEGATE_TRUE=
31875 ZIP_DELEGATE_FALSE='#'
31876else
31877 ZIP_DELEGATE_TRUE='#'
31878 ZIP_DELEGATE_FALSE=
31879fi
31880
31881
31882#
31883# GhostPCL related configuration.
31884#
31885PCLColorDevice=ppmraw
31886PCLCMYKDevice=bmpsep8
31887PCLMonoDevice=pbmraw
31888if test -z "$PCLVersion"; then
31889 PCLVersion='unknown'
31890fi
31891if test $have_pcl = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000031892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000031893$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000031894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000031895$as_echo_n "checking for PCL... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000031897$as_echo "" >&6; }
31898 # PCLColorDevice
cristy8b350f62009-11-15 23:12:43 +000031899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031900$as_echo_n "checking for pcl color device... " >&6; }
31901 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31902 :
31903 else
31904 PCLColorDevice=ppmraw
31905 fi
cristy8b350f62009-11-15 23:12:43 +000031906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000031907$as_echo "$PCLColorDevice" >&6; }
31908
31909 # PCLCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000031910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031911$as_echo_n "checking for pcl CMYK device... " >&6; }
31912 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31913 :
31914 else
31915 PCLCMYKDevice=$PCLColorDevice
31916 fi
cristy8b350f62009-11-15 23:12:43 +000031917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000031918$as_echo "$PCLCMYKDevice" >&6; }
31919
31920 # PCLMonoDevice
cristy8b350f62009-11-15 23:12:43 +000031921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031922$as_echo_n "checking for pcl mono device... " >&6; }
31923 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31924 :
31925 else
31926 PCLMonoDevice=$PCLColorDevice
31927 fi
cristy8b350f62009-11-15 23:12:43 +000031928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000031929$as_echo "$PCLMonoDevice" >&6; }
31930fi
31931
31932
31933
31934
31935
31936
31937#
31938# GhostXPS related configuration.
31939#
31940XPSColorDevice=ppmraw
31941XPSCMYKDevice=bmpsep8
31942XPSMonoDevice=pbmraw
31943if test -z "$XPSVersion"; then
31944 XPSVersion='unknown'
31945fi
31946if test $have_xps = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000031947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000031948$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000031949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000031950$as_echo_n "checking for XPS... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000031952$as_echo "" >&6; }
31953 # XPSColorDevice
cristy8b350f62009-11-15 23:12:43 +000031954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031955$as_echo_n "checking for xps color device... " >&6; }
31956 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31957 :
31958 else
31959 XPSColorDevice=ppmraw
31960 fi
cristy8b350f62009-11-15 23:12:43 +000031961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000031962$as_echo "$XPSColorDevice" >&6; }
31963
31964 # XPSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000031965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031966$as_echo_n "checking for xps CMYK device... " >&6; }
31967 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31968 :
31969 else
31970 XPSCMYKDevice=$XPSColorDevice
31971 fi
cristy8b350f62009-11-15 23:12:43 +000031972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000031973$as_echo "$XPSCMYKDevice" >&6; }
31974
31975 # XPSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000031976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031977$as_echo_n "checking for xps mono device... " >&6; }
31978 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31979 :
31980 else
31981 XPSMonoDevice=$XPSColorDevice
31982 fi
cristy8b350f62009-11-15 23:12:43 +000031983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000031984$as_echo "$XPSMonoDevice" >&6; }
31985fi
31986
31987
31988
31989
31990
31991
31992#
31993# Ghostscript related configuration.
31994#
31995if test "$have_png" = 'yes'; then
31996 GSAlphaDevice=pngalpha
31997else
31998 GSAlphaDevice=pnmraw
31999fi
32000GSColorDevice=pnmraw
32001GSCMYKDevice=pam
32002GSMonoDevice=pbmraw
32003GSPDFDevice=pdfwrite
32004GSPSDevice=pswrite
32005GSEPSDevice=epswrite
32006GSVersion='unknown'
32007if test $have_gs = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000032008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000032009$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000032011$as_echo_n "checking for Ghostscript... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000032013$as_echo "" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
cristy3ed852e2009-09-05 21:47:34 +000032015$as_echo_n "checking for Ghostscript version... " >&6; }
32016 if GSVersion=`$PSDelegate --version`; then
32017 :
32018 else
32019 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
32020 fi
cristy8b350f62009-11-15 23:12:43 +000032021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSVersion" >&5
cristy3ed852e2009-09-05 21:47:34 +000032022$as_echo "$GSVersion" >&6; }
32023
32024 # GSAlphaDevice
cristy8b350f62009-11-15 23:12:43 +000032025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032026$as_echo_n "checking for gs alpha device... " >&6; }
32027 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32028 :
32029 else
32030 GSAlphaDevice=pnmraw
32031 fi
cristy8b350f62009-11-15 23:12:43 +000032032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSAlphaDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032033$as_echo "$GSAlphaDevice" >&6; }
32034
32035 # GSColorDevice
cristy8b350f62009-11-15 23:12:43 +000032036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032037$as_echo_n "checking for gs color device... " >&6; }
32038 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32039 :
32040 else
32041 GSColorDevice=pnmraw
32042 fi
cristy8b350f62009-11-15 23:12:43 +000032043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032044$as_echo "$GSColorDevice" >&6; }
32045
32046 # GSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000032047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032048$as_echo_n "checking for gs CMYK device... " >&6; }
32049 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32050 :
32051 else
32052 GSCMYKDevice=bmpsep8
32053 fi
cristy8b350f62009-11-15 23:12:43 +000032054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032055$as_echo "$GSCMYKDevice" >&6; }
32056
32057 # GSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000032058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032059$as_echo_n "checking for gs mono device... " >&6; }
32060 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32061 :
32062 else
32063 GSMonoDevice=$GSColorDevice
32064 fi
cristy8b350f62009-11-15 23:12:43 +000032065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032066$as_echo "$GSMonoDevice" >&6; }
32067
32068 # GSPDFDevice
cristy8b350f62009-11-15 23:12:43 +000032069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032070$as_echo_n "checking for gs PDF writing device... " >&6; }
32071 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32072 :
32073 else
32074 GSPDFDevice=nodevice
32075 fi
cristy8b350f62009-11-15 23:12:43 +000032076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPDFDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032077$as_echo "$GSPDFDevice" >&6; }
32078
32079 # GSPSDevice
cristy8b350f62009-11-15 23:12:43 +000032080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032081$as_echo_n "checking for gs PS writing device... " >&6; }
32082 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32083 :
32084 else
32085 GSPSDevice=nodevice
32086 fi
cristy8b350f62009-11-15 23:12:43 +000032087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPSDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032088$as_echo "$GSPSDevice" >&6; }
32089
32090 # GSEPSDevice
cristy8b350f62009-11-15 23:12:43 +000032091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032092$as_echo_n "checking for gs EPS writing device... " >&6; }
32093 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32094 :
32095 else
32096 GSEPSDevice=nodevice
32097 fi
cristy8b350f62009-11-15 23:12:43 +000032098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSEPSDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032099$as_echo "$GSEPSDevice" >&6; }
32100fi
32101
32102
32103
32104
32105
32106
32107
32108
32109
32110
32111#
32112# PerlMagick-related configuration
32113#
32114
32115# Look for PERL if PerlMagick requested
32116# If name/path of desired PERL interpreter is specified, look for that one first
32117have_perl='no'
32118if test "$with_perl" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000032119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000032120$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000032122$as_echo_n "checking for Perl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000032124$as_echo "" >&6; }
32125 if test "$with_perl" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000032126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000032127$as_echo_n "checking for perl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032128if test "${ac_cv_path_PERL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032129 $as_echo_n "(cached) " >&6
32130else
32131 ac_cv_path_PERL="$with_perl"
32132fi
cristy8b350f62009-11-15 23:12:43 +000032133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000032134$as_echo "$ac_cv_path_PERL" >&6; };
32135 PERL=$ac_cv_path_PERL
32136 have_perl="$ac_cv_path_PERL"
32137 else
32138 for ac_prog in perl perl5
32139do
32140 # Extract the first word of "$ac_prog", so it can be a program name with args.
32141set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032143$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032144if test "${ac_cv_path_PERL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032145 $as_echo_n "(cached) " >&6
32146else
32147 case $PERL in
32148 [\\/]* | ?:[\\/]*)
32149 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
32150 ;;
32151 *)
32152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32153for as_dir in $PATH
32154do
32155 IFS=$as_save_IFS
32156 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032157 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032158 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32159 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032161 break 2
32162 fi
32163done
cristy8b350f62009-11-15 23:12:43 +000032164 done
cristy3ed852e2009-09-05 21:47:34 +000032165IFS=$as_save_IFS
32166
32167 ;;
32168esac
32169fi
32170PERL=$ac_cv_path_PERL
32171if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000032172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000032173$as_echo "$PERL" >&6; }
32174else
cristy8b350f62009-11-15 23:12:43 +000032175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032176$as_echo "no" >&6; }
32177fi
32178
32179
32180 test -n "$PERL" && break
32181done
32182 if test "$ac_cv_path_PERL"; then
32183 have_perl="$ac_cv_path_PERL"
32184 fi
32185 fi
32186fi
32187
cristy949301e2010-01-06 01:38:40 +000032188if test "$with_perl" != 'yes' ; then
32189 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
32190fi
32191
32192PERL_SUPPORTS_DESTDIR='no'
32193
cristy3ed852e2009-09-05 21:47:34 +000032194with_perl_static='no'
32195with_perl_dynamic='no'
32196if test "$have_perl" != 'no'; then
32197 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
32198 with_perl_static='yes'
32199 fi
32200 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
32201 with_perl_dynamic='yes'
32202 fi
32203 # Is PERL's MakeMaker new enough to support DESTDIR?
cristy964cb7f2010-04-25 23:18:00 +000032204
32205
32206
32207
32208 if test -n "$PERL"; then :
32209
32210 ax_perl_version="5.8.1"
32211
32212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5
32213$as_echo_n "checking for perl version... " >&6; }
32214
32215 perl_version=`$PERL --version 2>&1 | $GREP "This is perl" | $SED -e 's/.* v\([0-9]*\.[0-9]*\.[0-9]*\) .*/\1/'`
32216
32217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5
32218$as_echo "$perl_version" >&6; }
32219
32220 PERL_VERSION=$perl_version
32221
32222
32223
32224
32225
32226 # Used to indicate true or false condition
32227 ax_compare_version=false
32228
32229 # Convert the two version strings to be compared into a format that
32230 # allows a simple string comparison. The end result is that a version
32231 # string of the form 1.12.5-r617 will be converted to the form
32232 # 0001001200050617. In other words, each number is zero padded to four
32233 # digits, and non digits are removed.
32234
32235 ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
32236 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
32237 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
32238 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
32239 -e 's/[^0-9]//g'`
32240
32241
32242 ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
32243 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
32244 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
32245 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
32246 -e 's/[^0-9]//g'`
32247
32248
32249 ax_compare_version=`echo "x$ax_compare_version_A
32250x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
32251
32252
32253
32254 if test "$ax_compare_version" = "true" ; then
32255
32256 :
32257 PERL_SUPPORTS_DESTDIR='yes'
32258
32259 else
32260 :
32261 PERL_SUPPORTS_DESTDIR='no'
32262
cristy3ed852e2009-09-05 21:47:34 +000032263 fi
cristy3ed852e2009-09-05 21:47:34 +000032264
cristy964cb7f2010-04-25 23:18:00 +000032265
cristy3ed852e2009-09-05 21:47:34 +000032266else
cristy3ed852e2009-09-05 21:47:34 +000032267
cristy964cb7f2010-04-25 23:18:00 +000032268 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5
32269$as_echo "$as_me: WARNING: could not find the perl interpreter" >&2;}
32270 PERL_SUPPORTS_DESTDIR='no'
cristy3ed852e2009-09-05 21:47:34 +000032271
32272fi
32273
cristy3ed852e2009-09-05 21:47:34 +000032274fi
32275 if test "$have_perl" != 'no'; then
32276 WITH_PERL_TRUE=
32277 WITH_PERL_FALSE='#'
32278else
32279 WITH_PERL_TRUE='#'
32280 WITH_PERL_FALSE=
32281fi
32282
32283 if test $with_perl_static = 'yes'; then
32284 WITH_PERL_STATIC_TRUE=
32285 WITH_PERL_STATIC_FALSE='#'
32286else
32287 WITH_PERL_STATIC_TRUE='#'
32288 WITH_PERL_STATIC_FALSE=
32289fi
32290
32291 if test $with_perl_dynamic = 'yes'; then
32292 WITH_PERL_DYNAMIC_TRUE=
32293 WITH_PERL_DYNAMIC_FALSE='#'
32294else
32295 WITH_PERL_DYNAMIC_TRUE='#'
32296 WITH_PERL_DYNAMIC_FALSE=
32297fi
32298
32299
32300
32301# Determine path to pick up MagickCore library from for use with building PerlMagick
32302MAGICKCORE_PATH="${LIB_DIR}"
32303if test $with_perl_static = 'yes'; then
32304 # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
32305 libtool_objdir=$objdir
32306
32307 # Linker search path to library, followed by -lMagickCore
32308 MAGICKCORE_PATH="${builddir}/magick/${libtool_objdir}"
32309fi
32310
32311
32312# Create a simple string containing format names for all delegate libraries
32313DELEGATES=''
32314if test "$have_autotrace" = 'yes'; then DELEGATES="$DELEGATES autotrace"; fi
32315if test "$have_bzlib" = 'yes'; then DELEGATES="$DELEGATES bzlib"; fi
32316if test "$have_djvu" = 'yes'; then DELEGATES="$DELEGATES djvu"; fi
32317if test "$have_dps" = 'yes'; then DELEGATES="$DELEGATES dps"; fi
32318if test "$have_fftw" = 'yes'; then DELEGATES="$DELEGATES fftw"; fi
32319if test "$have_fpx" = 'yes'; then DELEGATES="$DELEGATES fpx"; fi
32320if test "$have_fontconfig" = 'yes'; then DELEGATES="$DELEGATES fontconfig"; fi
32321if test "$have_freetype" = 'yes'; then DELEGATES="$DELEGATES freetype"; fi
32322if test "$have_gslib" = 'yes'; then DELEGATES="$DELEGATES gs"; fi
32323if test "$have_gvc" = 'yes'; then DELEGATES="$DELEGATES gvc"; fi
32324if test "$have_jbig" = 'yes'; then DELEGATES="$DELEGATES jbig"; fi
32325if test "$have_jpeg" = 'yes'; then
32326 DELEGATES="$DELEGATES jpeg";
32327 if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES jng"; fi
32328fi
32329if test "$have_jp2" = 'yes'; then DELEGATES="$DELEGATES jp2"; fi
32330if test "$have_lcms" = 'yes'; then DELEGATES="$DELEGATES lcms"; fi
32331if test "$have_lqr" = 'yes'; then DELEGATES="$DELEGATES lqr"; fi
32332if test "$have_ffmpeg" = 'yes'; then DELEGATES="$DELEGATES mpeg"; fi
32333if test "$have_openexr" = 'yes'; then DELEGATES="$DELEGATES openexr"; fi
32334if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES png"; fi
32335if test "$have_rsvg" = 'yes'; then DELEGATES="$DELEGATES rsvg"; fi
32336if test "$have_tiff" = 'yes'; then DELEGATES="$DELEGATES tiff"; fi
32337if test "$have_x" = 'yes'; then DELEGATES="$DELEGATES x11"; fi
32338if test "$have_xml" = 'yes'; then DELEGATES="$DELEGATES xml"; fi
32339if test "$have_wmf" = 'yes'; then DELEGATES="$DELEGATES wmf"; fi
32340if test "$have_zlib" = 'yes'; then DELEGATES="$DELEGATES zlib"; fi
32341
32342
32343
32344#
32345# Handle special compiler flags
32346#
32347
32348# Add '-p' if prof source profiling support enabled
32349if test "$enable_prof" = 'yes'; then
32350 CFLAGS="-p $CFLAGS"
32351 CXXFLAGS="-p $CXXFLAGS"
32352 LDFLAGS="-p $LDFLAGS"
32353fi
32354
32355# Add '-pg' if gprof source profiling support enabled
32356if test "$enable_gprof" = 'yes'; then
32357 CFLAGS="-pg $CFLAGS"
32358 CXXFLAGS="-pg $CXXFLAGS"
32359 LDFLAGS="-pg $LDFLAGS"
32360fi
32361
32362# Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
32363# This is a gcc-specific feature
32364if test "$enable_gcov" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000032365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000032366$as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032367if test "${ac_cv_lib_gcov__gcov_init+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032368 $as_echo_n "(cached) " >&6
32369else
32370 ac_check_lib_save_LIBS=$LIBS
32371LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000032372cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032373/* end confdefs.h. */
32374
32375/* Override any GCC internal prototype to avoid an error.
32376 Use char because int might match the return type of a GCC
32377 builtin and then its argument prototype would still apply. */
32378#ifdef __cplusplus
32379extern "C"
32380#endif
32381char _gcov_init ();
32382int
32383main ()
32384{
32385return _gcov_init ();
32386 ;
32387 return 0;
32388}
32389_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032390if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000032391 ac_cv_lib_gcov__gcov_init=yes
32392else
cristy8b350f62009-11-15 23:12:43 +000032393 ac_cv_lib_gcov__gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000032394fi
cristy8b350f62009-11-15 23:12:43 +000032395rm -f core conftest.err conftest.$ac_objext \
32396 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032397LIBS=$ac_check_lib_save_LIBS
32398fi
cristy8b350f62009-11-15 23:12:43 +000032399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000032400$as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032401if test "x$ac_cv_lib_gcov__gcov_init" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000032402 cat >>confdefs.h <<_ACEOF
32403#define HAVE_LIBGCOV 1
32404_ACEOF
32405
32406 LIBS="-lgcov $LIBS"
32407
32408fi
32409
cristy8b350f62009-11-15 23:12:43 +000032410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000032411$as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032412if test "${ac_cv_lib_gcov___gcov_init+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032413 $as_echo_n "(cached) " >&6
32414else
32415 ac_check_lib_save_LIBS=$LIBS
32416LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000032417cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032418/* end confdefs.h. */
32419
32420/* Override any GCC internal prototype to avoid an error.
32421 Use char because int might match the return type of a GCC
32422 builtin and then its argument prototype would still apply. */
32423#ifdef __cplusplus
32424extern "C"
32425#endif
32426char __gcov_init ();
32427int
32428main ()
32429{
32430return __gcov_init ();
32431 ;
32432 return 0;
32433}
32434_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032435if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000032436 ac_cv_lib_gcov___gcov_init=yes
32437else
cristy8b350f62009-11-15 23:12:43 +000032438 ac_cv_lib_gcov___gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000032439fi
cristy8b350f62009-11-15 23:12:43 +000032440rm -f core conftest.err conftest.$ac_objext \
32441 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032442LIBS=$ac_check_lib_save_LIBS
32443fi
cristy8b350f62009-11-15 23:12:43 +000032444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000032445$as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032446if test "x$ac_cv_lib_gcov___gcov_init" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000032447 cat >>confdefs.h <<_ACEOF
32448#define HAVE_LIBGCOV 1
32449_ACEOF
32450
32451 LIBS="-lgcov $LIBS"
32452
32453fi
32454
32455 case "$target_os" in
32456 darwin*)
32457 OSX_GCOV_LDFLAG="-Wl,-single_module"
32458 ;;
32459 *)
32460 OSX_GCOV_LDFLAG=""
32461 ;;
32462 esac
32463
32464 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
32465 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
32466 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
32467fi
32468
32469#
32470# Build library dependency list for libMagickCore
32471#
32472
32473MAGICK_LIBLTDL='' # Libltdl for build
32474MAGICK_API_LIBLTDL='' # libltdl for dependent application (API) build
32475MAGICK_LTDLDEPS='' # extra libltdl dependencies
32476if test "$with_ltdl" != 'no'
32477then
32478 if test \( "$with_included_ltdl" = 'no' -o "$enable_ltdl_convenience" = 'no' \) -o "$enable_ltdl_install" = 'yes'; then
32479 MAGICK_API_LIBLTDL='-lltdl'
32480 fi
32481 MAGICK_LIBLTDL=${LIBLTDL}
32482 MAGICK_LTDLDEPS=${LTDLDEPS}
32483fi
32484
32485
32486
32487if test "$with_modules" != 'no'; then
cristy2e8b51d2009-10-17 18:26:15 +000032488 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 +000032489else
cristy2e8b51d2009-10-17 18:26:15 +000032490 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 +000032491fi
32492
32493
32494#
32495# Remove extraneous spaces from output variables (asthetic)
32496#
32497X_CFLAGS=`echo $X_CFLAGS | sed -e 's/ */ /g'`
32498X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/ */ /g'`
32499X_LIBS=`echo $X_LIBS | sed -e 's/ */ /g'`
32500X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/ */ /g'`
32501
32502CC=`echo $CC | sed -e 's/ */ /g'`
32503CFLAGS=`echo $CFLAGS | sed -e 's/ */ /g'`
32504CPPFLAGS=`echo $CPPFLAGS | sed -e 's/ */ /g'`
32505CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ */ /g'`
32506DELEGATES=`echo $DELEGATES | sed -e 's/^ //g'`
32507DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/ */ /g'`
32508LDFLAGS=`echo $LDFLAGS | sed -e 's/ */ /g'`
32509TESTED_LIBS=`echo $LIBS | sed -e 's/ */ /g'`
32510MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'`
32511#LIBS=`echo $LIBS | sed -e 's/ */ /g'`
32512
32513# Pass only user-provided LIBS as "global" libraries
32514LIBS=$USER_LIBS
32515
32516#AC_SUBST(CPPFLAGS)
32517
32518#AC_SUBST(LDFLAGS)
32519#AC_SUBST(X_PRE_LIBS)
32520#AC_SUBST(X_LIBS)
32521#AC_SUBST(X_EXTRA_LIBS)
32522
32523MAGICK_CFLAGS=$CFLAGS
32524MAGICK_CXXFLAGS="$CXXFLAGS"
32525MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'`
32526MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'`
32527MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
32528MAGICK_LIBS="-lMagickCore $MAGICK_DEP_LIBS $MAGICK_API_LIBLTDL"
32529
32530
32531
32532
32533
32534
32535
32536
32537# Set configured scripts to executable.
32538ac_config_commands="$ac_config_commands default"
32539
32540ac_config_commands="$ac_config_commands MagickCore-config.in"
32541
32542ac_config_commands="$ac_config_commands Magick-config.in"
32543
32544ac_config_commands="$ac_config_commands MagickWand-config.in"
32545
32546ac_config_commands="$ac_config_commands Wand-config.in"
32547
32548ac_config_commands="$ac_config_commands Magick++-config.in"
32549
32550ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
32551
32552
cristy8b350f62009-11-15 23:12:43 +000032553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000032554$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Update ImageMagick configuration" >&5
cristy3ed852e2009-09-05 21:47:34 +000032556$as_echo "Update ImageMagick configuration" >&6; }
32557cat >confcache <<\_ACEOF
32558# This file is a shell script that caches the results of configure
32559# tests run on this system so they can be shared between configure
32560# scripts and configure runs, see configure's option --config-cache.
32561# It is not useful on other systems. If it contains results you don't
32562# want to keep, you may remove or edit it.
32563#
32564# config.status only pays attention to the cache file if you give it
32565# the --recheck option to rerun configure.
32566#
32567# `ac_cv_env_foo' variables (set or unset) will be overridden when
32568# loading this file, other *unset* `ac_cv_foo' will be assigned the
32569# following values.
32570
32571_ACEOF
32572
32573# The following way of writing the cache mishandles newlines in values,
32574# but we know of no workaround that is simple, portable, and efficient.
32575# So, we kill variables containing newlines.
32576# Ultrix sh set writes to stderr and can't be redirected directly,
32577# and sets the high bit in the cache file unless we assign to the vars.
32578(
32579 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
32580 eval ac_val=\$$ac_var
32581 case $ac_val in #(
32582 *${as_nl}*)
32583 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +000032584 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +000032585$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
32586 esac
32587 case $ac_var in #(
32588 _ | IFS | as_nl) ;; #(
32589 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +000032590 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +000032591 esac ;;
32592 esac
32593 done
32594
32595 (set) 2>&1 |
32596 case $as_nl`(ac_space=' '; set) 2>&1` in #(
32597 *${as_nl}ac_space=\ *)
cristy8b350f62009-11-15 23:12:43 +000032598 # `set' does not quote correctly, so add quotes: double-quote
32599 # substitution turns \\\\ into \\, and sed turns \\ into \.
cristy3ed852e2009-09-05 21:47:34 +000032600 sed -n \
32601 "s/'/'\\\\''/g;
32602 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
32603 ;; #(
32604 *)
32605 # `set' quotes correctly as required by POSIX, so do not add quotes.
32606 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
32607 ;;
32608 esac |
32609 sort
32610) |
32611 sed '
32612 /^ac_cv_env_/b end
32613 t clear
32614 :clear
32615 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
32616 t end
32617 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
32618 :end' >>confcache
32619if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
32620 if test -w "$cache_file"; then
32621 test "x$cache_file" != "x/dev/null" &&
cristy8b350f62009-11-15 23:12:43 +000032622 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000032623$as_echo "$as_me: updating cache $cache_file" >&6;}
32624 cat confcache >$cache_file
32625 else
cristy8b350f62009-11-15 23:12:43 +000032626 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000032627$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
32628 fi
32629fi
32630rm -f confcache
32631
32632test "x$prefix" = xNONE && prefix=$ac_default_prefix
32633# Let make expand exec_prefix.
32634test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
32635
32636DEFS=-DHAVE_CONFIG_H
32637
32638ac_libobjs=
32639ac_ltlibobjs=
32640for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
32641 # 1. Remove the extension, and $U if already installed.
32642 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
32643 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
32644 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
32645 # will be set to the directory where LIBOBJS objects are built.
cristy8b350f62009-11-15 23:12:43 +000032646 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
32647 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
cristy3ed852e2009-09-05 21:47:34 +000032648done
32649LIBOBJS=$ac_libobjs
32650
32651LTLIBOBJS=$ac_ltlibobjs
32652
32653
32654 if test -n "$EXEEXT"; then
32655 am__EXEEXT_TRUE=
32656 am__EXEEXT_FALSE='#'
32657else
32658 am__EXEEXT_TRUE='#'
32659 am__EXEEXT_FALSE=
32660fi
32661
32662if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032663 as_fn_error "conditional \"AMDEP\" was never defined.
32664Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032665fi
32666if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032667 as_fn_error "conditional \"am__fastdepCC\" was never defined.
32668Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032669fi
cristya0b81c32010-01-22 02:54:33 +000032670if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
32671 as_fn_error "conditional \"am__fastdepCC\" was never defined.
32672Usually this means the macro was only invoked conditionally." "$LINENO" 5
32673fi
cristy3ed852e2009-09-05 21:47:34 +000032674if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032675 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
32676Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032677fi
32678if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032679 as_fn_error "conditional \"WINGDI32_DELEGATE\" was never defined.
32680Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032681fi
32682if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032683 as_fn_error "conditional \"WIN32_NATIVE_BUILD\" was never defined.
32684Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032685fi
32686if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032687 as_fn_error "conditional \"CYGWIN_BUILD\" was never defined.
32688Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032689fi
32690if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032691 as_fn_error "conditional \"USING_CL\" was never defined.
32692Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032693fi
cristy18304f92009-11-22 15:48:26 +000032694if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
32695 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
32696Usually this means the macro was only invoked conditionally." "$LINENO" 5
32697fi
cristy3ed852e2009-09-05 21:47:34 +000032698if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032699 as_fn_error "conditional \"INSTALL_LTDL\" was never defined.
32700Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032701fi
32702if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032703 as_fn_error "conditional \"CONVENIENCE_LTDL\" was never defined.
32704Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032705fi
32706LT_CONFIG_H=config/config.h
32707
32708 _ltdl_libobjs=
32709 _ltdl_ltlibobjs=
32710 if test -n "$_LT_LIBOBJS"; then
32711 # Remove the extension.
32712 _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
32713 for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
32714 _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
32715 _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
32716 done
32717 fi
32718 ltdl_LIBOBJS=$_ltdl_libobjs
32719
32720 ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
32721
32722
cristyfa112112010-01-04 17:48:07 +000032723if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then
32724 as_fn_error "conditional \"WITH_SHARED_LIBS\" was never defined.
32725Usually this means the macro was only invoked conditionally." "$LINENO" 5
32726fi
cristy3ed852e2009-09-05 21:47:34 +000032727if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032728 as_fn_error "conditional \"WITH_MODULES\" was never defined.
32729Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032730fi
32731if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032732 as_fn_error "conditional \"WITH_LTDL\" was never defined.
32733Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032734fi
32735if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032736 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
32737Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032738fi
32739
32740if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032741 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
32742Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032743fi
32744if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032745 as_fn_error "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
32746Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032747fi
32748if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032749 as_fn_error "conditional \"HasUMEM\" was never defined.
32750Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032751fi
32752if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032753 as_fn_error "conditional \"BZLIB_DELEGATE\" was never defined.
32754Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032755fi
32756if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032757 as_fn_error "conditional \"X11_DELEGATE\" was never defined.
32758Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032759fi
32760if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032761 as_fn_error "conditional \"ZLIB_DELEGATE\" was never defined.
32762Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032763fi
32764if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032765 as_fn_error "conditional \"AUTOTRACE_DELEGATE\" was never defined.
32766Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032767fi
32768if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032769 as_fn_error "conditional \"DPS_DELEGATE\" was never defined.
32770Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032771fi
32772if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032773 as_fn_error "conditional \"DJVU_DELEGATE\" was never defined.
32774Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032775fi
32776if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032777 as_fn_error "conditional \"FFTW_DELEGATE\" was never defined.
32778Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032779fi
32780if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032781 as_fn_error "conditional \"FPX_DELEGATE\" was never defined.
32782Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032783fi
32784if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032785 as_fn_error "conditional \"FONTCONFIG_DELEGATE\" was never defined.
32786Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032787fi
32788if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032789 as_fn_error "conditional \"FREETYPE_DELEGATE\" was never defined.
32790Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032791fi
32792if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032793 as_fn_error "conditional \"GS_DELEGATE\" was never defined.
32794Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032795fi
32796if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032797 as_fn_error "conditional \"GVC_DELEGATE\" was never defined.
32798Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032799fi
32800if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032801 as_fn_error "conditional \"JBIG_DELEGATE\" was never defined.
32802Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032803fi
32804if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032805 as_fn_error "conditional \"JPEG_DELEGATE\" was never defined.
32806Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032807fi
32808if test -z "${JP2_DELEGATE_TRUE}" && test -z "${JP2_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032809 as_fn_error "conditional \"JP2_DELEGATE\" was never defined.
32810Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032811fi
32812if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032813 as_fn_error "conditional \"LCMS_DELEGATE\" was never defined.
32814Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032815fi
32816if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032817 as_fn_error "conditional \"LQR_DELEGATE\" was never defined.
32818Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032819fi
32820if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032821 as_fn_error "conditional \"OPENEXR_DELEGATE\" was never defined.
32822Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032823fi
32824if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032825 as_fn_error "conditional \"PNG_DELEGATE\" was never defined.
32826Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032827fi
32828if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032829 as_fn_error "conditional \"RSVG_DELEGATE\" was never defined.
32830Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032831fi
32832if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032833 as_fn_error "conditional \"CAIRO_DELEGATE\" was never defined.
32834Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032835fi
32836if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032837 as_fn_error "conditional \"TIFF_DELEGATE\" was never defined.
32838Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032839fi
32840if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032841 as_fn_error "conditional \"WMF_DELEGATE\" was never defined.
32842Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032843fi
32844if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032845 as_fn_error "conditional \"XML_DELEGATE\" was never defined.
32846Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032847fi
32848if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032849 as_fn_error "conditional \"RPM_DELEGATE\" was never defined.
32850Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032851fi
32852if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032853 as_fn_error "conditional \"P7ZIP_DELEGATE\" was never defined.
32854Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032855fi
32856if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032857 as_fn_error "conditional \"ZIP_DELEGATE\" was never defined.
32858Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032859fi
32860if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032861 as_fn_error "conditional \"WITH_PERL\" was never defined.
32862Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032863fi
32864if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032865 as_fn_error "conditional \"WITH_PERL_STATIC\" was never defined.
32866Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032867fi
32868if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032869 as_fn_error "conditional \"WITH_PERL_DYNAMIC\" was never defined.
32870Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032871fi
32872
32873: ${CONFIG_STATUS=./config.status}
32874ac_write_fail=0
32875ac_clean_files_save=$ac_clean_files
32876ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cristy8b350f62009-11-15 23:12:43 +000032877{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
cristy3ed852e2009-09-05 21:47:34 +000032878$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
cristy8b350f62009-11-15 23:12:43 +000032879as_write_fail=0
32880cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000032881#! $SHELL
32882# Generated by $as_me.
32883# Run this file to recreate the current configuration.
32884# Compiler output produced by configure, useful for debugging
32885# configure, is in config.log if it exists.
32886
32887debug=false
32888ac_cs_recheck=false
32889ac_cs_silent=false
cristy3ed852e2009-09-05 21:47:34 +000032890
cristy8b350f62009-11-15 23:12:43 +000032891SHELL=\${CONFIG_SHELL-$SHELL}
32892export SHELL
32893_ASEOF
32894cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
32895## -------------------- ##
32896## M4sh Initialization. ##
32897## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000032898
32899# Be more Bourne compatible
32900DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000032901if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000032902 emulate sh
32903 NULLCMD=:
32904 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
32905 # is contrary to our usage. Disable this feature.
32906 alias -g '${1+"$@"}'='"$@"'
32907 setopt NO_GLOB_SUBST
32908else
cristy8b350f62009-11-15 23:12:43 +000032909 case `(set -o) 2>/dev/null` in #(
32910 *posix*) :
32911 set -o posix ;; #(
32912 *) :
32913 ;;
cristy3ed852e2009-09-05 21:47:34 +000032914esac
cristy3ed852e2009-09-05 21:47:34 +000032915fi
32916
32917
cristy3ed852e2009-09-05 21:47:34 +000032918as_nl='
32919'
32920export as_nl
32921# Printing a long string crashes Solaris 7 /usr/bin/printf.
32922as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
32923as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
32924as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000032925# Prefer a ksh shell builtin over an external printf program on Solaris,
32926# but without wasting forks for bash or zsh.
32927if test -z "$BASH_VERSION$ZSH_VERSION" \
32928 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
32929 as_echo='print -r --'
32930 as_echo_n='print -rn --'
32931elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000032932 as_echo='printf %s\n'
32933 as_echo_n='printf %s'
32934else
32935 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
32936 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
32937 as_echo_n='/usr/ucb/echo -n'
32938 else
32939 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
32940 as_echo_n_body='eval
32941 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000032942 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000032943 *"$as_nl"*)
32944 expr "X$arg" : "X\\(.*\\)$as_nl";
32945 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
32946 esac;
32947 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
32948 '
32949 export as_echo_n_body
32950 as_echo_n='sh -c $as_echo_n_body as_echo'
32951 fi
32952 export as_echo_body
32953 as_echo='sh -c $as_echo_body as_echo'
32954fi
32955
32956# The user is always right.
32957if test "${PATH_SEPARATOR+set}" != set; then
32958 PATH_SEPARATOR=:
32959 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
32960 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
32961 PATH_SEPARATOR=';'
32962 }
32963fi
32964
cristy3ed852e2009-09-05 21:47:34 +000032965
32966# IFS
32967# We need space, tab and new line, in precisely that order. Quoting is
32968# there to prevent editors from complaining about space-tab.
32969# (If _AS_PATH_WALK were called with IFS unset, it would disable word
32970# splitting by setting IFS to empty value.)
32971IFS=" "" $as_nl"
32972
32973# Find who we are. Look in the path if we contain no directory separator.
cristy8b350f62009-11-15 23:12:43 +000032974case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000032975 *[\\/]* ) as_myself=$0 ;;
32976 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32977for as_dir in $PATH
32978do
32979 IFS=$as_save_IFS
32980 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032981 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
32982 done
cristy3ed852e2009-09-05 21:47:34 +000032983IFS=$as_save_IFS
32984
32985 ;;
32986esac
32987# We did not find ourselves, most probably we were run as `sh COMMAND'
32988# in which case we are not to be found in the path.
32989if test "x$as_myself" = x; then
32990 as_myself=$0
32991fi
32992if test ! -f "$as_myself"; then
32993 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +000032994 exit 1
cristy3ed852e2009-09-05 21:47:34 +000032995fi
32996
cristy8b350f62009-11-15 23:12:43 +000032997# Unset variables that we do not need and which cause bugs (e.g. in
32998# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
32999# suppresses any "Segmentation fault" message there. '((' could
33000# trigger a bug in pdksh 5.2.14.
33001for as_var in BASH_ENV ENV MAIL MAILPATH
33002do eval test x\${$as_var+set} = xset \
33003 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +000033004done
33005PS1='$ '
33006PS2='> '
33007PS4='+ '
33008
33009# NLS nuisances.
33010LC_ALL=C
33011export LC_ALL
33012LANGUAGE=C
33013export LANGUAGE
33014
cristy8b350f62009-11-15 23:12:43 +000033015# CDPATH.
33016(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
33017
33018
33019# as_fn_error ERROR [LINENO LOG_FD]
33020# ---------------------------------
33021# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
33022# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
33023# script with status $?, using 1 if that was 0.
33024as_fn_error ()
33025{
33026 as_status=$?; test $as_status -eq 0 && as_status=1
33027 if test "$3"; then
33028 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
33029 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
33030 fi
33031 $as_echo "$as_me: error: $1" >&2
33032 as_fn_exit $as_status
33033} # as_fn_error
33034
33035
33036# as_fn_set_status STATUS
33037# -----------------------
33038# Set $? to STATUS, without forking.
33039as_fn_set_status ()
33040{
33041 return $1
33042} # as_fn_set_status
33043
33044# as_fn_exit STATUS
33045# -----------------
33046# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
33047as_fn_exit ()
33048{
33049 set +e
33050 as_fn_set_status $1
33051 exit $1
33052} # as_fn_exit
33053
33054# as_fn_unset VAR
33055# ---------------
33056# Portably unset VAR.
33057as_fn_unset ()
33058{
33059 { eval $1=; unset $1;}
33060}
33061as_unset=as_fn_unset
33062# as_fn_append VAR VALUE
33063# ----------------------
33064# Append the text in VALUE to the end of the definition contained in VAR. Take
33065# advantage of any shell optimizations that allow amortized linear growth over
33066# repeated appends, instead of the typical quadratic growth present in naive
33067# implementations.
33068if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
33069 eval 'as_fn_append ()
33070 {
33071 eval $1+=\$2
33072 }'
33073else
33074 as_fn_append ()
33075 {
33076 eval $1=\$$1\$2
33077 }
33078fi # as_fn_append
33079
33080# as_fn_arith ARG...
33081# ------------------
33082# Perform arithmetic evaluation on the ARGs, and store the result in the
33083# global $as_val. Take advantage of shells that can avoid forks. The arguments
33084# must be portable across $(()) and expr.
33085if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
33086 eval 'as_fn_arith ()
33087 {
33088 as_val=$(( $* ))
33089 }'
33090else
33091 as_fn_arith ()
33092 {
33093 as_val=`expr "$@" || test $? -eq 1`
33094 }
33095fi # as_fn_arith
33096
33097
cristy3ed852e2009-09-05 21:47:34 +000033098if expr a : '\(a\)' >/dev/null 2>&1 &&
33099 test "X`expr 00001 : '.*\(...\)'`" = X001; then
33100 as_expr=expr
33101else
33102 as_expr=false
33103fi
33104
33105if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
33106 as_basename=basename
33107else
33108 as_basename=false
33109fi
33110
cristy8b350f62009-11-15 23:12:43 +000033111if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
33112 as_dirname=dirname
33113else
33114 as_dirname=false
33115fi
cristy3ed852e2009-09-05 21:47:34 +000033116
cristy3ed852e2009-09-05 21:47:34 +000033117as_me=`$as_basename -- "$0" ||
33118$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
33119 X"$0" : 'X\(//\)$' \| \
33120 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
33121$as_echo X/"$0" |
33122 sed '/^.*\/\([^/][^/]*\)\/*$/{
33123 s//\1/
33124 q
33125 }
33126 /^X\/\(\/\/\)$/{
33127 s//\1/
33128 q
33129 }
33130 /^X\/\(\/\).*/{
33131 s//\1/
33132 q
33133 }
33134 s/.*/./; q'`
33135
cristy8b350f62009-11-15 23:12:43 +000033136# Avoid depending upon Character Ranges.
33137as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33138as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
33139as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33140as_cr_digits='0123456789'
33141as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +000033142
33143ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +000033144case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +000033145-n*)
cristy8b350f62009-11-15 23:12:43 +000033146 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +000033147 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +000033148 xy) ECHO_C='\c';;
33149 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
33150 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +000033151 esac;;
33152*)
33153 ECHO_N='-n';;
33154esac
cristy3ed852e2009-09-05 21:47:34 +000033155
33156rm -f conf$$ conf$$.exe conf$$.file
33157if test -d conf$$.dir; then
33158 rm -f conf$$.dir/conf$$.file
33159else
33160 rm -f conf$$.dir
33161 mkdir conf$$.dir 2>/dev/null
33162fi
33163if (echo >conf$$.file) 2>/dev/null; then
33164 if ln -s conf$$.file conf$$ 2>/dev/null; then
33165 as_ln_s='ln -s'
33166 # ... but there are two gotchas:
33167 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
33168 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
33169 # In both cases, we have to default to `cp -p'.
33170 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
33171 as_ln_s='cp -p'
33172 elif ln conf$$.file conf$$ 2>/dev/null; then
33173 as_ln_s=ln
33174 else
33175 as_ln_s='cp -p'
33176 fi
33177else
33178 as_ln_s='cp -p'
33179fi
33180rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
33181rmdir conf$$.dir 2>/dev/null
33182
cristy8b350f62009-11-15 23:12:43 +000033183
33184# as_fn_mkdir_p
33185# -------------
33186# Create "$as_dir" as a directory, including parents if necessary.
33187as_fn_mkdir_p ()
33188{
33189
33190 case $as_dir in #(
33191 -*) as_dir=./$as_dir;;
33192 esac
33193 test -d "$as_dir" || eval $as_mkdir_p || {
33194 as_dirs=
33195 while :; do
33196 case $as_dir in #(
33197 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
33198 *) as_qdir=$as_dir;;
33199 esac
33200 as_dirs="'$as_qdir' $as_dirs"
33201 as_dir=`$as_dirname -- "$as_dir" ||
33202$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33203 X"$as_dir" : 'X\(//\)[^/]' \| \
33204 X"$as_dir" : 'X\(//\)$' \| \
33205 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
33206$as_echo X"$as_dir" |
33207 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33208 s//\1/
33209 q
33210 }
33211 /^X\(\/\/\)[^/].*/{
33212 s//\1/
33213 q
33214 }
33215 /^X\(\/\/\)$/{
33216 s//\1/
33217 q
33218 }
33219 /^X\(\/\).*/{
33220 s//\1/
33221 q
33222 }
33223 s/.*/./; q'`
33224 test -d "$as_dir" && break
33225 done
33226 test -z "$as_dirs" || eval "mkdir $as_dirs"
33227 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
33228
33229
33230} # as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000033231if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000033232 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +000033233else
33234 test -d ./-p && rmdir ./-p
33235 as_mkdir_p=false
33236fi
33237
33238if test -x / >/dev/null 2>&1; then
33239 as_test_x='test -x'
33240else
33241 if ls -dL / >/dev/null 2>&1; then
33242 as_ls_L_option=L
33243 else
33244 as_ls_L_option=
33245 fi
33246 as_test_x='
33247 eval sh -c '\''
33248 if test -d "$1"; then
33249 test -d "$1/.";
33250 else
cristy8b350f62009-11-15 23:12:43 +000033251 case $1 in #(
cristy3ed852e2009-09-05 21:47:34 +000033252 -*)set "./$1";;
33253 esac;
cristy8b350f62009-11-15 23:12:43 +000033254 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
cristy3ed852e2009-09-05 21:47:34 +000033255 ???[sx]*):;;*)false;;esac;fi
33256 '\'' sh
33257 '
33258fi
33259as_executable_p=$as_test_x
33260
33261# Sed expression to map a string onto a valid CPP name.
33262as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
33263
33264# Sed expression to map a string onto a valid variable name.
33265as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
33266
33267
33268exec 6>&1
cristy8b350f62009-11-15 23:12:43 +000033269## ----------------------------------- ##
33270## Main body of $CONFIG_STATUS script. ##
33271## ----------------------------------- ##
33272_ASEOF
33273test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000033274
cristy8b350f62009-11-15 23:12:43 +000033275cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33276# Save the log message, to keep $0 and so on meaningful, and to
cristy3ed852e2009-09-05 21:47:34 +000033277# report actual input values of CONFIG_FILES etc. instead of their
33278# values after options handling.
33279ac_log="
cristyb36feb22010-03-26 16:54:37 +000033280This file was extended by ImageMagick $as_me 6.6.1, which was
cristycd4c5312009-11-22 01:19:08 +000033281generated by GNU Autoconf 2.65. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +000033282
33283 CONFIG_FILES = $CONFIG_FILES
33284 CONFIG_HEADERS = $CONFIG_HEADERS
33285 CONFIG_LINKS = $CONFIG_LINKS
33286 CONFIG_COMMANDS = $CONFIG_COMMANDS
33287 $ $0 $@
33288
33289on `(hostname || uname -n) 2>/dev/null | sed 1q`
33290"
33291
33292_ACEOF
33293
33294case $ac_config_files in *"
33295"*) set x $ac_config_files; shift; ac_config_files=$*;;
33296esac
33297
33298case $ac_config_headers in *"
33299"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
33300esac
33301
33302
33303cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33304# Files that config.status was made for.
33305config_files="$ac_config_files"
33306config_headers="$ac_config_headers"
33307config_commands="$ac_config_commands"
33308
33309_ACEOF
33310
33311cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33312ac_cs_usage="\
cristy8b350f62009-11-15 23:12:43 +000033313\`$as_me' instantiates files and other configuration actions
33314from templates according to the current configuration. Unless the files
33315and actions are specified as TAGs, all are instantiated by default.
cristy3ed852e2009-09-05 21:47:34 +000033316
cristy8b350f62009-11-15 23:12:43 +000033317Usage: $0 [OPTION]... [TAG]...
cristy3ed852e2009-09-05 21:47:34 +000033318
33319 -h, --help print this help, then exit
33320 -V, --version print version number and configuration settings, then exit
cristycd4c5312009-11-22 01:19:08 +000033321 --config print configuration, then exit
cristy3ed852e2009-09-05 21:47:34 +000033322 -q, --quiet, --silent
33323 do not print progress messages
33324 -d, --debug don't remove temporary files
33325 --recheck update $as_me by reconfiguring in the same conditions
33326 --file=FILE[:TEMPLATE]
33327 instantiate the configuration file FILE
33328 --header=FILE[:TEMPLATE]
33329 instantiate the configuration header FILE
33330
33331Configuration files:
33332$config_files
33333
33334Configuration headers:
33335$config_headers
33336
33337Configuration commands:
33338$config_commands
33339
cristy8b350f62009-11-15 23:12:43 +000033340Report bugs to <http://www.imagemagick.org>."
cristy3ed852e2009-09-05 21:47:34 +000033341
33342_ACEOF
33343cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristycd4c5312009-11-22 01:19:08 +000033344ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
cristy3ed852e2009-09-05 21:47:34 +000033345ac_cs_version="\\
cristyb36feb22010-03-26 16:54:37 +000033346ImageMagick config.status 6.6.1
cristycd4c5312009-11-22 01:19:08 +000033347configured by $0, generated by GNU Autoconf 2.65,
33348 with options \\"\$ac_cs_config\\"
cristy3ed852e2009-09-05 21:47:34 +000033349
cristy8b350f62009-11-15 23:12:43 +000033350Copyright (C) 2009 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +000033351This config.status script is free software; the Free Software Foundation
33352gives unlimited permission to copy, distribute and modify it."
33353
33354ac_pwd='$ac_pwd'
33355srcdir='$srcdir'
33356INSTALL='$INSTALL'
33357MKDIR_P='$MKDIR_P'
33358AWK='$AWK'
33359test -n "\$AWK" || AWK=awk
33360_ACEOF
33361
33362cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33363# The default lists apply if the user does not specify any file.
33364ac_need_defaults=:
33365while test $# != 0
33366do
33367 case $1 in
33368 --*=*)
33369 ac_option=`expr "X$1" : 'X\([^=]*\)='`
33370 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
33371 ac_shift=:
33372 ;;
33373 *)
33374 ac_option=$1
33375 ac_optarg=$2
33376 ac_shift=shift
33377 ;;
33378 esac
33379
33380 case $ac_option in
33381 # Handling of the options.
33382 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
33383 ac_cs_recheck=: ;;
33384 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
33385 $as_echo "$ac_cs_version"; exit ;;
cristycd4c5312009-11-22 01:19:08 +000033386 --config | --confi | --conf | --con | --co | --c )
33387 $as_echo "$ac_cs_config"; exit ;;
cristy3ed852e2009-09-05 21:47:34 +000033388 --debug | --debu | --deb | --de | --d | -d )
33389 debug=: ;;
33390 --file | --fil | --fi | --f )
33391 $ac_shift
33392 case $ac_optarg in
33393 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33394 esac
cristy8b350f62009-11-15 23:12:43 +000033395 as_fn_append CONFIG_FILES " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000033396 ac_need_defaults=false;;
33397 --header | --heade | --head | --hea )
33398 $ac_shift
33399 case $ac_optarg in
33400 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33401 esac
cristy8b350f62009-11-15 23:12:43 +000033402 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000033403 ac_need_defaults=false;;
33404 --he | --h)
33405 # Conflict between --help and --header
cristy8b350f62009-11-15 23:12:43 +000033406 as_fn_error "ambiguous option: \`$1'
33407Try \`$0 --help' for more information.";;
cristy3ed852e2009-09-05 21:47:34 +000033408 --help | --hel | -h )
33409 $as_echo "$ac_cs_usage"; exit ;;
33410 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
33411 | -silent | --silent | --silen | --sile | --sil | --si | --s)
33412 ac_cs_silent=: ;;
33413
33414 # This is an error.
cristy8b350f62009-11-15 23:12:43 +000033415 -*) as_fn_error "unrecognized option: \`$1'
33416Try \`$0 --help' for more information." ;;
cristy3ed852e2009-09-05 21:47:34 +000033417
cristy8b350f62009-11-15 23:12:43 +000033418 *) as_fn_append ac_config_targets " $1"
cristy3ed852e2009-09-05 21:47:34 +000033419 ac_need_defaults=false ;;
33420
33421 esac
33422 shift
33423done
33424
33425ac_configure_extra_args=
33426
33427if $ac_cs_silent; then
33428 exec 6>/dev/null
33429 ac_configure_extra_args="$ac_configure_extra_args --silent"
33430fi
33431
33432_ACEOF
33433cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33434if \$ac_cs_recheck; then
33435 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
33436 shift
33437 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
33438 CONFIG_SHELL='$SHELL'
33439 export CONFIG_SHELL
33440 exec "\$@"
33441fi
33442
33443_ACEOF
33444cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33445exec 5>>config.log
33446{
33447 echo
33448 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
33449## Running $as_me. ##
33450_ASBOX
33451 $as_echo "$ac_log"
33452} >&5
33453
33454_ACEOF
33455cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33456#
33457# INIT-COMMANDS
33458#
33459PACKAGE="$PACKAGE"
33460AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
33461
33462
33463# The HP-UX ksh and POSIX shell print the target directory to stdout
33464# if CDPATH is set.
33465(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
33466
33467sed_quote_subst='$sed_quote_subst'
33468double_quote_subst='$double_quote_subst'
33469delay_variable_subst='$delay_variable_subst'
cristy18304f92009-11-22 15:48:26 +000033470SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
33471Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
33472GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
33473EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
33474FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
33475LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
33476macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
33477macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
33478AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
33479DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
33480OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
33481enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
33482enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
33483pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
33484enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
33485host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
33486host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
33487host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
33488build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
33489build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
33490build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
33491NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
33492LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
33493max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
33494ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
33495exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
33496lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
33497lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
33498lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
33499reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
33500reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33501deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
33502file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
33503AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
33504AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
33505STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
33506RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
33507old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33508old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33509old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33510CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
33511CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
33512compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
33513GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
33514lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
33515lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
33516lt_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"`'
33517lt_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"`'
33518objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
33519SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
33520ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
33521MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
33522lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
33523lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
33524lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
33525lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
33526lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
33527need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
33528DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
33529NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
33530LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
33531OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
33532OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
33533libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
33534shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33535extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33536archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
33537enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
33538export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
33539whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
33540compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
33541old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33542old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33543archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33544archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33545module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33546module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33547with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
33548allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
33549no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
33550hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
33551hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
33552hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
33553hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
33554hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
33555hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
33556hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
33557hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
33558inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
33559link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
33560fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
33561always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
33562export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33563exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
33564include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
33565prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33566file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
33567variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
33568need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
33569need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
33570version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
33571runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
33572shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
33573shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
33574libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
33575library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
33576soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
33577postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33578postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33579finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33580finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
33581hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
33582sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
33583sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
33584hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
33585enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
33586enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
33587enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
33588old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
33589striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
33590compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
33591predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
33592postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
33593predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
33594postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
33595compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
33596LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33597old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33598compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33599GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33600lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33601lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33602lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33603lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33604lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33605archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33606enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33607export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33608whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33609compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33610old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33611old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33612archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33613archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33614module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33615module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33616with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33617allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33618no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33619hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33620hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33621hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33622hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33623hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33624hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33625hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33626hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33627inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33628link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33629fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33630always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33631export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33632exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33633include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33634prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33635file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33636hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33637compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33638predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33639postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33640predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33641postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33642compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
cristy3ed852e2009-09-05 21:47:34 +000033643
33644LTCC='$LTCC'
33645LTCFLAGS='$LTCFLAGS'
33646compiler='$compiler_DEFAULT'
33647
33648# Quote evaled strings.
33649for var in SED \
33650GREP \
33651EGREP \
33652FGREP \
33653LD \
33654NM \
33655LN_S \
33656lt_SP2NL \
33657lt_NL2SP \
33658reload_flag \
33659deplibs_check_method \
33660file_magic_cmd \
33661AR \
33662AR_FLAGS \
33663STRIP \
33664RANLIB \
33665CC \
33666CFLAGS \
33667compiler \
33668lt_cv_sys_global_symbol_pipe \
33669lt_cv_sys_global_symbol_to_cdecl \
33670lt_cv_sys_global_symbol_to_c_name_address \
33671lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
cristy18304f92009-11-22 15:48:26 +000033672SHELL \
33673ECHO \
cristy3ed852e2009-09-05 21:47:34 +000033674lt_prog_compiler_no_builtin_flag \
33675lt_prog_compiler_wl \
33676lt_prog_compiler_pic \
33677lt_prog_compiler_static \
33678lt_cv_prog_compiler_c_o \
33679need_locks \
33680DSYMUTIL \
33681NMEDIT \
33682LIPO \
33683OTOOL \
33684OTOOL64 \
33685shrext_cmds \
33686export_dynamic_flag_spec \
33687whole_archive_flag_spec \
33688compiler_needs_object \
33689with_gnu_ld \
33690allow_undefined_flag \
33691no_undefined_flag \
33692hardcode_libdir_flag_spec \
33693hardcode_libdir_flag_spec_ld \
33694hardcode_libdir_separator \
33695fix_srcfile_path \
33696exclude_expsyms \
33697include_expsyms \
33698file_list_spec \
33699variables_saved_for_relink \
33700libname_spec \
33701library_names_spec \
33702soname_spec \
33703finish_eval \
33704old_striplib \
33705striplib \
33706compiler_lib_search_dirs \
33707predep_objects \
33708postdep_objects \
33709predeps \
33710postdeps \
33711compiler_lib_search_path \
33712LD_CXX \
33713compiler_CXX \
33714lt_prog_compiler_no_builtin_flag_CXX \
33715lt_prog_compiler_wl_CXX \
33716lt_prog_compiler_pic_CXX \
33717lt_prog_compiler_static_CXX \
33718lt_cv_prog_compiler_c_o_CXX \
33719export_dynamic_flag_spec_CXX \
33720whole_archive_flag_spec_CXX \
33721compiler_needs_object_CXX \
33722with_gnu_ld_CXX \
33723allow_undefined_flag_CXX \
33724no_undefined_flag_CXX \
33725hardcode_libdir_flag_spec_CXX \
33726hardcode_libdir_flag_spec_ld_CXX \
33727hardcode_libdir_separator_CXX \
33728fix_srcfile_path_CXX \
33729exclude_expsyms_CXX \
33730include_expsyms_CXX \
33731file_list_spec_CXX \
33732compiler_lib_search_dirs_CXX \
33733predep_objects_CXX \
33734postdep_objects_CXX \
33735predeps_CXX \
33736postdeps_CXX \
33737compiler_lib_search_path_CXX; do
cristy18304f92009-11-22 15:48:26 +000033738 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
cristy3ed852e2009-09-05 21:47:34 +000033739 *[\\\\\\\`\\"\\\$]*)
cristy18304f92009-11-22 15:48:26 +000033740 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
cristy3ed852e2009-09-05 21:47:34 +000033741 ;;
33742 *)
33743 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
33744 ;;
33745 esac
33746done
33747
33748# Double-quote double-evaled strings.
33749for var in reload_cmds \
33750old_postinstall_cmds \
33751old_postuninstall_cmds \
33752old_archive_cmds \
33753extract_expsyms_cmds \
33754old_archive_from_new_cmds \
33755old_archive_from_expsyms_cmds \
33756archive_cmds \
33757archive_expsym_cmds \
33758module_cmds \
33759module_expsym_cmds \
33760export_symbols_cmds \
33761prelink_cmds \
33762postinstall_cmds \
33763postuninstall_cmds \
33764finish_cmds \
33765sys_lib_search_path_spec \
33766sys_lib_dlsearch_path_spec \
33767old_archive_cmds_CXX \
33768old_archive_from_new_cmds_CXX \
33769old_archive_from_expsyms_cmds_CXX \
33770archive_cmds_CXX \
33771archive_expsym_cmds_CXX \
33772module_cmds_CXX \
33773module_expsym_cmds_CXX \
33774export_symbols_cmds_CXX \
33775prelink_cmds_CXX; do
cristy18304f92009-11-22 15:48:26 +000033776 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
cristy3ed852e2009-09-05 21:47:34 +000033777 *[\\\\\\\`\\"\\\$]*)
cristy18304f92009-11-22 15:48:26 +000033778 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 +000033779 ;;
33780 *)
33781 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
33782 ;;
33783 esac
33784done
33785
cristy18304f92009-11-22 15:48:26 +000033786# Fix-up fallback echo if it was mangled by the above quoting rules.
33787case \$lt_ECHO in
33788*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
33789 ;;
33790esac
33791
cristy3ed852e2009-09-05 21:47:34 +000033792ac_aux_dir='$ac_aux_dir'
33793xsi_shell='$xsi_shell'
33794lt_shell_append='$lt_shell_append'
33795
33796# See if we are running on zsh, and set the options which allow our
33797# commands through without removal of \ escapes INIT.
33798if test -n "\${ZSH_VERSION+set}" ; then
33799 setopt NO_GLOB_SUBST
33800fi
33801
33802
33803 PACKAGE='$PACKAGE'
33804 VERSION='$VERSION'
33805 TIMESTAMP='$TIMESTAMP'
33806 RM='$RM'
33807 ofile='$ofile'
33808
33809
33810
33811
33812
33813
33814_ACEOF
33815
33816cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33817
33818# Handling of arguments.
33819for ac_config_target in $ac_config_targets
33820do
33821 case $ac_config_target in
33822 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
33823 "magick/magick-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS magick/magick-config.h" ;;
33824 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
33825 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
33826 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
33827 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
33828 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
cristy430a7312010-01-21 20:44:04 +000033829 "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;;
cristy3ed852e2009-09-05 21:47:34 +000033830 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
33831 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
33832 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
33833 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
33834 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
33835 "magick/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES magick/ImageMagick.pc" ;;
33836 "Magick++/lib/ImageMagick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/ImageMagick++.pc" ;;
33837 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
33838 "magick/Magick-config") CONFIG_FILES="$CONFIG_FILES magick/Magick-config" ;;
33839 "magick/MagickCore-config") CONFIG_FILES="$CONFIG_FILES magick/MagickCore-config" ;;
33840 "magick/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES magick/MagickCore.pc" ;;
33841 "magick/version.h") CONFIG_FILES="$CONFIG_FILES magick/version.h" ;;
33842 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
33843 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
33844 "PerlMagick/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/Magick.pm" ;;
33845 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
33846 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
33847 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
33848 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
33849 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
33850 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
33851 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
33852 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
33853 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
33854 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
33855 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
33856 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
33857 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
33858 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
33859 "wand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES wand/MagickWand-config" ;;
33860 "wand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES wand/MagickWand.pc" ;;
33861 "wand/Wand-config") CONFIG_FILES="$CONFIG_FILES wand/Wand-config" ;;
33862 "wand/Wand.pc") CONFIG_FILES="$CONFIG_FILES wand/Wand.pc" ;;
33863 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
33864 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
33865 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
33866 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
33867 "Magick-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick-config.in" ;;
33868 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
33869 "Wand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Wand-config.in" ;;
33870 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
33871 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
33872
cristy8b350f62009-11-15 23:12:43 +000033873 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000033874 esac
33875done
33876
33877
33878# If the user did not use the arguments to specify the items to instantiate,
33879# then the envvar interface is used. Set only those that are not.
33880# We use the long form for the default assignment because of an extremely
33881# bizarre bug on SunOS 4.1.3.
33882if $ac_need_defaults; then
33883 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
33884 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
33885 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
33886fi
33887
33888# Have a temporary directory for convenience. Make it in the build tree
33889# simply because there is no reason against having it here, and in addition,
33890# creating and moving files from /tmp can sometimes cause problems.
33891# Hook for its removal unless debugging.
33892# Note that there is a small window in which the directory will not be cleaned:
33893# after its creation but before its name has been assigned to `$tmp'.
33894$debug ||
33895{
33896 tmp=
33897 trap 'exit_status=$?
33898 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
33899' 0
cristy8b350f62009-11-15 23:12:43 +000033900 trap 'as_fn_exit 1' 1 2 13 15
cristy3ed852e2009-09-05 21:47:34 +000033901}
33902# Create a (secure) tmp directory for tmp files.
33903
33904{
33905 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
33906 test -n "$tmp" && test -d "$tmp"
33907} ||
33908{
33909 tmp=./conf$$-$RANDOM
33910 (umask 077 && mkdir "$tmp")
cristy8b350f62009-11-15 23:12:43 +000033911} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033912
33913# Set up the scripts for CONFIG_FILES section.
33914# No need to generate them if there are no CONFIG_FILES.
33915# This happens for instance with `./config.status config.h'.
33916if test -n "$CONFIG_FILES"; then
33917
33918
cristy8b350f62009-11-15 23:12:43 +000033919ac_cr=`echo X | tr X '\015'`
33920# On cygwin, bash can eat \r inside `` if the user requested igncr.
33921# But we know of no other shell where ac_cr would be empty at this
33922# point, so we can use a bashism as a fallback.
33923if test "x$ac_cr" = x; then
33924 eval ac_cr=\$\'\\r\'
33925fi
cristy3ed852e2009-09-05 21:47:34 +000033926ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
33927if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
cristy8b350f62009-11-15 23:12:43 +000033928 ac_cs_awk_cr='\r'
cristy3ed852e2009-09-05 21:47:34 +000033929else
33930 ac_cs_awk_cr=$ac_cr
33931fi
33932
33933echo 'BEGIN {' >"$tmp/subs1.awk" &&
33934_ACEOF
33935
33936
33937{
33938 echo "cat >conf$$subs.awk <<_ACEOF" &&
33939 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
33940 echo "_ACEOF"
33941} >conf$$subs.sh ||
cristy8b350f62009-11-15 23:12:43 +000033942 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033943ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
33944ac_delim='%!_!# '
33945for ac_last_try in false false false false false :; do
33946 . ./conf$$subs.sh ||
cristy8b350f62009-11-15 23:12:43 +000033947 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033948
33949 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
33950 if test $ac_delim_n = $ac_delim_num; then
33951 break
33952 elif $ac_last_try; then
cristy8b350f62009-11-15 23:12:43 +000033953 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033954 else
33955 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
33956 fi
33957done
33958rm -f conf$$subs.sh
33959
33960cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33961cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
33962_ACEOF
33963sed -n '
33964h
33965s/^/S["/; s/!.*/"]=/
33966p
33967g
33968s/^[^!]*!//
33969:repl
33970t repl
33971s/'"$ac_delim"'$//
33972t delim
33973:nl
33974h
cristycd4c5312009-11-22 01:19:08 +000033975s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000033976t more1
33977s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
33978p
33979n
33980b repl
33981:more1
33982s/["\\]/\\&/g; s/^/"/; s/$/"\\/
33983p
33984g
33985s/.\{148\}//
33986t nl
33987:delim
33988h
cristycd4c5312009-11-22 01:19:08 +000033989s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000033990t more2
33991s/["\\]/\\&/g; s/^/"/; s/$/"/
33992p
33993b
33994:more2
33995s/["\\]/\\&/g; s/^/"/; s/$/"\\/
33996p
33997g
33998s/.\{148\}//
33999t delim
34000' <conf$$subs.awk | sed '
34001/^[^""]/{
34002 N
34003 s/\n//
34004}
34005' >>$CONFIG_STATUS || ac_write_fail=1
34006rm -f conf$$subs.awk
34007cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34008_ACAWK
34009cat >>"\$tmp/subs1.awk" <<_ACAWK &&
34010 for (key in S) S_is_set[key] = 1
34011 FS = ""
34012
34013}
34014{
34015 line = $ 0
34016 nfields = split(line, field, "@")
34017 substed = 0
34018 len = length(field[1])
34019 for (i = 2; i < nfields; i++) {
34020 key = field[i]
34021 keylen = length(key)
34022 if (S_is_set[key]) {
34023 value = S[key]
34024 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
34025 len += length(value) + length(field[++i])
34026 substed = 1
34027 } else
34028 len += 1 + keylen
34029 }
34030
34031 print line
34032}
34033
34034_ACAWK
34035_ACEOF
34036cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34037if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
34038 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
34039else
34040 cat
34041fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
cristy8b350f62009-11-15 23:12:43 +000034042 || as_fn_error "could not setup config files machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034043_ACEOF
34044
34045# VPATH may cause trouble with some makes, so we remove $(srcdir),
34046# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
34047# trailing colons and then remove the whole line if VPATH becomes empty
34048# (actually we leave an empty line to preserve line numbers).
34049if test "x$srcdir" = x.; then
34050 ac_vpsub='/^[ ]*VPATH[ ]*=/{
34051s/:*\$(srcdir):*/:/
34052s/:*\${srcdir}:*/:/
34053s/:*@srcdir@:*/:/
34054s/^\([^=]*=[ ]*\):*/\1/
34055s/:*$//
34056s/^[^=]*=[ ]*$//
34057}'
34058fi
34059
34060cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34061fi # test -n "$CONFIG_FILES"
34062
34063# Set up the scripts for CONFIG_HEADERS section.
34064# No need to generate them if there are no CONFIG_HEADERS.
34065# This happens for instance with `./config.status Makefile'.
34066if test -n "$CONFIG_HEADERS"; then
34067cat >"$tmp/defines.awk" <<\_ACAWK ||
34068BEGIN {
34069_ACEOF
34070
34071# Transform confdefs.h into an awk script `defines.awk', embedded as
34072# here-document in config.status, that substitutes the proper values into
34073# config.h.in to produce config.h.
34074
34075# Create a delimiter string that does not exist in confdefs.h, to ease
34076# handling of long lines.
34077ac_delim='%!_!# '
34078for ac_last_try in false false :; do
34079 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
34080 if test -z "$ac_t"; then
34081 break
34082 elif $ac_last_try; then
cristy8b350f62009-11-15 23:12:43 +000034083 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034084 else
34085 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34086 fi
34087done
34088
34089# For the awk script, D is an array of macro values keyed by name,
34090# likewise P contains macro parameters if any. Preserve backslash
34091# newline sequences.
34092
34093ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
34094sed -n '
34095s/.\{148\}/&'"$ac_delim"'/g
34096t rset
34097:rset
34098s/^[ ]*#[ ]*define[ ][ ]*/ /
34099t def
34100d
34101:def
34102s/\\$//
34103t bsnl
34104s/["\\]/\\&/g
34105s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
34106D["\1"]=" \3"/p
34107s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
34108d
34109:bsnl
34110s/["\\]/\\&/g
34111s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
34112D["\1"]=" \3\\\\\\n"\\/p
34113t cont
34114s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
34115t cont
34116d
34117:cont
34118n
34119s/.\{148\}/&'"$ac_delim"'/g
34120t clear
34121:clear
34122s/\\$//
34123t bsnlc
34124s/["\\]/\\&/g; s/^/"/; s/$/"/p
34125d
34126:bsnlc
34127s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
34128b cont
34129' <confdefs.h | sed '
34130s/'"$ac_delim"'/"\\\
34131"/g' >>$CONFIG_STATUS || ac_write_fail=1
34132
34133cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34134 for (key in D) D_is_set[key] = 1
34135 FS = ""
34136}
34137/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
34138 line = \$ 0
34139 split(line, arg, " ")
34140 if (arg[1] == "#") {
34141 defundef = arg[2]
34142 mac1 = arg[3]
34143 } else {
34144 defundef = substr(arg[1], 2)
34145 mac1 = arg[2]
34146 }
34147 split(mac1, mac2, "(") #)
34148 macro = mac2[1]
34149 prefix = substr(line, 1, index(line, defundef) - 1)
34150 if (D_is_set[macro]) {
34151 # Preserve the white space surrounding the "#".
34152 print prefix "define", macro P[macro] D[macro]
34153 next
34154 } else {
34155 # Replace #undef with comments. This is necessary, for example,
34156 # in the case of _POSIX_SOURCE, which is predefined and required
34157 # on some systems where configure will not decide to define it.
34158 if (defundef == "undef") {
34159 print "/*", prefix defundef, macro, "*/"
34160 next
34161 }
34162 }
34163}
34164{ print }
34165_ACAWK
34166_ACEOF
34167cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cristy8b350f62009-11-15 23:12:43 +000034168 as_fn_error "could not setup config headers machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034169fi # test -n "$CONFIG_HEADERS"
34170
34171
34172eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
34173shift
34174for ac_tag
34175do
34176 case $ac_tag in
34177 :[FHLC]) ac_mode=$ac_tag; continue;;
34178 esac
34179 case $ac_mode$ac_tag in
34180 :[FHL]*:*);;
cristy8b350f62009-11-15 23:12:43 +000034181 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000034182 :[FH]-) ac_tag=-:-;;
34183 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
34184 esac
34185 ac_save_IFS=$IFS
34186 IFS=:
34187 set x $ac_tag
34188 IFS=$ac_save_IFS
34189 shift
34190 ac_file=$1
34191 shift
34192
34193 case $ac_mode in
34194 :L) ac_source=$1;;
34195 :[FH])
34196 ac_file_inputs=
34197 for ac_f
34198 do
34199 case $ac_f in
34200 -) ac_f="$tmp/stdin";;
34201 *) # Look for the file first in the build tree, then in the source tree
34202 # (if the path is not absolute). The absolute path cannot be DOS-style,
34203 # because $ac_f cannot contain `:'.
34204 test -f "$ac_f" ||
34205 case $ac_f in
34206 [\\/$]*) false;;
34207 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
34208 esac ||
cristy8b350f62009-11-15 23:12:43 +000034209 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000034210 esac
34211 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
cristy8b350f62009-11-15 23:12:43 +000034212 as_fn_append ac_file_inputs " '$ac_f'"
cristy3ed852e2009-09-05 21:47:34 +000034213 done
34214
34215 # Let's still pretend it is `configure' which instantiates (i.e., don't
34216 # use $as_me), people would be surprised to read:
34217 # /* config.h. Generated by config.status. */
34218 configure_input='Generated from '`
34219 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
34220 `' by configure.'
34221 if test x"$ac_file" != x-; then
34222 configure_input="$ac_file. $configure_input"
cristy8b350f62009-11-15 23:12:43 +000034223 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000034224$as_echo "$as_me: creating $ac_file" >&6;}
34225 fi
34226 # Neutralize special characters interpreted by sed in replacement strings.
34227 case $configure_input in #(
34228 *\&* | *\|* | *\\* )
34229 ac_sed_conf_input=`$as_echo "$configure_input" |
34230 sed 's/[\\\\&|]/\\\\&/g'`;; #(
34231 *) ac_sed_conf_input=$configure_input;;
34232 esac
34233
34234 case $ac_tag in
34235 *:-:* | *:-) cat >"$tmp/stdin" \
cristy8b350f62009-11-15 23:12:43 +000034236 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000034237 esac
34238 ;;
34239 esac
34240
34241 ac_dir=`$as_dirname -- "$ac_file" ||
34242$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34243 X"$ac_file" : 'X\(//\)[^/]' \| \
34244 X"$ac_file" : 'X\(//\)$' \| \
34245 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
34246$as_echo X"$ac_file" |
34247 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34248 s//\1/
34249 q
34250 }
34251 /^X\(\/\/\)[^/].*/{
34252 s//\1/
34253 q
34254 }
34255 /^X\(\/\/\)$/{
34256 s//\1/
34257 q
34258 }
34259 /^X\(\/\).*/{
34260 s//\1/
34261 q
34262 }
34263 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000034264 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000034265 ac_builddir=.
34266
34267case "$ac_dir" in
34268.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
34269*)
34270 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
34271 # A ".." for each directory in $ac_dir_suffix.
34272 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
34273 case $ac_top_builddir_sub in
34274 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
34275 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
34276 esac ;;
34277esac
34278ac_abs_top_builddir=$ac_pwd
34279ac_abs_builddir=$ac_pwd$ac_dir_suffix
34280# for backward compatibility:
34281ac_top_builddir=$ac_top_build_prefix
34282
34283case $srcdir in
34284 .) # We are building in place.
34285 ac_srcdir=.
34286 ac_top_srcdir=$ac_top_builddir_sub
34287 ac_abs_top_srcdir=$ac_pwd ;;
34288 [\\/]* | ?:[\\/]* ) # Absolute name.
34289 ac_srcdir=$srcdir$ac_dir_suffix;
34290 ac_top_srcdir=$srcdir
34291 ac_abs_top_srcdir=$srcdir ;;
34292 *) # Relative name.
34293 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
34294 ac_top_srcdir=$ac_top_build_prefix$srcdir
34295 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
34296esac
34297ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
34298
34299
34300 case $ac_mode in
34301 :F)
34302 #
34303 # CONFIG_FILE
34304 #
34305
34306 case $INSTALL in
34307 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
34308 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
34309 esac
34310 ac_MKDIR_P=$MKDIR_P
34311 case $MKDIR_P in
34312 [\\/$]* | ?:[\\/]* ) ;;
34313 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
34314 esac
34315_ACEOF
34316
34317cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34318# If the template does not know about datarootdir, expand it.
34319# FIXME: This hack should be removed a few years after 2.60.
34320ac_datarootdir_hack=; ac_datarootdir_seen=
cristy3ed852e2009-09-05 21:47:34 +000034321ac_sed_dataroot='
34322/datarootdir/ {
34323 p
34324 q
34325}
34326/@datadir@/p
34327/@docdir@/p
34328/@infodir@/p
34329/@localedir@/p
cristy8b350f62009-11-15 23:12:43 +000034330/@mandir@/p'
cristy3ed852e2009-09-05 21:47:34 +000034331case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
34332*datarootdir*) ac_datarootdir_seen=yes;;
34333*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
cristy8b350f62009-11-15 23:12:43 +000034334 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
cristy3ed852e2009-09-05 21:47:34 +000034335$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
34336_ACEOF
34337cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34338 ac_datarootdir_hack='
34339 s&@datadir@&$datadir&g
34340 s&@docdir@&$docdir&g
34341 s&@infodir@&$infodir&g
34342 s&@localedir@&$localedir&g
34343 s&@mandir@&$mandir&g
cristy8b350f62009-11-15 23:12:43 +000034344 s&\\\${datarootdir}&$datarootdir&g' ;;
cristy3ed852e2009-09-05 21:47:34 +000034345esac
34346_ACEOF
34347
34348# Neutralize VPATH when `$srcdir' = `.'.
34349# Shell code in configure.ac might set extrasub.
34350# FIXME: do we really want to maintain this feature?
34351cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34352ac_sed_extra="$ac_vpsub
34353$extrasub
34354_ACEOF
34355cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34356:t
34357/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34358s|@configure_input@|$ac_sed_conf_input|;t t
34359s&@top_builddir@&$ac_top_builddir_sub&;t t
34360s&@top_build_prefix@&$ac_top_build_prefix&;t t
34361s&@srcdir@&$ac_srcdir&;t t
34362s&@abs_srcdir@&$ac_abs_srcdir&;t t
34363s&@top_srcdir@&$ac_top_srcdir&;t t
34364s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
34365s&@builddir@&$ac_builddir&;t t
34366s&@abs_builddir@&$ac_abs_builddir&;t t
34367s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
34368s&@INSTALL@&$ac_INSTALL&;t t
34369s&@MKDIR_P@&$ac_MKDIR_P&;t t
34370$ac_datarootdir_hack
34371"
34372eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
cristy8b350f62009-11-15 23:12:43 +000034373 || as_fn_error "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034374
34375test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
34376 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
34377 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
cristy8b350f62009-11-15 23:12:43 +000034378 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy3ed852e2009-09-05 21:47:34 +000034379which seems to be undefined. Please make sure it is defined." >&5
34380$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34381which seems to be undefined. Please make sure it is defined." >&2;}
34382
34383 rm -f "$tmp/stdin"
34384 case $ac_file in
34385 -) cat "$tmp/out" && rm -f "$tmp/out";;
34386 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
34387 esac \
cristy8b350f62009-11-15 23:12:43 +000034388 || as_fn_error "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034389 ;;
34390 :H)
34391 #
34392 # CONFIG_HEADER
34393 #
34394 if test x"$ac_file" != x-; then
34395 {
34396 $as_echo "/* $configure_input */" \
34397 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
34398 } >"$tmp/config.h" \
cristy8b350f62009-11-15 23:12:43 +000034399 || as_fn_error "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034400 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
cristy8b350f62009-11-15 23:12:43 +000034401 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000034402$as_echo "$as_me: $ac_file is unchanged" >&6;}
34403 else
34404 rm -f "$ac_file"
34405 mv "$tmp/config.h" "$ac_file" \
cristy8b350f62009-11-15 23:12:43 +000034406 || as_fn_error "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034407 fi
34408 else
34409 $as_echo "/* $configure_input */" \
34410 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
cristy8b350f62009-11-15 23:12:43 +000034411 || as_fn_error "could not create -" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034412 fi
34413# Compute "$ac_file"'s index in $config_headers.
34414_am_arg="$ac_file"
34415_am_stamp_count=1
34416for _am_header in $config_headers :; do
34417 case $_am_header in
34418 $_am_arg | $_am_arg:* )
34419 break ;;
34420 * )
34421 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
34422 esac
34423done
34424echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
34425$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34426 X"$_am_arg" : 'X\(//\)[^/]' \| \
34427 X"$_am_arg" : 'X\(//\)$' \| \
34428 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
34429$as_echo X"$_am_arg" |
34430 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34431 s//\1/
34432 q
34433 }
34434 /^X\(\/\/\)[^/].*/{
34435 s//\1/
34436 q
34437 }
34438 /^X\(\/\/\)$/{
34439 s//\1/
34440 q
34441 }
34442 /^X\(\/\).*/{
34443 s//\1/
34444 q
34445 }
34446 s/.*/./; q'`/stamp-h$_am_stamp_count
34447 ;;
34448
cristy8b350f62009-11-15 23:12:43 +000034449 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
cristy3ed852e2009-09-05 21:47:34 +000034450$as_echo "$as_me: executing $ac_file commands" >&6;}
34451 ;;
34452 esac
34453
34454
34455 case $ac_file$ac_mode in
34456 "magick/magick-config.h":C) ac_prefix_conf_OUT=`echo magick/magick-config.h`
34457ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
34458ac_prefix_conf_PKG=`echo MagickCore`
34459ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
34460ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
34461ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
34462if test ".$ac_prefix_conf_INP" = "."; then
34463 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
34464 case "$ac_file" in
34465 *.h) ac_prefix_conf_INP=$ac_file ;;
34466 *)
34467 esac
34468 test ".$ac_prefix_conf_INP" != "." && break
34469 done
34470fi
34471if test ".$ac_prefix_conf_INP" = "."; then
34472 case "$ac_prefix_conf_OUT" in
34473 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
34474 ;;
34475 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
34476 ;;
34477 *) ac_prefix_conf_INP=config.h
34478 ;;
34479 esac
34480fi
34481if test -z "$ac_prefix_conf_PKG" ; then
cristy8b350f62009-11-15 23:12:43 +000034482 as_fn_error "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034483else
34484 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
34485 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
34486 fi fi
cristy8b350f62009-11-15 23:12:43 +000034487 { $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 +000034488$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
34489 if test -f $ac_prefix_conf_INP ; then
34490 echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
34491 echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
cristy964cb7f2010-04-25 23:18:00 +000034492 echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix
34493 echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix
cristy3ed852e2009-09-05 21:47:34 +000034494 echo "#endif/" >>conftest.prefix
cristy964cb7f2010-04-25 23:18:00 +000034495 echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix
34496 echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix
cristy3ed852e2009-09-05 21:47:34 +000034497 echo "#endif/" >> conftest.prefix
34498 # now executing _script on _DEF input to create _OUT output file
34499 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
34500 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
34501 echo ' ' >>$tmp/pconfig.h
34502 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
34503
34504 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
34505 echo ' ' >>$tmp/pconfig.h
34506 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
34507 echo "#endif" >>$tmp/pconfig.h
34508 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000034509 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000034510$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
34511 else
34512 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
34513$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34514 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
34515 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
34516 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
34517$as_echo X"$ac_prefix_conf_OUT" |
34518 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34519 s//\1/
34520 q
34521 }
34522 /^X\(\/\/\)[^/].*/{
34523 s//\1/
34524 q
34525 }
34526 /^X\(\/\/\)$/{
34527 s//\1/
34528 q
34529 }
34530 /^X\(\/\).*/{
34531 s//\1/
34532 q
34533 }
34534 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000034535 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000034536 rm -f "$ac_prefix_conf_OUT"
34537 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
34538 fi
34539 cp conftest.prefix _configs.sed
34540 else
cristy8b350f62009-11-15 23:12:43 +000034541 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 +000034542 fi
34543 rm -f conftest.*
34544fi
34545 ;;
34546 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
34547 # Autoconf 2.62 quotes --file arguments for eval, but not when files
34548 # are listed without --file. Let's play safe and only enable the eval
34549 # if we detect the quoting.
34550 case $CONFIG_FILES in
34551 *\'*) eval set x "$CONFIG_FILES" ;;
34552 *) set x $CONFIG_FILES ;;
34553 esac
34554 shift
34555 for mf
34556 do
34557 # Strip MF so we end up with the name of the file.
34558 mf=`echo "$mf" | sed -e 's/:.*$//'`
34559 # Check whether this is an Automake generated Makefile or not.
34560 # We used to match only the files named `Makefile.in', but
34561 # some people rename them; so instead we look at the file content.
34562 # Grep'ing the first line is not enough: some people post-process
34563 # each Makefile.in and add a new line on top of each file to say so.
34564 # Grep'ing the whole file is not good either: AIX grep has a line
34565 # limit of 2048, but all sed's we know have understand at least 4000.
34566 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
34567 dirpart=`$as_dirname -- "$mf" ||
34568$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34569 X"$mf" : 'X\(//\)[^/]' \| \
34570 X"$mf" : 'X\(//\)$' \| \
34571 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
34572$as_echo X"$mf" |
34573 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34574 s//\1/
34575 q
34576 }
34577 /^X\(\/\/\)[^/].*/{
34578 s//\1/
34579 q
34580 }
34581 /^X\(\/\/\)$/{
34582 s//\1/
34583 q
34584 }
34585 /^X\(\/\).*/{
34586 s//\1/
34587 q
34588 }
34589 s/.*/./; q'`
34590 else
34591 continue
34592 fi
34593 # Extract the definition of DEPDIR, am__include, and am__quote
34594 # from the Makefile without running `make'.
34595 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
34596 test -z "$DEPDIR" && continue
34597 am__include=`sed -n 's/^am__include = //p' < "$mf"`
34598 test -z "am__include" && continue
34599 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
34600 # When using ansi2knr, U may be empty or an underscore; expand it
34601 U=`sed -n 's/^U = //p' < "$mf"`
34602 # Find all dependency output files, they are included files with
34603 # $(DEPDIR) in their names. We invoke sed twice because it is the
34604 # simplest approach to changing $(DEPDIR) to its actual value in the
34605 # expansion.
34606 for file in `sed -n "
34607 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
34608 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
34609 # Make sure the directory exists.
34610 test -f "$dirpart/$file" && continue
34611 fdir=`$as_dirname -- "$file" ||
34612$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34613 X"$file" : 'X\(//\)[^/]' \| \
34614 X"$file" : 'X\(//\)$' \| \
34615 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
34616$as_echo X"$file" |
34617 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34618 s//\1/
34619 q
34620 }
34621 /^X\(\/\/\)[^/].*/{
34622 s//\1/
34623 q
34624 }
34625 /^X\(\/\/\)$/{
34626 s//\1/
34627 q
34628 }
34629 /^X\(\/\).*/{
34630 s//\1/
34631 q
34632 }
34633 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000034634 as_dir=$dirpart/$fdir; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000034635 # echo "creating $dirpart/$file"
34636 echo '# dummy' > "$dirpart/$file"
34637 done
34638 done
34639}
34640 ;;
34641 "libtool":C)
34642
34643 # See if we are running on zsh, and set the options which allow our
34644 # commands through without removal of \ escapes.
34645 if test -n "${ZSH_VERSION+set}" ; then
34646 setopt NO_GLOB_SUBST
34647 fi
34648
34649 cfgfile="${ofile}T"
34650 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
34651 $RM "$cfgfile"
34652
34653 cat <<_LT_EOF >> "$cfgfile"
34654#! $SHELL
34655
34656# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
34657# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
34658# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
34659# NOTE: Changes made to this file will be lost: look at ltmain.sh.
34660#
34661# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
cristy18304f92009-11-22 15:48:26 +000034662# 2006, 2007, 2008 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +000034663# Written by Gordon Matzigkeit, 1996
34664#
34665# This file is part of GNU Libtool.
34666#
34667# GNU Libtool is free software; you can redistribute it and/or
34668# modify it under the terms of the GNU General Public License as
34669# published by the Free Software Foundation; either version 2 of
34670# the License, or (at your option) any later version.
34671#
34672# As a special exception to the GNU General Public License,
34673# if you distribute this file as part of a program or library that
34674# is built using GNU Libtool, you may include this file under the
34675# same distribution terms that you use for the rest of that program.
34676#
34677# GNU Libtool is distributed in the hope that it will be useful,
34678# but WITHOUT ANY WARRANTY; without even the implied warranty of
34679# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
34680# GNU General Public License for more details.
34681#
34682# You should have received a copy of the GNU General Public License
34683# along with GNU Libtool; see the file COPYING. If not, a copy
34684# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
34685# obtained by writing to the Free Software Foundation, Inc.,
34686# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
34687
34688
34689# The names of the tagged configurations supported by this script.
34690available_tags="CXX "
34691
34692# ### BEGIN LIBTOOL CONFIG
34693
34694# A sed program that does not truncate output.
34695SED=$lt_SED
34696
34697# Sed that helps us avoid accidentally triggering echo(1) options like -n.
34698Xsed="\$SED -e 1s/^X//"
34699
34700# A grep program that handles long lines.
34701GREP=$lt_GREP
34702
34703# An ERE matcher.
34704EGREP=$lt_EGREP
34705
34706# A literal string matcher.
34707FGREP=$lt_FGREP
34708
34709# Which release of libtool.m4 was used?
34710macro_version=$macro_version
34711macro_revision=$macro_revision
34712
34713# Assembler program.
cristy18304f92009-11-22 15:48:26 +000034714AS=$AS
cristy3ed852e2009-09-05 21:47:34 +000034715
34716# DLL creation program.
cristy18304f92009-11-22 15:48:26 +000034717DLLTOOL=$DLLTOOL
cristy3ed852e2009-09-05 21:47:34 +000034718
34719# Object dumper program.
cristy18304f92009-11-22 15:48:26 +000034720OBJDUMP=$OBJDUMP
cristy3ed852e2009-09-05 21:47:34 +000034721
34722# Whether or not to build shared libraries.
34723build_libtool_libs=$enable_shared
34724
34725# Whether or not to build static libraries.
34726build_old_libs=$enable_static
34727
34728# What type of objects to build.
34729pic_mode=$pic_mode
34730
34731# Whether or not to optimize for fast installation.
34732fast_install=$enable_fast_install
34733
34734# The host system.
34735host_alias=$host_alias
34736host=$host
34737host_os=$host_os
34738
34739# The build system.
34740build_alias=$build_alias
34741build=$build
34742build_os=$build_os
34743
34744# A BSD- or MS-compatible name lister.
34745NM=$lt_NM
34746
34747# Whether we need soft or hard links.
34748LN_S=$lt_LN_S
34749
34750# What is the maximum length of a command?
34751max_cmd_len=$max_cmd_len
34752
34753# Object file suffix (normally "o").
34754objext=$ac_objext
34755
34756# Executable file suffix (normally "").
34757exeext=$exeext
34758
34759# whether the shell understands "unset".
34760lt_unset=$lt_unset
34761
34762# turn spaces into newlines.
34763SP2NL=$lt_lt_SP2NL
34764
34765# turn newlines into spaces.
34766NL2SP=$lt_lt_NL2SP
34767
cristy18304f92009-11-22 15:48:26 +000034768# How to create reloadable object files.
34769reload_flag=$lt_reload_flag
34770reload_cmds=$lt_reload_cmds
34771
cristy3ed852e2009-09-05 21:47:34 +000034772# Method to check whether dependent libraries are shared objects.
34773deplibs_check_method=$lt_deplibs_check_method
34774
34775# Command to use when deplibs_check_method == "file_magic".
34776file_magic_cmd=$lt_file_magic_cmd
34777
34778# The archiver.
34779AR=$lt_AR
34780AR_FLAGS=$lt_AR_FLAGS
34781
34782# A symbol stripping program.
34783STRIP=$lt_STRIP
34784
34785# Commands used to install an old-style archive.
34786RANLIB=$lt_RANLIB
34787old_postinstall_cmds=$lt_old_postinstall_cmds
34788old_postuninstall_cmds=$lt_old_postuninstall_cmds
34789
34790# A C compiler.
34791LTCC=$lt_CC
34792
34793# LTCC compiler flags.
34794LTCFLAGS=$lt_CFLAGS
34795
34796# Take the output of nm and produce a listing of raw symbols and C names.
34797global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
34798
34799# Transform the output of nm in a proper C declaration.
34800global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
34801
34802# Transform the output of nm in a C name address pair.
34803global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
34804
34805# Transform the output of nm in a C name address pair when lib prefix is needed.
34806global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
34807
34808# The name of the directory that contains temporary libtool files.
34809objdir=$objdir
34810
cristy18304f92009-11-22 15:48:26 +000034811# Shell to use when invoking shell scripts.
34812SHELL=$lt_SHELL
34813
34814# An echo program that does not interpret backslashes.
34815ECHO=$lt_ECHO
34816
cristy3ed852e2009-09-05 21:47:34 +000034817# Used to examine libraries when file_magic_cmd begins with "file".
34818MAGIC_CMD=$MAGIC_CMD
34819
34820# Must we lock files when doing compilation?
34821need_locks=$lt_need_locks
34822
34823# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
34824DSYMUTIL=$lt_DSYMUTIL
34825
34826# Tool to change global to local symbols on Mac OS X.
34827NMEDIT=$lt_NMEDIT
34828
34829# Tool to manipulate fat objects and archives on Mac OS X.
34830LIPO=$lt_LIPO
34831
34832# ldd/readelf like tool for Mach-O binaries on Mac OS X.
34833OTOOL=$lt_OTOOL
34834
34835# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
34836OTOOL64=$lt_OTOOL64
34837
34838# Old archive suffix (normally "a").
34839libext=$libext
34840
34841# Shared library suffix (normally ".so").
34842shrext_cmds=$lt_shrext_cmds
34843
34844# The commands to extract the exported symbol list from a shared archive.
34845extract_expsyms_cmds=$lt_extract_expsyms_cmds
34846
34847# Variables whose values should be saved in libtool wrapper scripts and
34848# restored at link time.
34849variables_saved_for_relink=$lt_variables_saved_for_relink
34850
34851# Do we need the "lib" prefix for modules?
34852need_lib_prefix=$need_lib_prefix
34853
34854# Do we need a version for libraries?
34855need_version=$need_version
34856
34857# Library versioning type.
34858version_type=$version_type
34859
34860# Shared library runtime path variable.
34861runpath_var=$runpath_var
34862
34863# Shared library path variable.
34864shlibpath_var=$shlibpath_var
34865
34866# Is shlibpath searched before the hard-coded library search path?
34867shlibpath_overrides_runpath=$shlibpath_overrides_runpath
34868
34869# Format of library name prefix.
34870libname_spec=$lt_libname_spec
34871
34872# List of archive names. First name is the real one, the rest are links.
34873# The last name is the one that the linker finds with -lNAME
34874library_names_spec=$lt_library_names_spec
34875
34876# The coded name of the library, if different from the real name.
34877soname_spec=$lt_soname_spec
34878
34879# Command to use after installation of a shared archive.
34880postinstall_cmds=$lt_postinstall_cmds
34881
34882# Command to use after uninstallation of a shared archive.
34883postuninstall_cmds=$lt_postuninstall_cmds
34884
34885# Commands used to finish a libtool library installation in a directory.
34886finish_cmds=$lt_finish_cmds
34887
34888# As "finish_cmds", except a single script fragment to be evaled but
34889# not shown.
34890finish_eval=$lt_finish_eval
34891
34892# Whether we should hardcode library paths into libraries.
34893hardcode_into_libs=$hardcode_into_libs
34894
34895# Compile-time system search path for libraries.
34896sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
34897
34898# Run-time system search path for libraries.
34899sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
34900
34901# Whether dlopen is supported.
34902dlopen_support=$enable_dlopen
34903
34904# Whether dlopen of programs is supported.
34905dlopen_self=$enable_dlopen_self
34906
34907# Whether dlopen of statically linked programs is supported.
34908dlopen_self_static=$enable_dlopen_self_static
34909
34910# Commands to strip libraries.
34911old_striplib=$lt_old_striplib
34912striplib=$lt_striplib
34913
34914
34915# The linker used to build libraries.
34916LD=$lt_LD
34917
34918# Commands used to build an old-style archive.
34919old_archive_cmds=$lt_old_archive_cmds
34920
34921# A language specific compiler.
34922CC=$lt_compiler
34923
34924# Is the compiler the GNU compiler?
34925with_gcc=$GCC
34926
34927# Compiler flag to turn off builtin functions.
34928no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
34929
34930# How to pass a linker flag through the compiler.
34931wl=$lt_lt_prog_compiler_wl
34932
34933# Additional compiler flags for building library objects.
34934pic_flag=$lt_lt_prog_compiler_pic
34935
34936# Compiler flag to prevent dynamic linking.
34937link_static_flag=$lt_lt_prog_compiler_static
34938
34939# Does compiler simultaneously support -c and -o options?
34940compiler_c_o=$lt_lt_cv_prog_compiler_c_o
34941
34942# Whether or not to add -lc for building shared libraries.
34943build_libtool_need_lc=$archive_cmds_need_lc
34944
34945# Whether or not to disallow shared libs when runtime libs are static.
34946allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
34947
34948# Compiler flag to allow reflexive dlopens.
34949export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
34950
34951# Compiler flag to generate shared objects directly from archives.
34952whole_archive_flag_spec=$lt_whole_archive_flag_spec
34953
34954# Whether the compiler copes with passing no objects directly.
34955compiler_needs_object=$lt_compiler_needs_object
34956
34957# Create an old-style archive from a shared archive.
34958old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
34959
34960# Create a temporary old-style archive to link instead of a shared archive.
34961old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
34962
34963# Commands used to build a shared archive.
34964archive_cmds=$lt_archive_cmds
34965archive_expsym_cmds=$lt_archive_expsym_cmds
34966
34967# Commands used to build a loadable module if different from building
34968# a shared archive.
34969module_cmds=$lt_module_cmds
34970module_expsym_cmds=$lt_module_expsym_cmds
34971
34972# Whether we are building with GNU ld or not.
34973with_gnu_ld=$lt_with_gnu_ld
34974
34975# Flag that allows shared libraries with undefined symbols to be built.
34976allow_undefined_flag=$lt_allow_undefined_flag
34977
34978# Flag that enforces no undefined symbols.
34979no_undefined_flag=$lt_no_undefined_flag
34980
34981# Flag to hardcode \$libdir into a binary during linking.
34982# This must work even if \$libdir does not exist
34983hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
34984
34985# If ld is used when linking, flag to hardcode \$libdir into a binary
34986# during linking. This must work even if \$libdir does not exist.
34987hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
34988
34989# Whether we need a single "-rpath" flag with a separated argument.
34990hardcode_libdir_separator=$lt_hardcode_libdir_separator
34991
34992# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
34993# DIR into the resulting binary.
34994hardcode_direct=$hardcode_direct
34995
34996# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
34997# DIR into the resulting binary and the resulting library dependency is
34998# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
34999# library is relocated.
35000hardcode_direct_absolute=$hardcode_direct_absolute
35001
35002# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
35003# into the resulting binary.
35004hardcode_minus_L=$hardcode_minus_L
35005
35006# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
35007# into the resulting binary.
35008hardcode_shlibpath_var=$hardcode_shlibpath_var
35009
35010# Set to "yes" if building a shared library automatically hardcodes DIR
35011# into the library and all subsequent libraries and executables linked
35012# against it.
35013hardcode_automatic=$hardcode_automatic
35014
35015# Set to yes if linker adds runtime paths of dependent libraries
35016# to runtime path list.
35017inherit_rpath=$inherit_rpath
35018
35019# Whether libtool must link a program against all its dependency libraries.
35020link_all_deplibs=$link_all_deplibs
35021
35022# Fix the shell variable \$srcfile for the compiler.
35023fix_srcfile_path=$lt_fix_srcfile_path
35024
35025# Set to "yes" if exported symbols are required.
35026always_export_symbols=$always_export_symbols
35027
35028# The commands to list exported symbols.
35029export_symbols_cmds=$lt_export_symbols_cmds
35030
35031# Symbols that should not be listed in the preloaded symbols.
35032exclude_expsyms=$lt_exclude_expsyms
35033
35034# Symbols that must always be exported.
35035include_expsyms=$lt_include_expsyms
35036
35037# Commands necessary for linking programs (against libraries) with templates.
35038prelink_cmds=$lt_prelink_cmds
35039
35040# Specify filename containing input files.
35041file_list_spec=$lt_file_list_spec
35042
35043# How to hardcode a shared library path into an executable.
35044hardcode_action=$hardcode_action
35045
35046# The directories searched by this compiler when creating a shared library.
35047compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
35048
35049# Dependencies to place before and after the objects being linked to
35050# create a shared library.
35051predep_objects=$lt_predep_objects
35052postdep_objects=$lt_postdep_objects
35053predeps=$lt_predeps
35054postdeps=$lt_postdeps
35055
35056# The library search path used internally by the compiler when linking
35057# a shared library.
35058compiler_lib_search_path=$lt_compiler_lib_search_path
35059
35060# ### END LIBTOOL CONFIG
35061
35062_LT_EOF
35063
35064 case $host_os in
35065 aix3*)
35066 cat <<\_LT_EOF >> "$cfgfile"
35067# AIX sometimes has problems with the GCC collect2 program. For some
35068# reason, if we set the COLLECT_NAMES environment variable, the problems
35069# vanish in a puff of smoke.
35070if test "X${COLLECT_NAMES+set}" != Xset; then
35071 COLLECT_NAMES=
35072 export COLLECT_NAMES
35073fi
35074_LT_EOF
35075 ;;
35076 esac
35077
35078
35079ltmain="$ac_aux_dir/ltmain.sh"
35080
35081
35082 # We use sed instead of cat because bash on DJGPP gets confused if
35083 # if finds mixed CR/LF and LF-only lines. Since sed operates in
35084 # text mode, it properly converts lines to CR/LF. This bash problem
35085 # is reportedly fixed, but why not run on old versions too?
35086 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
35087 || (rm -f "$cfgfile"; exit 1)
35088
35089 case $xsi_shell in
35090 yes)
35091 cat << \_LT_EOF >> "$cfgfile"
35092
35093# func_dirname file append nondir_replacement
35094# Compute the dirname of FILE. If nonempty, add APPEND to the result,
35095# otherwise set result to NONDIR_REPLACEMENT.
35096func_dirname ()
35097{
35098 case ${1} in
35099 */*) func_dirname_result="${1%/*}${2}" ;;
35100 * ) func_dirname_result="${3}" ;;
35101 esac
35102}
35103
35104# func_basename file
35105func_basename ()
35106{
35107 func_basename_result="${1##*/}"
35108}
35109
35110# func_dirname_and_basename file append nondir_replacement
35111# perform func_basename and func_dirname in a single function
35112# call:
35113# dirname: Compute the dirname of FILE. If nonempty,
35114# add APPEND to the result, otherwise set result
35115# to NONDIR_REPLACEMENT.
35116# value returned in "$func_dirname_result"
35117# basename: Compute filename of FILE.
35118# value retuned in "$func_basename_result"
35119# Implementation must be kept synchronized with func_dirname
35120# and func_basename. For efficiency, we do not delegate to
35121# those functions but instead duplicate the functionality here.
35122func_dirname_and_basename ()
35123{
35124 case ${1} in
35125 */*) func_dirname_result="${1%/*}${2}" ;;
35126 * ) func_dirname_result="${3}" ;;
35127 esac
35128 func_basename_result="${1##*/}"
35129}
35130
35131# func_stripname prefix suffix name
35132# strip PREFIX and SUFFIX off of NAME.
35133# PREFIX and SUFFIX must not contain globbing or regex special
35134# characters, hashes, percent signs, but SUFFIX may contain a leading
35135# dot (in which case that matches only a dot).
35136func_stripname ()
35137{
35138 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
35139 # positional parameters, so assign one to ordinary parameter first.
35140 func_stripname_result=${3}
35141 func_stripname_result=${func_stripname_result#"${1}"}
35142 func_stripname_result=${func_stripname_result%"${2}"}
35143}
35144
35145# func_opt_split
35146func_opt_split ()
35147{
35148 func_opt_split_opt=${1%%=*}
35149 func_opt_split_arg=${1#*=}
35150}
35151
35152# func_lo2o object
35153func_lo2o ()
35154{
35155 case ${1} in
35156 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
35157 *) func_lo2o_result=${1} ;;
35158 esac
35159}
35160
35161# func_xform libobj-or-source
35162func_xform ()
35163{
35164 func_xform_result=${1%.*}.lo
35165}
35166
35167# func_arith arithmetic-term...
35168func_arith ()
35169{
35170 func_arith_result=$(( $* ))
35171}
35172
35173# func_len string
35174# STRING may not start with a hyphen.
35175func_len ()
35176{
35177 func_len_result=${#1}
35178}
35179
35180_LT_EOF
35181 ;;
35182 *) # Bourne compatible functions.
35183 cat << \_LT_EOF >> "$cfgfile"
35184
35185# func_dirname file append nondir_replacement
35186# Compute the dirname of FILE. If nonempty, add APPEND to the result,
35187# otherwise set result to NONDIR_REPLACEMENT.
35188func_dirname ()
35189{
35190 # Extract subdirectory from the argument.
cristy18304f92009-11-22 15:48:26 +000035191 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
cristy3ed852e2009-09-05 21:47:34 +000035192 if test "X$func_dirname_result" = "X${1}"; then
35193 func_dirname_result="${3}"
35194 else
35195 func_dirname_result="$func_dirname_result${2}"
35196 fi
35197}
35198
35199# func_basename file
35200func_basename ()
35201{
cristy18304f92009-11-22 15:48:26 +000035202 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
cristy3ed852e2009-09-05 21:47:34 +000035203}
35204
35205
35206# func_stripname prefix suffix name
35207# strip PREFIX and SUFFIX off of NAME.
35208# PREFIX and SUFFIX must not contain globbing or regex special
35209# characters, hashes, percent signs, but SUFFIX may contain a leading
35210# dot (in which case that matches only a dot).
35211# func_strip_suffix prefix name
35212func_stripname ()
35213{
35214 case ${2} in
cristy18304f92009-11-22 15:48:26 +000035215 .*) func_stripname_result=`$ECHO "X${3}" \
35216 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
35217 *) func_stripname_result=`$ECHO "X${3}" \
35218 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
cristy3ed852e2009-09-05 21:47:34 +000035219 esac
35220}
35221
35222# sed scripts:
35223my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
35224my_sed_long_arg='1s/^-[^=]*=//'
35225
35226# func_opt_split
35227func_opt_split ()
35228{
cristy18304f92009-11-22 15:48:26 +000035229 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
35230 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
cristy3ed852e2009-09-05 21:47:34 +000035231}
35232
35233# func_lo2o object
35234func_lo2o ()
35235{
cristy18304f92009-11-22 15:48:26 +000035236 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
cristy3ed852e2009-09-05 21:47:34 +000035237}
35238
35239# func_xform libobj-or-source
35240func_xform ()
35241{
cristy18304f92009-11-22 15:48:26 +000035242 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
cristy3ed852e2009-09-05 21:47:34 +000035243}
35244
35245# func_arith arithmetic-term...
35246func_arith ()
35247{
35248 func_arith_result=`expr "$@"`
35249}
35250
35251# func_len string
35252# STRING may not start with a hyphen.
35253func_len ()
35254{
35255 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
35256}
35257
35258_LT_EOF
35259esac
35260
35261case $lt_shell_append in
35262 yes)
35263 cat << \_LT_EOF >> "$cfgfile"
35264
35265# func_append var value
35266# Append VALUE to the end of shell variable VAR.
35267func_append ()
35268{
35269 eval "$1+=\$2"
35270}
35271_LT_EOF
35272 ;;
35273 *)
35274 cat << \_LT_EOF >> "$cfgfile"
35275
35276# func_append var value
35277# Append VALUE to the end of shell variable VAR.
35278func_append ()
35279{
35280 eval "$1=\$$1\$2"
35281}
35282
35283_LT_EOF
35284 ;;
35285 esac
35286
35287
35288 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
35289 || (rm -f "$cfgfile"; exit 1)
35290
35291 mv -f "$cfgfile" "$ofile" ||
35292 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
35293 chmod +x "$ofile"
35294
35295
35296 cat <<_LT_EOF >> "$ofile"
35297
35298# ### BEGIN LIBTOOL TAG CONFIG: CXX
35299
35300# The linker used to build libraries.
35301LD=$lt_LD_CXX
35302
35303# Commands used to build an old-style archive.
35304old_archive_cmds=$lt_old_archive_cmds_CXX
35305
35306# A language specific compiler.
35307CC=$lt_compiler_CXX
35308
35309# Is the compiler the GNU compiler?
35310with_gcc=$GCC_CXX
35311
35312# Compiler flag to turn off builtin functions.
35313no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
35314
35315# How to pass a linker flag through the compiler.
35316wl=$lt_lt_prog_compiler_wl_CXX
35317
35318# Additional compiler flags for building library objects.
35319pic_flag=$lt_lt_prog_compiler_pic_CXX
35320
35321# Compiler flag to prevent dynamic linking.
35322link_static_flag=$lt_lt_prog_compiler_static_CXX
35323
35324# Does compiler simultaneously support -c and -o options?
35325compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
35326
35327# Whether or not to add -lc for building shared libraries.
35328build_libtool_need_lc=$archive_cmds_need_lc_CXX
35329
35330# Whether or not to disallow shared libs when runtime libs are static.
35331allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
35332
35333# Compiler flag to allow reflexive dlopens.
35334export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
35335
35336# Compiler flag to generate shared objects directly from archives.
35337whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
35338
35339# Whether the compiler copes with passing no objects directly.
35340compiler_needs_object=$lt_compiler_needs_object_CXX
35341
35342# Create an old-style archive from a shared archive.
35343old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
35344
35345# Create a temporary old-style archive to link instead of a shared archive.
35346old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
35347
35348# Commands used to build a shared archive.
35349archive_cmds=$lt_archive_cmds_CXX
35350archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
35351
35352# Commands used to build a loadable module if different from building
35353# a shared archive.
35354module_cmds=$lt_module_cmds_CXX
35355module_expsym_cmds=$lt_module_expsym_cmds_CXX
35356
35357# Whether we are building with GNU ld or not.
35358with_gnu_ld=$lt_with_gnu_ld_CXX
35359
35360# Flag that allows shared libraries with undefined symbols to be built.
35361allow_undefined_flag=$lt_allow_undefined_flag_CXX
35362
35363# Flag that enforces no undefined symbols.
35364no_undefined_flag=$lt_no_undefined_flag_CXX
35365
35366# Flag to hardcode \$libdir into a binary during linking.
35367# This must work even if \$libdir does not exist
35368hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
35369
35370# If ld is used when linking, flag to hardcode \$libdir into a binary
35371# during linking. This must work even if \$libdir does not exist.
35372hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
35373
35374# Whether we need a single "-rpath" flag with a separated argument.
35375hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
35376
35377# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
35378# DIR into the resulting binary.
35379hardcode_direct=$hardcode_direct_CXX
35380
35381# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
35382# DIR into the resulting binary and the resulting library dependency is
35383# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
35384# library is relocated.
35385hardcode_direct_absolute=$hardcode_direct_absolute_CXX
35386
35387# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
35388# into the resulting binary.
35389hardcode_minus_L=$hardcode_minus_L_CXX
35390
35391# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
35392# into the resulting binary.
35393hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
35394
35395# Set to "yes" if building a shared library automatically hardcodes DIR
35396# into the library and all subsequent libraries and executables linked
35397# against it.
35398hardcode_automatic=$hardcode_automatic_CXX
35399
35400# Set to yes if linker adds runtime paths of dependent libraries
35401# to runtime path list.
35402inherit_rpath=$inherit_rpath_CXX
35403
35404# Whether libtool must link a program against all its dependency libraries.
35405link_all_deplibs=$link_all_deplibs_CXX
35406
35407# Fix the shell variable \$srcfile for the compiler.
35408fix_srcfile_path=$lt_fix_srcfile_path_CXX
35409
35410# Set to "yes" if exported symbols are required.
35411always_export_symbols=$always_export_symbols_CXX
35412
35413# The commands to list exported symbols.
35414export_symbols_cmds=$lt_export_symbols_cmds_CXX
35415
35416# Symbols that should not be listed in the preloaded symbols.
35417exclude_expsyms=$lt_exclude_expsyms_CXX
35418
35419# Symbols that must always be exported.
35420include_expsyms=$lt_include_expsyms_CXX
35421
35422# Commands necessary for linking programs (against libraries) with templates.
35423prelink_cmds=$lt_prelink_cmds_CXX
35424
35425# Specify filename containing input files.
35426file_list_spec=$lt_file_list_spec_CXX
35427
35428# How to hardcode a shared library path into an executable.
35429hardcode_action=$hardcode_action_CXX
35430
35431# The directories searched by this compiler when creating a shared library.
35432compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
35433
35434# Dependencies to place before and after the objects being linked to
35435# create a shared library.
35436predep_objects=$lt_predep_objects_CXX
35437postdep_objects=$lt_postdep_objects_CXX
35438predeps=$lt_predeps_CXX
35439postdeps=$lt_postdeps_CXX
35440
35441# The library search path used internally by the compiler when linking
35442# a shared library.
35443compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
35444
35445# ### END LIBTOOL TAG CONFIG: CXX
35446_LT_EOF
35447
35448 ;;
35449 "MagickCore-config.in":C) chmod +x magick/MagickCore-config ;;
35450 "Magick-config.in":C) chmod +x magick/Magick-config ;;
35451 "MagickWand-config.in":C) chmod +x wand/MagickWand-config ;;
35452 "Wand-config.in":C) chmod +x wand/Wand-config ;;
35453 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
35454 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
35455
35456 esac
35457done # for ac_tag
35458
35459
cristy8b350f62009-11-15 23:12:43 +000035460as_fn_exit 0
cristy3ed852e2009-09-05 21:47:34 +000035461_ACEOF
cristy3ed852e2009-09-05 21:47:34 +000035462ac_clean_files=$ac_clean_files_save
35463
35464test $ac_write_fail = 0 ||
cristy8b350f62009-11-15 23:12:43 +000035465 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000035466
35467
35468# configure is writing to config.log, and then calls config.status.
35469# config.status does its own redirection, appending to config.log.
35470# Unfortunately, on DOS this fails, as config.log is still kept open
35471# by configure, so config.status won't be able to write to it; its
35472# output is simply discarded. So we exec the FD to /dev/null,
35473# effectively closing config.log, so it can be properly (re)opened and
35474# appended to by config.status. When coming back to configure, we
35475# need to make the FD available again.
35476if test "$no_create" != yes; then
35477 ac_cs_success=:
35478 ac_config_status_args=
35479 test "$silent" = yes &&
35480 ac_config_status_args="$ac_config_status_args --quiet"
35481 exec 5>/dev/null
35482 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
35483 exec 5>>config.log
35484 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35485 # would make configure fail if this is the last instruction.
cristy8b350f62009-11-15 23:12:43 +000035486 $ac_cs_success || as_fn_exit $?
cristy3ed852e2009-09-05 21:47:34 +000035487fi
35488if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
cristy8b350f62009-11-15 23:12:43 +000035489 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
cristy3ed852e2009-09-05 21:47:34 +000035490$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
35491fi
35492
35493
35494rm -f magick-version
35495
cristy430a7312010-01-21 20:44:04 +000035496result_dejavu_font_dir='none'
35497if test "${dejavu_font_dir}x" != 'x'; then
35498 result_dejavu_font_dir=$dejavu_font_dir
35499fi
35500
cristy3ed852e2009-09-05 21:47:34 +000035501result_ghostscript_font_dir='none'
35502if test "${ghostscript_font_dir}x" != 'x'; then
35503 result_ghostscript_font_dir=$ghostscript_font_dir
35504fi
35505
35506result_windows_font_dir='none'
35507if test "${windows_font_dir}x" != 'x'; then
35508 result_windows_font_dir=${windows_font_dir}
35509fi
35510
cristy8b350f62009-11-15 23:12:43 +000035511{ $as_echo "$as_me:${as_lineno-$LINENO}: result:
cristy3ed852e2009-09-05 21:47:34 +000035512ImageMagick is configured as follows. Please verify that this configuration
35513matches your expectations.
35514
35515Host system type: $host
35516Build system type: $build
35517
35518 Option Value
35519-------------------------------------------------------------------------------
35520Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
35521Static libraries --enable-static=$enable_static $libtool_build_static_libs
35522Module support --with-modules=$with_modules $with_modules
35523GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
35524Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
35525High Dynamic Range Imagery
35526 --enable-hdri=$enable_hdri $enable_hdri
35527
35528Delegate Configuration:
35529BZLIB --with-bzlib=$with_bzlib $have_bzlib
35530Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000035531Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000035532DJVU --with-djvu=$with_djvu $have_djvu
35533DPS --with-dps=$with_dps $have_dps
35534FFTW --with-fftw=$with_fftw $have_fftw
35535FlashPIX --with-fpx=$with_fpx $have_fpx
35536FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
35537FreeType --with-freetype=$with_freetype $have_freetype
35538GhostPCL None $PCLDelegate ($PCLVersion)
35539GhostXPS None $XPSDelegate ($XPSVersion)
35540Ghostscript None $PSDelegate ($GSVersion)
35541Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
35542Ghostscript lib --with-gslib=$with_gslib $have_gslib
35543Graphviz --with-gvc=$with_gvc $have_gvc
35544JBIG --with-jbig=$with_jbig $have_jbig
35545JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
35546JPEG-2000 --with-jp2=$with_jp2 $have_jp2
35547LCMS --with-lcms=$with_lcms $have_lcms
35548LQR --with-lqr=$with_lqr $have_lqr
35549Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
35550OpenEXR --with-openexr=$with_openexr $have_openexr
35551PERL --with-perl=$with_perl $have_perl
35552PNG --with-png=$with_png $have_png
35553RSVG --with-rsvg=$with_rsvg $have_rsvg
35554TIFF --with-tiff=$with_tiff $have_tiff
35555Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
35556WMF --with-wmf=$with_wmf $have_wmf
35557X11 --with-x=$with_x $have_x
35558XML --with-xml=$with_xml $have_xml
35559ZLIB --with-zlib=$with_zlib $have_zlib
35560
35561X11 Configuration:
35562 X_CFLAGS = $X_CFLAGS
35563 X_PRE_LIBS = $X_PRE_LIBS
35564 X_LIBS = $X_LIBS
35565 X_EXTRA_LIBS = $X_EXTRA_LIBS
35566
35567Options used to compile and link:
35568 PREFIX = $PREFIX_DIR
35569 EXEC-PREFIX = $EXEC_PREFIX_DIR
35570 VERSION = $PACKAGE_VERSION
35571 CC = $CC
35572 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000035573 CPPFLAGS = $MAGICK_CPPFLAGS
35574 PCFLAGS = $MAGICK_PCFLAGS
35575 DEFS = $DEFS
35576 LDFLAGS = $LDFLAGS
35577 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
35578 LIBS = $MAGICK_LIBS
35579 CXX = $CXX
35580 CXXFLAGS = $CXXFLAGS
35581" >&5
35582$as_echo "
35583ImageMagick is configured as follows. Please verify that this configuration
35584matches your expectations.
35585
35586Host system type: $host
35587Build system type: $build
35588
35589 Option Value
35590-------------------------------------------------------------------------------
35591Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
35592Static libraries --enable-static=$enable_static $libtool_build_static_libs
35593Module support --with-modules=$with_modules $with_modules
35594GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
35595Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
35596High Dynamic Range Imagery
35597 --enable-hdri=$enable_hdri $enable_hdri
35598
35599Delegate Configuration:
35600BZLIB --with-bzlib=$with_bzlib $have_bzlib
35601Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000035602Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000035603DJVU --with-djvu=$with_djvu $have_djvu
35604DPS --with-dps=$with_dps $have_dps
35605FFTW --with-fftw=$with_fftw $have_fftw
35606FlashPIX --with-fpx=$with_fpx $have_fpx
35607FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
35608FreeType --with-freetype=$with_freetype $have_freetype
35609GhostPCL None $PCLDelegate ($PCLVersion)
35610GhostXPS None $XPSDelegate ($XPSVersion)
35611Ghostscript None $PSDelegate ($GSVersion)
35612Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
35613Ghostscript lib --with-gslib=$with_gslib $have_gslib
35614Graphviz --with-gvc=$with_gvc $have_gvc
35615JBIG --with-jbig=$with_jbig $have_jbig
35616JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
35617JPEG-2000 --with-jp2=$with_jp2 $have_jp2
35618LCMS --with-lcms=$with_lcms $have_lcms
35619LQR --with-lqr=$with_lqr $have_lqr
35620Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
35621OpenEXR --with-openexr=$with_openexr $have_openexr
35622PERL --with-perl=$with_perl $have_perl
35623PNG --with-png=$with_png $have_png
35624RSVG --with-rsvg=$with_rsvg $have_rsvg
35625TIFF --with-tiff=$with_tiff $have_tiff
35626Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
35627WMF --with-wmf=$with_wmf $have_wmf
35628X11 --with-x=$with_x $have_x
35629XML --with-xml=$with_xml $have_xml
35630ZLIB --with-zlib=$with_zlib $have_zlib
35631
35632X11 Configuration:
35633 X_CFLAGS = $X_CFLAGS
35634 X_PRE_LIBS = $X_PRE_LIBS
35635 X_LIBS = $X_LIBS
35636 X_EXTRA_LIBS = $X_EXTRA_LIBS
35637
35638Options used to compile and link:
35639 PREFIX = $PREFIX_DIR
35640 EXEC-PREFIX = $EXEC_PREFIX_DIR
35641 VERSION = $PACKAGE_VERSION
35642 CC = $CC
35643 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000035644 CPPFLAGS = $MAGICK_CPPFLAGS
35645 PCFLAGS = $MAGICK_PCFLAGS
35646 DEFS = $DEFS
35647 LDFLAGS = $LDFLAGS
35648 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
35649 LIBS = $MAGICK_LIBS
35650 CXX = $CXX
35651 CXXFLAGS = $CXXFLAGS
35652" >&6; }