blob: 020a3c5217443bdf7304916fd261b7b72bda57e6 [file] [log] [blame]
cristy3ed852e2009-09-05 21:47:34 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
cristy664b8d72010-05-17 13:53:36 +00003# Generated by GNU Autoconf 2.65 for ImageMagick 6.6.2.
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'
cristy664b8d72010-05-17 13:53:36 +0000708PACKAGE_VERSION='6.6.2'
709PACKAGE_STRING='ImageMagick 6.6.2'
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
cristy664b8d72010-05-17 13:53:36 +00001829\`configure' configures ImageMagick 6.6.2 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
cristy664b8d72010-05-17 13:53:36 +00001904 short | recursive ) echo "Configuration of ImageMagick 6.6.2:";;
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
cristy664b8d72010-05-17 13:53:36 +00002108ImageMagick configure 6.6.2
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
cristy664b8d72010-05-17 13:53:36 +00003021It was created by ImageMagick $as_me 6.6.2, 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
cristy0d3a6382010-04-26 00:45:55 +00007792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
7793$as_echo_n "checking for __attribute__... " >&6; }
7794if test "${ax_cv___attribute__+set}" = set; then :
7795 $as_echo_n "(cached) " >&6
7796else
7797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7798/* end confdefs.h. */
7799#include <stdlib.h>
7800 static void foo(void) __attribute__ ((unused));
7801 static void
7802 foo(void) {
7803 exit(1);
7804 }
7805
7806int
7807main ()
7808{
7809
7810 ;
7811 return 0;
7812}
7813_ACEOF
7814if ac_fn_c_try_compile "$LINENO"; then :
7815 ax_cv___attribute__=yes
7816else
7817 ax_cv___attribute__=no
7818
7819fi
7820rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7821
7822fi
7823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv___attribute__" >&5
7824$as_echo "$ax_cv___attribute__" >&6; }
7825 if test "$ax_cv___attribute__" = "yes"; then
7826
7827$as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
7828
7829 fi
7830
7831
cristy3ed852e2009-09-05 21:47:34 +00007832
7833if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7834 if test -n "$ac_tool_prefix"; then
7835 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7836set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00007837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00007838$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007839if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007840 $as_echo_n "(cached) " >&6
7841else
7842 case $PKG_CONFIG in
7843 [\\/]* | ?:[\\/]*)
7844 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7845 ;;
7846 *)
7847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7848for as_dir in $PATH
7849do
7850 IFS=$as_save_IFS
7851 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00007852 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00007853 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7854 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +00007855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00007856 break 2
7857 fi
7858done
cristy8b350f62009-11-15 23:12:43 +00007859 done
cristy3ed852e2009-09-05 21:47:34 +00007860IFS=$as_save_IFS
7861
7862 ;;
7863esac
7864fi
7865PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7866if test -n "$PKG_CONFIG"; then
cristy8b350f62009-11-15 23:12:43 +00007867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
cristy3ed852e2009-09-05 21:47:34 +00007868$as_echo "$PKG_CONFIG" >&6; }
7869else
cristy8b350f62009-11-15 23:12:43 +00007870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007871$as_echo "no" >&6; }
7872fi
7873
7874
7875fi
7876if test -z "$ac_cv_path_PKG_CONFIG"; then
7877 ac_pt_PKG_CONFIG=$PKG_CONFIG
7878 # Extract the first word of "pkg-config", so it can be a program name with args.
7879set dummy pkg-config; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00007880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00007881$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007882if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007883 $as_echo_n "(cached) " >&6
7884else
7885 case $ac_pt_PKG_CONFIG in
7886 [\\/]* | ?:[\\/]*)
7887 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7888 ;;
7889 *)
7890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7891for as_dir in $PATH
7892do
7893 IFS=$as_save_IFS
7894 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00007895 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00007896 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7897 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +00007898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00007899 break 2
7900 fi
7901done
cristy8b350f62009-11-15 23:12:43 +00007902 done
cristy3ed852e2009-09-05 21:47:34 +00007903IFS=$as_save_IFS
7904
7905 ;;
7906esac
7907fi
7908ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7909if test -n "$ac_pt_PKG_CONFIG"; then
cristy8b350f62009-11-15 23:12:43 +00007910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
cristy3ed852e2009-09-05 21:47:34 +00007911$as_echo "$ac_pt_PKG_CONFIG" >&6; }
7912else
cristy8b350f62009-11-15 23:12:43 +00007913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007914$as_echo "no" >&6; }
7915fi
7916
7917 if test "x$ac_pt_PKG_CONFIG" = x; then
7918 PKG_CONFIG=""
7919 else
7920 case $cross_compiling:$ac_tool_warned in
7921yes:)
cristy8b350f62009-11-15 23:12:43 +00007922{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00007923$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7924ac_tool_warned=yes ;;
7925esac
7926 PKG_CONFIG=$ac_pt_PKG_CONFIG
7927 fi
7928else
7929 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
7930fi
7931
7932fi
7933if test -n "$PKG_CONFIG"; then
7934 _pkg_min_version=0.9.0
cristy8b350f62009-11-15 23:12:43 +00007935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
cristy3ed852e2009-09-05 21:47:34 +00007936$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7937 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
cristy8b350f62009-11-15 23:12:43 +00007938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00007939$as_echo "yes" >&6; }
7940 else
cristy8b350f62009-11-15 23:12:43 +00007941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007942$as_echo "no" >&6; }
7943 PKG_CONFIG=""
7944 fi
7945
7946fi
7947
7948#
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
cristy0d3a6382010-04-26 00:45:55 +00007970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
7971$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
7972if test "${ax_cv_c_compiler_ms+set}" = set; then :
7973 $as_echo_n "(cached) " >&6
7974else
7975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7976/* end confdefs.h. */
7977
7978int
7979main ()
7980{
7981#ifndef _MSC_VER
7982 choke me
7983#endif
7984
7985 ;
7986 return 0;
7987}
7988_ACEOF
7989if ac_fn_c_try_compile "$LINENO"; then :
7990 ax_compiler_ms=yes
7991else
7992 ax_compiler_ms=no
7993fi
7994rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7995ax_cv_c_compiler_ms=$ax_compiler_ms
7996
7997fi
7998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
7999$as_echo "$ax_cv_c_compiler_ms" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00008000
8001GDI32_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +00008002native_win32_build='no'
8003cygwin_build='no'
8004case "${host_os}" in
8005 cygwin* )
cristy3ed852e2009-09-05 21:47:34 +00008006 cygwin_build='yes'
8007 GDI32_LIBS='-lgdi32'
8008 ;;
8009 mingw* )
cristy3ed852e2009-09-05 21:47:34 +00008010 native_win32_build='yes'
8011 GDI32_LIBS='-lgdi32'
8012 ;;
8013esac
8014if test "${GDI32_LIBS}x" != 'x'; then
8015
cristy8b350f62009-11-15 23:12:43 +00008016$as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008017
8018fi
8019
8020 if test "${GDI32_LIBS}x" != 'x' ; then
8021 WINGDI32_DELEGATE_TRUE=
8022 WINGDI32_DELEGATE_FALSE='#'
8023else
8024 WINGDI32_DELEGATE_TRUE='#'
8025 WINGDI32_DELEGATE_FALSE=
8026fi
8027
8028 if test "${native_win32_build}" = 'yes' ; then
8029 WIN32_NATIVE_BUILD_TRUE=
8030 WIN32_NATIVE_BUILD_FALSE='#'
8031else
8032 WIN32_NATIVE_BUILD_TRUE='#'
8033 WIN32_NATIVE_BUILD_FALSE=
8034fi
8035
8036 if test "${cygwin_build}" = 'yes' ; then
8037 CYGWIN_BUILD_TRUE=
8038 CYGWIN_BUILD_FALSE='#'
8039else
8040 CYGWIN_BUILD_TRUE='#'
8041 CYGWIN_BUILD_FALSE=
8042fi
8043
8044 if test "x${CC}" = 'xcl.exe' ; then
8045 USING_CL_TRUE=
8046 USING_CL_FALSE='#'
8047else
8048 USING_CL_TRUE='#'
8049 USING_CL_FALSE=
8050fi
8051
8052
8053WinPathScript="${srcdirfull}/winpath.sh"
8054
8055
8056#
8057# Compiler flags tweaks
8058#
8059if test "${GCC}" != "yes"; then
8060 case "${host}" in
8061 *-*-hpux* )
8062 # aCC: HP ANSI C++ B3910B A.03.34
8063 CFLAGS="${CFLAGS} -Wp,-H30000"
8064 if test -n "${CXXFLAGS}"; then
8065 CXXFLAGS='-AA'
8066 else
8067 CXXFLAGS="${CXXFLAGS} -AA"
8068 fi
8069 ;;
8070 *-dec-osf5.* )
8071 # Compaq alphaev68-dec-osf5.1 compiler
8072 if test -n "${CXXFLAGS}"; then
8073 CXXFLAGS='-std strict_ansi -noimplicit_include'
8074 else
8075 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
8076 fi
8077 esac
8078fi
8079
8080# Check for lazy-loading.
cristy8b350f62009-11-15 23:12:43 +00008081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
cristy3ed852e2009-09-05 21:47:34 +00008082$as_echo_n "checking for linker lazyload option... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008083if test "${im_cv_ld_lazyload+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008084 $as_echo_n "(cached) " >&6
8085else
8086
8087im_cv_ld_lazyload='none'
8088case "${host}" in
8089 *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
8090 if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
8091 im_cv_ld_lazyload='-Wl,-zlazyload'
8092 fi
8093 ;;
8094esac
8095
8096fi
cristy8b350f62009-11-15 23:12:43 +00008097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
cristy3ed852e2009-09-05 21:47:34 +00008098$as_echo "$im_cv_ld_lazyload" >&6; }
8099if test "${im_cv_ld_lazyload}" != 'none' ; then
8100 if test -z "${LDFLAGS}" ; then
8101 LDFLAGS="${im_cv_ld_lazyload}"
8102 else
8103 LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
8104 fi
8105fi
8106
8107case "$host" in
8108*darwin* | *-macos10*)
8109 if test -d /opt/local ; then
8110 CPPFLAGS="$CPPFLAGS -I/opt/local/include"
8111 LDFLAGS="$LDFLAGS -L/opt/local/lib"
8112 elif test -d /sw ; then
8113 CPPFLAGS="$CPPFLAGS -I/sw/include"
8114 LDFLAGS="$LDFLAGS -L/sw/lib"
8115 fi
8116 # Check whether --enable-osx-universal-binary was given.
cristy8b350f62009-11-15 23:12:43 +00008117if test "${enable_osx_universal_binary+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008118 enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
8119else
8120 build_osxuniversal=no
8121fi
8122
8123
8124 if test "${build_osxuniversal}" != no ; then
8125 if test "$enable_dependency_tracking" != no ; then
cristy8b350f62009-11-15 23:12:43 +00008126 as_fn_error "--enable-osx-universal-binary requires --disable-dependency-tracking.
cristy3ed852e2009-09-05 21:47:34 +00008127Please re-run configure with these options:
8128 --disable-dependency-tracking --enable-osx-universal-binary
cristy8b350f62009-11-15 23:12:43 +00008129 " "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00008130 fi
8131 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8132 CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8133 LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8134 fi
8135 ;;
8136esac
8137
8138# Enable support for threads
8139
8140# Check whether --with-threads was given.
cristy8b350f62009-11-15 23:12:43 +00008141if test "${with_threads+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008142 withval=$with_threads; with_threads=$withval
8143else
8144 with_threads='yes'
8145fi
8146
8147
8148have_threads=no
8149if test "$with_threads" != 'no'; then
8150
8151
8152
8153ac_ext=c
8154ac_cpp='$CPP $CPPFLAGS'
8155ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8156ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8157ac_compiler_gnu=$ac_cv_c_compiler_gnu
8158
cristy964cb7f2010-04-25 23:18:00 +00008159ax_pthread_ok=no
cristy3ed852e2009-09-05 21:47:34 +00008160
8161# We used to check for pthread.h first, but this fails if pthread.h
8162# requires special compiler flags (e.g. on True64 or Sequent).
8163# It gets checked for in the link test anyway.
8164
8165# First of all, check if the user has set any of the PTHREAD_LIBS,
8166# etcetera environment variables, and if threads linking works using
8167# them:
8168if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8169 save_CFLAGS="$CFLAGS"
8170 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8171 save_LIBS="$LIBS"
8172 LIBS="$PTHREAD_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +00008173 { $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 +00008174$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008176/* end confdefs.h. */
8177
8178/* Override any GCC internal prototype to avoid an error.
8179 Use char because int might match the return type of a GCC
8180 builtin and then its argument prototype would still apply. */
8181#ifdef __cplusplus
8182extern "C"
8183#endif
8184char pthread_join ();
8185int
8186main ()
8187{
8188return pthread_join ();
8189 ;
8190 return 0;
8191}
8192_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008193if ac_fn_c_try_link "$LINENO"; then :
cristy964cb7f2010-04-25 23:18:00 +00008194 ax_pthread_ok=yes
cristy3ed852e2009-09-05 21:47:34 +00008195fi
cristy8b350f62009-11-15 23:12:43 +00008196rm -f core conftest.err conftest.$ac_objext \
8197 conftest$ac_exeext conftest.$ac_ext
cristy964cb7f2010-04-25 23:18:00 +00008198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8199$as_echo "$ax_pthread_ok" >&6; }
8200 if test x"$ax_pthread_ok" = xno; then
cristy3ed852e2009-09-05 21:47:34 +00008201 PTHREAD_LIBS=""
8202 PTHREAD_CFLAGS=""
8203 fi
8204 LIBS="$save_LIBS"
8205 CFLAGS="$save_CFLAGS"
8206fi
8207
8208# We must check for the threads library under a number of different
8209# names; the ordering is very important because some systems
8210# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8211# libraries is broken (non-POSIX).
8212
8213# Create a list of thread flags to try. Items starting with a "-" are
8214# C compiler flags, and other items are library names, except for "none"
8215# which indicates that we try without any flags at all, and "pthread-config"
8216# which is a program returning the flags for the Pth emulation library.
8217
cristy964cb7f2010-04-25 23:18:00 +00008218ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
cristy3ed852e2009-09-05 21:47:34 +00008219
8220# The ordering *is* (sometimes) important. Some notes on the
8221# individual items follow:
8222
8223# pthreads: AIX (must check this before -lpthread)
8224# none: in case threads are in libc; should be tried before -Kthread and
8225# other compiler flags to prevent continual compiler warnings
8226# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8227# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8228# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8229# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8230# -pthreads: Solaris/gcc
8231# -mthreads: Mingw32/gcc, Lynx/gcc
8232# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8233# doesn't hurt to check since this sometimes defines pthreads too;
8234# also defines -D_REENTRANT)
8235# ... -mt is also the pthreads flag for HP/aCC
8236# pthread: Linux, etcetera
8237# --thread-safe: KAI C++
8238# pthread-config: use pthread-config program (for GNU Pth library)
8239
8240case "${host_cpu}-${host_os}" in
8241 *solaris*)
8242
8243 # On Solaris (at least, for some versions), libc contains stubbed
8244 # (non-functional) versions of the pthreads routines, so link-based
8245 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
8246 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
8247 # a function called by this macro, so we could check for that, but
8248 # who knows whether they'll stub that too in a future libc.) So,
8249 # we'll just look for -pthreads and -lpthread first:
8250
cristy964cb7f2010-04-25 23:18:00 +00008251 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
cristy3ed852e2009-09-05 21:47:34 +00008252 ;;
cristy964cb7f2010-04-25 23:18:00 +00008253
8254 *-darwin*)
8255 acx_pthread_flags="-pthread $acx_pthread_flags"
8256 ;;
cristy3ed852e2009-09-05 21:47:34 +00008257esac
8258
cristy964cb7f2010-04-25 23:18:00 +00008259if test x"$ax_pthread_ok" = xno; then
8260for flag in $ax_pthread_flags; do
cristy3ed852e2009-09-05 21:47:34 +00008261
8262 case $flag in
8263 none)
cristy8b350f62009-11-15 23:12:43 +00008264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
cristy3ed852e2009-09-05 21:47:34 +00008265$as_echo_n "checking whether pthreads work without any flags... " >&6; }
8266 ;;
8267
8268 -*)
cristy8b350f62009-11-15 23:12:43 +00008269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
cristy3ed852e2009-09-05 21:47:34 +00008270$as_echo_n "checking whether pthreads work with $flag... " >&6; }
8271 PTHREAD_CFLAGS="$flag"
8272 ;;
8273
8274 pthread-config)
8275 # Extract the first word of "pthread-config", so it can be a program name with args.
8276set dummy pthread-config; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00008277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00008278$as_echo_n "checking for $ac_word... " >&6; }
cristy964cb7f2010-04-25 23:18:00 +00008279if test "${ac_cv_prog_ax_pthread_config+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008280 $as_echo_n "(cached) " >&6
8281else
cristy964cb7f2010-04-25 23:18:00 +00008282 if test -n "$ax_pthread_config"; then
8283 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
cristy3ed852e2009-09-05 21:47:34 +00008284else
8285as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8286for as_dir in $PATH
8287do
8288 IFS=$as_save_IFS
8289 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00008290 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00008291 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 +00008292 ac_cv_prog_ax_pthread_config="yes"
cristy8b350f62009-11-15 23:12:43 +00008293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00008294 break 2
8295 fi
8296done
cristy8b350f62009-11-15 23:12:43 +00008297 done
cristy3ed852e2009-09-05 21:47:34 +00008298IFS=$as_save_IFS
8299
cristy964cb7f2010-04-25 23:18:00 +00008300 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
cristy3ed852e2009-09-05 21:47:34 +00008301fi
8302fi
cristy964cb7f2010-04-25 23:18:00 +00008303ax_pthread_config=$ac_cv_prog_ax_pthread_config
8304if test -n "$ax_pthread_config"; then
8305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8306$as_echo "$ax_pthread_config" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00008307else
cristy8b350f62009-11-15 23:12:43 +00008308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00008309$as_echo "no" >&6; }
8310fi
8311
8312
cristy964cb7f2010-04-25 23:18:00 +00008313 if test x"$ax_pthread_config" = xno; then continue; fi
cristy3ed852e2009-09-05 21:47:34 +00008314 PTHREAD_CFLAGS="`pthread-config --cflags`"
8315 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
8316 ;;
8317
8318 *)
cristy8b350f62009-11-15 23:12:43 +00008319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
cristy3ed852e2009-09-05 21:47:34 +00008320$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
8321 PTHREAD_LIBS="-l$flag"
8322 ;;
8323 esac
8324
8325 save_LIBS="$LIBS"
8326 save_CFLAGS="$CFLAGS"
8327 LIBS="$PTHREAD_LIBS $LIBS"
8328 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8329
8330 # Check for various functions. We must include pthread.h,
8331 # since some functions may be macros. (On the Sequent, we
8332 # need a special flag -Kthread to make this header compile.)
8333 # We check for pthread_join because it is in -lpthread on IRIX
8334 # while pthread_create is in libc. We check for pthread_attr_init
8335 # due to DEC craziness with -lpthreads. We check for
8336 # pthread_cleanup_push because it is one of the few pthread
8337 # functions on Solaris that doesn't have a non-functional libc stub.
8338 # We try pthread_create on general principles.
cristy8b350f62009-11-15 23:12:43 +00008339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008340/* end confdefs.h. */
8341#include <pthread.h>
cristy964cb7f2010-04-25 23:18:00 +00008342 static void routine(void* a) {a=0;}
8343 static void* start_routine(void* a) {return a;}
cristy3ed852e2009-09-05 21:47:34 +00008344int
8345main ()
8346{
cristy964cb7f2010-04-25 23:18:00 +00008347pthread_t th; pthread_attr_t attr;
8348 pthread_join(th, 0);
8349 pthread_attr_init(&attr);
8350 pthread_cleanup_push(routine, 0);
8351 pthread_create(&th,0,start_routine,0);
8352 pthread_cleanup_pop(0);
cristy3ed852e2009-09-05 21:47:34 +00008353 ;
8354 return 0;
8355}
8356_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008357if ac_fn_c_try_link "$LINENO"; then :
cristy964cb7f2010-04-25 23:18:00 +00008358 ax_pthread_ok=yes
cristy3ed852e2009-09-05 21:47:34 +00008359fi
cristy8b350f62009-11-15 23:12:43 +00008360rm -f core conftest.err conftest.$ac_objext \
8361 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008362
8363 LIBS="$save_LIBS"
8364 CFLAGS="$save_CFLAGS"
8365
cristy964cb7f2010-04-25 23:18:00 +00008366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8367$as_echo "$ax_pthread_ok" >&6; }
8368 if test "x$ax_pthread_ok" = xyes; then
cristy3ed852e2009-09-05 21:47:34 +00008369 break;
8370 fi
8371
8372 PTHREAD_LIBS=""
8373 PTHREAD_CFLAGS=""
8374done
8375fi
8376
8377# Various other checks:
cristy964cb7f2010-04-25 23:18:00 +00008378if test "x$ax_pthread_ok" = xyes; then
cristy3ed852e2009-09-05 21:47:34 +00008379 save_LIBS="$LIBS"
8380 LIBS="$PTHREAD_LIBS $LIBS"
8381 save_CFLAGS="$CFLAGS"
8382 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8383
8384 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristy8b350f62009-11-15 23:12:43 +00008385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy3ed852e2009-09-05 21:47:34 +00008386$as_echo_n "checking for joinable pthread attribute... " >&6; }
8387 attr_name=unknown
8388 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
cristy8b350f62009-11-15 23:12:43 +00008389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008390/* end confdefs.h. */
8391#include <pthread.h>
8392int
8393main ()
8394{
8395int attr=$attr; return attr;
8396 ;
8397 return 0;
8398}
8399_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008400if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008401 attr_name=$attr; break
cristy3ed852e2009-09-05 21:47:34 +00008402fi
cristy8b350f62009-11-15 23:12:43 +00008403rm -f core conftest.err conftest.$ac_objext \
8404 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008405 done
cristy8b350f62009-11-15 23:12:43 +00008406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
cristy3ed852e2009-09-05 21:47:34 +00008407$as_echo "$attr_name" >&6; }
8408 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
8409
8410cat >>confdefs.h <<_ACEOF
8411#define PTHREAD_CREATE_JOINABLE $attr_name
8412_ACEOF
8413
8414 fi
8415
cristy8b350f62009-11-15 23:12:43 +00008416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
cristy3ed852e2009-09-05 21:47:34 +00008417$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
8418 flag=no
8419 case "${host_cpu}-${host_os}" in
8420 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
8421 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
8422 esac
cristy8b350f62009-11-15 23:12:43 +00008423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
cristy3ed852e2009-09-05 21:47:34 +00008424$as_echo "${flag}" >&6; }
8425 if test "x$flag" != xno; then
8426 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
8427 fi
8428
8429 LIBS="$save_LIBS"
8430 CFLAGS="$save_CFLAGS"
8431
8432 # More AIX lossage: must compile with xlc_r or cc_r
cristy736173a2009-09-20 21:18:22 +00008433 if test x"$GCC" != xyes; then
8434 for ac_prog in xlc_r cc_r
8435do
8436 # Extract the first word of "$ac_prog", so it can be a program name with args.
8437set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00008438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00008439$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008440if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008441 $as_echo_n "(cached) " >&6
8442else
8443 if test -n "$PTHREAD_CC"; then
8444 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
8445else
8446as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8447for as_dir in $PATH
8448do
8449 IFS=$as_save_IFS
8450 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00008451 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00008452 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 +00008453 ac_cv_prog_PTHREAD_CC="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00008454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00008455 break 2
8456 fi
8457done
cristy8b350f62009-11-15 23:12:43 +00008458 done
cristy3ed852e2009-09-05 21:47:34 +00008459IFS=$as_save_IFS
8460
cristy3ed852e2009-09-05 21:47:34 +00008461fi
8462fi
8463PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
8464if test -n "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +00008465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00008466$as_echo "$PTHREAD_CC" >&6; }
8467else
cristy8b350f62009-11-15 23:12:43 +00008468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00008469$as_echo "no" >&6; }
8470fi
8471
cristy736173a2009-09-20 21:18:22 +00008472
8473 test -n "$PTHREAD_CC" && break
cristy3ed852e2009-09-05 21:47:34 +00008474done
cristy736173a2009-09-20 21:18:22 +00008475test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
cristy3ed852e2009-09-05 21:47:34 +00008476
cristy736173a2009-09-20 21:18:22 +00008477 else
8478 PTHREAD_CC=$CC
8479 fi
cristy3ed852e2009-09-05 21:47:34 +00008480else
cristy736173a2009-09-20 21:18:22 +00008481 PTHREAD_CC="$CC"
cristy3ed852e2009-09-05 21:47:34 +00008482fi
8483
cristy3ed852e2009-09-05 21:47:34 +00008484
8485
8486
8487
8488# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
cristy964cb7f2010-04-25 23:18:00 +00008489if test x"$ax_pthread_ok" = xyes; then
cristy3ed852e2009-09-05 21:47:34 +00008490
cristy8b350f62009-11-15 23:12:43 +00008491$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008492
8493 :
8494else
cristy964cb7f2010-04-25 23:18:00 +00008495 ax_pthread_ok=no
cristy3ed852e2009-09-05 21:47:34 +00008496
8497fi
8498ac_ext=c
8499ac_cpp='$CPP $CPPFLAGS'
8500ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8501ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8502ac_compiler_gnu=$ac_cv_c_compiler_gnu
8503
8504
cristy964cb7f2010-04-25 23:18:00 +00008505 if test "$ax_pthread_ok" = yes; then
cristy3ed852e2009-09-05 21:47:34 +00008506 have_threads=yes
8507 DEF_THREAD="$PTHREAD_CFLAGS"
8508 CFLAGS="$CFLAGS $DEF_THREAD"
8509 CXXFLAGS="$CXXFLAGS $DEF_THREAD"
8510 if test "$CC" != "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +00008511 { $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 +00008512$as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
8513 CC="$PTHREAD_CC"
8514 fi
8515 fi
8516fi
8517
8518# Enable support for OpenMP
8519if test "$have_threads" != 'yes'; then
8520 ac_cv_prog_c_openmp=unsupported
8521fi
8522
8523 OPENMP_CFLAGS=
8524 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +00008525if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008526 enableval=$enable_openmp;
8527fi
8528
8529 if test "$enable_openmp" != no; then
cristy8b350f62009-11-15 23:12:43 +00008530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00008531$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008532if test "${ac_cv_prog_c_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008533 $as_echo_n "(cached) " >&6
8534else
cristy8b350f62009-11-15 23:12:43 +00008535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8536/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00008537
8538#ifndef _OPENMP
8539 choke me
8540#endif
8541#include <omp.h>
8542int main () { return omp_get_num_threads (); }
8543
8544_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008545if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008546 ac_cv_prog_c_openmp='none needed'
8547else
cristy8b350f62009-11-15 23:12:43 +00008548 ac_cv_prog_c_openmp='unsupported'
cristy3ed852e2009-09-05 21:47:34 +00008549 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
8550 ac_save_CFLAGS=$CFLAGS
8551 CFLAGS="$CFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +00008552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8553/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00008554
8555#ifndef _OPENMP
8556 choke me
8557#endif
8558#include <omp.h>
8559int main () { return omp_get_num_threads (); }
8560
8561_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008562if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008563 ac_cv_prog_c_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +00008564fi
cristy8b350f62009-11-15 23:12:43 +00008565rm -f core conftest.err conftest.$ac_objext \
8566 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008567 CFLAGS=$ac_save_CFLAGS
8568 if test "$ac_cv_prog_c_openmp" != unsupported; then
8569 break
8570 fi
8571 done
8572fi
cristy8b350f62009-11-15 23:12:43 +00008573rm -f core conftest.err conftest.$ac_objext \
8574 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008575fi
cristy8b350f62009-11-15 23:12:43 +00008576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +00008577$as_echo "$ac_cv_prog_c_openmp" >&6; }
8578 case $ac_cv_prog_c_openmp in #(
8579 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +00008580 ;; #(
cristy3ed852e2009-09-05 21:47:34 +00008581 *)
cristy8b350f62009-11-15 23:12:43 +00008582 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +00008583 esac
8584 fi
8585
8586
8587CFLAGS="$OPENMP_CFLAGS $CFLAGS"
8588MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
8589
8590
cristy736173a2009-09-20 21:18:22 +00008591# Enable support for OpenCL
cristy736173a2009-09-20 21:18:22 +00008592
cristy964cb7f2010-04-25 23:18:00 +00008593
8594
8595ac_ext=c
8596ac_cpp='$CPP $CPPFLAGS'
8597ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8598ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8599ac_compiler_gnu=$ac_cv_c_compiler_gnu
8600
8601ax_pthread_ok=no
8602
8603# We used to check for pthread.h first, but this fails if pthread.h
8604# requires special compiler flags (e.g. on True64 or Sequent).
8605# It gets checked for in the link test anyway.
8606
8607# First of all, check if the user has set any of the PTHREAD_LIBS,
8608# etcetera environment variables, and if threads linking works using
8609# them:
8610if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8611 save_CFLAGS="$CFLAGS"
8612 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8613 save_LIBS="$LIBS"
8614 LIBS="$PTHREAD_LIBS $LIBS"
8615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
8616$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
8617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8618/* end confdefs.h. */
8619
8620/* Override any GCC internal prototype to avoid an error.
8621 Use char because int might match the return type of a GCC
8622 builtin and then its argument prototype would still apply. */
8623#ifdef __cplusplus
8624extern "C"
8625#endif
8626char pthread_join ();
8627int
8628main ()
8629{
8630return pthread_join ();
8631 ;
8632 return 0;
8633}
8634_ACEOF
8635if ac_fn_c_try_link "$LINENO"; then :
8636 ax_pthread_ok=yes
8637fi
8638rm -f core conftest.err conftest.$ac_objext \
8639 conftest$ac_exeext conftest.$ac_ext
8640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8641$as_echo "$ax_pthread_ok" >&6; }
8642 if test x"$ax_pthread_ok" = xno; then
8643 PTHREAD_LIBS=""
8644 PTHREAD_CFLAGS=""
8645 fi
8646 LIBS="$save_LIBS"
8647 CFLAGS="$save_CFLAGS"
8648fi
8649
8650# We must check for the threads library under a number of different
8651# names; the ordering is very important because some systems
8652# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8653# libraries is broken (non-POSIX).
8654
8655# Create a list of thread flags to try. Items starting with a "-" are
8656# C compiler flags, and other items are library names, except for "none"
8657# which indicates that we try without any flags at all, and "pthread-config"
8658# which is a program returning the flags for the Pth emulation library.
8659
8660ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
8661
8662# The ordering *is* (sometimes) important. Some notes on the
8663# individual items follow:
8664
8665# pthreads: AIX (must check this before -lpthread)
8666# none: in case threads are in libc; should be tried before -Kthread and
8667# other compiler flags to prevent continual compiler warnings
8668# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8669# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8670# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8671# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8672# -pthreads: Solaris/gcc
8673# -mthreads: Mingw32/gcc, Lynx/gcc
8674# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8675# doesn't hurt to check since this sometimes defines pthreads too;
8676# also defines -D_REENTRANT)
8677# ... -mt is also the pthreads flag for HP/aCC
8678# pthread: Linux, etcetera
8679# --thread-safe: KAI C++
8680# pthread-config: use pthread-config program (for GNU Pth library)
8681
8682case "${host_cpu}-${host_os}" in
8683 *solaris*)
8684
8685 # On Solaris (at least, for some versions), libc contains stubbed
8686 # (non-functional) versions of the pthreads routines, so link-based
8687 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
8688 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
8689 # a function called by this macro, so we could check for that, but
8690 # who knows whether they'll stub that too in a future libc.) So,
8691 # we'll just look for -pthreads and -lpthread first:
8692
8693 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
8694 ;;
8695
8696 *-darwin*)
8697 acx_pthread_flags="-pthread $acx_pthread_flags"
8698 ;;
8699esac
8700
8701if test x"$ax_pthread_ok" = xno; then
8702for flag in $ax_pthread_flags; do
8703
8704 case $flag in
8705 none)
8706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
8707$as_echo_n "checking whether pthreads work without any flags... " >&6; }
8708 ;;
8709
8710 -*)
8711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
8712$as_echo_n "checking whether pthreads work with $flag... " >&6; }
8713 PTHREAD_CFLAGS="$flag"
8714 ;;
8715
8716 pthread-config)
8717 # Extract the first word of "pthread-config", so it can be a program name with args.
8718set dummy pthread-config; ac_word=$2
8719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8720$as_echo_n "checking for $ac_word... " >&6; }
8721if test "${ac_cv_prog_ax_pthread_config+set}" = set; then :
8722 $as_echo_n "(cached) " >&6
8723else
8724 if test -n "$ax_pthread_config"; then
8725 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
8726else
8727as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8728for as_dir in $PATH
8729do
8730 IFS=$as_save_IFS
8731 test -z "$as_dir" && as_dir=.
8732 for ac_exec_ext in '' $ac_executable_extensions; do
8733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8734 ac_cv_prog_ax_pthread_config="yes"
8735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8736 break 2
8737 fi
8738done
8739 done
8740IFS=$as_save_IFS
8741
8742 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
8743fi
8744fi
8745ax_pthread_config=$ac_cv_prog_ax_pthread_config
8746if test -n "$ax_pthread_config"; then
8747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8748$as_echo "$ax_pthread_config" >&6; }
8749else
8750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8751$as_echo "no" >&6; }
8752fi
8753
8754
8755 if test x"$ax_pthread_config" = xno; then continue; fi
8756 PTHREAD_CFLAGS="`pthread-config --cflags`"
8757 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
8758 ;;
8759
8760 *)
8761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
8762$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
8763 PTHREAD_LIBS="-l$flag"
8764 ;;
8765 esac
8766
8767 save_LIBS="$LIBS"
8768 save_CFLAGS="$CFLAGS"
8769 LIBS="$PTHREAD_LIBS $LIBS"
8770 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8771
8772 # Check for various functions. We must include pthread.h,
8773 # since some functions may be macros. (On the Sequent, we
8774 # need a special flag -Kthread to make this header compile.)
8775 # We check for pthread_join because it is in -lpthread on IRIX
8776 # while pthread_create is in libc. We check for pthread_attr_init
8777 # due to DEC craziness with -lpthreads. We check for
8778 # pthread_cleanup_push because it is one of the few pthread
8779 # functions on Solaris that doesn't have a non-functional libc stub.
8780 # We try pthread_create on general principles.
8781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8782/* end confdefs.h. */
8783#include <pthread.h>
8784 static void routine(void* a) {a=0;}
8785 static void* start_routine(void* a) {return a;}
8786int
8787main ()
8788{
8789pthread_t th; pthread_attr_t attr;
8790 pthread_join(th, 0);
8791 pthread_attr_init(&attr);
8792 pthread_cleanup_push(routine, 0);
8793 pthread_create(&th,0,start_routine,0);
8794 pthread_cleanup_pop(0);
8795 ;
8796 return 0;
8797}
8798_ACEOF
8799if ac_fn_c_try_link "$LINENO"; then :
8800 ax_pthread_ok=yes
8801fi
8802rm -f core conftest.err conftest.$ac_objext \
8803 conftest$ac_exeext conftest.$ac_ext
8804
8805 LIBS="$save_LIBS"
8806 CFLAGS="$save_CFLAGS"
8807
8808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8809$as_echo "$ax_pthread_ok" >&6; }
8810 if test "x$ax_pthread_ok" = xyes; then
8811 break;
8812 fi
8813
8814 PTHREAD_LIBS=""
8815 PTHREAD_CFLAGS=""
8816done
8817fi
8818
8819# Various other checks:
8820if test "x$ax_pthread_ok" = xyes; then
8821 save_LIBS="$LIBS"
8822 LIBS="$PTHREAD_LIBS $LIBS"
8823 save_CFLAGS="$CFLAGS"
8824 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8825
8826 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
8827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
8828$as_echo_n "checking for joinable pthread attribute... " >&6; }
8829 attr_name=unknown
8830 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
8831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8832/* end confdefs.h. */
8833#include <pthread.h>
8834int
8835main ()
8836{
8837int attr=$attr; return attr;
8838 ;
8839 return 0;
8840}
8841_ACEOF
8842if ac_fn_c_try_link "$LINENO"; then :
8843 attr_name=$attr; break
8844fi
8845rm -f core conftest.err conftest.$ac_objext \
8846 conftest$ac_exeext conftest.$ac_ext
8847 done
8848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
8849$as_echo "$attr_name" >&6; }
8850 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
8851
8852cat >>confdefs.h <<_ACEOF
8853#define PTHREAD_CREATE_JOINABLE $attr_name
8854_ACEOF
8855
8856 fi
8857
8858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
8859$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
8860 flag=no
8861 case "${host_cpu}-${host_os}" in
8862 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
8863 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
8864 esac
8865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
8866$as_echo "${flag}" >&6; }
8867 if test "x$flag" != xno; then
8868 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
8869 fi
8870
8871 LIBS="$save_LIBS"
8872 CFLAGS="$save_CFLAGS"
8873
8874 # More AIX lossage: must compile with xlc_r or cc_r
8875 if test x"$GCC" != xyes; then
8876 for ac_prog in xlc_r cc_r
8877do
8878 # Extract the first word of "$ac_prog", so it can be a program name with args.
8879set dummy $ac_prog; ac_word=$2
8880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8881$as_echo_n "checking for $ac_word... " >&6; }
8882if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then :
8883 $as_echo_n "(cached) " >&6
8884else
8885 if test -n "$PTHREAD_CC"; then
8886 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
8887else
8888as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8889for as_dir in $PATH
8890do
8891 IFS=$as_save_IFS
8892 test -z "$as_dir" && as_dir=.
8893 for ac_exec_ext in '' $ac_executable_extensions; do
8894 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8895 ac_cv_prog_PTHREAD_CC="$ac_prog"
8896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8897 break 2
8898 fi
8899done
8900 done
8901IFS=$as_save_IFS
8902
8903fi
8904fi
8905PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
8906if test -n "$PTHREAD_CC"; then
8907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
8908$as_echo "$PTHREAD_CC" >&6; }
8909else
8910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8911$as_echo "no" >&6; }
8912fi
8913
8914
8915 test -n "$PTHREAD_CC" && break
8916done
8917test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
8918
8919 else
8920 PTHREAD_CC=$CC
8921 fi
8922else
8923 PTHREAD_CC="$CC"
8924fi
8925
8926
8927
8928
8929
8930# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
8931if test x"$ax_pthread_ok" = xyes; then
8932
8933$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
8934
8935 :
8936else
8937 ax_pthread_ok=no
8938
8939fi
8940ac_ext=c
8941ac_cpp='$CPP $CPPFLAGS'
8942ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8943ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8944ac_compiler_gnu=$ac_cv_c_compiler_gnu
8945
8946
8947
cristy43596fe2010-01-21 16:46:08 +00008948# Check whether --enable-opencl was given.
8949if test "${enable_opencl+set}" = set; then :
8950 enableval=$enable_opencl; disable_opencl=$enableval
8951else
8952 disable_opencl='yes'
8953fi
8954
8955
8956if test "$disable_opencl" = 'yes'; then
8957 ac_ext=c
cristy736173a2009-09-20 21:18:22 +00008958ac_cpp='$CPP $CPPFLAGS'
8959ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8960ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8961ac_compiler_gnu=$ac_cv_c_compiler_gnu
8962
cristy43596fe2010-01-21 16:46:08 +00008963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
cristy736173a2009-09-20 21:18:22 +00008964$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008965if test "${ax_cv_c_compiler_ms+set}" = set; then :
cristy736173a2009-09-20 21:18:22 +00008966 $as_echo_n "(cached) " >&6
8967else
cristy8b350f62009-11-15 23:12:43 +00008968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00008969/* end confdefs.h. */
8970
8971int
8972main ()
8973{
8974#ifndef _MSC_VER
8975 choke me
8976#endif
8977
8978 ;
8979 return 0;
8980}
8981_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008982if ac_fn_c_try_compile "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00008983 ax_compiler_ms=yes
8984else
cristy8b350f62009-11-15 23:12:43 +00008985 ax_compiler_ms=no
cristy736173a2009-09-20 21:18:22 +00008986fi
cristy736173a2009-09-20 21:18:22 +00008987rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8988ax_cv_c_compiler_ms=$ax_compiler_ms
8989
8990fi
cristy8b350f62009-11-15 23:12:43 +00008991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
cristy736173a2009-09-20 21:18:22 +00008992$as_echo "$ax_cv_c_compiler_ms" >&6; }
cristy43596fe2010-01-21 16:46:08 +00008993 if test X$ax_compiler_ms = Xno; then :
cristy736173a2009-09-20 21:18:22 +00008994 CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
8995fi
8996
cristy43596fe2010-01-21 16:46:08 +00008997 ax_save_CPPFLAGS=$CPPFLAGS
8998 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
8999 for ac_header in CL/cl.h OpenCL/cl.h
cristy8b350f62009-11-15 23:12:43 +00009000do :
9001 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9002ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9003eval as_val=\$$as_ac_Header
9004 if test "x$as_val" = x""yes; then :
cristy736173a2009-09-20 21:18:22 +00009005 cat >>confdefs.h <<_ACEOF
9006#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9007_ACEOF
9008
9009fi
9010
9011done
9012
cristy43596fe2010-01-21 16:46:08 +00009013 CPPFLAGS=$ax_save_CPPFLAGS
cristy736173a2009-09-20 21:18:22 +00009014
cristy43596fe2010-01-21 16:46:08 +00009015 for ac_header in windows.h
cristy8b350f62009-11-15 23:12:43 +00009016do :
9017 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
9018if test "x$ac_cv_header_windows_h" = x""yes; then :
cristy736173a2009-09-20 21:18:22 +00009019 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009020#define HAVE_WINDOWS_H 1
cristy736173a2009-09-20 21:18:22 +00009021_ACEOF
9022
9023fi
9024
9025done
9026
9027
9028
9029
cristy43596fe2010-01-21 16:46:08 +00009030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
cristy736173a2009-09-20 21:18:22 +00009031$as_echo_n "checking for OpenCL library... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009032if test "${ax_cv_check_cl_libcl+set}" = set; then :
cristy736173a2009-09-20 21:18:22 +00009033 $as_echo_n "(cached) " >&6
9034else
9035 ax_cv_check_cl_libcl=no
cristy43596fe2010-01-21 16:46:08 +00009036 case $host_cpu in
9037 x86_64) ax_check_cl_libdir=lib64 ;;
9038 *) ax_check_cl_libdir=lib ;;
9039 esac
9040 ax_save_CPPFLAGS=$CPPFLAGS
9041 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
9042 ax_save_LIBS=$LIBS
9043 LIBS=""
9044 ax_check_libs="-lOpenCL -lCL -lclparser"
9045 for ax_lib in $ax_check_libs; do
9046 if test X$ax_compiler_ms = Xyes; then :
cristy736173a2009-09-20 21:18:22 +00009047 ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
9048else
9049 ax_try_lib=$ax_lib
9050fi
cristy43596fe2010-01-21 16:46:08 +00009051 LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
9052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00009053/* end confdefs.h. */
9054
cristy43596fe2010-01-21 16:46:08 +00009055 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9056 # include <windows.h>
9057 # endif
9058 # ifdef HAVE_CL_CL_H
9059 # include <CL/cl.h>
9060 # elif defined(HAVE_OPENCL_CL_H)
9061 # include <OpenCL/cl.h>
9062 # else
9063 # error no CL.h
9064 # endif
cristy736173a2009-09-20 21:18:22 +00009065int
9066main ()
9067{
cristyc7083c12009-10-14 03:16:55 +00009068clCreateContextFromType(0,0,0,0,0)
cristy736173a2009-09-20 21:18:22 +00009069 ;
9070 return 0;
9071}
9072_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009073if ac_fn_c_try_link "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00009074 ax_cv_check_cl_libcl=$ax_try_lib; break
9075else
cristy8b350f62009-11-15 23:12:43 +00009076 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 +00009077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00009078/* end confdefs.h. */
9079
cristy43596fe2010-01-21 16:46:08 +00009080 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9081 # include <windows.h>
9082 # endif
9083 # ifdef HAVE_CL_CL_H
9084 # include <CL/cl.h>
9085 # elif defined(HAVE_OPENCL_CL_H)
9086 # include <OpenCL/cl.h>
9087 # else
9088 # error no CL.h
9089 # endif
cristy736173a2009-09-20 21:18:22 +00009090int
9091main ()
9092{
cristyc7083c12009-10-14 03:16:55 +00009093clCreateContextFromType(0,0,0,0,0)
cristy736173a2009-09-20 21:18:22 +00009094 ;
9095 return 0;
9096}
9097_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009098if ac_fn_c_try_link "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00009099 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
9100else
cristy4dc44432009-12-30 23:30:06 +00009101 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 +00009102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00009103/* end confdefs.h. */
9104
cristy43596fe2010-01-21 16:46:08 +00009105 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9106 # include <windows.h>
9107 # endif
9108 # ifdef HAVE_CL_CL_H
9109 # include <CL/cl.h>
9110 # elif defined(HAVE_OPENCL_CL_H)
9111 # include <OpenCL/cl.h>
9112 # else
9113 # error no CL.h
9114 # endif
cristy736173a2009-09-20 21:18:22 +00009115int
9116main ()
9117{
cristyc7083c12009-10-14 03:16:55 +00009118clCreateContextFromType(0,0,0,0,0)
cristy736173a2009-09-20 21:18:22 +00009119 ;
9120 return 0;
9121}
9122_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009123if ac_fn_c_try_link "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00009124 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
cristy736173a2009-09-20 21:18:22 +00009125fi
cristy8b350f62009-11-15 23:12:43 +00009126rm -f core conftest.err conftest.$ac_objext \
9127 conftest$ac_exeext conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00009128fi
cristy8b350f62009-11-15 23:12:43 +00009129rm -f core conftest.err conftest.$ac_objext \
9130 conftest$ac_exeext conftest.$ac_ext
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
cristy43596fe2010-01-21 16:46:08 +00009134 done
cristy736173a2009-09-20 21:18:22 +00009135
cristy43596fe2010-01-21 16:46:08 +00009136 if test "X$ax_cv_check_cl_libcl" = Xno -a X$no_x = Xyes; then :
cristy736173a2009-09-20 21:18:22 +00009137 LIBS='-framework OpenCL'
cristy43596fe2010-01-21 16:46:08 +00009138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00009139/* end confdefs.h. */
9140
cristy43596fe2010-01-21 16:46:08 +00009141 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9142 # include <windows.h>
9143 # endif
9144 # ifdef HAVE_CL_CL_H
9145 # include <CL/cl.h>
9146 # elif defined(HAVE_OPENCL_CL_H)
9147 # include <OpenCL/cl.h>
9148 # else
9149 # error no CL.h
9150 # endif
cristy736173a2009-09-20 21:18:22 +00009151int
9152main ()
9153{
cristyc7083c12009-10-14 03:16:55 +00009154clCreateContextFromType(0,0,0,0,0)
cristy736173a2009-09-20 21:18:22 +00009155 ;
9156 return 0;
9157}
9158_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009159if ac_fn_c_try_link "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00009160 ax_cv_check_cl_libcl=$LIBS
cristy736173a2009-09-20 21:18:22 +00009161fi
cristy8b350f62009-11-15 23:12:43 +00009162rm -f core conftest.err conftest.$ac_objext \
9163 conftest$ac_exeext conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00009164fi
9165
cristy43596fe2010-01-21 16:46:08 +00009166 LIBS=$ax_save_LIBS
9167 CPPFLAGS=$ax_save_CPPFLAGS
cristy736173a2009-09-20 21:18:22 +00009168fi
cristy8b350f62009-11-15 23:12:43 +00009169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
cristy736173a2009-09-20 21:18:22 +00009170$as_echo "$ax_cv_check_cl_libcl" >&6; }
9171
cristy43596fe2010-01-21 16:46:08 +00009172 if test "X$ax_cv_check_cl_libcl" = Xno; then :
cristy736173a2009-09-20 21:18:22 +00009173 no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
9174else
cristy99cc3002010-01-21 14:50:11 +00009175 CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS";
9176$as_echo "#define _OPENCL 1" >>confdefs.h
9177
cristy736173a2009-09-20 21:18:22 +00009178fi
cristy43596fe2010-01-21 16:46:08 +00009179 ac_ext=c
cristy736173a2009-09-20 21:18:22 +00009180ac_cpp='$CPP $CPPFLAGS'
9181ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9182ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9183ac_compiler_gnu=$ac_cv_c_compiler_gnu
9184
cristy43596fe2010-01-21 16:46:08 +00009185fi
cristy736173a2009-09-20 21:18:22 +00009186
9187
9188
9189
cristyc7083c12009-10-14 03:16:55 +00009190CFLAGS="$CL_CFLAGS $CFLAGS"
9191LIBS="$CL_LIBS $LIBS"
cristy736173a2009-09-20 21:18:22 +00009192
cristy2e8b51d2009-10-17 18:26:15 +00009193
cristy3ed852e2009-09-05 21:47:34 +00009194########
9195#
9196# Check for large file support
9197#
9198########
9199# Check whether --enable-largefile was given.
cristy8b350f62009-11-15 23:12:43 +00009200if test "${enable_largefile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009201 enableval=$enable_largefile;
9202fi
9203
9204if test "$enable_largefile" != no; then
9205
cristy8b350f62009-11-15 23:12:43 +00009206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009207$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009208if test "${ac_cv_sys_largefile_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009209 $as_echo_n "(cached) " >&6
9210else
9211 ac_cv_sys_largefile_CC=no
9212 if test "$GCC" != yes; then
9213 ac_save_CC=$CC
9214 while :; do
9215 # IRIX 6.2 and later do not support large files by default,
9216 # so use the C compiler's -n32 option if that helps.
cristy8b350f62009-11-15 23:12:43 +00009217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009218/* end confdefs.h. */
9219#include <sys/types.h>
9220 /* Check that off_t can represent 2**63 - 1 correctly.
9221 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9222 since some C++ compilers masquerading as C compilers
9223 incorrectly reject 9223372036854775807. */
9224#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9225 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9226 && LARGE_OFF_T % 2147483647 == 1)
9227 ? 1 : -1];
9228int
9229main ()
9230{
9231
9232 ;
9233 return 0;
9234}
9235_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009236 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009237 break
cristy3ed852e2009-09-05 21:47:34 +00009238fi
cristy3ed852e2009-09-05 21:47:34 +00009239rm -f core conftest.err conftest.$ac_objext
9240 CC="$CC -n32"
cristy8b350f62009-11-15 23:12:43 +00009241 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009242 ac_cv_sys_largefile_CC=' -n32'; break
cristy3ed852e2009-09-05 21:47:34 +00009243fi
cristy3ed852e2009-09-05 21:47:34 +00009244rm -f core conftest.err conftest.$ac_objext
9245 break
9246 done
9247 CC=$ac_save_CC
9248 rm -f conftest.$ac_ext
9249 fi
9250fi
cristy8b350f62009-11-15 23:12:43 +00009251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00009252$as_echo "$ac_cv_sys_largefile_CC" >&6; }
9253 if test "$ac_cv_sys_largefile_CC" != no; then
9254 CC=$CC$ac_cv_sys_largefile_CC
9255 fi
9256
cristy8b350f62009-11-15 23:12:43 +00009257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009258$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009259if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009260 $as_echo_n "(cached) " >&6
9261else
9262 while :; do
cristy8b350f62009-11-15 23:12:43 +00009263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009264/* end confdefs.h. */
9265#include <sys/types.h>
9266 /* Check that off_t can represent 2**63 - 1 correctly.
9267 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9268 since some C++ compilers masquerading as C compilers
9269 incorrectly reject 9223372036854775807. */
9270#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9271 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9272 && LARGE_OFF_T % 2147483647 == 1)
9273 ? 1 : -1];
9274int
9275main ()
9276{
9277
9278 ;
9279 return 0;
9280}
9281_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009282if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009283 ac_cv_sys_file_offset_bits=no; break
cristy3ed852e2009-09-05 21:47:34 +00009284fi
cristy3ed852e2009-09-05 21:47:34 +00009285rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00009286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009287/* end confdefs.h. */
9288#define _FILE_OFFSET_BITS 64
9289#include <sys/types.h>
9290 /* Check that off_t can represent 2**63 - 1 correctly.
9291 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9292 since some C++ compilers masquerading as C compilers
9293 incorrectly reject 9223372036854775807. */
9294#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9295 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9296 && LARGE_OFF_T % 2147483647 == 1)
9297 ? 1 : -1];
9298int
9299main ()
9300{
9301
9302 ;
9303 return 0;
9304}
9305_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009306if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009307 ac_cv_sys_file_offset_bits=64; break
cristy3ed852e2009-09-05 21:47:34 +00009308fi
cristy3ed852e2009-09-05 21:47:34 +00009309rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9310 ac_cv_sys_file_offset_bits=unknown
9311 break
9312done
9313fi
cristy8b350f62009-11-15 23:12:43 +00009314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
cristy3ed852e2009-09-05 21:47:34 +00009315$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
9316case $ac_cv_sys_file_offset_bits in #(
9317 no | unknown) ;;
9318 *)
9319cat >>confdefs.h <<_ACEOF
9320#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
9321_ACEOF
9322;;
9323esac
9324rm -rf conftest*
9325 if test $ac_cv_sys_file_offset_bits = unknown; then
cristy8b350f62009-11-15 23:12:43 +00009326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009327$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009328if test "${ac_cv_sys_large_files+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009329 $as_echo_n "(cached) " >&6
9330else
9331 while :; do
cristy8b350f62009-11-15 23:12:43 +00009332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009333/* end confdefs.h. */
9334#include <sys/types.h>
9335 /* Check that off_t can represent 2**63 - 1 correctly.
9336 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9337 since some C++ compilers masquerading as C compilers
9338 incorrectly reject 9223372036854775807. */
9339#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9340 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9341 && LARGE_OFF_T % 2147483647 == 1)
9342 ? 1 : -1];
9343int
9344main ()
9345{
9346
9347 ;
9348 return 0;
9349}
9350_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009351if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009352 ac_cv_sys_large_files=no; break
cristy3ed852e2009-09-05 21:47:34 +00009353fi
cristy3ed852e2009-09-05 21:47:34 +00009354rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00009355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009356/* end confdefs.h. */
9357#define _LARGE_FILES 1
9358#include <sys/types.h>
9359 /* Check that off_t can represent 2**63 - 1 correctly.
9360 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9361 since some C++ compilers masquerading as C compilers
9362 incorrectly reject 9223372036854775807. */
9363#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9364 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9365 && LARGE_OFF_T % 2147483647 == 1)
9366 ? 1 : -1];
9367int
9368main ()
9369{
9370
9371 ;
9372 return 0;
9373}
9374_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009375if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009376 ac_cv_sys_large_files=1; break
cristy3ed852e2009-09-05 21:47:34 +00009377fi
cristy3ed852e2009-09-05 21:47:34 +00009378rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9379 ac_cv_sys_large_files=unknown
9380 break
9381done
9382fi
cristy8b350f62009-11-15 23:12:43 +00009383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009384$as_echo "$ac_cv_sys_large_files" >&6; }
9385case $ac_cv_sys_large_files in #(
9386 no | unknown) ;;
9387 *)
9388cat >>confdefs.h <<_ACEOF
9389#define _LARGE_FILES $ac_cv_sys_large_files
9390_ACEOF
9391;;
9392esac
9393rm -rf conftest*
9394 fi
9395fi
9396
cristy8b350f62009-11-15 23:12:43 +00009397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009398$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009399if test "${ac_cv_sys_largefile_source+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009400 $as_echo_n "(cached) " >&6
9401else
9402 while :; do
cristy8b350f62009-11-15 23:12:43 +00009403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009404/* end confdefs.h. */
9405#include <sys/types.h> /* for off_t */
9406 #include <stdio.h>
9407int
9408main ()
9409{
9410int (*fp) (FILE *, off_t, int) = fseeko;
9411 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
9412 ;
9413 return 0;
9414}
9415_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009416if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009417 ac_cv_sys_largefile_source=no; break
cristy3ed852e2009-09-05 21:47:34 +00009418fi
cristy8b350f62009-11-15 23:12:43 +00009419rm -f core conftest.err conftest.$ac_objext \
9420 conftest$ac_exeext conftest.$ac_ext
9421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009422/* end confdefs.h. */
9423#define _LARGEFILE_SOURCE 1
9424#include <sys/types.h> /* for off_t */
9425 #include <stdio.h>
9426int
9427main ()
9428{
9429int (*fp) (FILE *, off_t, int) = fseeko;
9430 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
9431 ;
9432 return 0;
9433}
9434_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009435if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009436 ac_cv_sys_largefile_source=1; break
cristy3ed852e2009-09-05 21:47:34 +00009437fi
cristy8b350f62009-11-15 23:12:43 +00009438rm -f core conftest.err conftest.$ac_objext \
9439 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009440 ac_cv_sys_largefile_source=unknown
9441 break
9442done
9443fi
cristy8b350f62009-11-15 23:12:43 +00009444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
cristy3ed852e2009-09-05 21:47:34 +00009445$as_echo "$ac_cv_sys_largefile_source" >&6; }
9446case $ac_cv_sys_largefile_source in #(
9447 no | unknown) ;;
9448 *)
9449cat >>confdefs.h <<_ACEOF
9450#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
9451_ACEOF
9452;;
9453esac
9454rm -rf conftest*
9455
9456# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
9457# in glibc 2.1.3, but that breaks too many other things.
9458# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
9459if test $ac_cv_sys_largefile_source != unknown; then
9460
cristy8b350f62009-11-15 23:12:43 +00009461$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00009462
9463fi
9464
9465LFS_CPPFLAGS=''
9466if test "$enable_largefile" != no; then
9467 if test "$ac_cv_sys_file_offset_bits" != 'no'; then
9468 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
9469 else
cristy8b350f62009-11-15 23:12:43 +00009470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
cristy3ed852e2009-09-05 21:47:34 +00009471$as_echo_n "checking for native large file support... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009472 if test "$cross_compiling" = yes; then :
9473 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00009474$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00009475as_fn_error "cannot run test program while cross compiling
9476See \`config.log' for more details." "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00009477else
cristy8b350f62009-11-15 23:12:43 +00009478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9479/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00009480#include <unistd.h>
9481 main () {
9482 exit(!(sizeof(off_t) == 8));
9483 }
9484_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009485if ac_fn_c_try_run "$LINENO"; then :
9486 ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00009487
cristy8b350f62009-11-15 23:12:43 +00009488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00009489$as_echo "yes" >&6; }
9490else
cristy8b350f62009-11-15 23:12:43 +00009491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009492$as_echo "no" >&6; }
9493fi
cristy8b350f62009-11-15 23:12:43 +00009494rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9495 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009496fi
9497
cristy3ed852e2009-09-05 21:47:34 +00009498 fi
9499 if test "$ac_cv_sys_large_files" != 'no'; then
9500 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
9501 fi
9502 if test "$ac_cv_sys_largefile_source" != 'no'; then
9503 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
9504 fi
9505fi
9506
9507
9508#
9509# Configure libtool & libltdl
9510#
9511# Configure libtool
9512enable_dlopen=yes
9513
9514
9515
9516case `pwd` in
9517 *\ * | *\ *)
cristy8b350f62009-11-15 23:12:43 +00009518 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
cristy3ed852e2009-09-05 21:47:34 +00009519$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
9520esac
9521
9522
9523
cristy18304f92009-11-22 15:48:26 +00009524macro_version='2.2.6b'
9525macro_revision='1.3017'
cristy3ed852e2009-09-05 21:47:34 +00009526
9527
9528
9529
9530
9531
9532
9533
9534
9535
9536
9537
9538
9539ltmain="$ac_aux_dir/ltmain.sh"
9540
cristy8b350f62009-11-15 23:12:43 +00009541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
cristy3ed852e2009-09-05 21:47:34 +00009542$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009543if test "${lt_cv_path_NM+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009544 $as_echo_n "(cached) " >&6
9545else
9546 if test -n "$NM"; then
9547 # Let the user override the test.
9548 lt_cv_path_NM="$NM"
9549else
9550 lt_nm_to_check="${ac_tool_prefix}nm"
9551 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
9552 lt_nm_to_check="$lt_nm_to_check nm"
9553 fi
9554 for lt_tmp_nm in $lt_nm_to_check; do
9555 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9556 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
9557 IFS="$lt_save_ifs"
9558 test -z "$ac_dir" && ac_dir=.
9559 tmp_nm="$ac_dir/$lt_tmp_nm"
9560 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
9561 # Check to see if the nm accepts a BSD-compat flag.
9562 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
9563 # nm: unknown option "B" ignored
9564 # Tru64's nm complains that /dev/null is an invalid object file
9565 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
9566 */dev/null* | *'Invalid file or object type'*)
9567 lt_cv_path_NM="$tmp_nm -B"
9568 break
9569 ;;
9570 *)
9571 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
9572 */dev/null*)
9573 lt_cv_path_NM="$tmp_nm -p"
9574 break
9575 ;;
9576 *)
9577 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
9578 continue # so that we can try to find one that supports BSD flags
9579 ;;
9580 esac
9581 ;;
9582 esac
9583 fi
9584 done
9585 IFS="$lt_save_ifs"
9586 done
9587 : ${lt_cv_path_NM=no}
9588fi
9589fi
cristy8b350f62009-11-15 23:12:43 +00009590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
cristy3ed852e2009-09-05 21:47:34 +00009591$as_echo "$lt_cv_path_NM" >&6; }
9592if test "$lt_cv_path_NM" != "no"; then
9593 NM="$lt_cv_path_NM"
9594else
9595 # Didn't find any BSD compatible name lister, look for dumpbin.
cristy18304f92009-11-22 15:48:26 +00009596 if test -n "$ac_tool_prefix"; then
9597 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
cristy3ed852e2009-09-05 21:47:34 +00009598 do
9599 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9600set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009602$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009603if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009604 $as_echo_n "(cached) " >&6
9605else
9606 if test -n "$DUMPBIN"; then
9607 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
9608else
9609as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9610for as_dir in $PATH
9611do
9612 IFS=$as_save_IFS
9613 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009614 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9616 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00009617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009618 break 2
9619 fi
9620done
cristy8b350f62009-11-15 23:12:43 +00009621 done
cristy3ed852e2009-09-05 21:47:34 +00009622IFS=$as_save_IFS
9623
9624fi
9625fi
9626DUMPBIN=$ac_cv_prog_DUMPBIN
9627if test -n "$DUMPBIN"; then
cristy8b350f62009-11-15 23:12:43 +00009628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
cristy3ed852e2009-09-05 21:47:34 +00009629$as_echo "$DUMPBIN" >&6; }
9630else
cristy8b350f62009-11-15 23:12:43 +00009631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009632$as_echo "no" >&6; }
9633fi
9634
9635
9636 test -n "$DUMPBIN" && break
9637 done
9638fi
9639if test -z "$DUMPBIN"; then
9640 ac_ct_DUMPBIN=$DUMPBIN
cristy18304f92009-11-22 15:48:26 +00009641 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
cristy3ed852e2009-09-05 21:47:34 +00009642do
9643 # Extract the first word of "$ac_prog", so it can be a program name with args.
9644set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009646$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009647if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009648 $as_echo_n "(cached) " >&6
9649else
9650 if test -n "$ac_ct_DUMPBIN"; then
9651 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
9652else
9653as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9654for as_dir in $PATH
9655do
9656 IFS=$as_save_IFS
9657 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009658 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009659 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9660 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00009661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009662 break 2
9663 fi
9664done
cristy8b350f62009-11-15 23:12:43 +00009665 done
cristy3ed852e2009-09-05 21:47:34 +00009666IFS=$as_save_IFS
9667
9668fi
9669fi
9670ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
9671if test -n "$ac_ct_DUMPBIN"; then
cristy8b350f62009-11-15 23:12:43 +00009672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
cristy3ed852e2009-09-05 21:47:34 +00009673$as_echo "$ac_ct_DUMPBIN" >&6; }
9674else
cristy8b350f62009-11-15 23:12:43 +00009675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009676$as_echo "no" >&6; }
9677fi
9678
9679
9680 test -n "$ac_ct_DUMPBIN" && break
9681done
9682
9683 if test "x$ac_ct_DUMPBIN" = x; then
9684 DUMPBIN=":"
9685 else
9686 case $cross_compiling:$ac_tool_warned in
9687yes:)
cristy8b350f62009-11-15 23:12:43 +00009688{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00009689$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9690ac_tool_warned=yes ;;
9691esac
9692 DUMPBIN=$ac_ct_DUMPBIN
9693 fi
9694fi
9695
9696
9697 if test "$DUMPBIN" != ":"; then
9698 NM="$DUMPBIN"
9699 fi
9700fi
9701test -z "$NM" && NM=nm
9702
9703
9704
9705
9706
9707
cristy8b350f62009-11-15 23:12:43 +00009708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
cristy3ed852e2009-09-05 21:47:34 +00009709$as_echo_n "checking the name lister ($NM) interface... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009710if test "${lt_cv_nm_interface+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009711 $as_echo_n "(cached) " >&6
9712else
9713 lt_cv_nm_interface="BSD nm"
9714 echo "int some_variable = 0;" > conftest.$ac_ext
cristy0d3a6382010-04-26 00:45:55 +00009715 (eval echo "\"\$as_me:9715: $ac_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +00009716 (eval "$ac_compile" 2>conftest.err)
9717 cat conftest.err >&5
cristy0d3a6382010-04-26 00:45:55 +00009718 (eval echo "\"\$as_me:9718: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +00009719 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
9720 cat conftest.err >&5
cristy0d3a6382010-04-26 00:45:55 +00009721 (eval echo "\"\$as_me:9721: output\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +00009722 cat conftest.out >&5
9723 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
9724 lt_cv_nm_interface="MS dumpbin"
9725 fi
9726 rm -f conftest*
9727fi
cristy8b350f62009-11-15 23:12:43 +00009728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
cristy3ed852e2009-09-05 21:47:34 +00009729$as_echo "$lt_cv_nm_interface" >&6; }
9730
9731# find the maximum length of command line arguments
cristy8b350f62009-11-15 23:12:43 +00009732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
cristy3ed852e2009-09-05 21:47:34 +00009733$as_echo_n "checking the maximum length of command line arguments... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009734if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009735 $as_echo_n "(cached) " >&6
9736else
9737 i=0
9738 teststring="ABCD"
9739
9740 case $build_os in
9741 msdosdjgpp*)
9742 # On DJGPP, this test can blow up pretty badly due to problems in libc
9743 # (any single argument exceeding 2000 bytes causes a buffer overrun
9744 # during glob expansion). Even if it were fixed, the result of this
9745 # check would be larger than it should be.
9746 lt_cv_sys_max_cmd_len=12288; # 12K is about right
9747 ;;
9748
9749 gnu*)
9750 # Under GNU Hurd, this test is not required because there is
9751 # no limit to the length of command line arguments.
9752 # Libtool will interpret -1 as no limit whatsoever
9753 lt_cv_sys_max_cmd_len=-1;
9754 ;;
9755
9756 cygwin* | mingw* | cegcc*)
9757 # On Win9x/ME, this test blows up -- it succeeds, but takes
9758 # about 5 minutes as the teststring grows exponentially.
9759 # Worse, since 9x/ME are not pre-emptively multitasking,
9760 # you end up with a "frozen" computer, even though with patience
9761 # the test eventually succeeds (with a max line length of 256k).
9762 # Instead, let's just punt: use the minimum linelength reported by
9763 # all of the supported platforms: 8192 (on NT/2K/XP).
9764 lt_cv_sys_max_cmd_len=8192;
9765 ;;
9766
9767 amigaos*)
9768 # On AmigaOS with pdksh, this test takes hours, literally.
9769 # So we just punt and use a minimum line length of 8192.
9770 lt_cv_sys_max_cmd_len=8192;
9771 ;;
9772
9773 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
9774 # This has been around since 386BSD, at least. Likely further.
9775 if test -x /sbin/sysctl; then
9776 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
9777 elif test -x /usr/sbin/sysctl; then
9778 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
9779 else
9780 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
9781 fi
9782 # And add a safety zone
9783 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9784 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9785 ;;
9786
9787 interix*)
9788 # We know the value 262144 and hardcode it with a safety zone (like BSD)
9789 lt_cv_sys_max_cmd_len=196608
9790 ;;
9791
9792 osf*)
9793 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
9794 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
9795 # nice to cause kernel panics so lets avoid the loop below.
9796 # First set a reasonable default.
9797 lt_cv_sys_max_cmd_len=16384
9798 #
9799 if test -x /sbin/sysconfig; then
9800 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
9801 *1*) lt_cv_sys_max_cmd_len=-1 ;;
9802 esac
9803 fi
9804 ;;
9805 sco3.2v5*)
9806 lt_cv_sys_max_cmd_len=102400
9807 ;;
9808 sysv5* | sco5v6* | sysv4.2uw2*)
9809 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
9810 if test -n "$kargmax"; then
9811 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
9812 else
9813 lt_cv_sys_max_cmd_len=32768
9814 fi
9815 ;;
9816 *)
9817 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
9818 if test -n "$lt_cv_sys_max_cmd_len"; then
9819 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9820 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9821 else
9822 # Make teststring a little bigger before we do anything with it.
9823 # a 1K string should be a reasonable start.
9824 for i in 1 2 3 4 5 6 7 8 ; do
9825 teststring=$teststring$teststring
9826 done
9827 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
9828 # If test is not a shell built-in, we'll probably end up computing a
9829 # maximum length that is only half of the actual maximum length, but
9830 # we can't tell.
cristy18304f92009-11-22 15:48:26 +00009831 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
9832 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
cristy3ed852e2009-09-05 21:47:34 +00009833 test $i != 17 # 1/2 MB should be enough
9834 do
9835 i=`expr $i + 1`
9836 teststring=$teststring$teststring
9837 done
9838 # Only check the string length outside the loop.
9839 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
9840 teststring=
9841 # Add a significant safety factor because C++ compilers can tack on
9842 # massive amounts of additional arguments before passing them to the
9843 # linker. It appears as though 1/2 is a usable value.
9844 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
9845 fi
9846 ;;
9847 esac
9848
9849fi
9850
9851if test -n $lt_cv_sys_max_cmd_len ; then
cristy8b350f62009-11-15 23:12:43 +00009852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
cristy3ed852e2009-09-05 21:47:34 +00009853$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
9854else
cristy8b350f62009-11-15 23:12:43 +00009855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
cristy3ed852e2009-09-05 21:47:34 +00009856$as_echo "none" >&6; }
9857fi
9858max_cmd_len=$lt_cv_sys_max_cmd_len
9859
9860
9861
9862
9863
9864
9865: ${CP="cp -f"}
9866: ${MV="mv -f"}
9867: ${RM="rm -f"}
9868
cristy8b350f62009-11-15 23:12:43 +00009869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
cristy3ed852e2009-09-05 21:47:34 +00009870$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
9871# Try some XSI features
9872xsi_shell=no
9873( _lt_dummy="a/b/c"
9874 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
9875 = c,a/b,, \
9876 && eval 'test $(( 1 + 1 )) -eq 2 \
9877 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
9878 && xsi_shell=yes
cristy8b350f62009-11-15 23:12:43 +00009879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
cristy3ed852e2009-09-05 21:47:34 +00009880$as_echo "$xsi_shell" >&6; }
9881
9882
cristy8b350f62009-11-15 23:12:43 +00009883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
cristy3ed852e2009-09-05 21:47:34 +00009884$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
9885lt_shell_append=no
9886( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
9887 >/dev/null 2>&1 \
9888 && lt_shell_append=yes
cristy8b350f62009-11-15 23:12:43 +00009889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
cristy3ed852e2009-09-05 21:47:34 +00009890$as_echo "$lt_shell_append" >&6; }
9891
9892
9893if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9894 lt_unset=unset
9895else
9896 lt_unset=false
9897fi
9898
9899
9900
9901
9902
9903# test EBCDIC or ASCII
9904case `echo X|tr X '\101'` in
9905 A) # ASCII based system
9906 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
9907 lt_SP2NL='tr \040 \012'
9908 lt_NL2SP='tr \015\012 \040\040'
9909 ;;
9910 *) # EBCDIC based system
9911 lt_SP2NL='tr \100 \n'
9912 lt_NL2SP='tr \r\n \100\100'
9913 ;;
9914esac
9915
9916
9917
9918
9919
9920
9921
9922
9923
cristy8b350f62009-11-15 23:12:43 +00009924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009925$as_echo_n "checking for $LD option to reload object files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009926if test "${lt_cv_ld_reload_flag+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009927 $as_echo_n "(cached) " >&6
9928else
9929 lt_cv_ld_reload_flag='-r'
9930fi
cristy8b350f62009-11-15 23:12:43 +00009931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
cristy3ed852e2009-09-05 21:47:34 +00009932$as_echo "$lt_cv_ld_reload_flag" >&6; }
9933reload_flag=$lt_cv_ld_reload_flag
9934case $reload_flag in
9935"" | " "*) ;;
9936*) reload_flag=" $reload_flag" ;;
9937esac
9938reload_cmds='$LD$reload_flag -o $output$reload_objs'
9939case $host_os in
9940 darwin*)
9941 if test "$GCC" = yes; then
9942 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
9943 else
9944 reload_cmds='$LD$reload_flag -o $output$reload_objs'
9945 fi
9946 ;;
9947esac
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957if test -n "$ac_tool_prefix"; then
9958 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9959set dummy ${ac_tool_prefix}objdump; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009961$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009962if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009963 $as_echo_n "(cached) " >&6
9964else
9965 if test -n "$OBJDUMP"; then
9966 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9967else
9968as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9969for as_dir in $PATH
9970do
9971 IFS=$as_save_IFS
9972 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009973 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9975 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
cristy8b350f62009-11-15 23:12:43 +00009976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009977 break 2
9978 fi
9979done
cristy8b350f62009-11-15 23:12:43 +00009980 done
cristy3ed852e2009-09-05 21:47:34 +00009981IFS=$as_save_IFS
9982
9983fi
9984fi
9985OBJDUMP=$ac_cv_prog_OBJDUMP
9986if test -n "$OBJDUMP"; then
cristy8b350f62009-11-15 23:12:43 +00009987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00009988$as_echo "$OBJDUMP" >&6; }
9989else
cristy8b350f62009-11-15 23:12:43 +00009990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009991$as_echo "no" >&6; }
9992fi
9993
9994
9995fi
9996if test -z "$ac_cv_prog_OBJDUMP"; then
9997 ac_ct_OBJDUMP=$OBJDUMP
9998 # Extract the first word of "objdump", so it can be a program name with args.
9999set dummy objdump; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010001$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010002if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010003 $as_echo_n "(cached) " >&6
10004else
10005 if test -n "$ac_ct_OBJDUMP"; then
10006 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
10007else
10008as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10009for as_dir in $PATH
10010do
10011 IFS=$as_save_IFS
10012 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010013 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010014 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10015 ac_cv_prog_ac_ct_OBJDUMP="objdump"
cristy8b350f62009-11-15 23:12:43 +000010016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010017 break 2
10018 fi
10019done
cristy8b350f62009-11-15 23:12:43 +000010020 done
cristy3ed852e2009-09-05 21:47:34 +000010021IFS=$as_save_IFS
10022
10023fi
10024fi
10025ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
10026if test -n "$ac_ct_OBJDUMP"; then
cristy8b350f62009-11-15 23:12:43 +000010027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
cristy3ed852e2009-09-05 21:47:34 +000010028$as_echo "$ac_ct_OBJDUMP" >&6; }
10029else
cristy8b350f62009-11-15 23:12:43 +000010030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010031$as_echo "no" >&6; }
10032fi
10033
10034 if test "x$ac_ct_OBJDUMP" = x; then
10035 OBJDUMP="false"
10036 else
10037 case $cross_compiling:$ac_tool_warned in
10038yes:)
cristy8b350f62009-11-15 23:12:43 +000010039{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000010040$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10041ac_tool_warned=yes ;;
10042esac
10043 OBJDUMP=$ac_ct_OBJDUMP
10044 fi
10045else
10046 OBJDUMP="$ac_cv_prog_OBJDUMP"
10047fi
10048
10049test -z "$OBJDUMP" && OBJDUMP=objdump
10050
10051
10052
10053
10054
10055
cristy8b350f62009-11-15 23:12:43 +000010056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000010057$as_echo_n "checking how to recognize dependent libraries... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010058if test "${lt_cv_deplibs_check_method+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010059 $as_echo_n "(cached) " >&6
10060else
10061 lt_cv_file_magic_cmd='$MAGIC_CMD'
10062lt_cv_file_magic_test_file=
10063lt_cv_deplibs_check_method='unknown'
10064# Need to set the preceding variable on all platforms that support
10065# interlibrary dependencies.
10066# 'none' -- dependencies not supported.
10067# `unknown' -- same as none, but documents that we really don't know.
10068# 'pass_all' -- all dependencies passed with no checks.
10069# 'test_compile' -- check by making test program.
10070# 'file_magic [[regex]]' -- check by looking for files in library path
10071# which responds to the $file_magic_cmd with a given extended regex.
10072# If you have `file' or equivalent on your system and you're not sure
10073# whether `pass_all' will *always* work, you probably want this one.
10074
10075case $host_os in
10076aix[4-9]*)
10077 lt_cv_deplibs_check_method=pass_all
10078 ;;
10079
10080beos*)
10081 lt_cv_deplibs_check_method=pass_all
10082 ;;
10083
10084bsdi[45]*)
10085 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10086 lt_cv_file_magic_cmd='/usr/bin/file -L'
10087 lt_cv_file_magic_test_file=/shlib/libc.so
10088 ;;
10089
10090cygwin*)
10091 # func_win32_libid is a shell function defined in ltmain.sh
10092 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10093 lt_cv_file_magic_cmd='func_win32_libid'
10094 ;;
10095
10096mingw* | pw32*)
10097 # Base MSYS/MinGW do not provide the 'file' command needed by
10098 # func_win32_libid shell function, so use a weaker test based on 'objdump',
10099 # unless we find 'file', for example because we are cross-compiling.
cristy18304f92009-11-22 15:48:26 +000010100 if ( file / ) >/dev/null 2>&1; then
cristy3ed852e2009-09-05 21:47:34 +000010101 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10102 lt_cv_file_magic_cmd='func_win32_libid'
10103 else
10104 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
10105 lt_cv_file_magic_cmd='$OBJDUMP -f'
10106 fi
10107 ;;
10108
cristy18304f92009-11-22 15:48:26 +000010109cegcc)
cristy3ed852e2009-09-05 21:47:34 +000010110 # use the weaker test based on 'objdump'. See mingw*.
10111 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
10112 lt_cv_file_magic_cmd='$OBJDUMP -f'
10113 ;;
10114
10115darwin* | rhapsody*)
10116 lt_cv_deplibs_check_method=pass_all
10117 ;;
10118
10119freebsd* | dragonfly*)
10120 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10121 case $host_cpu in
10122 i*86 )
10123 # Not sure whether the presence of OpenBSD here was a mistake.
10124 # Let's accept both of them until this is cleared up.
10125 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
10126 lt_cv_file_magic_cmd=/usr/bin/file
10127 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10128 ;;
10129 esac
10130 else
10131 lt_cv_deplibs_check_method=pass_all
10132 fi
10133 ;;
10134
10135gnu*)
10136 lt_cv_deplibs_check_method=pass_all
10137 ;;
10138
10139hpux10.20* | hpux11*)
10140 lt_cv_file_magic_cmd=/usr/bin/file
10141 case $host_cpu in
10142 ia64*)
10143 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10144 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10145 ;;
10146 hppa*64*)
cristy18304f92009-11-22 15:48:26 +000010147 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 +000010148 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10149 ;;
10150 *)
cristy18304f92009-11-22 15:48:26 +000010151 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 +000010152 lt_cv_file_magic_test_file=/usr/lib/libc.sl
10153 ;;
10154 esac
10155 ;;
10156
10157interix[3-9]*)
10158 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
10159 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
10160 ;;
10161
10162irix5* | irix6* | nonstopux*)
10163 case $LD in
10164 *-32|*"-32 ") libmagic=32-bit;;
10165 *-n32|*"-n32 ") libmagic=N32;;
10166 *-64|*"-64 ") libmagic=64-bit;;
10167 *) libmagic=never-match;;
10168 esac
10169 lt_cv_deplibs_check_method=pass_all
10170 ;;
10171
10172# This must be Linux ELF.
cristy18304f92009-11-22 15:48:26 +000010173linux* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000010174 lt_cv_deplibs_check_method=pass_all
10175 ;;
10176
10177netbsd*)
10178 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10179 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10180 else
10181 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10182 fi
10183 ;;
10184
10185newos6*)
10186 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10187 lt_cv_file_magic_cmd=/usr/bin/file
10188 lt_cv_file_magic_test_file=/usr/lib/libnls.so
10189 ;;
10190
10191*nto* | *qnx*)
10192 lt_cv_deplibs_check_method=pass_all
10193 ;;
10194
10195openbsd*)
10196 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10197 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10198 else
10199 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10200 fi
10201 ;;
10202
10203osf3* | osf4* | osf5*)
10204 lt_cv_deplibs_check_method=pass_all
10205 ;;
10206
10207rdos*)
10208 lt_cv_deplibs_check_method=pass_all
10209 ;;
10210
10211solaris*)
10212 lt_cv_deplibs_check_method=pass_all
10213 ;;
10214
10215sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10216 lt_cv_deplibs_check_method=pass_all
10217 ;;
10218
10219sysv4 | sysv4.3*)
10220 case $host_vendor in
10221 motorola)
10222 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]'
10223 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10224 ;;
10225 ncr)
10226 lt_cv_deplibs_check_method=pass_all
10227 ;;
10228 sequent)
10229 lt_cv_file_magic_cmd='/bin/file'
10230 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10231 ;;
10232 sni)
10233 lt_cv_file_magic_cmd='/bin/file'
10234 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10235 lt_cv_file_magic_test_file=/lib/libc.so
10236 ;;
10237 siemens)
10238 lt_cv_deplibs_check_method=pass_all
10239 ;;
10240 pc)
10241 lt_cv_deplibs_check_method=pass_all
10242 ;;
10243 esac
10244 ;;
10245
10246tpf*)
10247 lt_cv_deplibs_check_method=pass_all
10248 ;;
10249esac
10250
10251fi
cristy8b350f62009-11-15 23:12:43 +000010252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
cristy3ed852e2009-09-05 21:47:34 +000010253$as_echo "$lt_cv_deplibs_check_method" >&6; }
10254file_magic_cmd=$lt_cv_file_magic_cmd
10255deplibs_check_method=$lt_cv_deplibs_check_method
10256test -z "$deplibs_check_method" && deplibs_check_method=unknown
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269if test -n "$ac_tool_prefix"; then
10270 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
10271set dummy ${ac_tool_prefix}ar; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010273$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010274if test "${ac_cv_prog_AR+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010275 $as_echo_n "(cached) " >&6
10276else
10277 if test -n "$AR"; then
10278 ac_cv_prog_AR="$AR" # Let the user override the test.
10279else
10280as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10281for as_dir in $PATH
10282do
10283 IFS=$as_save_IFS
10284 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010285 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010286 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10287 ac_cv_prog_AR="${ac_tool_prefix}ar"
cristy8b350f62009-11-15 23:12:43 +000010288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010289 break 2
10290 fi
10291done
cristy8b350f62009-11-15 23:12:43 +000010292 done
cristy3ed852e2009-09-05 21:47:34 +000010293IFS=$as_save_IFS
10294
10295fi
10296fi
10297AR=$ac_cv_prog_AR
10298if test -n "$AR"; then
cristy8b350f62009-11-15 23:12:43 +000010299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
cristy3ed852e2009-09-05 21:47:34 +000010300$as_echo "$AR" >&6; }
10301else
cristy8b350f62009-11-15 23:12:43 +000010302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010303$as_echo "no" >&6; }
10304fi
10305
10306
10307fi
10308if test -z "$ac_cv_prog_AR"; then
10309 ac_ct_AR=$AR
10310 # Extract the first word of "ar", so it can be a program name with args.
10311set dummy ar; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010313$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010314if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010315 $as_echo_n "(cached) " >&6
10316else
10317 if test -n "$ac_ct_AR"; then
10318 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10319else
10320as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10321for as_dir in $PATH
10322do
10323 IFS=$as_save_IFS
10324 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010325 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10327 ac_cv_prog_ac_ct_AR="ar"
cristy8b350f62009-11-15 23:12:43 +000010328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010329 break 2
10330 fi
10331done
cristy8b350f62009-11-15 23:12:43 +000010332 done
cristy3ed852e2009-09-05 21:47:34 +000010333IFS=$as_save_IFS
10334
10335fi
10336fi
10337ac_ct_AR=$ac_cv_prog_ac_ct_AR
10338if test -n "$ac_ct_AR"; then
cristy8b350f62009-11-15 23:12:43 +000010339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
cristy3ed852e2009-09-05 21:47:34 +000010340$as_echo "$ac_ct_AR" >&6; }
10341else
cristy8b350f62009-11-15 23:12:43 +000010342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010343$as_echo "no" >&6; }
10344fi
10345
10346 if test "x$ac_ct_AR" = x; then
10347 AR="false"
10348 else
10349 case $cross_compiling:$ac_tool_warned in
10350yes:)
cristy8b350f62009-11-15 23:12:43 +000010351{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000010352$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10353ac_tool_warned=yes ;;
10354esac
10355 AR=$ac_ct_AR
10356 fi
10357else
10358 AR="$ac_cv_prog_AR"
10359fi
10360
10361test -z "$AR" && AR=ar
10362test -z "$AR_FLAGS" && AR_FLAGS=cru
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374if test -n "$ac_tool_prefix"; then
10375 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10376set dummy ${ac_tool_prefix}strip; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010378$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010379if test "${ac_cv_prog_STRIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010380 $as_echo_n "(cached) " >&6
10381else
10382 if test -n "$STRIP"; then
10383 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10384else
10385as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10386for as_dir in $PATH
10387do
10388 IFS=$as_save_IFS
10389 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010390 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010391 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10392 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
cristy8b350f62009-11-15 23:12:43 +000010393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010394 break 2
10395 fi
10396done
cristy8b350f62009-11-15 23:12:43 +000010397 done
cristy3ed852e2009-09-05 21:47:34 +000010398IFS=$as_save_IFS
10399
10400fi
10401fi
10402STRIP=$ac_cv_prog_STRIP
10403if test -n "$STRIP"; then
cristy8b350f62009-11-15 23:12:43 +000010404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000010405$as_echo "$STRIP" >&6; }
10406else
cristy8b350f62009-11-15 23:12:43 +000010407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010408$as_echo "no" >&6; }
10409fi
10410
10411
10412fi
10413if test -z "$ac_cv_prog_STRIP"; then
10414 ac_ct_STRIP=$STRIP
10415 # Extract the first word of "strip", so it can be a program name with args.
10416set dummy strip; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010418$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010419if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010420 $as_echo_n "(cached) " >&6
10421else
10422 if test -n "$ac_ct_STRIP"; then
10423 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10424else
10425as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10426for as_dir in $PATH
10427do
10428 IFS=$as_save_IFS
10429 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010430 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010431 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10432 ac_cv_prog_ac_ct_STRIP="strip"
cristy8b350f62009-11-15 23:12:43 +000010433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010434 break 2
10435 fi
10436done
cristy8b350f62009-11-15 23:12:43 +000010437 done
cristy3ed852e2009-09-05 21:47:34 +000010438IFS=$as_save_IFS
10439
10440fi
10441fi
10442ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10443if test -n "$ac_ct_STRIP"; then
cristy8b350f62009-11-15 23:12:43 +000010444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000010445$as_echo "$ac_ct_STRIP" >&6; }
10446else
cristy8b350f62009-11-15 23:12:43 +000010447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010448$as_echo "no" >&6; }
10449fi
10450
10451 if test "x$ac_ct_STRIP" = x; then
10452 STRIP=":"
10453 else
10454 case $cross_compiling:$ac_tool_warned in
10455yes:)
cristy8b350f62009-11-15 23:12:43 +000010456{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000010457$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10458ac_tool_warned=yes ;;
10459esac
10460 STRIP=$ac_ct_STRIP
10461 fi
10462else
10463 STRIP="$ac_cv_prog_STRIP"
10464fi
10465
10466test -z "$STRIP" && STRIP=:
10467
10468
10469
10470
10471
10472
10473if test -n "$ac_tool_prefix"; then
10474 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10475set dummy ${ac_tool_prefix}ranlib; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010477$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010478if test "${ac_cv_prog_RANLIB+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010479 $as_echo_n "(cached) " >&6
10480else
10481 if test -n "$RANLIB"; then
10482 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10483else
10484as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10485for as_dir in $PATH
10486do
10487 IFS=$as_save_IFS
10488 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010489 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010490 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10491 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
cristy8b350f62009-11-15 23:12:43 +000010492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010493 break 2
10494 fi
10495done
cristy8b350f62009-11-15 23:12:43 +000010496 done
cristy3ed852e2009-09-05 21:47:34 +000010497IFS=$as_save_IFS
10498
10499fi
10500fi
10501RANLIB=$ac_cv_prog_RANLIB
10502if test -n "$RANLIB"; then
cristy8b350f62009-11-15 23:12:43 +000010503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000010504$as_echo "$RANLIB" >&6; }
10505else
cristy8b350f62009-11-15 23:12:43 +000010506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010507$as_echo "no" >&6; }
10508fi
10509
10510
10511fi
10512if test -z "$ac_cv_prog_RANLIB"; then
10513 ac_ct_RANLIB=$RANLIB
10514 # Extract the first word of "ranlib", so it can be a program name with args.
10515set dummy ranlib; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010517$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010518if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010519 $as_echo_n "(cached) " >&6
10520else
10521 if test -n "$ac_ct_RANLIB"; then
10522 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10523else
10524as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10525for as_dir in $PATH
10526do
10527 IFS=$as_save_IFS
10528 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010529 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10531 ac_cv_prog_ac_ct_RANLIB="ranlib"
cristy8b350f62009-11-15 23:12:43 +000010532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010533 break 2
10534 fi
10535done
cristy8b350f62009-11-15 23:12:43 +000010536 done
cristy3ed852e2009-09-05 21:47:34 +000010537IFS=$as_save_IFS
10538
10539fi
10540fi
10541ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10542if test -n "$ac_ct_RANLIB"; then
cristy8b350f62009-11-15 23:12:43 +000010543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000010544$as_echo "$ac_ct_RANLIB" >&6; }
10545else
cristy8b350f62009-11-15 23:12:43 +000010546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010547$as_echo "no" >&6; }
10548fi
10549
10550 if test "x$ac_ct_RANLIB" = x; then
10551 RANLIB=":"
10552 else
10553 case $cross_compiling:$ac_tool_warned in
10554yes:)
cristy8b350f62009-11-15 23:12:43 +000010555{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000010556$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10557ac_tool_warned=yes ;;
10558esac
10559 RANLIB=$ac_ct_RANLIB
10560 fi
10561else
10562 RANLIB="$ac_cv_prog_RANLIB"
10563fi
10564
10565test -z "$RANLIB" && RANLIB=:
10566
10567
10568
10569
10570
10571
10572# Determine commands to create old-style static archives.
10573old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
10574old_postinstall_cmds='chmod 644 $oldlib'
10575old_postuninstall_cmds=
10576
10577if test -n "$RANLIB"; then
10578 case $host_os in
10579 openbsd*)
10580 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
10581 ;;
10582 *)
10583 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
10584 ;;
10585 esac
10586 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
10587fi
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622# If no C compiler was specified, use CC.
10623LTCC=${LTCC-"$CC"}
10624
10625# If no C compiler flags were specified, use CFLAGS.
10626LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10627
10628# Allow CC to be a program name with arguments.
10629compiler=$CC
10630
10631
10632# Check for command to grab the raw symbol name followed by C symbol from nm.
cristy8b350f62009-11-15 23:12:43 +000010633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
cristy3ed852e2009-09-05 21:47:34 +000010634$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010635if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010636 $as_echo_n "(cached) " >&6
10637else
10638
10639# These are sane defaults that work on at least a few old systems.
10640# [They come from Ultrix. What could be older than Ultrix?!! ;)]
10641
10642# Character class describing NM global symbol codes.
10643symcode='[BCDEGRST]'
10644
10645# Regexp to match symbols that can be accessed directly from C.
10646sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10647
10648# Define system-specific variables.
10649case $host_os in
10650aix*)
10651 symcode='[BCDT]'
10652 ;;
10653cygwin* | mingw* | pw32* | cegcc*)
10654 symcode='[ABCDGISTW]'
10655 ;;
10656hpux*)
10657 if test "$host_cpu" = ia64; then
10658 symcode='[ABCDEGRST]'
10659 fi
10660 ;;
10661irix* | nonstopux*)
10662 symcode='[BCDEGRST]'
10663 ;;
10664osf*)
10665 symcode='[BCDEGQRST]'
10666 ;;
10667solaris*)
10668 symcode='[BDRT]'
10669 ;;
10670sco3.2v5*)
10671 symcode='[DT]'
10672 ;;
10673sysv4.2uw2*)
10674 symcode='[DT]'
10675 ;;
10676sysv5* | sco5v6* | unixware* | OpenUNIX*)
10677 symcode='[ABDT]'
10678 ;;
10679sysv4)
10680 symcode='[DFNSTU]'
10681 ;;
10682esac
10683
10684# If we're using GNU nm, then use its standard symbol codes.
10685case `$NM -V 2>&1` in
10686*GNU* | *'with BFD'*)
10687 symcode='[ABCDGIRSTW]' ;;
10688esac
10689
10690# Transform an extracted symbol line into a proper C declaration.
10691# Some systems (esp. on ia64) link data and code symbols differently,
10692# so use this general approach.
10693lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10694
10695# Transform an extracted symbol line into symbol name and symbol address
10696lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
10697lt_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'"
10698
10699# Handle CRLF in mingw tool chain
10700opt_cr=
10701case $build_os in
10702mingw*)
10703 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10704 ;;
10705esac
10706
10707# Try without a prefix underscore, then with it.
10708for ac_symprfx in "" "_"; do
10709
10710 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10711 symxfrm="\\1 $ac_symprfx\\2 \\2"
10712
10713 # Write the raw and C identifiers.
10714 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
10715 # Fake it for dumpbin and say T for any non-static function
10716 # and D for any global variable.
10717 # Also find C++ and __fastcall symbols from MSVC++,
10718 # which start with @ or ?.
10719 lt_cv_sys_global_symbol_pipe="$AWK '"\
10720" {last_section=section; section=\$ 3};"\
10721" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
10722" \$ 0!~/External *\|/{next};"\
10723" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
10724" {if(hide[section]) next};"\
10725" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
10726" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
10727" s[1]~/^[@?]/{print s[1], s[1]; next};"\
10728" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
10729" ' prfx=^$ac_symprfx"
10730 else
10731 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10732 fi
10733
10734 # Check to see that the pipe works correctly.
10735 pipe_works=no
10736
10737 rm -f conftest*
10738 cat > conftest.$ac_ext <<_LT_EOF
10739#ifdef __cplusplus
10740extern "C" {
10741#endif
10742char nm_test_var;
10743void nm_test_func(void);
10744void nm_test_func(void){}
10745#ifdef __cplusplus
10746}
10747#endif
10748int main(){nm_test_var='a';nm_test_func();return(0);}
10749_LT_EOF
10750
cristy8b350f62009-11-15 23:12:43 +000010751 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000010752 (eval $ac_compile) 2>&5
10753 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000010754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10755 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000010756 # Now try to grab the symbols.
10757 nlist=conftest.nm
cristy18304f92009-11-22 15:48:26 +000010758 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
10759 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
cristy3ed852e2009-09-05 21:47:34 +000010760 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000010761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10762 test $ac_status = 0; } && test -s "$nlist"; then
cristy3ed852e2009-09-05 21:47:34 +000010763 # Try sorting and uniquifying the output.
10764 if sort "$nlist" | uniq > "$nlist"T; then
10765 mv -f "$nlist"T "$nlist"
10766 else
10767 rm -f "$nlist"T
10768 fi
10769
10770 # Make sure that we snagged all the symbols we need.
10771 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
10772 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
10773 cat <<_LT_EOF > conftest.$ac_ext
10774#ifdef __cplusplus
10775extern "C" {
10776#endif
10777
10778_LT_EOF
10779 # Now generate the symbol file.
10780 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
10781
10782 cat <<_LT_EOF >> conftest.$ac_ext
10783
10784/* The mapping between symbol names and symbols. */
10785const struct {
10786 const char *name;
10787 void *address;
10788}
10789lt__PROGRAM__LTX_preloaded_symbols[] =
10790{
10791 { "@PROGRAM@", (void *) 0 },
10792_LT_EOF
10793 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
10794 cat <<\_LT_EOF >> conftest.$ac_ext
10795 {0, (void *) 0}
10796};
10797
10798/* This works around a problem in FreeBSD linker */
10799#ifdef FREEBSD_WORKAROUND
10800static const void *lt_preloaded_setup() {
10801 return lt__PROGRAM__LTX_preloaded_symbols;
10802}
10803#endif
10804
10805#ifdef __cplusplus
10806}
10807#endif
10808_LT_EOF
10809 # Now try linking the two files.
10810 mv conftest.$ac_objext conftstm.$ac_objext
10811 lt_save_LIBS="$LIBS"
10812 lt_save_CFLAGS="$CFLAGS"
10813 LIBS="conftstm.$ac_objext"
10814 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
cristy8b350f62009-11-15 23:12:43 +000010815 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000010816 (eval $ac_link) 2>&5
10817 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000010818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10819 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
cristy3ed852e2009-09-05 21:47:34 +000010820 pipe_works=yes
10821 fi
10822 LIBS="$lt_save_LIBS"
10823 CFLAGS="$lt_save_CFLAGS"
10824 else
10825 echo "cannot find nm_test_func in $nlist" >&5
10826 fi
10827 else
10828 echo "cannot find nm_test_var in $nlist" >&5
10829 fi
10830 else
10831 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10832 fi
10833 else
10834 echo "$progname: failed program was:" >&5
10835 cat conftest.$ac_ext >&5
10836 fi
10837 rm -rf conftest* conftst*
10838
10839 # Do not use the global_symbol_pipe unless it works.
10840 if test "$pipe_works" = yes; then
10841 break
10842 else
10843 lt_cv_sys_global_symbol_pipe=
10844 fi
10845done
10846
10847fi
10848
10849if test -z "$lt_cv_sys_global_symbol_pipe"; then
10850 lt_cv_sys_global_symbol_to_cdecl=
10851fi
10852if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
cristy8b350f62009-11-15 23:12:43 +000010853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
cristy3ed852e2009-09-05 21:47:34 +000010854$as_echo "failed" >&6; }
10855else
cristy8b350f62009-11-15 23:12:43 +000010856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000010857$as_echo "ok" >&6; }
10858fi
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881# Check whether --enable-libtool-lock was given.
cristy8b350f62009-11-15 23:12:43 +000010882if test "${enable_libtool_lock+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010883 enableval=$enable_libtool_lock;
10884fi
10885
10886test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10887
10888# Some flags need to be propagated to the compiler or linker for good
10889# libtool support.
10890case $host in
10891ia64-*-hpux*)
10892 # Find out which ABI we are using.
10893 echo 'int i;' > conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010894 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000010895 (eval $ac_compile) 2>&5
10896 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000010897 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10898 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000010899 case `/usr/bin/file conftest.$ac_objext` in
10900 *ELF-32*)
10901 HPUX_IA64_MODE="32"
10902 ;;
10903 *ELF-64*)
10904 HPUX_IA64_MODE="64"
10905 ;;
10906 esac
10907 fi
10908 rm -rf conftest*
10909 ;;
10910*-*-irix6*)
10911 # Find out which ABI we are using.
cristy0d3a6382010-04-26 00:45:55 +000010912 echo '#line 10912 "configure"' > conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010913 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000010914 (eval $ac_compile) 2>&5
10915 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000010916 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10917 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000010918 if test "$lt_cv_prog_gnu_ld" = yes; then
10919 case `/usr/bin/file conftest.$ac_objext` in
10920 *32-bit*)
10921 LD="${LD-ld} -melf32bsmip"
10922 ;;
10923 *N32*)
10924 LD="${LD-ld} -melf32bmipn32"
10925 ;;
10926 *64-bit*)
10927 LD="${LD-ld} -melf64bmip"
10928 ;;
10929 esac
10930 else
10931 case `/usr/bin/file conftest.$ac_objext` in
10932 *32-bit*)
10933 LD="${LD-ld} -32"
10934 ;;
10935 *N32*)
10936 LD="${LD-ld} -n32"
10937 ;;
10938 *64-bit*)
10939 LD="${LD-ld} -64"
10940 ;;
10941 esac
10942 fi
10943 fi
10944 rm -rf conftest*
10945 ;;
10946
10947x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
10948s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
10949 # Find out which ABI we are using.
10950 echo 'int i;' > conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010951 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000010952 (eval $ac_compile) 2>&5
10953 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000010954 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10955 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000010956 case `/usr/bin/file conftest.o` in
10957 *32-bit*)
10958 case $host in
10959 x86_64-*kfreebsd*-gnu)
10960 LD="${LD-ld} -m elf_i386_fbsd"
10961 ;;
10962 x86_64-*linux*)
10963 LD="${LD-ld} -m elf_i386"
10964 ;;
10965 ppc64-*linux*|powerpc64-*linux*)
10966 LD="${LD-ld} -m elf32ppclinux"
10967 ;;
10968 s390x-*linux*)
10969 LD="${LD-ld} -m elf_s390"
10970 ;;
10971 sparc64-*linux*)
10972 LD="${LD-ld} -m elf32_sparc"
10973 ;;
10974 esac
10975 ;;
10976 *64-bit*)
10977 case $host in
10978 x86_64-*kfreebsd*-gnu)
10979 LD="${LD-ld} -m elf_x86_64_fbsd"
10980 ;;
10981 x86_64-*linux*)
10982 LD="${LD-ld} -m elf_x86_64"
10983 ;;
10984 ppc*-*linux*|powerpc*-*linux*)
10985 LD="${LD-ld} -m elf64ppc"
10986 ;;
10987 s390*-*linux*|s390*-*tpf*)
10988 LD="${LD-ld} -m elf64_s390"
10989 ;;
10990 sparc*-*linux*)
10991 LD="${LD-ld} -m elf64_sparc"
10992 ;;
10993 esac
10994 ;;
10995 esac
10996 fi
10997 rm -rf conftest*
10998 ;;
10999
11000*-*-sco3.2v5*)
11001 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
11002 SAVE_CFLAGS="$CFLAGS"
11003 CFLAGS="$CFLAGS -belf"
cristy8b350f62009-11-15 23:12:43 +000011004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
cristy3ed852e2009-09-05 21:47:34 +000011005$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011006if test "${lt_cv_cc_needs_belf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011007 $as_echo_n "(cached) " >&6
11008else
11009 ac_ext=c
11010ac_cpp='$CPP $CPPFLAGS'
11011ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11012ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11013ac_compiler_gnu=$ac_cv_c_compiler_gnu
11014
cristy8b350f62009-11-15 23:12:43 +000011015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011016/* end confdefs.h. */
11017
11018int
11019main ()
11020{
11021
11022 ;
11023 return 0;
11024}
11025_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011026if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000011027 lt_cv_cc_needs_belf=yes
11028else
cristy8b350f62009-11-15 23:12:43 +000011029 lt_cv_cc_needs_belf=no
cristy3ed852e2009-09-05 21:47:34 +000011030fi
cristy8b350f62009-11-15 23:12:43 +000011031rm -f core conftest.err conftest.$ac_objext \
11032 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011033 ac_ext=c
11034ac_cpp='$CPP $CPPFLAGS'
11035ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11036ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11037ac_compiler_gnu=$ac_cv_c_compiler_gnu
11038
11039fi
cristy8b350f62009-11-15 23:12:43 +000011040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
cristy3ed852e2009-09-05 21:47:34 +000011041$as_echo "$lt_cv_cc_needs_belf" >&6; }
11042 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
11043 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
11044 CFLAGS="$SAVE_CFLAGS"
11045 fi
11046 ;;
11047sparc*-*solaris*)
11048 # Find out which ABI we are using.
11049 echo 'int i;' > conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000011050 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000011051 (eval $ac_compile) 2>&5
11052 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000011053 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11054 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000011055 case `/usr/bin/file conftest.o` in
11056 *64-bit*)
11057 case $lt_cv_prog_gnu_ld in
11058 yes*) LD="${LD-ld} -m elf64_sparc" ;;
11059 *)
11060 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
11061 LD="${LD-ld} -64"
11062 fi
11063 ;;
11064 esac
11065 ;;
11066 esac
11067 fi
11068 rm -rf conftest*
11069 ;;
11070esac
11071
11072need_locks="$enable_libtool_lock"
11073
11074
11075 case $host_os in
11076 rhapsody* | darwin*)
11077 if test -n "$ac_tool_prefix"; then
11078 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
11079set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011081$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011082if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011083 $as_echo_n "(cached) " >&6
11084else
11085 if test -n "$DSYMUTIL"; then
11086 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11087else
11088as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11089for as_dir in $PATH
11090do
11091 IFS=$as_save_IFS
11092 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011093 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011094 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11095 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
cristy8b350f62009-11-15 23:12:43 +000011096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011097 break 2
11098 fi
11099done
cristy8b350f62009-11-15 23:12:43 +000011100 done
cristy3ed852e2009-09-05 21:47:34 +000011101IFS=$as_save_IFS
11102
11103fi
11104fi
11105DSYMUTIL=$ac_cv_prog_DSYMUTIL
11106if test -n "$DSYMUTIL"; then
cristy8b350f62009-11-15 23:12:43 +000011107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
cristy3ed852e2009-09-05 21:47:34 +000011108$as_echo "$DSYMUTIL" >&6; }
11109else
cristy8b350f62009-11-15 23:12:43 +000011110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011111$as_echo "no" >&6; }
11112fi
11113
11114
11115fi
11116if test -z "$ac_cv_prog_DSYMUTIL"; then
11117 ac_ct_DSYMUTIL=$DSYMUTIL
11118 # Extract the first word of "dsymutil", so it can be a program name with args.
11119set dummy dsymutil; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011121$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011122if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011123 $as_echo_n "(cached) " >&6
11124else
11125 if test -n "$ac_ct_DSYMUTIL"; then
11126 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
11127else
11128as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11129for as_dir in $PATH
11130do
11131 IFS=$as_save_IFS
11132 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011133 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011134 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11135 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
cristy8b350f62009-11-15 23:12:43 +000011136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011137 break 2
11138 fi
11139done
cristy8b350f62009-11-15 23:12:43 +000011140 done
cristy3ed852e2009-09-05 21:47:34 +000011141IFS=$as_save_IFS
11142
11143fi
11144fi
11145ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
11146if test -n "$ac_ct_DSYMUTIL"; then
cristy8b350f62009-11-15 23:12:43 +000011147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
cristy3ed852e2009-09-05 21:47:34 +000011148$as_echo "$ac_ct_DSYMUTIL" >&6; }
11149else
cristy8b350f62009-11-15 23:12:43 +000011150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011151$as_echo "no" >&6; }
11152fi
11153
11154 if test "x$ac_ct_DSYMUTIL" = x; then
11155 DSYMUTIL=":"
11156 else
11157 case $cross_compiling:$ac_tool_warned in
11158yes:)
cristy8b350f62009-11-15 23:12:43 +000011159{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000011160$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11161ac_tool_warned=yes ;;
11162esac
11163 DSYMUTIL=$ac_ct_DSYMUTIL
11164 fi
11165else
11166 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
11167fi
11168
11169 if test -n "$ac_tool_prefix"; then
11170 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
11171set dummy ${ac_tool_prefix}nmedit; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011173$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011174if test "${ac_cv_prog_NMEDIT+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011175 $as_echo_n "(cached) " >&6
11176else
11177 if test -n "$NMEDIT"; then
11178 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
11179else
11180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11181for as_dir in $PATH
11182do
11183 IFS=$as_save_IFS
11184 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011185 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011186 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11187 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
cristy8b350f62009-11-15 23:12:43 +000011188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011189 break 2
11190 fi
11191done
cristy8b350f62009-11-15 23:12:43 +000011192 done
cristy3ed852e2009-09-05 21:47:34 +000011193IFS=$as_save_IFS
11194
11195fi
11196fi
11197NMEDIT=$ac_cv_prog_NMEDIT
11198if test -n "$NMEDIT"; then
cristy8b350f62009-11-15 23:12:43 +000011199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
cristy3ed852e2009-09-05 21:47:34 +000011200$as_echo "$NMEDIT" >&6; }
11201else
cristy8b350f62009-11-15 23:12:43 +000011202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011203$as_echo "no" >&6; }
11204fi
11205
11206
11207fi
11208if test -z "$ac_cv_prog_NMEDIT"; then
11209 ac_ct_NMEDIT=$NMEDIT
11210 # Extract the first word of "nmedit", so it can be a program name with args.
11211set dummy nmedit; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011213$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011214if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011215 $as_echo_n "(cached) " >&6
11216else
11217 if test -n "$ac_ct_NMEDIT"; then
11218 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
11219else
11220as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11221for as_dir in $PATH
11222do
11223 IFS=$as_save_IFS
11224 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011225 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11227 ac_cv_prog_ac_ct_NMEDIT="nmedit"
cristy8b350f62009-11-15 23:12:43 +000011228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011229 break 2
11230 fi
11231done
cristy8b350f62009-11-15 23:12:43 +000011232 done
cristy3ed852e2009-09-05 21:47:34 +000011233IFS=$as_save_IFS
11234
11235fi
11236fi
11237ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
11238if test -n "$ac_ct_NMEDIT"; then
cristy8b350f62009-11-15 23:12:43 +000011239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
cristy3ed852e2009-09-05 21:47:34 +000011240$as_echo "$ac_ct_NMEDIT" >&6; }
11241else
cristy8b350f62009-11-15 23:12:43 +000011242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011243$as_echo "no" >&6; }
11244fi
11245
11246 if test "x$ac_ct_NMEDIT" = x; then
11247 NMEDIT=":"
11248 else
11249 case $cross_compiling:$ac_tool_warned in
11250yes:)
cristy8b350f62009-11-15 23:12:43 +000011251{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000011252$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11253ac_tool_warned=yes ;;
11254esac
11255 NMEDIT=$ac_ct_NMEDIT
11256 fi
11257else
11258 NMEDIT="$ac_cv_prog_NMEDIT"
11259fi
11260
11261 if test -n "$ac_tool_prefix"; then
11262 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
11263set dummy ${ac_tool_prefix}lipo; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011265$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011266if test "${ac_cv_prog_LIPO+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011267 $as_echo_n "(cached) " >&6
11268else
11269 if test -n "$LIPO"; then
11270 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11271else
11272as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11273for as_dir in $PATH
11274do
11275 IFS=$as_save_IFS
11276 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011277 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11279 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
cristy8b350f62009-11-15 23:12:43 +000011280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011281 break 2
11282 fi
11283done
cristy8b350f62009-11-15 23:12:43 +000011284 done
cristy3ed852e2009-09-05 21:47:34 +000011285IFS=$as_save_IFS
11286
11287fi
11288fi
11289LIPO=$ac_cv_prog_LIPO
11290if test -n "$LIPO"; then
cristy8b350f62009-11-15 23:12:43 +000011291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
cristy3ed852e2009-09-05 21:47:34 +000011292$as_echo "$LIPO" >&6; }
11293else
cristy8b350f62009-11-15 23:12:43 +000011294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011295$as_echo "no" >&6; }
11296fi
11297
11298
11299fi
11300if test -z "$ac_cv_prog_LIPO"; then
11301 ac_ct_LIPO=$LIPO
11302 # Extract the first word of "lipo", so it can be a program name with args.
11303set dummy lipo; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011305$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011306if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011307 $as_echo_n "(cached) " >&6
11308else
11309 if test -n "$ac_ct_LIPO"; then
11310 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
11311else
11312as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11313for as_dir in $PATH
11314do
11315 IFS=$as_save_IFS
11316 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011317 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11319 ac_cv_prog_ac_ct_LIPO="lipo"
cristy8b350f62009-11-15 23:12:43 +000011320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011321 break 2
11322 fi
11323done
cristy8b350f62009-11-15 23:12:43 +000011324 done
cristy3ed852e2009-09-05 21:47:34 +000011325IFS=$as_save_IFS
11326
11327fi
11328fi
11329ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
11330if test -n "$ac_ct_LIPO"; then
cristy8b350f62009-11-15 23:12:43 +000011331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
cristy3ed852e2009-09-05 21:47:34 +000011332$as_echo "$ac_ct_LIPO" >&6; }
11333else
cristy8b350f62009-11-15 23:12:43 +000011334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011335$as_echo "no" >&6; }
11336fi
11337
11338 if test "x$ac_ct_LIPO" = x; then
11339 LIPO=":"
11340 else
11341 case $cross_compiling:$ac_tool_warned in
11342yes:)
cristy8b350f62009-11-15 23:12:43 +000011343{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000011344$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11345ac_tool_warned=yes ;;
11346esac
11347 LIPO=$ac_ct_LIPO
11348 fi
11349else
11350 LIPO="$ac_cv_prog_LIPO"
11351fi
11352
11353 if test -n "$ac_tool_prefix"; then
11354 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
11355set dummy ${ac_tool_prefix}otool; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011357$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011358if test "${ac_cv_prog_OTOOL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011359 $as_echo_n "(cached) " >&6
11360else
11361 if test -n "$OTOOL"; then
11362 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
11363else
11364as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11365for as_dir in $PATH
11366do
11367 IFS=$as_save_IFS
11368 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011369 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11371 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
cristy8b350f62009-11-15 23:12:43 +000011372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011373 break 2
11374 fi
11375done
cristy8b350f62009-11-15 23:12:43 +000011376 done
cristy3ed852e2009-09-05 21:47:34 +000011377IFS=$as_save_IFS
11378
11379fi
11380fi
11381OTOOL=$ac_cv_prog_OTOOL
11382if test -n "$OTOOL"; then
cristy8b350f62009-11-15 23:12:43 +000011383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
cristy3ed852e2009-09-05 21:47:34 +000011384$as_echo "$OTOOL" >&6; }
11385else
cristy8b350f62009-11-15 23:12:43 +000011386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011387$as_echo "no" >&6; }
11388fi
11389
11390
11391fi
11392if test -z "$ac_cv_prog_OTOOL"; then
11393 ac_ct_OTOOL=$OTOOL
11394 # Extract the first word of "otool", so it can be a program name with args.
11395set dummy otool; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011397$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011398if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011399 $as_echo_n "(cached) " >&6
11400else
11401 if test -n "$ac_ct_OTOOL"; then
11402 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
11403else
11404as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11405for as_dir in $PATH
11406do
11407 IFS=$as_save_IFS
11408 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011409 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11411 ac_cv_prog_ac_ct_OTOOL="otool"
cristy8b350f62009-11-15 23:12:43 +000011412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011413 break 2
11414 fi
11415done
cristy8b350f62009-11-15 23:12:43 +000011416 done
cristy3ed852e2009-09-05 21:47:34 +000011417IFS=$as_save_IFS
11418
11419fi
11420fi
11421ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
11422if test -n "$ac_ct_OTOOL"; then
cristy8b350f62009-11-15 23:12:43 +000011423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
cristy3ed852e2009-09-05 21:47:34 +000011424$as_echo "$ac_ct_OTOOL" >&6; }
11425else
cristy8b350f62009-11-15 23:12:43 +000011426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011427$as_echo "no" >&6; }
11428fi
11429
11430 if test "x$ac_ct_OTOOL" = x; then
11431 OTOOL=":"
11432 else
11433 case $cross_compiling:$ac_tool_warned in
11434yes:)
cristy8b350f62009-11-15 23:12:43 +000011435{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000011436$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11437ac_tool_warned=yes ;;
11438esac
11439 OTOOL=$ac_ct_OTOOL
11440 fi
11441else
11442 OTOOL="$ac_cv_prog_OTOOL"
11443fi
11444
11445 if test -n "$ac_tool_prefix"; then
11446 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
11447set dummy ${ac_tool_prefix}otool64; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011449$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011450if test "${ac_cv_prog_OTOOL64+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011451 $as_echo_n "(cached) " >&6
11452else
11453 if test -n "$OTOOL64"; then
11454 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
11455else
11456as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11457for as_dir in $PATH
11458do
11459 IFS=$as_save_IFS
11460 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011461 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011462 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11463 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
cristy8b350f62009-11-15 23:12:43 +000011464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011465 break 2
11466 fi
11467done
cristy8b350f62009-11-15 23:12:43 +000011468 done
cristy3ed852e2009-09-05 21:47:34 +000011469IFS=$as_save_IFS
11470
11471fi
11472fi
11473OTOOL64=$ac_cv_prog_OTOOL64
11474if test -n "$OTOOL64"; then
cristy8b350f62009-11-15 23:12:43 +000011475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
cristy3ed852e2009-09-05 21:47:34 +000011476$as_echo "$OTOOL64" >&6; }
11477else
cristy8b350f62009-11-15 23:12:43 +000011478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011479$as_echo "no" >&6; }
11480fi
11481
11482
11483fi
11484if test -z "$ac_cv_prog_OTOOL64"; then
11485 ac_ct_OTOOL64=$OTOOL64
11486 # Extract the first word of "otool64", so it can be a program name with args.
11487set dummy otool64; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011489$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011490if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011491 $as_echo_n "(cached) " >&6
11492else
11493 if test -n "$ac_ct_OTOOL64"; then
11494 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
11495else
11496as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11497for as_dir in $PATH
11498do
11499 IFS=$as_save_IFS
11500 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011501 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011502 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11503 ac_cv_prog_ac_ct_OTOOL64="otool64"
cristy8b350f62009-11-15 23:12:43 +000011504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011505 break 2
11506 fi
11507done
cristy8b350f62009-11-15 23:12:43 +000011508 done
cristy3ed852e2009-09-05 21:47:34 +000011509IFS=$as_save_IFS
11510
11511fi
11512fi
11513ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
11514if test -n "$ac_ct_OTOOL64"; then
cristy8b350f62009-11-15 23:12:43 +000011515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
cristy3ed852e2009-09-05 21:47:34 +000011516$as_echo "$ac_ct_OTOOL64" >&6; }
11517else
cristy8b350f62009-11-15 23:12:43 +000011518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011519$as_echo "no" >&6; }
11520fi
11521
11522 if test "x$ac_ct_OTOOL64" = x; then
11523 OTOOL64=":"
11524 else
11525 case $cross_compiling:$ac_tool_warned in
11526yes:)
cristy8b350f62009-11-15 23:12:43 +000011527{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000011528$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11529ac_tool_warned=yes ;;
11530esac
11531 OTOOL64=$ac_ct_OTOOL64
11532 fi
11533else
11534 OTOOL64="$ac_cv_prog_OTOOL64"
11535fi
11536
11537
11538
11539
11540
11541
11542
11543
11544
11545
11546
11547
11548
11549
11550
11551
11552
11553
11554
11555
11556
11557
11558
11559
11560
11561
11562
cristy8b350f62009-11-15 23:12:43 +000011563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
cristy3ed852e2009-09-05 21:47:34 +000011564$as_echo_n "checking for -single_module linker flag... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011565if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011566 $as_echo_n "(cached) " >&6
11567else
11568 lt_cv_apple_cc_single_mod=no
11569 if test -z "${LT_MULTI_MODULE}"; then
11570 # By default we will add the -single_module flag. You can override
11571 # by either setting the environment variable LT_MULTI_MODULE
11572 # non-empty at configure time, or by adding -multi_module to the
11573 # link flags.
11574 rm -rf libconftest.dylib*
11575 echo "int foo(void){return 1;}" > conftest.c
11576 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11577-dynamiclib -Wl,-single_module conftest.c" >&5
11578 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11579 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
11580 _lt_result=$?
11581 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
11582 lt_cv_apple_cc_single_mod=yes
11583 else
11584 cat conftest.err >&5
11585 fi
11586 rm -rf libconftest.dylib*
11587 rm -f conftest.*
11588 fi
11589fi
cristy8b350f62009-11-15 23:12:43 +000011590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
cristy3ed852e2009-09-05 21:47:34 +000011591$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
cristy8b350f62009-11-15 23:12:43 +000011592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
cristy3ed852e2009-09-05 21:47:34 +000011593$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011594if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011595 $as_echo_n "(cached) " >&6
11596else
11597 lt_cv_ld_exported_symbols_list=no
11598 save_LDFLAGS=$LDFLAGS
11599 echo "_main" > conftest.sym
11600 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
cristy8b350f62009-11-15 23:12:43 +000011601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011602/* end confdefs.h. */
11603
11604int
11605main ()
11606{
11607
11608 ;
11609 return 0;
11610}
11611_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011612if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000011613 lt_cv_ld_exported_symbols_list=yes
11614else
cristy8b350f62009-11-15 23:12:43 +000011615 lt_cv_ld_exported_symbols_list=no
cristy3ed852e2009-09-05 21:47:34 +000011616fi
cristy8b350f62009-11-15 23:12:43 +000011617rm -f core conftest.err conftest.$ac_objext \
11618 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011619 LDFLAGS="$save_LDFLAGS"
11620
11621fi
cristy8b350f62009-11-15 23:12:43 +000011622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
cristy3ed852e2009-09-05 21:47:34 +000011623$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
11624 case $host_os in
11625 rhapsody* | darwin1.[012])
11626 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
11627 darwin1.*)
11628 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
11629 darwin*) # darwin 5.x on
11630 # if running on 10.5 or later, the deployment target defaults
11631 # to the OS version, if on x86, and 10.4, the deployment
11632 # target defaults to 10.4. Don't you love it?
11633 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
11634 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
11635 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
11636 10.[012]*)
11637 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
11638 10.*)
11639 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
11640 esac
11641 ;;
11642 esac
11643 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
11644 _lt_dar_single_mod='$single_module'
11645 fi
11646 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
11647 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
11648 else
11649 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
11650 fi
cristy18304f92009-11-22 15:48:26 +000011651 if test "$DSYMUTIL" != ":"; then
cristy3ed852e2009-09-05 21:47:34 +000011652 _lt_dsymutil='~$DSYMUTIL $lib || :'
11653 else
11654 _lt_dsymutil=
11655 fi
11656 ;;
11657 esac
11658
cristy3ed852e2009-09-05 21:47:34 +000011659for ac_header in dlfcn.h
cristy8b350f62009-11-15 23:12:43 +000011660do :
11661 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
11662"
11663if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000011664 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011665#define HAVE_DLFCN_H 1
cristy3ed852e2009-09-05 21:47:34 +000011666_ACEOF
11667
11668fi
11669
11670done
11671
11672
11673
cristy18304f92009-11-22 15:48:26 +000011674ac_ext=cpp
11675ac_cpp='$CXXCPP $CPPFLAGS'
11676ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11677ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11678ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11679if test -z "$CXX"; then
11680 if test -n "$CCC"; then
11681 CXX=$CCC
11682 else
11683 if test -n "$ac_tool_prefix"; then
11684 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11685 do
11686 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11687set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11689$as_echo_n "checking for $ac_word... " >&6; }
11690if test "${ac_cv_prog_CXX+set}" = set; then :
11691 $as_echo_n "(cached) " >&6
11692else
11693 if test -n "$CXX"; then
11694 ac_cv_prog_CXX="$CXX" # Let the user override the test.
11695else
11696as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11697for as_dir in $PATH
11698do
11699 IFS=$as_save_IFS
11700 test -z "$as_dir" && as_dir=.
11701 for ac_exec_ext in '' $ac_executable_extensions; do
11702 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11703 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11705 break 2
11706 fi
11707done
11708 done
11709IFS=$as_save_IFS
11710
11711fi
11712fi
11713CXX=$ac_cv_prog_CXX
11714if test -n "$CXX"; then
11715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
11716$as_echo "$CXX" >&6; }
11717else
11718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11719$as_echo "no" >&6; }
11720fi
11721
11722
11723 test -n "$CXX" && break
11724 done
11725fi
11726if test -z "$CXX"; then
11727 ac_ct_CXX=$CXX
11728 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11729do
11730 # Extract the first word of "$ac_prog", so it can be a program name with args.
11731set dummy $ac_prog; ac_word=$2
11732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11733$as_echo_n "checking for $ac_word... " >&6; }
11734if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
11735 $as_echo_n "(cached) " >&6
11736else
11737 if test -n "$ac_ct_CXX"; then
11738 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11739else
11740as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11741for as_dir in $PATH
11742do
11743 IFS=$as_save_IFS
11744 test -z "$as_dir" && as_dir=.
11745 for ac_exec_ext in '' $ac_executable_extensions; do
11746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11747 ac_cv_prog_ac_ct_CXX="$ac_prog"
11748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11749 break 2
11750 fi
11751done
11752 done
11753IFS=$as_save_IFS
11754
11755fi
11756fi
11757ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11758if test -n "$ac_ct_CXX"; then
11759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
11760$as_echo "$ac_ct_CXX" >&6; }
11761else
11762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11763$as_echo "no" >&6; }
11764fi
11765
11766
11767 test -n "$ac_ct_CXX" && break
11768done
11769
11770 if test "x$ac_ct_CXX" = x; then
11771 CXX="g++"
11772 else
11773 case $cross_compiling:$ac_tool_warned in
11774yes:)
11775{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11776$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11777ac_tool_warned=yes ;;
11778esac
11779 CXX=$ac_ct_CXX
11780 fi
11781fi
11782
11783 fi
11784fi
11785# Provide some information about the compiler.
11786$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
11787set X $ac_compile
11788ac_compiler=$2
11789for ac_option in --version -v -V -qversion; do
11790 { { ac_try="$ac_compiler $ac_option >&5"
11791case "(($ac_try" in
11792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11793 *) ac_try_echo=$ac_try;;
11794esac
11795eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11796$as_echo "$ac_try_echo"; } >&5
11797 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11798 ac_status=$?
11799 if test -s conftest.err; then
11800 sed '10a\
11801... rest of stderr output deleted ...
11802 10q' conftest.err >conftest.er1
11803 cat conftest.er1 >&5
11804 fi
11805 rm -f conftest.er1 conftest.err
11806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11807 test $ac_status = 0; }
11808done
11809
11810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
11811$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
11812if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
11813 $as_echo_n "(cached) " >&6
11814else
11815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11816/* end confdefs.h. */
11817
11818int
11819main ()
11820{
11821#ifndef __GNUC__
11822 choke me
11823#endif
11824
11825 ;
11826 return 0;
11827}
11828_ACEOF
11829if ac_fn_cxx_try_compile "$LINENO"; then :
11830 ac_compiler_gnu=yes
11831else
11832 ac_compiler_gnu=no
11833fi
11834rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11835ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11836
11837fi
11838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
11839$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
11840if test $ac_compiler_gnu = yes; then
11841 GXX=yes
11842else
11843 GXX=
11844fi
11845ac_test_CXXFLAGS=${CXXFLAGS+set}
11846ac_save_CXXFLAGS=$CXXFLAGS
11847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
11848$as_echo_n "checking whether $CXX accepts -g... " >&6; }
11849if test "${ac_cv_prog_cxx_g+set}" = set; then :
11850 $as_echo_n "(cached) " >&6
11851else
11852 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
11853 ac_cxx_werror_flag=yes
11854 ac_cv_prog_cxx_g=no
11855 CXXFLAGS="-g"
11856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11857/* end confdefs.h. */
11858
11859int
11860main ()
11861{
11862
11863 ;
11864 return 0;
11865}
11866_ACEOF
11867if ac_fn_cxx_try_compile "$LINENO"; then :
11868 ac_cv_prog_cxx_g=yes
11869else
11870 CXXFLAGS=""
11871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11872/* end confdefs.h. */
11873
11874int
11875main ()
11876{
11877
11878 ;
11879 return 0;
11880}
11881_ACEOF
11882if ac_fn_cxx_try_compile "$LINENO"; then :
11883
11884else
11885 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11886 CXXFLAGS="-g"
11887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11888/* end confdefs.h. */
11889
11890int
11891main ()
11892{
11893
11894 ;
11895 return 0;
11896}
11897_ACEOF
11898if ac_fn_cxx_try_compile "$LINENO"; then :
11899 ac_cv_prog_cxx_g=yes
11900fi
11901rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11902fi
11903rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11904fi
11905rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11906 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11907fi
11908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
11909$as_echo "$ac_cv_prog_cxx_g" >&6; }
11910if test "$ac_test_CXXFLAGS" = set; then
11911 CXXFLAGS=$ac_save_CXXFLAGS
11912elif test $ac_cv_prog_cxx_g = yes; then
11913 if test "$GXX" = yes; then
11914 CXXFLAGS="-g -O2"
11915 else
11916 CXXFLAGS="-g"
11917 fi
11918else
11919 if test "$GXX" = yes; then
11920 CXXFLAGS="-O2"
11921 else
11922 CXXFLAGS=
11923 fi
11924fi
11925ac_ext=c
11926ac_cpp='$CPP $CPPFLAGS'
11927ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11928ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11929ac_compiler_gnu=$ac_cv_c_compiler_gnu
11930
11931depcc="$CXX" am_compiler_list=
11932
11933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11934$as_echo_n "checking dependency style of $depcc... " >&6; }
11935if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
11936 $as_echo_n "(cached) " >&6
11937else
11938 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11939 # We make a subdir and do the tests there. Otherwise we can end up
11940 # making bogus files that we don't know about and never remove. For
11941 # instance it was reported that on HP-UX the gcc test will end up
11942 # making a dummy file named `D' -- because `-MD' means `put the output
11943 # in D'.
11944 mkdir conftest.dir
11945 # Copy depcomp to subdir because otherwise we won't find it if we're
11946 # using a relative directory.
11947 cp "$am_depcomp" conftest.dir
11948 cd conftest.dir
11949 # We will build objects and dependencies in a subdirectory because
11950 # it helps to detect inapplicable dependency modes. For instance
11951 # both Tru64's cc and ICC support -MD to output dependencies as a
11952 # side effect of compilation, but ICC will put the dependencies in
11953 # the current directory while Tru64 will put them in the object
11954 # directory.
11955 mkdir sub
11956
11957 am_cv_CXX_dependencies_compiler_type=none
11958 if test "$am_compiler_list" = ""; then
11959 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11960 fi
11961 am__universal=false
11962 case " $depcc " in #(
11963 *\ -arch\ *\ -arch\ *) am__universal=true ;;
11964 esac
11965
11966 for depmode in $am_compiler_list; do
11967 # Setup a source with many dependencies, because some compilers
11968 # like to wrap large dependency lists on column 80 (with \), and
11969 # we should not choose a depcomp mode which is confused by this.
11970 #
11971 # We need to recreate these files for each test, as the compiler may
11972 # overwrite some of them when testing with obscure command lines.
11973 # This happens at least with the AIX C compiler.
11974 : > sub/conftest.c
11975 for i in 1 2 3 4 5 6; do
11976 echo '#include "conftst'$i'.h"' >> sub/conftest.c
11977 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11978 # Solaris 8's {/usr,}/bin/sh.
11979 touch sub/conftst$i.h
11980 done
11981 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11982
11983 # We check with `-c' and `-o' for the sake of the "dashmstdout"
11984 # mode. It turns out that the SunPro C++ compiler does not properly
11985 # handle `-M -o', and we need to detect this. Also, some Intel
11986 # versions had trouble with output in subdirs
11987 am__obj=sub/conftest.${OBJEXT-o}
11988 am__minus_obj="-o $am__obj"
11989 case $depmode in
11990 gcc)
11991 # This depmode causes a compiler race in universal mode.
11992 test "$am__universal" = false || continue
11993 ;;
11994 nosideeffect)
11995 # after this tag, mechanisms are not by side-effect, so they'll
11996 # only be used when explicitly requested
11997 if test "x$enable_dependency_tracking" = xyes; then
11998 continue
11999 else
12000 break
12001 fi
12002 ;;
12003 msvisualcpp | msvcmsys)
12004 # This compiler won't grok `-c -o', but also, the minuso test has
12005 # not run yet. These depmodes are late enough in the game, and
12006 # so weak that their functioning should not be impacted.
12007 am__obj=conftest.${OBJEXT-o}
12008 am__minus_obj=
12009 ;;
12010 none) break ;;
12011 esac
12012 if depmode=$depmode \
12013 source=sub/conftest.c object=$am__obj \
12014 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12015 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12016 >/dev/null 2>conftest.err &&
12017 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12018 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12019 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12020 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12021 # icc doesn't choke on unknown options, it will just issue warnings
12022 # or remarks (even with -Werror). So we grep stderr for any message
12023 # that says an option was ignored or not supported.
12024 # When given -MP, icc 7.0 and 7.1 complain thusly:
12025 # icc: Command line warning: ignoring option '-M'; no argument required
12026 # The diagnosis changed in icc 8.0:
12027 # icc: Command line remark: option '-MP' not supported
12028 if (grep 'ignoring option' conftest.err ||
12029 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12030 am_cv_CXX_dependencies_compiler_type=$depmode
12031 break
12032 fi
12033 fi
12034 done
12035
12036 cd ..
12037 rm -rf conftest.dir
12038else
12039 am_cv_CXX_dependencies_compiler_type=none
12040fi
12041
12042fi
12043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
12044$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
12045CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
12046
12047 if
12048 test "x$enable_dependency_tracking" != xno \
12049 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
12050 am__fastdepCXX_TRUE=
12051 am__fastdepCXX_FALSE='#'
12052else
12053 am__fastdepCXX_TRUE='#'
12054 am__fastdepCXX_FALSE=
12055fi
12056
12057
12058if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12059 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12060 (test "X$CXX" != "Xg++"))) ; then
12061 ac_ext=cpp
12062ac_cpp='$CXXCPP $CPPFLAGS'
12063ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12064ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12065ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12067$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12068if test -z "$CXXCPP"; then
12069 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
12070 $as_echo_n "(cached) " >&6
12071else
12072 # Double quotes because CXXCPP needs to be expanded
12073 for CXXCPP in "$CXX -E" "/lib/cpp"
12074 do
12075 ac_preproc_ok=false
12076for ac_cxx_preproc_warn_flag in '' yes
12077do
12078 # Use a header file that comes with gcc, so configuring glibc
12079 # with a fresh cross-compiler works.
12080 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12081 # <limits.h> exists even on freestanding compilers.
12082 # On the NeXT, cc -E runs the code through the compiler's parser,
12083 # not just through cpp. "Syntax error" is here to catch this case.
12084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12085/* end confdefs.h. */
12086#ifdef __STDC__
12087# include <limits.h>
12088#else
12089# include <assert.h>
12090#endif
12091 Syntax error
12092_ACEOF
12093if ac_fn_cxx_try_cpp "$LINENO"; then :
12094
12095else
12096 # Broken: fails on valid input.
12097continue
12098fi
12099rm -f conftest.err conftest.$ac_ext
12100
12101 # OK, works on sane cases. Now check whether nonexistent headers
12102 # can be detected and how.
12103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12104/* end confdefs.h. */
12105#include <ac_nonexistent.h>
12106_ACEOF
12107if ac_fn_cxx_try_cpp "$LINENO"; then :
12108 # Broken: success on invalid input.
12109continue
12110else
12111 # Passes both tests.
12112ac_preproc_ok=:
12113break
12114fi
12115rm -f conftest.err conftest.$ac_ext
12116
12117done
12118# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12119rm -f conftest.err conftest.$ac_ext
12120if $ac_preproc_ok; then :
12121 break
12122fi
12123
12124 done
12125 ac_cv_prog_CXXCPP=$CXXCPP
12126
12127fi
12128 CXXCPP=$ac_cv_prog_CXXCPP
12129else
12130 ac_cv_prog_CXXCPP=$CXXCPP
12131fi
12132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12133$as_echo "$CXXCPP" >&6; }
12134ac_preproc_ok=false
12135for ac_cxx_preproc_warn_flag in '' yes
12136do
12137 # Use a header file that comes with gcc, so configuring glibc
12138 # with a fresh cross-compiler works.
12139 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12140 # <limits.h> exists even on freestanding compilers.
12141 # On the NeXT, cc -E runs the code through the compiler's parser,
12142 # not just through cpp. "Syntax error" is here to catch this case.
12143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12144/* end confdefs.h. */
12145#ifdef __STDC__
12146# include <limits.h>
12147#else
12148# include <assert.h>
12149#endif
12150 Syntax error
12151_ACEOF
12152if ac_fn_cxx_try_cpp "$LINENO"; then :
12153
12154else
12155 # Broken: fails on valid input.
12156continue
12157fi
12158rm -f conftest.err conftest.$ac_ext
12159
12160 # OK, works on sane cases. Now check whether nonexistent headers
12161 # can be detected and how.
12162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12163/* end confdefs.h. */
12164#include <ac_nonexistent.h>
12165_ACEOF
12166if ac_fn_cxx_try_cpp "$LINENO"; then :
12167 # Broken: success on invalid input.
12168continue
12169else
12170 # Passes both tests.
12171ac_preproc_ok=:
12172break
12173fi
12174rm -f conftest.err conftest.$ac_ext
12175
12176done
12177# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12178rm -f conftest.err conftest.$ac_ext
12179if $ac_preproc_ok; then :
12180
12181else
12182 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12183$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12184_lt_caught_CXX_error=yes; }
12185fi
12186
12187ac_ext=c
12188ac_cpp='$CPP $CPPFLAGS'
12189ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12190ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12191ac_compiler_gnu=$ac_cv_c_compiler_gnu
12192
12193else
12194 _lt_caught_CXX_error=yes
12195fi
12196
12197
cristy3ed852e2009-09-05 21:47:34 +000012198
12199
12200
12201# Set options
12202enable_win32_dll=yes
12203
12204case $host in
cristy18304f92009-11-22 15:48:26 +000012205*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
cristy3ed852e2009-09-05 21:47:34 +000012206 if test -n "$ac_tool_prefix"; then
12207 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
12208set dummy ${ac_tool_prefix}as; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000012209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000012210$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012211if test "${ac_cv_prog_AS+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012212 $as_echo_n "(cached) " >&6
12213else
12214 if test -n "$AS"; then
12215 ac_cv_prog_AS="$AS" # Let the user override the test.
12216else
12217as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12218for as_dir in $PATH
12219do
12220 IFS=$as_save_IFS
12221 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000012222 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000012223 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12224 ac_cv_prog_AS="${ac_tool_prefix}as"
cristy8b350f62009-11-15 23:12:43 +000012225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000012226 break 2
12227 fi
12228done
cristy8b350f62009-11-15 23:12:43 +000012229 done
cristy3ed852e2009-09-05 21:47:34 +000012230IFS=$as_save_IFS
12231
12232fi
12233fi
12234AS=$ac_cv_prog_AS
12235if test -n "$AS"; then
cristy8b350f62009-11-15 23:12:43 +000012236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
cristy3ed852e2009-09-05 21:47:34 +000012237$as_echo "$AS" >&6; }
12238else
cristy8b350f62009-11-15 23:12:43 +000012239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000012240$as_echo "no" >&6; }
12241fi
12242
12243
12244fi
12245if test -z "$ac_cv_prog_AS"; then
12246 ac_ct_AS=$AS
12247 # Extract the first word of "as", so it can be a program name with args.
12248set dummy as; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000012249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000012250$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012251if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012252 $as_echo_n "(cached) " >&6
12253else
12254 if test -n "$ac_ct_AS"; then
12255 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
12256else
12257as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12258for as_dir in $PATH
12259do
12260 IFS=$as_save_IFS
12261 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000012262 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000012263 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12264 ac_cv_prog_ac_ct_AS="as"
cristy8b350f62009-11-15 23:12:43 +000012265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000012266 break 2
12267 fi
12268done
cristy8b350f62009-11-15 23:12:43 +000012269 done
cristy3ed852e2009-09-05 21:47:34 +000012270IFS=$as_save_IFS
12271
12272fi
12273fi
12274ac_ct_AS=$ac_cv_prog_ac_ct_AS
12275if test -n "$ac_ct_AS"; then
cristy8b350f62009-11-15 23:12:43 +000012276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
cristy3ed852e2009-09-05 21:47:34 +000012277$as_echo "$ac_ct_AS" >&6; }
12278else
cristy8b350f62009-11-15 23:12:43 +000012279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000012280$as_echo "no" >&6; }
12281fi
12282
12283 if test "x$ac_ct_AS" = x; then
12284 AS="false"
12285 else
12286 case $cross_compiling:$ac_tool_warned in
12287yes:)
cristy8b350f62009-11-15 23:12:43 +000012288{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000012289$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12290ac_tool_warned=yes ;;
12291esac
12292 AS=$ac_ct_AS
12293 fi
12294else
12295 AS="$ac_cv_prog_AS"
12296fi
12297
12298 if test -n "$ac_tool_prefix"; then
12299 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12300set dummy ${ac_tool_prefix}dlltool; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000012301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000012302$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012303if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012304 $as_echo_n "(cached) " >&6
12305else
12306 if test -n "$DLLTOOL"; then
12307 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12308else
12309as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12310for as_dir in $PATH
12311do
12312 IFS=$as_save_IFS
12313 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000012314 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000012315 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12316 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
cristy8b350f62009-11-15 23:12:43 +000012317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000012318 break 2
12319 fi
12320done
cristy8b350f62009-11-15 23:12:43 +000012321 done
cristy3ed852e2009-09-05 21:47:34 +000012322IFS=$as_save_IFS
12323
12324fi
12325fi
12326DLLTOOL=$ac_cv_prog_DLLTOOL
12327if test -n "$DLLTOOL"; then
cristy8b350f62009-11-15 23:12:43 +000012328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
cristy3ed852e2009-09-05 21:47:34 +000012329$as_echo "$DLLTOOL" >&6; }
12330else
cristy8b350f62009-11-15 23:12:43 +000012331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000012332$as_echo "no" >&6; }
12333fi
12334
12335
12336fi
12337if test -z "$ac_cv_prog_DLLTOOL"; then
12338 ac_ct_DLLTOOL=$DLLTOOL
12339 # Extract the first word of "dlltool", so it can be a program name with args.
12340set dummy dlltool; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000012341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000012342$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012343if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012344 $as_echo_n "(cached) " >&6
12345else
12346 if test -n "$ac_ct_DLLTOOL"; then
12347 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
12348else
12349as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12350for as_dir in $PATH
12351do
12352 IFS=$as_save_IFS
12353 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000012354 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000012355 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12356 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
cristy8b350f62009-11-15 23:12:43 +000012357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000012358 break 2
12359 fi
12360done
cristy8b350f62009-11-15 23:12:43 +000012361 done
cristy3ed852e2009-09-05 21:47:34 +000012362IFS=$as_save_IFS
12363
12364fi
12365fi
12366ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12367if test -n "$ac_ct_DLLTOOL"; then
cristy8b350f62009-11-15 23:12:43 +000012368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
cristy3ed852e2009-09-05 21:47:34 +000012369$as_echo "$ac_ct_DLLTOOL" >&6; }
12370else
cristy8b350f62009-11-15 23:12:43 +000012371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000012372$as_echo "no" >&6; }
12373fi
12374
12375 if test "x$ac_ct_DLLTOOL" = x; then
12376 DLLTOOL="false"
12377 else
12378 case $cross_compiling:$ac_tool_warned in
12379yes:)
cristy8b350f62009-11-15 23:12:43 +000012380{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000012381$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12382ac_tool_warned=yes ;;
12383esac
12384 DLLTOOL=$ac_ct_DLLTOOL
12385 fi
12386else
12387 DLLTOOL="$ac_cv_prog_DLLTOOL"
12388fi
12389
12390 if test -n "$ac_tool_prefix"; then
12391 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12392set dummy ${ac_tool_prefix}objdump; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000012393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000012394$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012395if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012396 $as_echo_n "(cached) " >&6
12397else
12398 if test -n "$OBJDUMP"; then
12399 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12400else
12401as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12402for as_dir in $PATH
12403do
12404 IFS=$as_save_IFS
12405 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000012406 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000012407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12408 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
cristy8b350f62009-11-15 23:12:43 +000012409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000012410 break 2
12411 fi
12412done
cristy8b350f62009-11-15 23:12:43 +000012413 done
cristy3ed852e2009-09-05 21:47:34 +000012414IFS=$as_save_IFS
12415
12416fi
12417fi
12418OBJDUMP=$ac_cv_prog_OBJDUMP
12419if test -n "$OBJDUMP"; then
cristy8b350f62009-11-15 23:12:43 +000012420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
cristy3ed852e2009-09-05 21:47:34 +000012421$as_echo "$OBJDUMP" >&6; }
12422else
cristy8b350f62009-11-15 23:12:43 +000012423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000012424$as_echo "no" >&6; }
12425fi
12426
12427
12428fi
12429if test -z "$ac_cv_prog_OBJDUMP"; then
12430 ac_ct_OBJDUMP=$OBJDUMP
12431 # Extract the first word of "objdump", so it can be a program name with args.
12432set dummy objdump; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000012433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000012434$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012435if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012436 $as_echo_n "(cached) " >&6
12437else
12438 if test -n "$ac_ct_OBJDUMP"; then
12439 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12440else
12441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12442for as_dir in $PATH
12443do
12444 IFS=$as_save_IFS
12445 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000012446 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000012447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12448 ac_cv_prog_ac_ct_OBJDUMP="objdump"
cristy8b350f62009-11-15 23:12:43 +000012449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000012450 break 2
12451 fi
12452done
cristy8b350f62009-11-15 23:12:43 +000012453 done
cristy3ed852e2009-09-05 21:47:34 +000012454IFS=$as_save_IFS
12455
12456fi
12457fi
12458ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12459if test -n "$ac_ct_OBJDUMP"; then
cristy8b350f62009-11-15 23:12:43 +000012460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
cristy3ed852e2009-09-05 21:47:34 +000012461$as_echo "$ac_ct_OBJDUMP" >&6; }
12462else
cristy8b350f62009-11-15 23:12:43 +000012463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000012464$as_echo "no" >&6; }
12465fi
12466
12467 if test "x$ac_ct_OBJDUMP" = x; then
12468 OBJDUMP="false"
12469 else
12470 case $cross_compiling:$ac_tool_warned in
12471yes:)
cristy8b350f62009-11-15 23:12:43 +000012472{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000012473$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12474ac_tool_warned=yes ;;
12475esac
12476 OBJDUMP=$ac_ct_OBJDUMP
12477 fi
12478else
12479 OBJDUMP="$ac_cv_prog_OBJDUMP"
12480fi
12481
12482 ;;
12483esac
12484
12485test -z "$AS" && AS=as
12486
12487
12488
12489
12490
12491test -z "$DLLTOOL" && DLLTOOL=dlltool
12492
12493
12494
12495
12496
12497test -z "$OBJDUMP" && OBJDUMP=objdump
12498
12499
12500
12501
12502
12503
12504
12505
12506
12507 # Check whether --enable-shared was given.
cristy8b350f62009-11-15 23:12:43 +000012508if test "${enable_shared+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012509 enableval=$enable_shared; p=${PACKAGE-default}
12510 case $enableval in
12511 yes) enable_shared=yes ;;
12512 no) enable_shared=no ;;
12513 *)
12514 enable_shared=no
12515 # Look at the argument we got. We use all the common list separators.
12516 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12517 for pkg in $enableval; do
12518 IFS="$lt_save_ifs"
12519 if test "X$pkg" = "X$p"; then
12520 enable_shared=yes
12521 fi
12522 done
12523 IFS="$lt_save_ifs"
12524 ;;
12525 esac
12526else
12527 enable_shared=yes
12528fi
12529
12530
12531
12532
12533
12534
12535
12536
12537
12538 # Check whether --enable-static was given.
cristy8b350f62009-11-15 23:12:43 +000012539if test "${enable_static+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012540 enableval=$enable_static; p=${PACKAGE-default}
12541 case $enableval in
12542 yes) enable_static=yes ;;
12543 no) enable_static=no ;;
12544 *)
12545 enable_static=no
12546 # Look at the argument we got. We use all the common list separators.
12547 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12548 for pkg in $enableval; do
12549 IFS="$lt_save_ifs"
12550 if test "X$pkg" = "X$p"; then
12551 enable_static=yes
12552 fi
12553 done
12554 IFS="$lt_save_ifs"
12555 ;;
12556 esac
12557else
12558 enable_static=yes
12559fi
12560
12561
12562
12563
12564
12565
12566
12567
12568
12569
12570# Check whether --with-pic was given.
cristy8b350f62009-11-15 23:12:43 +000012571if test "${with_pic+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012572 withval=$with_pic; pic_mode="$withval"
12573else
12574 pic_mode=default
12575fi
12576
12577
12578test -z "$pic_mode" && pic_mode=default
12579
12580
12581
12582
12583
12584
12585
12586 # Check whether --enable-fast-install was given.
cristy8b350f62009-11-15 23:12:43 +000012587if test "${enable_fast_install+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012588 enableval=$enable_fast_install; p=${PACKAGE-default}
12589 case $enableval in
12590 yes) enable_fast_install=yes ;;
12591 no) enable_fast_install=no ;;
12592 *)
12593 enable_fast_install=no
12594 # Look at the argument we got. We use all the common list separators.
12595 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12596 for pkg in $enableval; do
12597 IFS="$lt_save_ifs"
12598 if test "X$pkg" = "X$p"; then
12599 enable_fast_install=yes
12600 fi
12601 done
12602 IFS="$lt_save_ifs"
12603 ;;
12604 esac
12605else
12606 enable_fast_install=yes
12607fi
12608
12609
12610
12611
12612
12613
12614
12615
12616
12617
12618
12619# This can be used to rebuild libtool when needed
12620LIBTOOL_DEPS="$ltmain"
12621
12622# Always use our own libtool.
12623LIBTOOL='$(SHELL) $(top_builddir)/libtool'
12624
12625
12626
12627
12628
12629
12630
12631
12632
12633
12634
12635
12636
12637
12638
12639
12640
12641
12642
12643
12644
12645
12646
12647
12648
12649test -z "$LN_S" && LN_S="ln -s"
12650
12651
12652
12653
12654
12655
12656
12657
12658
12659
12660
12661
12662
12663
12664if test -n "${ZSH_VERSION+set}" ; then
12665 setopt NO_GLOB_SUBST
12666fi
12667
cristy8b350f62009-11-15 23:12:43 +000012668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
cristy3ed852e2009-09-05 21:47:34 +000012669$as_echo_n "checking for objdir... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012670if test "${lt_cv_objdir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012671 $as_echo_n "(cached) " >&6
12672else
12673 rm -f .libs 2>/dev/null
12674mkdir .libs 2>/dev/null
12675if test -d .libs; then
12676 lt_cv_objdir=.libs
12677else
12678 # MS-DOS does not allow filenames that begin with a dot.
12679 lt_cv_objdir=_libs
12680fi
12681rmdir .libs 2>/dev/null
12682fi
cristy8b350f62009-11-15 23:12:43 +000012683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
cristy3ed852e2009-09-05 21:47:34 +000012684$as_echo "$lt_cv_objdir" >&6; }
12685objdir=$lt_cv_objdir
12686
12687
12688
12689
12690
12691cat >>confdefs.h <<_ACEOF
12692#define LT_OBJDIR "$lt_cv_objdir/"
12693_ACEOF
12694
12695
12696
12697
cristy18304f92009-11-22 15:48:26 +000012698
12699
12700
12701
12702
12703
12704
12705
12706
12707
12708
12709
12710
cristy3ed852e2009-09-05 21:47:34 +000012711case $host_os in
12712aix3*)
12713 # AIX sometimes has problems with the GCC collect2 program. For some
12714 # reason, if we set the COLLECT_NAMES environment variable, the problems
12715 # vanish in a puff of smoke.
12716 if test "X${COLLECT_NAMES+set}" != Xset; then
12717 COLLECT_NAMES=
12718 export COLLECT_NAMES
12719 fi
12720 ;;
12721esac
12722
cristy18304f92009-11-22 15:48:26 +000012723# Sed substitution that helps us do robust quoting. It backslashifies
12724# metacharacters that are still active within double-quoted strings.
12725sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
12726
12727# Same as above, but do not quote variable references.
12728double_quote_subst='s/\(["`\\]\)/\\\1/g'
12729
12730# Sed substitution to delay expansion of an escaped shell variable in a
12731# double_quote_subst'ed string.
12732delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
12733
12734# Sed substitution to delay expansion of an escaped single quote.
12735delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
12736
12737# Sed substitution to avoid accidental globbing in evaled expressions
12738no_glob_subst='s/\*/\\\*/g'
12739
cristy3ed852e2009-09-05 21:47:34 +000012740# Global variables:
12741ofile=libtool
12742can_build_shared=yes
12743
12744# All known linkers require a `.a' archive for static linking (except MSVC,
12745# which needs '.lib').
12746libext=a
12747
12748with_gnu_ld="$lt_cv_prog_gnu_ld"
12749
12750old_CC="$CC"
12751old_CFLAGS="$CFLAGS"
12752
12753# Set sane defaults for various variables
12754test -z "$CC" && CC=cc
12755test -z "$LTCC" && LTCC=$CC
12756test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
12757test -z "$LD" && LD=ld
12758test -z "$ac_objext" && ac_objext=o
12759
12760for cc_temp in $compiler""; do
12761 case $cc_temp in
12762 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12763 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12764 \-*) ;;
12765 *) break;;
12766 esac
12767done
cristy18304f92009-11-22 15:48:26 +000012768cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
cristy3ed852e2009-09-05 21:47:34 +000012769
12770
12771# Only perform the check for file, if the check method requires it
12772test -z "$MAGIC_CMD" && MAGIC_CMD=file
12773case $deplibs_check_method in
12774file_magic*)
12775 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
cristy8b350f62009-11-15 23:12:43 +000012776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
cristy3ed852e2009-09-05 21:47:34 +000012777$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012778if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012779 $as_echo_n "(cached) " >&6
12780else
12781 case $MAGIC_CMD in
12782[\\/*] | ?:[\\/]*)
12783 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12784 ;;
12785*)
12786 lt_save_MAGIC_CMD="$MAGIC_CMD"
12787 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12788 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12789 for ac_dir in $ac_dummy; do
12790 IFS="$lt_save_ifs"
12791 test -z "$ac_dir" && ac_dir=.
12792 if test -f $ac_dir/${ac_tool_prefix}file; then
12793 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
12794 if test -n "$file_magic_test_file"; then
12795 case $deplibs_check_method in
12796 "file_magic "*)
12797 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12798 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12799 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12800 $EGREP "$file_magic_regex" > /dev/null; then
12801 :
12802 else
12803 cat <<_LT_EOF 1>&2
12804
12805*** Warning: the command libtool uses to detect shared libraries,
12806*** $file_magic_cmd, produces output that libtool cannot recognize.
12807*** The result is that libtool may fail to recognize shared libraries
12808*** as such. This will affect the creation of libtool libraries that
12809*** depend on shared libraries, but programs linked with such libtool
12810*** libraries will work regardless of this problem. Nevertheless, you
12811*** may want to report the problem to your system manager and/or to
12812*** bug-libtool@gnu.org
12813
12814_LT_EOF
12815 fi ;;
12816 esac
12817 fi
12818 break
12819 fi
12820 done
12821 IFS="$lt_save_ifs"
12822 MAGIC_CMD="$lt_save_MAGIC_CMD"
12823 ;;
12824esac
12825fi
12826
12827MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12828if test -n "$MAGIC_CMD"; then
cristy8b350f62009-11-15 23:12:43 +000012829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
cristy3ed852e2009-09-05 21:47:34 +000012830$as_echo "$MAGIC_CMD" >&6; }
12831else
cristy8b350f62009-11-15 23:12:43 +000012832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000012833$as_echo "no" >&6; }
12834fi
12835
12836
12837
12838
12839
12840if test -z "$lt_cv_path_MAGIC_CMD"; then
12841 if test -n "$ac_tool_prefix"; then
cristy8b350f62009-11-15 23:12:43 +000012842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
cristy3ed852e2009-09-05 21:47:34 +000012843$as_echo_n "checking for file... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012844if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012845 $as_echo_n "(cached) " >&6
12846else
12847 case $MAGIC_CMD in
12848[\\/*] | ?:[\\/]*)
12849 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12850 ;;
12851*)
12852 lt_save_MAGIC_CMD="$MAGIC_CMD"
12853 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12854 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12855 for ac_dir in $ac_dummy; do
12856 IFS="$lt_save_ifs"
12857 test -z "$ac_dir" && ac_dir=.
12858 if test -f $ac_dir/file; then
12859 lt_cv_path_MAGIC_CMD="$ac_dir/file"
12860 if test -n "$file_magic_test_file"; then
12861 case $deplibs_check_method in
12862 "file_magic "*)
12863 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12864 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12865 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12866 $EGREP "$file_magic_regex" > /dev/null; then
12867 :
12868 else
12869 cat <<_LT_EOF 1>&2
12870
12871*** Warning: the command libtool uses to detect shared libraries,
12872*** $file_magic_cmd, produces output that libtool cannot recognize.
12873*** The result is that libtool may fail to recognize shared libraries
12874*** as such. This will affect the creation of libtool libraries that
12875*** depend on shared libraries, but programs linked with such libtool
12876*** libraries will work regardless of this problem. Nevertheless, you
12877*** may want to report the problem to your system manager and/or to
12878*** bug-libtool@gnu.org
12879
12880_LT_EOF
12881 fi ;;
12882 esac
12883 fi
12884 break
12885 fi
12886 done
12887 IFS="$lt_save_ifs"
12888 MAGIC_CMD="$lt_save_MAGIC_CMD"
12889 ;;
12890esac
12891fi
12892
12893MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12894if test -n "$MAGIC_CMD"; then
cristy8b350f62009-11-15 23:12:43 +000012895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
cristy3ed852e2009-09-05 21:47:34 +000012896$as_echo "$MAGIC_CMD" >&6; }
12897else
cristy8b350f62009-11-15 23:12:43 +000012898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000012899$as_echo "no" >&6; }
12900fi
12901
12902
12903 else
12904 MAGIC_CMD=:
12905 fi
12906fi
12907
12908 fi
12909 ;;
12910esac
12911
12912# Use C for the default configuration in the libtool script
12913
12914lt_save_CC="$CC"
12915ac_ext=c
12916ac_cpp='$CPP $CPPFLAGS'
12917ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12918ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12919ac_compiler_gnu=$ac_cv_c_compiler_gnu
12920
12921
12922# Source file extension for C test sources.
12923ac_ext=c
12924
12925# Object file extension for compiled C test sources.
12926objext=o
12927objext=$objext
12928
12929# Code to be used in simple compile tests
12930lt_simple_compile_test_code="int some_variable = 0;"
12931
12932# Code to be used in simple link tests
12933lt_simple_link_test_code='int main(){return(0);}'
12934
12935
12936
12937
12938
12939
12940
12941# If no C compiler was specified, use CC.
12942LTCC=${LTCC-"$CC"}
12943
12944# If no C compiler flags were specified, use CFLAGS.
12945LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12946
12947# Allow CC to be a program name with arguments.
12948compiler=$CC
12949
12950# Save the default compiler, since it gets overwritten when the other
12951# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
12952compiler_DEFAULT=$CC
12953
12954# save warnings/boilerplate of simple test code
12955ac_outfile=conftest.$ac_objext
12956echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12957eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12958_lt_compiler_boilerplate=`cat conftest.err`
12959$RM conftest*
12960
12961ac_outfile=conftest.$ac_objext
12962echo "$lt_simple_link_test_code" >conftest.$ac_ext
12963eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12964_lt_linker_boilerplate=`cat conftest.err`
12965$RM -r conftest*
12966
12967
12968## CAVEAT EMPTOR:
12969## There is no encapsulation within the following macros, do not change
12970## the running order or otherwise move them around unless you know exactly
12971## what you are doing...
12972if test -n "$compiler"; then
12973
12974lt_prog_compiler_no_builtin_flag=
12975
12976if test "$GCC" = yes; then
cristy18304f92009-11-22 15:48:26 +000012977 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
cristy3ed852e2009-09-05 21:47:34 +000012978
cristy8b350f62009-11-15 23:12:43 +000012979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
cristy3ed852e2009-09-05 21:47:34 +000012980$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012981if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012982 $as_echo_n "(cached) " >&6
12983else
12984 lt_cv_prog_compiler_rtti_exceptions=no
12985 ac_outfile=conftest.$ac_objext
12986 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12987 lt_compiler_flag="-fno-rtti -fno-exceptions"
12988 # Insert the option either (1) after the last *FLAGS variable, or
12989 # (2) before a word containing "conftest.", or (3) at the end.
12990 # Note that $ac_compile itself does not contain backslashes and begins
12991 # with a dollar sign (not a hyphen), so the echo should work correctly.
12992 # The option is referenced via a variable to avoid confusing sed.
12993 lt_compile=`echo "$ac_compile" | $SED \
12994 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12995 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12996 -e 's:$: $lt_compiler_flag:'`
cristy0d3a6382010-04-26 00:45:55 +000012997 (eval echo "\"\$as_me:12997: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000012998 (eval "$lt_compile" 2>conftest.err)
12999 ac_status=$?
13000 cat conftest.err >&5
cristy0d3a6382010-04-26 00:45:55 +000013001 echo "$as_me:13001: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000013002 if (exit $ac_status) && test -s "$ac_outfile"; then
13003 # The compiler can only warn and ignore the option if not recognized
13004 # So say no if there are warnings other than the usual output.
cristy18304f92009-11-22 15:48:26 +000013005 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000013006 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13007 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13008 lt_cv_prog_compiler_rtti_exceptions=yes
13009 fi
13010 fi
13011 $RM conftest*
13012
13013fi
cristy8b350f62009-11-15 23:12:43 +000013014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
cristy3ed852e2009-09-05 21:47:34 +000013015$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
13016
13017if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
13018 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
13019else
13020 :
13021fi
13022
13023fi
13024
13025
13026
13027
13028
13029
13030 lt_prog_compiler_wl=
13031lt_prog_compiler_pic=
13032lt_prog_compiler_static=
13033
cristy8b350f62009-11-15 23:12:43 +000013034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
cristy3ed852e2009-09-05 21:47:34 +000013035$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13036
13037 if test "$GCC" = yes; then
13038 lt_prog_compiler_wl='-Wl,'
13039 lt_prog_compiler_static='-static'
13040
13041 case $host_os in
13042 aix*)
13043 # All AIX code is PIC.
13044 if test "$host_cpu" = ia64; then
13045 # AIX 5 now supports IA64 processor
13046 lt_prog_compiler_static='-Bstatic'
13047 fi
13048 ;;
13049
13050 amigaos*)
13051 case $host_cpu in
13052 powerpc)
13053 # see comment about AmigaOS4 .so support
13054 lt_prog_compiler_pic='-fPIC'
13055 ;;
13056 m68k)
13057 # FIXME: we need at least 68020 code to build shared libraries, but
13058 # adding the `-m68020' flag to GCC prevents building anything better,
13059 # like `-m68040'.
13060 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
13061 ;;
13062 esac
13063 ;;
13064
13065 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13066 # PIC is the default for these OSes.
13067 ;;
13068
13069 mingw* | cygwin* | pw32* | os2* | cegcc*)
13070 # This hack is so that the source file can tell whether it is being
13071 # built for inclusion in a dll (and should export symbols for example).
13072 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13073 # (--disable-auto-import) libraries
13074 lt_prog_compiler_pic='-DDLL_EXPORT'
13075 ;;
13076
13077 darwin* | rhapsody*)
13078 # PIC is the default on this platform
13079 # Common symbols not allowed in MH_DYLIB files
13080 lt_prog_compiler_pic='-fno-common'
13081 ;;
13082
13083 hpux*)
13084 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13085 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13086 # sets the default TLS model and affects inlining.
13087 case $host_cpu in
13088 hppa*64*)
13089 # +Z the default
13090 ;;
13091 *)
13092 lt_prog_compiler_pic='-fPIC'
13093 ;;
13094 esac
13095 ;;
13096
13097 interix[3-9]*)
13098 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13099 # Instead, we relocate shared libraries at runtime.
13100 ;;
13101
13102 msdosdjgpp*)
13103 # Just because we use GCC doesn't mean we suddenly get shared libraries
13104 # on systems that don't support them.
13105 lt_prog_compiler_can_build_shared=no
13106 enable_shared=no
13107 ;;
13108
13109 *nto* | *qnx*)
13110 # QNX uses GNU C++, but need to define -shared option too, otherwise
13111 # it will coredump.
13112 lt_prog_compiler_pic='-fPIC -shared'
13113 ;;
13114
13115 sysv4*MP*)
13116 if test -d /usr/nec; then
13117 lt_prog_compiler_pic=-Kconform_pic
13118 fi
13119 ;;
13120
13121 *)
13122 lt_prog_compiler_pic='-fPIC'
13123 ;;
13124 esac
13125 else
13126 # PORTME Check for flag to pass linker flags through the system compiler.
13127 case $host_os in
13128 aix*)
13129 lt_prog_compiler_wl='-Wl,'
13130 if test "$host_cpu" = ia64; then
13131 # AIX 5 now supports IA64 processor
13132 lt_prog_compiler_static='-Bstatic'
13133 else
13134 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
13135 fi
13136 ;;
13137
13138 mingw* | cygwin* | pw32* | os2* | cegcc*)
13139 # This hack is so that the source file can tell whether it is being
13140 # built for inclusion in a dll (and should export symbols for example).
13141 lt_prog_compiler_pic='-DDLL_EXPORT'
13142 ;;
13143
13144 hpux9* | hpux10* | hpux11*)
13145 lt_prog_compiler_wl='-Wl,'
13146 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13147 # not for PA HP-UX.
13148 case $host_cpu in
13149 hppa*64*|ia64*)
13150 # +Z the default
13151 ;;
13152 *)
13153 lt_prog_compiler_pic='+Z'
13154 ;;
13155 esac
13156 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13157 lt_prog_compiler_static='${wl}-a ${wl}archive'
13158 ;;
13159
13160 irix5* | irix6* | nonstopux*)
13161 lt_prog_compiler_wl='-Wl,'
13162 # PIC (with -KPIC) is the default.
13163 lt_prog_compiler_static='-non_shared'
13164 ;;
13165
cristy18304f92009-11-22 15:48:26 +000013166 linux* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000013167 case $cc_basename in
13168 # old Intel for x86_64 which still supported -KPIC.
13169 ecc*)
13170 lt_prog_compiler_wl='-Wl,'
13171 lt_prog_compiler_pic='-KPIC'
13172 lt_prog_compiler_static='-static'
13173 ;;
13174 # icc used to be incompatible with GCC.
13175 # ICC 10 doesn't accept -KPIC any more.
13176 icc* | ifort*)
13177 lt_prog_compiler_wl='-Wl,'
13178 lt_prog_compiler_pic='-fPIC'
13179 lt_prog_compiler_static='-static'
13180 ;;
13181 # Lahey Fortran 8.1.
13182 lf95*)
13183 lt_prog_compiler_wl='-Wl,'
13184 lt_prog_compiler_pic='--shared'
13185 lt_prog_compiler_static='--static'
13186 ;;
cristy18304f92009-11-22 15:48:26 +000013187 pgcc* | pgf77* | pgf90* | pgf95*)
cristy3ed852e2009-09-05 21:47:34 +000013188 # Portland Group compilers (*not* the Pentium gcc compiler,
13189 # which looks to be a dead project)
13190 lt_prog_compiler_wl='-Wl,'
13191 lt_prog_compiler_pic='-fpic'
13192 lt_prog_compiler_static='-Bstatic'
13193 ;;
13194 ccc*)
13195 lt_prog_compiler_wl='-Wl,'
13196 # All Alpha code is PIC.
13197 lt_prog_compiler_static='-non_shared'
13198 ;;
cristy18304f92009-11-22 15:48:26 +000013199 xl*)
13200 # IBM XL C 8.0/Fortran 10.1 on PPC
cristy3ed852e2009-09-05 21:47:34 +000013201 lt_prog_compiler_wl='-Wl,'
13202 lt_prog_compiler_pic='-qpic'
13203 lt_prog_compiler_static='-qstaticlink'
13204 ;;
13205 *)
13206 case `$CC -V 2>&1 | sed 5q` in
13207 *Sun\ C*)
13208 # Sun C 5.9
13209 lt_prog_compiler_pic='-KPIC'
13210 lt_prog_compiler_static='-Bstatic'
13211 lt_prog_compiler_wl='-Wl,'
13212 ;;
cristy18304f92009-11-22 15:48:26 +000013213 *Sun\ F*)
13214 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13215 lt_prog_compiler_pic='-KPIC'
13216 lt_prog_compiler_static='-Bstatic'
13217 lt_prog_compiler_wl=''
13218 ;;
cristy3ed852e2009-09-05 21:47:34 +000013219 esac
13220 ;;
13221 esac
13222 ;;
13223
13224 newsos6)
13225 lt_prog_compiler_pic='-KPIC'
13226 lt_prog_compiler_static='-Bstatic'
13227 ;;
13228
13229 *nto* | *qnx*)
13230 # QNX uses GNU C++, but need to define -shared option too, otherwise
13231 # it will coredump.
13232 lt_prog_compiler_pic='-fPIC -shared'
13233 ;;
13234
13235 osf3* | osf4* | osf5*)
13236 lt_prog_compiler_wl='-Wl,'
13237 # All OSF/1 code is PIC.
13238 lt_prog_compiler_static='-non_shared'
13239 ;;
13240
13241 rdos*)
13242 lt_prog_compiler_static='-non_shared'
13243 ;;
13244
13245 solaris*)
13246 lt_prog_compiler_pic='-KPIC'
13247 lt_prog_compiler_static='-Bstatic'
13248 case $cc_basename in
13249 f77* | f90* | f95*)
13250 lt_prog_compiler_wl='-Qoption ld ';;
13251 *)
13252 lt_prog_compiler_wl='-Wl,';;
13253 esac
13254 ;;
13255
13256 sunos4*)
13257 lt_prog_compiler_wl='-Qoption ld '
13258 lt_prog_compiler_pic='-PIC'
13259 lt_prog_compiler_static='-Bstatic'
13260 ;;
13261
13262 sysv4 | sysv4.2uw2* | sysv4.3*)
13263 lt_prog_compiler_wl='-Wl,'
13264 lt_prog_compiler_pic='-KPIC'
13265 lt_prog_compiler_static='-Bstatic'
13266 ;;
13267
13268 sysv4*MP*)
13269 if test -d /usr/nec ;then
13270 lt_prog_compiler_pic='-Kconform_pic'
13271 lt_prog_compiler_static='-Bstatic'
13272 fi
13273 ;;
13274
13275 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13276 lt_prog_compiler_wl='-Wl,'
13277 lt_prog_compiler_pic='-KPIC'
13278 lt_prog_compiler_static='-Bstatic'
13279 ;;
13280
13281 unicos*)
13282 lt_prog_compiler_wl='-Wl,'
13283 lt_prog_compiler_can_build_shared=no
13284 ;;
13285
13286 uts4*)
13287 lt_prog_compiler_pic='-pic'
13288 lt_prog_compiler_static='-Bstatic'
13289 ;;
13290
13291 *)
13292 lt_prog_compiler_can_build_shared=no
13293 ;;
13294 esac
13295 fi
13296
13297case $host_os in
13298 # For platforms which do not support PIC, -DPIC is meaningless:
13299 *djgpp*)
13300 lt_prog_compiler_pic=
13301 ;;
13302 *)
13303 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
13304 ;;
13305esac
cristy8b350f62009-11-15 23:12:43 +000013306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
cristy3ed852e2009-09-05 21:47:34 +000013307$as_echo "$lt_prog_compiler_pic" >&6; }
13308
13309
13310
13311
13312
13313
13314#
13315# Check to make sure the PIC flag actually works.
13316#
13317if test -n "$lt_prog_compiler_pic"; then
cristy8b350f62009-11-15 23:12:43 +000013318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
cristy3ed852e2009-09-05 21:47:34 +000013319$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000013320if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000013321 $as_echo_n "(cached) " >&6
13322else
13323 lt_cv_prog_compiler_pic_works=no
13324 ac_outfile=conftest.$ac_objext
13325 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13326 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
13327 # Insert the option either (1) after the last *FLAGS variable, or
13328 # (2) before a word containing "conftest.", or (3) at the end.
13329 # Note that $ac_compile itself does not contain backslashes and begins
13330 # with a dollar sign (not a hyphen), so the echo should work correctly.
13331 # The option is referenced via a variable to avoid confusing sed.
13332 lt_compile=`echo "$ac_compile" | $SED \
13333 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13334 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13335 -e 's:$: $lt_compiler_flag:'`
cristy0d3a6382010-04-26 00:45:55 +000013336 (eval echo "\"\$as_me:13336: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000013337 (eval "$lt_compile" 2>conftest.err)
13338 ac_status=$?
13339 cat conftest.err >&5
cristy0d3a6382010-04-26 00:45:55 +000013340 echo "$as_me:13340: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000013341 if (exit $ac_status) && test -s "$ac_outfile"; then
13342 # The compiler can only warn and ignore the option if not recognized
13343 # So say no if there are warnings other than the usual output.
cristy18304f92009-11-22 15:48:26 +000013344 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000013345 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13346 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13347 lt_cv_prog_compiler_pic_works=yes
13348 fi
13349 fi
13350 $RM conftest*
13351
13352fi
cristy8b350f62009-11-15 23:12:43 +000013353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000013354$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
13355
13356if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
13357 case $lt_prog_compiler_pic in
13358 "" | " "*) ;;
13359 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
13360 esac
13361else
13362 lt_prog_compiler_pic=
13363 lt_prog_compiler_can_build_shared=no
13364fi
13365
13366fi
13367
13368
13369
13370
13371
13372
13373#
13374# Check to make sure the static flag actually works.
13375#
13376wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
cristy8b350f62009-11-15 23:12:43 +000013377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
cristy3ed852e2009-09-05 21:47:34 +000013378$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000013379if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000013380 $as_echo_n "(cached) " >&6
13381else
13382 lt_cv_prog_compiler_static_works=no
13383 save_LDFLAGS="$LDFLAGS"
13384 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13385 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13386 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13387 # The linker can only warn and ignore the option if not recognized
13388 # So say no if there are warnings
13389 if test -s conftest.err; then
13390 # Append any errors to the config.log.
13391 cat conftest.err 1>&5
cristy18304f92009-11-22 15:48:26 +000013392 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000013393 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13394 if diff conftest.exp conftest.er2 >/dev/null; then
13395 lt_cv_prog_compiler_static_works=yes
13396 fi
13397 else
13398 lt_cv_prog_compiler_static_works=yes
13399 fi
13400 fi
13401 $RM -r conftest*
13402 LDFLAGS="$save_LDFLAGS"
13403
13404fi
cristy8b350f62009-11-15 23:12:43 +000013405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000013406$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
13407
13408if test x"$lt_cv_prog_compiler_static_works" = xyes; then
13409 :
13410else
13411 lt_prog_compiler_static=
13412fi
13413
13414
13415
13416
13417
13418
13419
cristy8b350f62009-11-15 23:12:43 +000013420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +000013421$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000013422if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000013423 $as_echo_n "(cached) " >&6
13424else
13425 lt_cv_prog_compiler_c_o=no
13426 $RM -r conftest 2>/dev/null
13427 mkdir conftest
13428 cd conftest
13429 mkdir out
13430 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13431
13432 lt_compiler_flag="-o out/conftest2.$ac_objext"
13433 # Insert the option either (1) after the last *FLAGS variable, or
13434 # (2) before a word containing "conftest.", or (3) at the end.
13435 # Note that $ac_compile itself does not contain backslashes and begins
13436 # with a dollar sign (not a hyphen), so the echo should work correctly.
13437 lt_compile=`echo "$ac_compile" | $SED \
13438 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13439 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13440 -e 's:$: $lt_compiler_flag:'`
cristy0d3a6382010-04-26 00:45:55 +000013441 (eval echo "\"\$as_me:13441: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000013442 (eval "$lt_compile" 2>out/conftest.err)
13443 ac_status=$?
13444 cat out/conftest.err >&5
cristy0d3a6382010-04-26 00:45:55 +000013445 echo "$as_me:13445: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000013446 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13447 then
13448 # The compiler can only warn and ignore the option if not recognized
13449 # So say no if there are warnings
cristy18304f92009-11-22 15:48:26 +000013450 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000013451 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13452 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13453 lt_cv_prog_compiler_c_o=yes
13454 fi
13455 fi
13456 chmod u+w . 2>&5
13457 $RM conftest*
13458 # SGI C++ compiler will create directory out/ii_files/ for
13459 # template instantiation
13460 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13461 $RM out/* && rmdir out
13462 cd ..
13463 $RM -r conftest
13464 $RM conftest*
13465
13466fi
cristy8b350f62009-11-15 23:12:43 +000013467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
cristy3ed852e2009-09-05 21:47:34 +000013468$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
13469
13470
13471
13472
13473
13474
cristy8b350f62009-11-15 23:12:43 +000013475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +000013476$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000013477if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000013478 $as_echo_n "(cached) " >&6
13479else
13480 lt_cv_prog_compiler_c_o=no
13481 $RM -r conftest 2>/dev/null
13482 mkdir conftest
13483 cd conftest
13484 mkdir out
13485 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13486
13487 lt_compiler_flag="-o out/conftest2.$ac_objext"
13488 # Insert the option either (1) after the last *FLAGS variable, or
13489 # (2) before a word containing "conftest.", or (3) at the end.
13490 # Note that $ac_compile itself does not contain backslashes and begins
13491 # with a dollar sign (not a hyphen), so the echo should work correctly.
13492 lt_compile=`echo "$ac_compile" | $SED \
13493 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13494 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13495 -e 's:$: $lt_compiler_flag:'`
cristy0d3a6382010-04-26 00:45:55 +000013496 (eval echo "\"\$as_me:13496: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000013497 (eval "$lt_compile" 2>out/conftest.err)
13498 ac_status=$?
13499 cat out/conftest.err >&5
cristy0d3a6382010-04-26 00:45:55 +000013500 echo "$as_me:13500: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000013501 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13502 then
13503 # The compiler can only warn and ignore the option if not recognized
13504 # So say no if there are warnings
cristy18304f92009-11-22 15:48:26 +000013505 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000013506 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13507 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13508 lt_cv_prog_compiler_c_o=yes
13509 fi
13510 fi
13511 chmod u+w . 2>&5
13512 $RM conftest*
13513 # SGI C++ compiler will create directory out/ii_files/ for
13514 # template instantiation
13515 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13516 $RM out/* && rmdir out
13517 cd ..
13518 $RM -r conftest
13519 $RM conftest*
13520
13521fi
cristy8b350f62009-11-15 23:12:43 +000013522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
cristy3ed852e2009-09-05 21:47:34 +000013523$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
13524
13525
13526
13527
13528hard_links="nottested"
13529if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
13530 # do not overwrite the value of need_locks provided by the user
cristy8b350f62009-11-15 23:12:43 +000013531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
cristy3ed852e2009-09-05 21:47:34 +000013532$as_echo_n "checking if we can lock with hard links... " >&6; }
13533 hard_links=yes
13534 $RM conftest*
13535 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13536 touch conftest.a
13537 ln conftest.a conftest.b 2>&5 || hard_links=no
13538 ln conftest.a conftest.b 2>/dev/null && hard_links=no
cristy8b350f62009-11-15 23:12:43 +000013539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
cristy3ed852e2009-09-05 21:47:34 +000013540$as_echo "$hard_links" >&6; }
13541 if test "$hard_links" = no; then
cristy8b350f62009-11-15 23:12:43 +000013542 { $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 +000013543$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13544 need_locks=warn
13545 fi
13546else
13547 need_locks=no
13548fi
13549
13550
13551
13552
13553
13554
cristy8b350f62009-11-15 23:12:43 +000013555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000013556$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13557
13558 runpath_var=
13559 allow_undefined_flag=
13560 always_export_symbols=no
13561 archive_cmds=
13562 archive_expsym_cmds=
13563 compiler_needs_object=no
13564 enable_shared_with_static_runtimes=no
13565 export_dynamic_flag_spec=
13566 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13567 hardcode_automatic=no
13568 hardcode_direct=no
13569 hardcode_direct_absolute=no
13570 hardcode_libdir_flag_spec=
13571 hardcode_libdir_flag_spec_ld=
13572 hardcode_libdir_separator=
13573 hardcode_minus_L=no
13574 hardcode_shlibpath_var=unsupported
13575 inherit_rpath=no
13576 link_all_deplibs=unknown
13577 module_cmds=
13578 module_expsym_cmds=
13579 old_archive_from_new_cmds=
13580 old_archive_from_expsyms_cmds=
13581 thread_safe_flag_spec=
13582 whole_archive_flag_spec=
13583 # include_expsyms should be a list of space-separated symbols to be *always*
13584 # included in the symbol list
13585 include_expsyms=
13586 # exclude_expsyms can be an extended regexp of symbols to exclude
13587 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13588 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13589 # as well as any symbol that contains `d'.
13590 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13591 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13592 # platforms (ab)use it in PIC code, but their linkers get confused if
13593 # the symbol is explicitly referenced. Since portable code cannot
13594 # rely on this symbol name, it's probably fine to never include it in
13595 # preloaded symbol tables.
13596 # Exclude shared library initialization/finalization symbols.
13597 extract_expsyms_cmds=
13598
13599 case $host_os in
13600 cygwin* | mingw* | pw32* | cegcc*)
13601 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13602 # When not using gcc, we currently assume that we are using
13603 # Microsoft Visual C++.
13604 if test "$GCC" != yes; then
13605 with_gnu_ld=no
13606 fi
13607 ;;
13608 interix*)
13609 # we just hope/assume this is gcc and not c89 (= MSVC++)
13610 with_gnu_ld=yes
13611 ;;
13612 openbsd*)
13613 with_gnu_ld=no
13614 ;;
13615 esac
13616
13617 ld_shlibs=yes
13618 if test "$with_gnu_ld" = yes; then
13619 # If archive_cmds runs LD, not CC, wlarc should be empty
13620 wlarc='${wl}'
13621
13622 # Set some defaults for GNU ld with shared library support. These
13623 # are reset later if shared libraries are not supported. Putting them
13624 # here allows them to be overridden if necessary.
13625 runpath_var=LD_RUN_PATH
13626 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13627 export_dynamic_flag_spec='${wl}--export-dynamic'
13628 # ancient GNU ld didn't support --whole-archive et. al.
13629 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
13630 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13631 else
13632 whole_archive_flag_spec=
13633 fi
13634 supports_anon_versioning=no
13635 case `$LD -v 2>&1` in
13636 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13637 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13638 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13639 *\ 2.11.*) ;; # other 2.11 versions
13640 *) supports_anon_versioning=yes ;;
13641 esac
13642
13643 # See if GNU ld supports shared libraries.
13644 case $host_os in
13645 aix[3-9]*)
13646 # On AIX/PPC, the GNU linker is very broken
13647 if test "$host_cpu" != ia64; then
13648 ld_shlibs=no
13649 cat <<_LT_EOF 1>&2
13650
cristy18304f92009-11-22 15:48:26 +000013651*** Warning: the GNU linker, at least up to release 2.9.1, is reported
cristy3ed852e2009-09-05 21:47:34 +000013652*** to be unable to reliably create shared libraries on AIX.
13653*** Therefore, libtool is disabling shared libraries support. If you
cristy18304f92009-11-22 15:48:26 +000013654*** really care for shared libraries, you may want to modify your PATH
13655*** so that a non-GNU linker is found, and then restart.
cristy3ed852e2009-09-05 21:47:34 +000013656
13657_LT_EOF
13658 fi
13659 ;;
13660
13661 amigaos*)
13662 case $host_cpu in
13663 powerpc)
13664 # see comment about AmigaOS4 .so support
13665 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13666 archive_expsym_cmds=''
13667 ;;
13668 m68k)
13669 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)'
13670 hardcode_libdir_flag_spec='-L$libdir'
13671 hardcode_minus_L=yes
13672 ;;
13673 esac
13674 ;;
13675
13676 beos*)
13677 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13678 allow_undefined_flag=unsupported
13679 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13680 # support --undefined. This deserves some investigation. FIXME
13681 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13682 else
13683 ld_shlibs=no
13684 fi
13685 ;;
13686
13687 cygwin* | mingw* | pw32* | cegcc*)
13688 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
13689 # as there is no search path for DLLs.
13690 hardcode_libdir_flag_spec='-L$libdir'
13691 allow_undefined_flag=unsupported
13692 always_export_symbols=no
13693 enable_shared_with_static_runtimes=yes
13694 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13695
13696 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13697 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13698 # If the export-symbols file already is a .def file (1st line
13699 # is EXPORTS), use it as is; otherwise, prepend...
13700 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13701 cp $export_symbols $output_objdir/$soname.def;
13702 else
13703 echo EXPORTS > $output_objdir/$soname.def;
13704 cat $export_symbols >> $output_objdir/$soname.def;
13705 fi~
13706 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13707 else
13708 ld_shlibs=no
13709 fi
13710 ;;
13711
13712 interix[3-9]*)
13713 hardcode_direct=no
13714 hardcode_shlibpath_var=no
13715 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13716 export_dynamic_flag_spec='${wl}-E'
13717 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13718 # Instead, shared libraries are loaded at an image base (0x10000000 by
13719 # default) and relocated if they conflict, which is a slow very memory
13720 # consuming and fragmenting process. To avoid this, we pick a random,
13721 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13722 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13723 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13724 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'
13725 ;;
13726
cristy18304f92009-11-22 15:48:26 +000013727 gnu* | linux* | tpf* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000013728 tmp_diet=no
13729 if test "$host_os" = linux-dietlibc; then
13730 case $cc_basename in
13731 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
13732 esac
13733 fi
13734 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
13735 && test "$tmp_diet" = no
13736 then
13737 tmp_addflag=
13738 tmp_sharedflag='-shared'
13739 case $cc_basename,$host_cpu in
13740 pgcc*) # Portland Group C compiler
cristy18304f92009-11-22 15:48:26 +000013741 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 +000013742 tmp_addflag=' $pic_flag'
13743 ;;
cristy18304f92009-11-22 15:48:26 +000013744 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
13745 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 +000013746 tmp_addflag=' $pic_flag -Mnomain' ;;
13747 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13748 tmp_addflag=' -i_dynamic' ;;
13749 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13750 tmp_addflag=' -i_dynamic -nofor_main' ;;
13751 ifc* | ifort*) # Intel Fortran compiler
13752 tmp_addflag=' -nofor_main' ;;
13753 lf95*) # Lahey Fortran 8.1
13754 whole_archive_flag_spec=
13755 tmp_sharedflag='--shared' ;;
cristy18304f92009-11-22 15:48:26 +000013756 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
cristy3ed852e2009-09-05 21:47:34 +000013757 tmp_sharedflag='-qmkshrobj'
13758 tmp_addflag= ;;
13759 esac
13760 case `$CC -V 2>&1 | sed 5q` in
13761 *Sun\ C*) # Sun C 5.9
cristy18304f92009-11-22 15:48:26 +000013762 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 +000013763 compiler_needs_object=yes
13764 tmp_sharedflag='-G' ;;
13765 *Sun\ F*) # Sun Fortran 8.3
13766 tmp_sharedflag='-G' ;;
13767 esac
13768 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13769
13770 if test "x$supports_anon_versioning" = xyes; then
13771 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13772 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13773 echo "local: *; };" >> $output_objdir/$libname.ver~
13774 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13775 fi
13776
13777 case $cc_basename in
cristy18304f92009-11-22 15:48:26 +000013778 xlf*)
cristy3ed852e2009-09-05 21:47:34 +000013779 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
13780 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
13781 hardcode_libdir_flag_spec=
13782 hardcode_libdir_flag_spec_ld='-rpath $libdir'
13783 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
13784 if test "x$supports_anon_versioning" = xyes; then
13785 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13786 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13787 echo "local: *; };" >> $output_objdir/$libname.ver~
13788 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
13789 fi
13790 ;;
13791 esac
13792 else
13793 ld_shlibs=no
13794 fi
13795 ;;
13796
13797 netbsd*)
13798 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13799 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13800 wlarc=
13801 else
13802 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13803 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13804 fi
13805 ;;
13806
13807 solaris*)
13808 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
13809 ld_shlibs=no
13810 cat <<_LT_EOF 1>&2
13811
13812*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13813*** create shared libraries on Solaris systems. Therefore, libtool
13814*** is disabling shared libraries support. We urge you to upgrade GNU
13815*** binutils to release 2.9.1 or newer. Another option is to modify
13816*** your PATH or compiler configuration so that the native linker is
13817*** used, and then restart.
13818
13819_LT_EOF
13820 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13821 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13822 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13823 else
13824 ld_shlibs=no
13825 fi
13826 ;;
13827
13828 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13829 case `$LD -v 2>&1` in
13830 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13831 ld_shlibs=no
13832 cat <<_LT_EOF 1>&2
13833
13834*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13835*** reliably create shared libraries on SCO systems. Therefore, libtool
13836*** is disabling shared libraries support. We urge you to upgrade GNU
13837*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13838*** your PATH or compiler configuration so that the native linker is
13839*** used, and then restart.
13840
13841_LT_EOF
13842 ;;
13843 *)
13844 # For security reasons, it is highly recommended that you always
13845 # use absolute paths for naming shared libraries, and exclude the
13846 # DT_RUNPATH tag from executables and libraries. But doing so
13847 # requires that you compile everything twice, which is a pain.
13848 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13849 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13850 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13851 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13852 else
13853 ld_shlibs=no
13854 fi
13855 ;;
13856 esac
13857 ;;
13858
13859 sunos4*)
13860 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13861 wlarc=
13862 hardcode_direct=yes
13863 hardcode_shlibpath_var=no
13864 ;;
13865
13866 *)
13867 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13868 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13869 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13870 else
13871 ld_shlibs=no
13872 fi
13873 ;;
13874 esac
13875
13876 if test "$ld_shlibs" = no; then
13877 runpath_var=
13878 hardcode_libdir_flag_spec=
13879 export_dynamic_flag_spec=
13880 whole_archive_flag_spec=
13881 fi
13882 else
13883 # PORTME fill in a description of your system's linker (not GNU ld)
13884 case $host_os in
13885 aix3*)
13886 allow_undefined_flag=unsupported
13887 always_export_symbols=yes
13888 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'
13889 # Note: this linker hardcodes the directories in LIBPATH if there
13890 # are no directories specified by -L.
13891 hardcode_minus_L=yes
13892 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13893 # Neither direct hardcoding nor static linking is supported with a
13894 # broken collect2.
13895 hardcode_direct=unsupported
13896 fi
13897 ;;
13898
13899 aix[4-9]*)
13900 if test "$host_cpu" = ia64; then
13901 # On IA64, the linker does run time linking by default, so we don't
13902 # have to do anything special.
13903 aix_use_runtimelinking=no
13904 exp_sym_flag='-Bexport'
13905 no_entry_flag=""
13906 else
13907 # If we're using GNU nm, then we don't want the "-C" option.
13908 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13909 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy18304f92009-11-22 15:48:26 +000013910 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 +000013911 else
13912 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'
13913 fi
13914 aix_use_runtimelinking=no
13915
13916 # Test if we are trying to use run time linking or normal
13917 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13918 # need to do runtime linking.
13919 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13920 for ld_flag in $LDFLAGS; do
13921 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13922 aix_use_runtimelinking=yes
13923 break
13924 fi
13925 done
13926 ;;
13927 esac
13928
13929 exp_sym_flag='-bexport'
13930 no_entry_flag='-bnoentry'
13931 fi
13932
13933 # When large executables or shared objects are built, AIX ld can
13934 # have problems creating the table of contents. If linking a library
13935 # or program results in "error TOC overflow" add -mminimal-toc to
13936 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13937 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13938
13939 archive_cmds=''
13940 hardcode_direct=yes
13941 hardcode_direct_absolute=yes
13942 hardcode_libdir_separator=':'
13943 link_all_deplibs=yes
13944 file_list_spec='${wl}-f,'
13945
13946 if test "$GCC" = yes; then
13947 case $host_os in aix4.[012]|aix4.[012].*)
13948 # We only want to do this on AIX 4.2 and lower, the check
13949 # below for broken collect2 doesn't work under 4.3+
13950 collect2name=`${CC} -print-prog-name=collect2`
13951 if test -f "$collect2name" &&
13952 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13953 then
13954 # We have reworked collect2
13955 :
13956 else
13957 # We have old collect2
13958 hardcode_direct=unsupported
13959 # It fails to find uninstalled libraries when the uninstalled
13960 # path is not listed in the libpath. Setting hardcode_minus_L
13961 # to unsupported forces relinking
13962 hardcode_minus_L=yes
13963 hardcode_libdir_flag_spec='-L$libdir'
13964 hardcode_libdir_separator=
13965 fi
13966 ;;
13967 esac
13968 shared_flag='-shared'
13969 if test "$aix_use_runtimelinking" = yes; then
13970 shared_flag="$shared_flag "'${wl}-G'
13971 fi
13972 else
13973 # not using gcc
13974 if test "$host_cpu" = ia64; then
13975 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13976 # chokes on -Wl,-G. The following line is correct:
13977 shared_flag='-G'
13978 else
13979 if test "$aix_use_runtimelinking" = yes; then
13980 shared_flag='${wl}-G'
13981 else
13982 shared_flag='${wl}-bM:SRE'
13983 fi
13984 fi
13985 fi
13986
13987 export_dynamic_flag_spec='${wl}-bexpall'
13988 # It seems that -bexpall does not export symbols beginning with
13989 # underscore (_), so it is better to generate a list of symbols to export.
13990 always_export_symbols=yes
13991 if test "$aix_use_runtimelinking" = yes; then
13992 # Warning - without using the other runtime loading flags (-brtl),
13993 # -berok will link without error, but may produce a broken library.
13994 allow_undefined_flag='-berok'
13995 # Determine the default libpath from the value encoded in an
13996 # empty executable.
cristy8b350f62009-11-15 23:12:43 +000013997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000013998/* end confdefs.h. */
13999
14000int
14001main ()
14002{
14003
14004 ;
14005 return 0;
14006}
14007_ACEOF
cristy8b350f62009-11-15 23:12:43 +000014008if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000014009
14010lt_aix_libpath_sed='
14011 /Import File Strings/,/^$/ {
14012 /^0/ {
14013 s/^0 *\(.*\)$/\1/
14014 p
14015 }
14016 }'
14017aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14018# Check for a 64-bit object if we didn't find anything.
14019if test -z "$aix_libpath"; then
14020 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14021fi
cristy3ed852e2009-09-05 21:47:34 +000014022fi
cristy8b350f62009-11-15 23:12:43 +000014023rm -f core conftest.err conftest.$ac_objext \
14024 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014025if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14026
14027 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
cristy18304f92009-11-22 15:48:26 +000014028 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 +000014029 else
14030 if test "$host_cpu" = ia64; then
14031 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
14032 allow_undefined_flag="-z nodefs"
14033 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"
14034 else
14035 # Determine the default libpath from the value encoded in an
14036 # empty executable.
cristy8b350f62009-11-15 23:12:43 +000014037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014038/* end confdefs.h. */
14039
14040int
14041main ()
14042{
14043
14044 ;
14045 return 0;
14046}
14047_ACEOF
cristy8b350f62009-11-15 23:12:43 +000014048if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000014049
14050lt_aix_libpath_sed='
14051 /Import File Strings/,/^$/ {
14052 /^0/ {
14053 s/^0 *\(.*\)$/\1/
14054 p
14055 }
14056 }'
14057aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14058# Check for a 64-bit object if we didn't find anything.
14059if test -z "$aix_libpath"; then
14060 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14061fi
cristy3ed852e2009-09-05 21:47:34 +000014062fi
cristy8b350f62009-11-15 23:12:43 +000014063rm -f core conftest.err conftest.$ac_objext \
14064 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014065if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14066
14067 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
14068 # Warning - without using the other run time loading flags,
14069 # -berok will link without error, but may produce a broken library.
14070 no_undefined_flag=' ${wl}-bernotok'
14071 allow_undefined_flag=' ${wl}-berok'
cristy18304f92009-11-22 15:48:26 +000014072 # Exported symbols can be pulled into shared objects from archives
14073 whole_archive_flag_spec='$convenience'
cristy3ed852e2009-09-05 21:47:34 +000014074 archive_cmds_need_lc=yes
14075 # This is similar to how AIX traditionally builds its shared libraries.
14076 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'
14077 fi
14078 fi
14079 ;;
14080
14081 amigaos*)
14082 case $host_cpu in
14083 powerpc)
14084 # see comment about AmigaOS4 .so support
14085 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14086 archive_expsym_cmds=''
14087 ;;
14088 m68k)
14089 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)'
14090 hardcode_libdir_flag_spec='-L$libdir'
14091 hardcode_minus_L=yes
14092 ;;
14093 esac
14094 ;;
14095
14096 bsdi[45]*)
14097 export_dynamic_flag_spec=-rdynamic
14098 ;;
14099
14100 cygwin* | mingw* | pw32* | cegcc*)
14101 # When not using gcc, we currently assume that we are using
14102 # Microsoft Visual C++.
14103 # hardcode_libdir_flag_spec is actually meaningless, as there is
14104 # no search path for DLLs.
14105 hardcode_libdir_flag_spec=' '
14106 allow_undefined_flag=unsupported
14107 # Tell ltmain to make .lib files, not .a files.
14108 libext=lib
14109 # Tell ltmain to make .dll files, not .so files.
14110 shrext_cmds=".dll"
14111 # FIXME: Setting linknames here is a bad hack.
cristy18304f92009-11-22 15:48:26 +000014112 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
cristy3ed852e2009-09-05 21:47:34 +000014113 # The linker will automatically build a .lib file if we build a DLL.
14114 old_archive_from_new_cmds='true'
14115 # FIXME: Should let the user specify the lib program.
14116 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
14117 fix_srcfile_path='`cygpath -w "$srcfile"`'
14118 enable_shared_with_static_runtimes=yes
14119 ;;
14120
14121 darwin* | rhapsody*)
14122
14123
14124 archive_cmds_need_lc=no
14125 hardcode_direct=no
14126 hardcode_automatic=yes
14127 hardcode_shlibpath_var=unsupported
cristy18304f92009-11-22 15:48:26 +000014128 whole_archive_flag_spec=''
cristy3ed852e2009-09-05 21:47:34 +000014129 link_all_deplibs=yes
14130 allow_undefined_flag="$_lt_dar_allow_undefined"
14131 case $cc_basename in
14132 ifort*) _lt_dar_can_shared=yes ;;
14133 *) _lt_dar_can_shared=$GCC ;;
14134 esac
14135 if test "$_lt_dar_can_shared" = "yes"; then
cristy18304f92009-11-22 15:48:26 +000014136 output_verbose_link_cmd=echo
cristy3ed852e2009-09-05 21:47:34 +000014137 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
14138 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14139 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}"
14140 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}"
14141
14142 else
14143 ld_shlibs=no
14144 fi
14145
14146 ;;
14147
14148 dgux*)
14149 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14150 hardcode_libdir_flag_spec='-L$libdir'
14151 hardcode_shlibpath_var=no
14152 ;;
14153
14154 freebsd1*)
14155 ld_shlibs=no
14156 ;;
14157
14158 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14159 # support. Future versions do this automatically, but an explicit c++rt0.o
14160 # does not break anything, and helps significantly (at the cost of a little
14161 # extra space).
14162 freebsd2.2*)
14163 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14164 hardcode_libdir_flag_spec='-R$libdir'
14165 hardcode_direct=yes
14166 hardcode_shlibpath_var=no
14167 ;;
14168
14169 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14170 freebsd2*)
14171 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14172 hardcode_direct=yes
14173 hardcode_minus_L=yes
14174 hardcode_shlibpath_var=no
14175 ;;
14176
14177 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14178 freebsd* | dragonfly*)
14179 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14180 hardcode_libdir_flag_spec='-R$libdir'
14181 hardcode_direct=yes
14182 hardcode_shlibpath_var=no
14183 ;;
14184
14185 hpux9*)
14186 if test "$GCC" = yes; then
14187 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'
14188 else
14189 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'
14190 fi
14191 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14192 hardcode_libdir_separator=:
14193 hardcode_direct=yes
14194
14195 # hardcode_minus_L: Not really in the search PATH,
14196 # but as the default location of the library.
14197 hardcode_minus_L=yes
14198 export_dynamic_flag_spec='${wl}-E'
14199 ;;
14200
14201 hpux10*)
cristy18304f92009-11-22 15:48:26 +000014202 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
cristy3ed852e2009-09-05 21:47:34 +000014203 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14204 else
14205 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14206 fi
14207 if test "$with_gnu_ld" = no; then
14208 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14209 hardcode_libdir_flag_spec_ld='+b $libdir'
14210 hardcode_libdir_separator=:
14211 hardcode_direct=yes
14212 hardcode_direct_absolute=yes
14213 export_dynamic_flag_spec='${wl}-E'
14214 # hardcode_minus_L: Not really in the search PATH,
14215 # but as the default location of the library.
14216 hardcode_minus_L=yes
14217 fi
14218 ;;
14219
14220 hpux11*)
cristy18304f92009-11-22 15:48:26 +000014221 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
cristy3ed852e2009-09-05 21:47:34 +000014222 case $host_cpu in
14223 hppa*64*)
14224 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14225 ;;
14226 ia64*)
14227 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14228 ;;
14229 *)
14230 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14231 ;;
14232 esac
14233 else
14234 case $host_cpu in
14235 hppa*64*)
14236 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14237 ;;
14238 ia64*)
14239 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14240 ;;
14241 *)
cristy18304f92009-11-22 15:48:26 +000014242 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 +000014243 ;;
14244 esac
14245 fi
14246 if test "$with_gnu_ld" = no; then
14247 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14248 hardcode_libdir_separator=:
14249
14250 case $host_cpu in
14251 hppa*64*|ia64*)
14252 hardcode_direct=no
14253 hardcode_shlibpath_var=no
14254 ;;
14255 *)
14256 hardcode_direct=yes
14257 hardcode_direct_absolute=yes
14258 export_dynamic_flag_spec='${wl}-E'
14259
14260 # hardcode_minus_L: Not really in the search PATH,
14261 # but as the default location of the library.
14262 hardcode_minus_L=yes
14263 ;;
14264 esac
14265 fi
14266 ;;
14267
14268 irix5* | irix6* | nonstopux*)
14269 if test "$GCC" = yes; then
cristy18304f92009-11-22 15:48:26 +000014270 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 +000014271 # Try to use the -exported_symbol ld option, if it does not
14272 # work, assume that -exports_file does not work either and
14273 # implicitly export all symbols.
14274 save_LDFLAGS="$LDFLAGS"
14275 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
cristy8b350f62009-11-15 23:12:43 +000014276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14277/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000014278int foo(void) {}
14279_ACEOF
cristy8b350f62009-11-15 23:12:43 +000014280if ac_fn_c_try_link "$LINENO"; then :
cristy18304f92009-11-22 15:48:26 +000014281 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 +000014282
cristy3ed852e2009-09-05 21:47:34 +000014283fi
cristy8b350f62009-11-15 23:12:43 +000014284rm -f core conftest.err conftest.$ac_objext \
14285 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014286 LDFLAGS="$save_LDFLAGS"
14287 else
cristy18304f92009-11-22 15:48:26 +000014288 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'
14289 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 +000014290 fi
14291 archive_cmds_need_lc='no'
14292 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14293 hardcode_libdir_separator=:
14294 inherit_rpath=yes
14295 link_all_deplibs=yes
14296 ;;
14297
14298 netbsd*)
14299 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14300 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14301 else
14302 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14303 fi
14304 hardcode_libdir_flag_spec='-R$libdir'
14305 hardcode_direct=yes
14306 hardcode_shlibpath_var=no
14307 ;;
14308
14309 newsos6)
14310 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14311 hardcode_direct=yes
14312 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14313 hardcode_libdir_separator=:
14314 hardcode_shlibpath_var=no
14315 ;;
14316
14317 *nto* | *qnx*)
14318 ;;
14319
14320 openbsd*)
14321 if test -f /usr/libexec/ld.so; then
14322 hardcode_direct=yes
14323 hardcode_shlibpath_var=no
14324 hardcode_direct_absolute=yes
14325 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14326 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14327 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14328 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14329 export_dynamic_flag_spec='${wl}-E'
14330 else
14331 case $host_os in
14332 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14333 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14334 hardcode_libdir_flag_spec='-R$libdir'
14335 ;;
14336 *)
14337 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14338 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14339 ;;
14340 esac
14341 fi
14342 else
14343 ld_shlibs=no
14344 fi
14345 ;;
14346
14347 os2*)
14348 hardcode_libdir_flag_spec='-L$libdir'
14349 hardcode_minus_L=yes
14350 allow_undefined_flag=unsupported
cristy18304f92009-11-22 15:48:26 +000014351 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 +000014352 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14353 ;;
14354
14355 osf3*)
14356 if test "$GCC" = yes; then
14357 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristy18304f92009-11-22 15:48:26 +000014358 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 +000014359 else
14360 allow_undefined_flag=' -expect_unresolved \*'
cristy18304f92009-11-22 15:48:26 +000014361 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 +000014362 fi
14363 archive_cmds_need_lc='no'
14364 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14365 hardcode_libdir_separator=:
14366 ;;
14367
14368 osf4* | osf5*) # as osf3* with the addition of -msym flag
14369 if test "$GCC" = yes; then
14370 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristy18304f92009-11-22 15:48:26 +000014371 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 +000014372 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14373 else
14374 allow_undefined_flag=' -expect_unresolved \*'
cristy18304f92009-11-22 15:48:26 +000014375 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 +000014376 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 +000014377 $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 +000014378
14379 # Both c and cxx compiler support -rpath directly
14380 hardcode_libdir_flag_spec='-rpath $libdir'
14381 fi
14382 archive_cmds_need_lc='no'
14383 hardcode_libdir_separator=:
14384 ;;
14385
14386 solaris*)
14387 no_undefined_flag=' -z defs'
14388 if test "$GCC" = yes; then
14389 wlarc='${wl}'
14390 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14391 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14392 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14393 else
14394 case `$CC -V 2>&1` in
14395 *"Compilers 5.0"*)
14396 wlarc=''
14397 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14398 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14399 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
14400 ;;
14401 *)
14402 wlarc='${wl}'
14403 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
14404 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14405 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14406 ;;
14407 esac
14408 fi
14409 hardcode_libdir_flag_spec='-R$libdir'
14410 hardcode_shlibpath_var=no
14411 case $host_os in
14412 solaris2.[0-5] | solaris2.[0-5].*) ;;
14413 *)
14414 # The compiler driver will combine and reorder linker options,
14415 # but understands `-z linker_flag'. GCC discards it without `$wl',
14416 # but is careful enough not to reorder.
14417 # Supported since Solaris 2.6 (maybe 2.5.1?)
14418 if test "$GCC" = yes; then
14419 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14420 else
14421 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
14422 fi
14423 ;;
14424 esac
14425 link_all_deplibs=yes
14426 ;;
14427
14428 sunos4*)
14429 if test "x$host_vendor" = xsequent; then
14430 # Use $CC to link under sequent, because it throws in some extra .o
14431 # files that make .init and .fini sections work.
14432 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14433 else
14434 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14435 fi
14436 hardcode_libdir_flag_spec='-L$libdir'
14437 hardcode_direct=yes
14438 hardcode_minus_L=yes
14439 hardcode_shlibpath_var=no
14440 ;;
14441
14442 sysv4)
14443 case $host_vendor in
14444 sni)
14445 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14446 hardcode_direct=yes # is this really true???
14447 ;;
14448 siemens)
14449 ## LD is ld it makes a PLAMLIB
14450 ## CC just makes a GrossModule.
14451 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14452 reload_cmds='$CC -r -o $output$reload_objs'
14453 hardcode_direct=no
14454 ;;
14455 motorola)
14456 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14457 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
14458 ;;
14459 esac
14460 runpath_var='LD_RUN_PATH'
14461 hardcode_shlibpath_var=no
14462 ;;
14463
14464 sysv4.3*)
14465 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14466 hardcode_shlibpath_var=no
14467 export_dynamic_flag_spec='-Bexport'
14468 ;;
14469
14470 sysv4*MP*)
14471 if test -d /usr/nec; then
14472 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14473 hardcode_shlibpath_var=no
14474 runpath_var=LD_RUN_PATH
14475 hardcode_runpath_var=yes
14476 ld_shlibs=yes
14477 fi
14478 ;;
14479
14480 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14481 no_undefined_flag='${wl}-z,text'
14482 archive_cmds_need_lc=no
14483 hardcode_shlibpath_var=no
14484 runpath_var='LD_RUN_PATH'
14485
14486 if test "$GCC" = yes; then
14487 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14488 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14489 else
14490 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14491 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14492 fi
14493 ;;
14494
14495 sysv5* | sco3.2v5* | sco5v6*)
14496 # Note: We can NOT use -z defs as we might desire, because we do not
14497 # link with -lc, and that would cause any symbols used from libc to
14498 # always be unresolved, which means just about no library would
14499 # ever link correctly. If we're not using GNU ld we use -z text
14500 # though, which does catch some bad symbols but isn't as heavy-handed
14501 # as -z defs.
14502 no_undefined_flag='${wl}-z,text'
14503 allow_undefined_flag='${wl}-z,nodefs'
14504 archive_cmds_need_lc=no
14505 hardcode_shlibpath_var=no
14506 hardcode_libdir_flag_spec='${wl}-R,$libdir'
14507 hardcode_libdir_separator=':'
14508 link_all_deplibs=yes
14509 export_dynamic_flag_spec='${wl}-Bexport'
14510 runpath_var='LD_RUN_PATH'
14511
14512 if test "$GCC" = yes; then
14513 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14514 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14515 else
14516 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14517 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14518 fi
14519 ;;
14520
14521 uts4*)
14522 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14523 hardcode_libdir_flag_spec='-L$libdir'
14524 hardcode_shlibpath_var=no
14525 ;;
14526
14527 *)
14528 ld_shlibs=no
14529 ;;
14530 esac
14531
14532 if test x$host_vendor = xsni; then
14533 case $host in
14534 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14535 export_dynamic_flag_spec='${wl}-Blargedynsym'
14536 ;;
14537 esac
14538 fi
14539 fi
14540
cristy8b350f62009-11-15 23:12:43 +000014541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
cristy3ed852e2009-09-05 21:47:34 +000014542$as_echo "$ld_shlibs" >&6; }
14543test "$ld_shlibs" = no && can_build_shared=no
14544
14545with_gnu_ld=$with_gnu_ld
14546
14547
14548
14549
14550
14551
14552
14553
14554
14555
14556
14557
14558
14559
14560
14561#
14562# Do we need to explicitly link libc?
14563#
14564case "x$archive_cmds_need_lc" in
14565x|xyes)
14566 # Assume -lc should be added
14567 archive_cmds_need_lc=yes
14568
14569 if test "$enable_shared" = yes && test "$GCC" = yes; then
14570 case $archive_cmds in
14571 *'~'*)
14572 # FIXME: we may have to deal with multi-command sequences.
14573 ;;
14574 '$CC '*)
14575 # Test whether the compiler implicitly links with -lc since on some
14576 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14577 # to ld, don't add -lc before -lgcc.
cristy8b350f62009-11-15 23:12:43 +000014578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
cristy3ed852e2009-09-05 21:47:34 +000014579$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristy18304f92009-11-22 15:48:26 +000014580 $RM conftest*
14581 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014582
cristy18304f92009-11-22 15:48:26 +000014583 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000014584 (eval $ac_compile) 2>&5
14585 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000014586 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14587 test $ac_status = 0; } 2>conftest.err; then
cristy18304f92009-11-22 15:48:26 +000014588 soname=conftest
14589 lib=conftest
14590 libobjs=conftest.$ac_objext
14591 deplibs=
14592 wl=$lt_prog_compiler_wl
14593 pic_flag=$lt_prog_compiler_pic
14594 compiler_flags=-v
14595 linker_flags=-v
14596 verstring=
14597 output_objdir=.
14598 libname=conftest
14599 lt_save_allow_undefined_flag=$allow_undefined_flag
14600 allow_undefined_flag=
14601 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 +000014602 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14603 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000014604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14605 test $ac_status = 0; }
cristy18304f92009-11-22 15:48:26 +000014606 then
14607 archive_cmds_need_lc=no
14608 else
14609 archive_cmds_need_lc=yes
14610 fi
14611 allow_undefined_flag=$lt_save_allow_undefined_flag
14612 else
14613 cat conftest.err 1>&5
14614 fi
14615 $RM conftest*
14616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
14617$as_echo "$archive_cmds_need_lc" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000014618 ;;
14619 esac
14620 fi
14621 ;;
14622esac
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
14750
14751
14752
14753
14754
14755
14756
14757
14758
14759
14760
14761
14762
14763
14764
14765
14766
14767
14768
14769
14770
14771
14772
14773
14774
14775
14776
14777
14778
14779
cristy8b350f62009-11-15 23:12:43 +000014780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
cristy3ed852e2009-09-05 21:47:34 +000014781$as_echo_n "checking dynamic linker characteristics... " >&6; }
14782
14783if test "$GCC" = yes; then
14784 case $host_os in
14785 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
14786 *) lt_awk_arg="/^libraries:/" ;;
14787 esac
cristy18304f92009-11-22 15:48:26 +000014788 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14789 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
cristy3ed852e2009-09-05 21:47:34 +000014790 # if the path contains ";" then we assume it to be the separator
14791 # otherwise default to the standard path separator (i.e. ":") - it is
14792 # assumed that no part of a normal pathname contains ";" but that should
14793 # okay in the real world where ";" in dirpaths is itself problematic.
cristy18304f92009-11-22 15:48:26 +000014794 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
14795 else
14796 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14797 fi
cristy3ed852e2009-09-05 21:47:34 +000014798 # Ok, now we have the path, separated by spaces, we can step through it
14799 # and add multilib dir if necessary.
14800 lt_tmp_lt_search_path_spec=
14801 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
14802 for lt_sys_path in $lt_search_path_spec; do
14803 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
14804 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
14805 else
14806 test -d "$lt_sys_path" && \
14807 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
14808 fi
14809 done
cristy18304f92009-11-22 15:48:26 +000014810 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
cristy3ed852e2009-09-05 21:47:34 +000014811BEGIN {RS=" "; FS="/|\n";} {
14812 lt_foo="";
14813 lt_count=0;
14814 for (lt_i = NF; lt_i > 0; lt_i--) {
14815 if ($lt_i != "" && $lt_i != ".") {
14816 if ($lt_i == "..") {
14817 lt_count++;
14818 } else {
14819 if (lt_count == 0) {
14820 lt_foo="/" $lt_i lt_foo;
14821 } else {
14822 lt_count--;
14823 }
14824 }
14825 }
14826 }
14827 if (lt_foo != "") { lt_freq[lt_foo]++; }
14828 if (lt_freq[lt_foo] == 1) { print lt_foo; }
14829}'`
cristy18304f92009-11-22 15:48:26 +000014830 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
cristy3ed852e2009-09-05 21:47:34 +000014831else
14832 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14833fi
14834library_names_spec=
14835libname_spec='lib$name'
14836soname_spec=
14837shrext_cmds=".so"
14838postinstall_cmds=
14839postuninstall_cmds=
14840finish_cmds=
14841finish_eval=
14842shlibpath_var=
14843shlibpath_overrides_runpath=unknown
14844version_type=none
14845dynamic_linker="$host_os ld.so"
14846sys_lib_dlsearch_path_spec="/lib /usr/lib"
14847need_lib_prefix=unknown
14848hardcode_into_libs=no
14849
14850# when you set need_version to no, make sure it does not cause -set_version
14851# flags to be left without arguments
14852need_version=unknown
14853
14854case $host_os in
14855aix3*)
14856 version_type=linux
14857 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14858 shlibpath_var=LIBPATH
14859
14860 # AIX 3 has no versioning support, so we append a major version to the name.
14861 soname_spec='${libname}${release}${shared_ext}$major'
14862 ;;
14863
14864aix[4-9]*)
14865 version_type=linux
14866 need_lib_prefix=no
14867 need_version=no
14868 hardcode_into_libs=yes
14869 if test "$host_cpu" = ia64; then
14870 # AIX 5 supports IA64
14871 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14872 shlibpath_var=LD_LIBRARY_PATH
14873 else
14874 # With GCC up to 2.95.x, collect2 would create an import file
14875 # for dependence libraries. The import file would start with
14876 # the line `#! .'. This would cause the generated library to
14877 # depend on `.', always an invalid library. This was fixed in
14878 # development snapshots of GCC prior to 3.0.
14879 case $host_os in
14880 aix4 | aix4.[01] | aix4.[01].*)
14881 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14882 echo ' yes '
14883 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14884 :
14885 else
14886 can_build_shared=no
14887 fi
14888 ;;
14889 esac
14890 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14891 # soname into executable. Probably we can add versioning support to
14892 # collect2, so additional links can be useful in future.
14893 if test "$aix_use_runtimelinking" = yes; then
14894 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14895 # instead of lib<name>.a to let people know that these are not
14896 # typical AIX shared libraries.
14897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14898 else
14899 # We preserve .a as extension for shared libraries through AIX4.2
14900 # and later when we are not doing run time linking.
14901 library_names_spec='${libname}${release}.a $libname.a'
14902 soname_spec='${libname}${release}${shared_ext}$major'
14903 fi
14904 shlibpath_var=LIBPATH
14905 fi
14906 ;;
14907
14908amigaos*)
14909 case $host_cpu in
14910 powerpc)
14911 # Since July 2007 AmigaOS4 officially supports .so libraries.
14912 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14914 ;;
14915 m68k)
14916 library_names_spec='$libname.ixlibrary $libname.a'
14917 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy18304f92009-11-22 15:48:26 +000014918 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 +000014919 ;;
14920 esac
14921 ;;
14922
14923beos*)
14924 library_names_spec='${libname}${shared_ext}'
14925 dynamic_linker="$host_os ld.so"
14926 shlibpath_var=LIBRARY_PATH
14927 ;;
14928
14929bsdi[45]*)
14930 version_type=linux
14931 need_version=no
14932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14933 soname_spec='${libname}${release}${shared_ext}$major'
14934 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14935 shlibpath_var=LD_LIBRARY_PATH
14936 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14937 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14938 # the default ld.so.conf also contains /usr/contrib/lib and
14939 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14940 # libtool to hard-code these into programs
14941 ;;
14942
14943cygwin* | mingw* | pw32* | cegcc*)
14944 version_type=windows
14945 shrext_cmds=".dll"
14946 need_version=no
14947 need_lib_prefix=no
14948
14949 case $GCC,$host_os in
14950 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14951 library_names_spec='$libname.dll.a'
14952 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14953 postinstall_cmds='base_file=`basename \${file}`~
14954 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14955 dldir=$destdir/`dirname \$dlpath`~
14956 test -d \$dldir || mkdir -p \$dldir~
14957 $install_prog $dir/$dlname \$dldir/$dlname~
14958 chmod a+x \$dldir/$dlname~
14959 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14960 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14961 fi'
14962 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14963 dlpath=$dir/\$dldll~
14964 $RM \$dlpath'
14965 shlibpath_overrides_runpath=yes
14966
14967 case $host_os in
14968 cygwin*)
14969 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14970 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy18304f92009-11-22 15:48:26 +000014971 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
cristy3ed852e2009-09-05 21:47:34 +000014972 ;;
14973 mingw* | cegcc*)
14974 # MinGW DLLs use traditional 'lib' prefix
14975 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy18304f92009-11-22 15:48:26 +000014976 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14977 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14978 # It is most probably a Windows format PATH printed by
14979 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14980 # path with ; separators, and with drive letters. We can handle the
14981 # drive letters (cygwin fileutils understands them), so leave them,
14982 # especially as we might pass files found there to a mingw objdump,
14983 # which wouldn't understand a cygwinified path. Ahh.
14984 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14985 else
14986 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14987 fi
cristy3ed852e2009-09-05 21:47:34 +000014988 ;;
14989 pw32*)
14990 # pw32 DLLs use 'pw' prefix rather than 'lib'
14991 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14992 ;;
14993 esac
14994 ;;
14995
14996 *)
14997 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14998 ;;
14999 esac
15000 dynamic_linker='Win32 ld.exe'
15001 # FIXME: first we should search . and the directory the executable is in
15002 shlibpath_var=PATH
15003 ;;
15004
15005darwin* | rhapsody*)
15006 dynamic_linker="$host_os dyld"
15007 version_type=darwin
15008 need_lib_prefix=no
15009 need_version=no
15010 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15011 soname_spec='${libname}${release}${major}$shared_ext'
15012 shlibpath_overrides_runpath=yes
15013 shlibpath_var=DYLD_LIBRARY_PATH
15014 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15015
15016 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
15017 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15018 ;;
15019
15020dgux*)
15021 version_type=linux
15022 need_lib_prefix=no
15023 need_version=no
15024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15025 soname_spec='${libname}${release}${shared_ext}$major'
15026 shlibpath_var=LD_LIBRARY_PATH
15027 ;;
15028
15029freebsd1*)
15030 dynamic_linker=no
15031 ;;
15032
15033freebsd* | dragonfly*)
15034 # DragonFly does not have aout. When/if they implement a new
15035 # versioning mechanism, adjust this.
15036 if test -x /usr/bin/objformat; then
15037 objformat=`/usr/bin/objformat`
15038 else
15039 case $host_os in
15040 freebsd[123]*) objformat=aout ;;
15041 *) objformat=elf ;;
15042 esac
15043 fi
15044 version_type=freebsd-$objformat
15045 case $version_type in
15046 freebsd-elf*)
15047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15048 need_version=no
15049 need_lib_prefix=no
15050 ;;
15051 freebsd-*)
15052 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15053 need_version=yes
15054 ;;
15055 esac
15056 shlibpath_var=LD_LIBRARY_PATH
15057 case $host_os in
15058 freebsd2*)
15059 shlibpath_overrides_runpath=yes
15060 ;;
15061 freebsd3.[01]* | freebsdelf3.[01]*)
15062 shlibpath_overrides_runpath=yes
15063 hardcode_into_libs=yes
15064 ;;
15065 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15066 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15067 shlibpath_overrides_runpath=no
15068 hardcode_into_libs=yes
15069 ;;
15070 *) # from 4.6 on, and DragonFly
15071 shlibpath_overrides_runpath=yes
15072 hardcode_into_libs=yes
15073 ;;
15074 esac
15075 ;;
15076
15077gnu*)
15078 version_type=linux
15079 need_lib_prefix=no
15080 need_version=no
15081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15082 soname_spec='${libname}${release}${shared_ext}$major'
15083 shlibpath_var=LD_LIBRARY_PATH
15084 hardcode_into_libs=yes
15085 ;;
15086
15087hpux9* | hpux10* | hpux11*)
15088 # Give a soname corresponding to the major version so that dld.sl refuses to
15089 # link against other versions.
15090 version_type=sunos
15091 need_lib_prefix=no
15092 need_version=no
15093 case $host_cpu in
15094 ia64*)
15095 shrext_cmds='.so'
15096 hardcode_into_libs=yes
15097 dynamic_linker="$host_os dld.so"
15098 shlibpath_var=LD_LIBRARY_PATH
15099 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15101 soname_spec='${libname}${release}${shared_ext}$major'
15102 if test "X$HPUX_IA64_MODE" = X32; then
15103 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15104 else
15105 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15106 fi
15107 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15108 ;;
15109 hppa*64*)
15110 shrext_cmds='.sl'
15111 hardcode_into_libs=yes
15112 dynamic_linker="$host_os dld.sl"
15113 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15114 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15116 soname_spec='${libname}${release}${shared_ext}$major'
15117 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15118 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15119 ;;
15120 *)
15121 shrext_cmds='.sl'
15122 dynamic_linker="$host_os dld.sl"
15123 shlibpath_var=SHLIB_PATH
15124 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15126 soname_spec='${libname}${release}${shared_ext}$major'
15127 ;;
15128 esac
cristy18304f92009-11-22 15:48:26 +000015129 # HP-UX runs *really* slowly unless shared libraries are mode 555.
cristy3ed852e2009-09-05 21:47:34 +000015130 postinstall_cmds='chmod 555 $lib'
15131 ;;
15132
15133interix[3-9]*)
15134 version_type=linux
15135 need_lib_prefix=no
15136 need_version=no
15137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15138 soname_spec='${libname}${release}${shared_ext}$major'
15139 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15140 shlibpath_var=LD_LIBRARY_PATH
15141 shlibpath_overrides_runpath=no
15142 hardcode_into_libs=yes
15143 ;;
15144
15145irix5* | irix6* | nonstopux*)
15146 case $host_os in
15147 nonstopux*) version_type=nonstopux ;;
15148 *)
15149 if test "$lt_cv_prog_gnu_ld" = yes; then
15150 version_type=linux
15151 else
15152 version_type=irix
15153 fi ;;
15154 esac
15155 need_lib_prefix=no
15156 need_version=no
15157 soname_spec='${libname}${release}${shared_ext}$major'
15158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15159 case $host_os in
15160 irix5* | nonstopux*)
15161 libsuff= shlibsuff=
15162 ;;
15163 *)
15164 case $LD in # libtool.m4 will add one of these switches to LD
15165 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15166 libsuff= shlibsuff= libmagic=32-bit;;
15167 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15168 libsuff=32 shlibsuff=N32 libmagic=N32;;
15169 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15170 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15171 *) libsuff= shlibsuff= libmagic=never-match;;
15172 esac
15173 ;;
15174 esac
15175 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15176 shlibpath_overrides_runpath=no
15177 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15178 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15179 hardcode_into_libs=yes
15180 ;;
15181
15182# No shared lib support for Linux oldld, aout, or coff.
15183linux*oldld* | linux*aout* | linux*coff*)
15184 dynamic_linker=no
15185 ;;
15186
15187# This must be Linux ELF.
cristy18304f92009-11-22 15:48:26 +000015188linux* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000015189 version_type=linux
15190 need_lib_prefix=no
15191 need_version=no
15192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15193 soname_spec='${libname}${release}${shared_ext}$major'
15194 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15195 shlibpath_var=LD_LIBRARY_PATH
15196 shlibpath_overrides_runpath=no
15197 # Some binutils ld are patched to set DT_RUNPATH
cristy18304f92009-11-22 15:48:26 +000015198 save_LDFLAGS=$LDFLAGS
15199 save_libdir=$libdir
15200 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
15201 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
15202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015203/* end confdefs.h. */
15204
15205int
15206main ()
15207{
15208
15209 ;
15210 return 0;
15211}
15212_ACEOF
cristy8b350f62009-11-15 23:12:43 +000015213if ac_fn_c_try_link "$LINENO"; then :
15214 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy18304f92009-11-22 15:48:26 +000015215 shlibpath_overrides_runpath=yes
cristy3ed852e2009-09-05 21:47:34 +000015216fi
cristy3ed852e2009-09-05 21:47:34 +000015217fi
cristy8b350f62009-11-15 23:12:43 +000015218rm -f core conftest.err conftest.$ac_objext \
15219 conftest$ac_exeext conftest.$ac_ext
cristy18304f92009-11-22 15:48:26 +000015220 LDFLAGS=$save_LDFLAGS
15221 libdir=$save_libdir
cristy3ed852e2009-09-05 21:47:34 +000015222
15223 # This implies no fast_install, which is unacceptable.
15224 # Some rework will be needed to allow for fast_install
15225 # before this can be enabled.
15226 hardcode_into_libs=yes
15227
cristy679ed8e2009-12-05 02:37:41 +000015228 # Add ABI-specific directories to the system library path.
15229 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
15230
cristy3ed852e2009-09-05 21:47:34 +000015231 # Append ld.so.conf contents to the search path
15232 if test -f /etc/ld.so.conf; then
cristy18304f92009-11-22 15:48:26 +000015233 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 +000015234 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy3ed852e2009-09-05 21:47:34 +000015235 fi
15236
15237 # We used to test for /lib/ld.so.1 and disable shared libraries on
15238 # powerpc, because MkLinux only supported shared libraries with the
15239 # GNU dynamic linker. Since this was broken with cross compilers,
15240 # most powerpc-linux boxes support dynamic linking these days and
15241 # people can always --disable-shared, the test was removed, and we
15242 # assume the GNU/Linux dynamic linker is in use.
15243 dynamic_linker='GNU/Linux ld.so'
15244 ;;
15245
15246netbsd*)
15247 version_type=sunos
15248 need_lib_prefix=no
15249 need_version=no
15250 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15252 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15253 dynamic_linker='NetBSD (a.out) ld.so'
15254 else
15255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15256 soname_spec='${libname}${release}${shared_ext}$major'
15257 dynamic_linker='NetBSD ld.elf_so'
15258 fi
15259 shlibpath_var=LD_LIBRARY_PATH
15260 shlibpath_overrides_runpath=yes
15261 hardcode_into_libs=yes
15262 ;;
15263
15264newsos6)
15265 version_type=linux
15266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15267 shlibpath_var=LD_LIBRARY_PATH
15268 shlibpath_overrides_runpath=yes
15269 ;;
15270
15271*nto* | *qnx*)
15272 version_type=qnx
15273 need_lib_prefix=no
15274 need_version=no
15275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15276 soname_spec='${libname}${release}${shared_ext}$major'
15277 shlibpath_var=LD_LIBRARY_PATH
15278 shlibpath_overrides_runpath=no
15279 hardcode_into_libs=yes
15280 dynamic_linker='ldqnx.so'
15281 ;;
15282
15283openbsd*)
15284 version_type=sunos
15285 sys_lib_dlsearch_path_spec="/usr/lib"
15286 need_lib_prefix=no
15287 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15288 case $host_os in
15289 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15290 *) need_version=no ;;
15291 esac
15292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15293 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15294 shlibpath_var=LD_LIBRARY_PATH
15295 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15296 case $host_os in
15297 openbsd2.[89] | openbsd2.[89].*)
15298 shlibpath_overrides_runpath=no
15299 ;;
15300 *)
15301 shlibpath_overrides_runpath=yes
15302 ;;
15303 esac
15304 else
15305 shlibpath_overrides_runpath=yes
15306 fi
15307 ;;
15308
15309os2*)
15310 libname_spec='$name'
15311 shrext_cmds=".dll"
15312 need_lib_prefix=no
15313 library_names_spec='$libname${shared_ext} $libname.a'
15314 dynamic_linker='OS/2 ld.exe'
15315 shlibpath_var=LIBPATH
15316 ;;
15317
15318osf3* | osf4* | osf5*)
15319 version_type=osf
15320 need_lib_prefix=no
15321 need_version=no
15322 soname_spec='${libname}${release}${shared_ext}$major'
15323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15324 shlibpath_var=LD_LIBRARY_PATH
15325 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15326 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15327 ;;
15328
15329rdos*)
15330 dynamic_linker=no
15331 ;;
15332
15333solaris*)
15334 version_type=linux
15335 need_lib_prefix=no
15336 need_version=no
15337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15338 soname_spec='${libname}${release}${shared_ext}$major'
15339 shlibpath_var=LD_LIBRARY_PATH
15340 shlibpath_overrides_runpath=yes
15341 hardcode_into_libs=yes
15342 # ldd complains unless libraries are executable
15343 postinstall_cmds='chmod +x $lib'
15344 ;;
15345
15346sunos4*)
15347 version_type=sunos
15348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15349 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15350 shlibpath_var=LD_LIBRARY_PATH
15351 shlibpath_overrides_runpath=yes
15352 if test "$with_gnu_ld" = yes; then
15353 need_lib_prefix=no
15354 fi
15355 need_version=yes
15356 ;;
15357
15358sysv4 | sysv4.3*)
15359 version_type=linux
15360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15361 soname_spec='${libname}${release}${shared_ext}$major'
15362 shlibpath_var=LD_LIBRARY_PATH
15363 case $host_vendor in
15364 sni)
15365 shlibpath_overrides_runpath=no
15366 need_lib_prefix=no
15367 runpath_var=LD_RUN_PATH
15368 ;;
15369 siemens)
15370 need_lib_prefix=no
15371 ;;
15372 motorola)
15373 need_lib_prefix=no
15374 need_version=no
15375 shlibpath_overrides_runpath=no
15376 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15377 ;;
15378 esac
15379 ;;
15380
15381sysv4*MP*)
15382 if test -d /usr/nec ;then
15383 version_type=linux
15384 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15385 soname_spec='$libname${shared_ext}.$major'
15386 shlibpath_var=LD_LIBRARY_PATH
15387 fi
15388 ;;
15389
15390sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15391 version_type=freebsd-elf
15392 need_lib_prefix=no
15393 need_version=no
15394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15395 soname_spec='${libname}${release}${shared_ext}$major'
15396 shlibpath_var=LD_LIBRARY_PATH
15397 shlibpath_overrides_runpath=yes
15398 hardcode_into_libs=yes
15399 if test "$with_gnu_ld" = yes; then
15400 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15401 else
15402 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15403 case $host_os in
15404 sco3.2v5*)
15405 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15406 ;;
15407 esac
15408 fi
15409 sys_lib_dlsearch_path_spec='/usr/lib'
15410 ;;
15411
15412tpf*)
15413 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15414 version_type=linux
15415 need_lib_prefix=no
15416 need_version=no
15417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15418 shlibpath_var=LD_LIBRARY_PATH
15419 shlibpath_overrides_runpath=no
15420 hardcode_into_libs=yes
15421 ;;
15422
15423uts4*)
15424 version_type=linux
15425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15426 soname_spec='${libname}${release}${shared_ext}$major'
15427 shlibpath_var=LD_LIBRARY_PATH
15428 ;;
15429
15430*)
15431 dynamic_linker=no
15432 ;;
15433esac
cristy8b350f62009-11-15 23:12:43 +000015434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
cristy3ed852e2009-09-05 21:47:34 +000015435$as_echo "$dynamic_linker" >&6; }
15436test "$dynamic_linker" = no && can_build_shared=no
15437
15438variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15439if test "$GCC" = yes; then
15440 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15441fi
15442
15443if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15444 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15445fi
15446if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15447 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15448fi
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
15506
15507
15508
15509
15510
15511
15512
15513
15514
15515
15516
15517
15518
15519
15520
15521
15522
15523
15524
15525
15526
15527
15528
15529
15530
15531
15532
15533
15534
15535
cristy8b350f62009-11-15 23:12:43 +000015536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000015537$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15538hardcode_action=
15539if test -n "$hardcode_libdir_flag_spec" ||
15540 test -n "$runpath_var" ||
15541 test "X$hardcode_automatic" = "Xyes" ; then
15542
15543 # We can hardcode non-existent directories.
15544 if test "$hardcode_direct" != no &&
15545 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15546 # have to relink, otherwise we might link with an installed library
15547 # when we should be linking with a yet-to-be-installed one
15548 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
15549 test "$hardcode_minus_L" != no; then
15550 # Linking always hardcodes the temporary library directory.
15551 hardcode_action=relink
15552 else
15553 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15554 hardcode_action=immediate
15555 fi
15556else
15557 # We cannot hardcode anything, or else we can only hardcode existing
15558 # directories.
15559 hardcode_action=unsupported
15560fi
cristy8b350f62009-11-15 23:12:43 +000015561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
cristy3ed852e2009-09-05 21:47:34 +000015562$as_echo "$hardcode_action" >&6; }
15563
15564if test "$hardcode_action" = relink ||
15565 test "$inherit_rpath" = yes; then
15566 # Fast installation is not supported
15567 enable_fast_install=no
15568elif test "$shlibpath_overrides_runpath" = yes ||
15569 test "$enable_shared" = no; then
15570 # Fast installation is not necessary
15571 enable_fast_install=needless
15572fi
15573
15574
15575
15576
15577
15578
15579 if test "x$enable_dlopen" != xyes; then
15580 enable_dlopen=unknown
15581 enable_dlopen_self=unknown
15582 enable_dlopen_self_static=unknown
15583else
15584 lt_cv_dlopen=no
15585 lt_cv_dlopen_libs=
15586
15587 case $host_os in
15588 beos*)
15589 lt_cv_dlopen="load_add_on"
15590 lt_cv_dlopen_libs=
15591 lt_cv_dlopen_self=yes
15592 ;;
15593
15594 mingw* | pw32* | cegcc*)
15595 lt_cv_dlopen="LoadLibrary"
15596 lt_cv_dlopen_libs=
15597 ;;
15598
15599 cygwin*)
15600 lt_cv_dlopen="dlopen"
15601 lt_cv_dlopen_libs=
15602 ;;
15603
15604 darwin*)
15605 # if libdl is installed we need to link against it
cristy8b350f62009-11-15 23:12:43 +000015606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000015607$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015608if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015609 $as_echo_n "(cached) " >&6
15610else
15611 ac_check_lib_save_LIBS=$LIBS
15612LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000015613cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015614/* end confdefs.h. */
15615
15616/* Override any GCC internal prototype to avoid an error.
15617 Use char because int might match the return type of a GCC
15618 builtin and then its argument prototype would still apply. */
15619#ifdef __cplusplus
15620extern "C"
15621#endif
15622char dlopen ();
15623int
15624main ()
15625{
15626return dlopen ();
15627 ;
15628 return 0;
15629}
15630_ACEOF
cristy8b350f62009-11-15 23:12:43 +000015631if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000015632 ac_cv_lib_dl_dlopen=yes
15633else
cristy8b350f62009-11-15 23:12:43 +000015634 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000015635fi
cristy8b350f62009-11-15 23:12:43 +000015636rm -f core conftest.err conftest.$ac_objext \
15637 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015638LIBS=$ac_check_lib_save_LIBS
15639fi
cristy8b350f62009-11-15 23:12:43 +000015640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000015641$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000015642if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000015643 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15644else
15645
15646 lt_cv_dlopen="dyld"
15647 lt_cv_dlopen_libs=
15648 lt_cv_dlopen_self=yes
15649
15650fi
15651
15652 ;;
15653
15654 *)
cristy8b350f62009-11-15 23:12:43 +000015655 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
15656if test "x$ac_cv_func_shl_load" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000015657 lt_cv_dlopen="shl_load"
15658else
cristy8b350f62009-11-15 23:12:43 +000015659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
cristy3ed852e2009-09-05 21:47:34 +000015660$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015661if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015662 $as_echo_n "(cached) " >&6
15663else
15664 ac_check_lib_save_LIBS=$LIBS
15665LIBS="-ldld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000015666cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015667/* end confdefs.h. */
15668
15669/* Override any GCC internal prototype to avoid an error.
15670 Use char because int might match the return type of a GCC
15671 builtin and then its argument prototype would still apply. */
15672#ifdef __cplusplus
15673extern "C"
15674#endif
15675char shl_load ();
15676int
15677main ()
15678{
15679return shl_load ();
15680 ;
15681 return 0;
15682}
15683_ACEOF
cristy8b350f62009-11-15 23:12:43 +000015684if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000015685 ac_cv_lib_dld_shl_load=yes
15686else
cristy8b350f62009-11-15 23:12:43 +000015687 ac_cv_lib_dld_shl_load=no
cristy3ed852e2009-09-05 21:47:34 +000015688fi
cristy8b350f62009-11-15 23:12:43 +000015689rm -f core conftest.err conftest.$ac_objext \
15690 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015691LIBS=$ac_check_lib_save_LIBS
15692fi
cristy8b350f62009-11-15 23:12:43 +000015693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
cristy3ed852e2009-09-05 21:47:34 +000015694$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristy8b350f62009-11-15 23:12:43 +000015695if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000015696 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
15697else
cristy8b350f62009-11-15 23:12:43 +000015698 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
15699if test "x$ac_cv_func_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000015700 lt_cv_dlopen="dlopen"
15701else
cristy8b350f62009-11-15 23:12:43 +000015702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000015703$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015704if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015705 $as_echo_n "(cached) " >&6
15706else
15707 ac_check_lib_save_LIBS=$LIBS
15708LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000015709cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015710/* end confdefs.h. */
15711
15712/* Override any GCC internal prototype to avoid an error.
15713 Use char because int might match the return type of a GCC
15714 builtin and then its argument prototype would still apply. */
15715#ifdef __cplusplus
15716extern "C"
15717#endif
15718char dlopen ();
15719int
15720main ()
15721{
15722return dlopen ();
15723 ;
15724 return 0;
15725}
15726_ACEOF
cristy8b350f62009-11-15 23:12:43 +000015727if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000015728 ac_cv_lib_dl_dlopen=yes
15729else
cristy8b350f62009-11-15 23:12:43 +000015730 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000015731fi
cristy8b350f62009-11-15 23:12:43 +000015732rm -f core conftest.err conftest.$ac_objext \
15733 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015734LIBS=$ac_check_lib_save_LIBS
15735fi
cristy8b350f62009-11-15 23:12:43 +000015736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000015737$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000015738if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000015739 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15740else
cristy8b350f62009-11-15 23:12:43 +000015741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
cristy3ed852e2009-09-05 21:47:34 +000015742$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015743if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015744 $as_echo_n "(cached) " >&6
15745else
15746 ac_check_lib_save_LIBS=$LIBS
15747LIBS="-lsvld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000015748cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015749/* end confdefs.h. */
15750
15751/* Override any GCC internal prototype to avoid an error.
15752 Use char because int might match the return type of a GCC
15753 builtin and then its argument prototype would still apply. */
15754#ifdef __cplusplus
15755extern "C"
15756#endif
15757char dlopen ();
15758int
15759main ()
15760{
15761return dlopen ();
15762 ;
15763 return 0;
15764}
15765_ACEOF
cristy8b350f62009-11-15 23:12:43 +000015766if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000015767 ac_cv_lib_svld_dlopen=yes
15768else
cristy8b350f62009-11-15 23:12:43 +000015769 ac_cv_lib_svld_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000015770fi
cristy8b350f62009-11-15 23:12:43 +000015771rm -f core conftest.err conftest.$ac_objext \
15772 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015773LIBS=$ac_check_lib_save_LIBS
15774fi
cristy8b350f62009-11-15 23:12:43 +000015775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000015776$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000015777if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000015778 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
15779else
cristy8b350f62009-11-15 23:12:43 +000015780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
cristy3ed852e2009-09-05 21:47:34 +000015781$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015782if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015783 $as_echo_n "(cached) " >&6
15784else
15785 ac_check_lib_save_LIBS=$LIBS
15786LIBS="-ldld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000015787cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015788/* end confdefs.h. */
15789
15790/* Override any GCC internal prototype to avoid an error.
15791 Use char because int might match the return type of a GCC
15792 builtin and then its argument prototype would still apply. */
15793#ifdef __cplusplus
15794extern "C"
15795#endif
15796char dld_link ();
15797int
15798main ()
15799{
15800return dld_link ();
15801 ;
15802 return 0;
15803}
15804_ACEOF
cristy8b350f62009-11-15 23:12:43 +000015805if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000015806 ac_cv_lib_dld_dld_link=yes
15807else
cristy8b350f62009-11-15 23:12:43 +000015808 ac_cv_lib_dld_dld_link=no
cristy3ed852e2009-09-05 21:47:34 +000015809fi
cristy8b350f62009-11-15 23:12:43 +000015810rm -f core conftest.err conftest.$ac_objext \
15811 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015812LIBS=$ac_check_lib_save_LIBS
15813fi
cristy8b350f62009-11-15 23:12:43 +000015814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
cristy3ed852e2009-09-05 21:47:34 +000015815$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristy8b350f62009-11-15 23:12:43 +000015816if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000015817 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
15818fi
15819
15820
15821fi
15822
15823
15824fi
15825
15826
15827fi
15828
15829
15830fi
15831
15832
15833fi
15834
15835 ;;
15836 esac
15837
15838 if test "x$lt_cv_dlopen" != xno; then
15839 enable_dlopen=yes
15840 else
15841 enable_dlopen=no
15842 fi
15843
15844 case $lt_cv_dlopen in
15845 dlopen)
15846 save_CPPFLAGS="$CPPFLAGS"
15847 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
15848
15849 save_LDFLAGS="$LDFLAGS"
15850 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
15851
15852 save_LIBS="$LIBS"
15853 LIBS="$lt_cv_dlopen_libs $LIBS"
15854
cristy8b350f62009-11-15 23:12:43 +000015855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
cristy3ed852e2009-09-05 21:47:34 +000015856$as_echo_n "checking whether a program can dlopen itself... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015857if test "${lt_cv_dlopen_self+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015858 $as_echo_n "(cached) " >&6
15859else
15860 if test "$cross_compiling" = yes; then :
15861 lt_cv_dlopen_self=cross
15862else
15863 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15864 lt_status=$lt_dlunknown
15865 cat > conftest.$ac_ext <<_LT_EOF
cristy0d3a6382010-04-26 00:45:55 +000015866#line 15866 "configure"
cristy3ed852e2009-09-05 21:47:34 +000015867#include "confdefs.h"
15868
15869#if HAVE_DLFCN_H
15870#include <dlfcn.h>
15871#endif
15872
15873#include <stdio.h>
15874
15875#ifdef RTLD_GLOBAL
15876# define LT_DLGLOBAL RTLD_GLOBAL
15877#else
15878# ifdef DL_GLOBAL
15879# define LT_DLGLOBAL DL_GLOBAL
15880# else
15881# define LT_DLGLOBAL 0
15882# endif
15883#endif
15884
15885/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15886 find out it does not work in some platform. */
15887#ifndef LT_DLLAZY_OR_NOW
15888# ifdef RTLD_LAZY
15889# define LT_DLLAZY_OR_NOW RTLD_LAZY
15890# else
15891# ifdef DL_LAZY
15892# define LT_DLLAZY_OR_NOW DL_LAZY
15893# else
15894# ifdef RTLD_NOW
15895# define LT_DLLAZY_OR_NOW RTLD_NOW
15896# else
15897# ifdef DL_NOW
15898# define LT_DLLAZY_OR_NOW DL_NOW
15899# else
15900# define LT_DLLAZY_OR_NOW 0
15901# endif
15902# endif
15903# endif
15904# endif
15905#endif
15906
cristy18304f92009-11-22 15:48:26 +000015907void fnord() { int i=42;}
cristy3ed852e2009-09-05 21:47:34 +000015908int main ()
15909{
15910 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15911 int status = $lt_dlunknown;
15912
15913 if (self)
15914 {
15915 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy18304f92009-11-22 15:48:26 +000015916 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
cristy3ed852e2009-09-05 21:47:34 +000015917 /* dlclose (self); */
15918 }
15919 else
15920 puts (dlerror ());
15921
15922 return status;
15923}
15924_LT_EOF
cristy8b350f62009-11-15 23:12:43 +000015925 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000015926 (eval $ac_link) 2>&5
15927 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000015928 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15929 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000015930 (./conftest; exit; ) >&5 2>/dev/null
15931 lt_status=$?
15932 case x$lt_status in
15933 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15934 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15935 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
15936 esac
15937 else :
15938 # compilation failed
15939 lt_cv_dlopen_self=no
15940 fi
15941fi
15942rm -fr conftest*
15943
15944
15945fi
cristy8b350f62009-11-15 23:12:43 +000015946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
cristy3ed852e2009-09-05 21:47:34 +000015947$as_echo "$lt_cv_dlopen_self" >&6; }
15948
15949 if test "x$lt_cv_dlopen_self" = xyes; then
15950 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
cristy8b350f62009-11-15 23:12:43 +000015951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
cristy3ed852e2009-09-05 21:47:34 +000015952$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015953if test "${lt_cv_dlopen_self_static+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015954 $as_echo_n "(cached) " >&6
15955else
15956 if test "$cross_compiling" = yes; then :
15957 lt_cv_dlopen_self_static=cross
15958else
15959 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15960 lt_status=$lt_dlunknown
15961 cat > conftest.$ac_ext <<_LT_EOF
cristy0d3a6382010-04-26 00:45:55 +000015962#line 15962 "configure"
cristy3ed852e2009-09-05 21:47:34 +000015963#include "confdefs.h"
15964
15965#if HAVE_DLFCN_H
15966#include <dlfcn.h>
15967#endif
15968
15969#include <stdio.h>
15970
15971#ifdef RTLD_GLOBAL
15972# define LT_DLGLOBAL RTLD_GLOBAL
15973#else
15974# ifdef DL_GLOBAL
15975# define LT_DLGLOBAL DL_GLOBAL
15976# else
15977# define LT_DLGLOBAL 0
15978# endif
15979#endif
15980
15981/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15982 find out it does not work in some platform. */
15983#ifndef LT_DLLAZY_OR_NOW
15984# ifdef RTLD_LAZY
15985# define LT_DLLAZY_OR_NOW RTLD_LAZY
15986# else
15987# ifdef DL_LAZY
15988# define LT_DLLAZY_OR_NOW DL_LAZY
15989# else
15990# ifdef RTLD_NOW
15991# define LT_DLLAZY_OR_NOW RTLD_NOW
15992# else
15993# ifdef DL_NOW
15994# define LT_DLLAZY_OR_NOW DL_NOW
15995# else
15996# define LT_DLLAZY_OR_NOW 0
15997# endif
15998# endif
15999# endif
16000# endif
16001#endif
16002
cristy18304f92009-11-22 15:48:26 +000016003void fnord() { int i=42;}
cristy3ed852e2009-09-05 21:47:34 +000016004int main ()
16005{
16006 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16007 int status = $lt_dlunknown;
16008
16009 if (self)
16010 {
16011 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy18304f92009-11-22 15:48:26 +000016012 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
cristy3ed852e2009-09-05 21:47:34 +000016013 /* dlclose (self); */
16014 }
16015 else
16016 puts (dlerror ());
16017
16018 return status;
16019}
16020_LT_EOF
cristy8b350f62009-11-15 23:12:43 +000016021 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000016022 (eval $ac_link) 2>&5
16023 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000016024 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16025 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000016026 (./conftest; exit; ) >&5 2>/dev/null
16027 lt_status=$?
16028 case x$lt_status in
16029 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
16030 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
16031 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
16032 esac
16033 else :
16034 # compilation failed
16035 lt_cv_dlopen_self_static=no
16036 fi
16037fi
16038rm -fr conftest*
16039
16040
16041fi
cristy8b350f62009-11-15 23:12:43 +000016042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
cristy3ed852e2009-09-05 21:47:34 +000016043$as_echo "$lt_cv_dlopen_self_static" >&6; }
16044 fi
16045
16046 CPPFLAGS="$save_CPPFLAGS"
16047 LDFLAGS="$save_LDFLAGS"
16048 LIBS="$save_LIBS"
16049 ;;
16050 esac
16051
16052 case $lt_cv_dlopen_self in
16053 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
16054 *) enable_dlopen_self=unknown ;;
16055 esac
16056
16057 case $lt_cv_dlopen_self_static in
16058 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
16059 *) enable_dlopen_self_static=unknown ;;
16060 esac
16061fi
16062
16063
16064
16065
16066
16067
16068
16069
16070
16071
16072
16073
16074
16075
16076
16077
16078
16079striplib=
16080old_striplib=
cristy8b350f62009-11-15 23:12:43 +000016081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
cristy3ed852e2009-09-05 21:47:34 +000016082$as_echo_n "checking whether stripping libraries is possible... " >&6; }
16083if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
16084 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16085 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
cristy8b350f62009-11-15 23:12:43 +000016086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000016087$as_echo "yes" >&6; }
16088else
16089# FIXME - insert some real tests, host_os isn't really good enough
16090 case $host_os in
16091 darwin*)
16092 if test -n "$STRIP" ; then
16093 striplib="$STRIP -x"
16094 old_striplib="$STRIP -S"
cristy8b350f62009-11-15 23:12:43 +000016095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000016096$as_echo "yes" >&6; }
16097 else
cristy8b350f62009-11-15 23:12:43 +000016098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000016099$as_echo "no" >&6; }
16100 fi
16101 ;;
16102 *)
cristy8b350f62009-11-15 23:12:43 +000016103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000016104$as_echo "no" >&6; }
16105 ;;
16106 esac
16107fi
16108
16109
16110
16111
16112
16113
16114
16115
16116
16117
16118
16119
16120 # Report which library types will actually be built
cristy8b350f62009-11-15 23:12:43 +000016121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000016122$as_echo_n "checking if libtool supports shared libraries... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000016123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
cristy3ed852e2009-09-05 21:47:34 +000016124$as_echo "$can_build_shared" >&6; }
16125
cristy8b350f62009-11-15 23:12:43 +000016126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000016127$as_echo_n "checking whether to build shared libraries... " >&6; }
16128 test "$can_build_shared" = "no" && enable_shared=no
16129
16130 # On AIX, shared libraries and static libraries use the same namespace, and
16131 # are all built from PIC.
16132 case $host_os in
16133 aix3*)
16134 test "$enable_shared" = yes && enable_static=no
16135 if test -n "$RANLIB"; then
16136 archive_cmds="$archive_cmds~\$RANLIB \$lib"
16137 postinstall_cmds='$RANLIB $lib'
16138 fi
16139 ;;
16140
16141 aix[4-9]*)
16142 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
16143 test "$enable_shared" = yes && enable_static=no
16144 fi
16145 ;;
16146 esac
cristy8b350f62009-11-15 23:12:43 +000016147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
cristy3ed852e2009-09-05 21:47:34 +000016148$as_echo "$enable_shared" >&6; }
16149
cristy8b350f62009-11-15 23:12:43 +000016150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000016151$as_echo_n "checking whether to build static libraries... " >&6; }
16152 # Make sure either enable_shared or enable_static is yes.
16153 test "$enable_shared" = yes || enable_static=yes
cristy8b350f62009-11-15 23:12:43 +000016154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
cristy3ed852e2009-09-05 21:47:34 +000016155$as_echo "$enable_static" >&6; }
16156
16157
16158
16159
16160fi
16161ac_ext=c
16162ac_cpp='$CPP $CPPFLAGS'
16163ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16164ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16165ac_compiler_gnu=$ac_cv_c_compiler_gnu
16166
16167CC="$lt_save_CC"
16168
16169
16170ac_ext=cpp
16171ac_cpp='$CXXCPP $CPPFLAGS'
16172ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16173ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16174ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16175
16176archive_cmds_need_lc_CXX=no
16177allow_undefined_flag_CXX=
16178always_export_symbols_CXX=no
16179archive_expsym_cmds_CXX=
16180compiler_needs_object_CXX=no
16181export_dynamic_flag_spec_CXX=
16182hardcode_direct_CXX=no
16183hardcode_direct_absolute_CXX=no
16184hardcode_libdir_flag_spec_CXX=
16185hardcode_libdir_flag_spec_ld_CXX=
16186hardcode_libdir_separator_CXX=
16187hardcode_minus_L_CXX=no
16188hardcode_shlibpath_var_CXX=unsupported
16189hardcode_automatic_CXX=no
16190inherit_rpath_CXX=no
16191module_cmds_CXX=
16192module_expsym_cmds_CXX=
16193link_all_deplibs_CXX=unknown
16194old_archive_cmds_CXX=$old_archive_cmds
16195no_undefined_flag_CXX=
16196whole_archive_flag_spec_CXX=
16197enable_shared_with_static_runtimes_CXX=no
16198
16199# Source file extension for C++ test sources.
16200ac_ext=cpp
16201
16202# Object file extension for compiled C++ test sources.
16203objext=o
16204objext_CXX=$objext
16205
16206# No sense in running all these tests if we already determined that
16207# the CXX compiler isn't working. Some variables (like enable_shared)
16208# are currently assumed to apply to all compilers on this platform,
16209# and will be corrupted by setting them based on a non-working compiler.
16210if test "$_lt_caught_CXX_error" != yes; then
16211 # Code to be used in simple compile tests
16212 lt_simple_compile_test_code="int some_variable = 0;"
16213
16214 # Code to be used in simple link tests
16215 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
16216
16217 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16218
16219
16220
16221
16222
16223
16224# If no C compiler was specified, use CC.
16225LTCC=${LTCC-"$CC"}
16226
16227# If no C compiler flags were specified, use CFLAGS.
16228LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16229
16230# Allow CC to be a program name with arguments.
16231compiler=$CC
16232
16233
16234 # save warnings/boilerplate of simple test code
16235 ac_outfile=conftest.$ac_objext
16236echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16237eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16238_lt_compiler_boilerplate=`cat conftest.err`
16239$RM conftest*
16240
16241 ac_outfile=conftest.$ac_objext
16242echo "$lt_simple_link_test_code" >conftest.$ac_ext
16243eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16244_lt_linker_boilerplate=`cat conftest.err`
16245$RM -r conftest*
16246
16247
16248 # Allow CC to be a program name with arguments.
16249 lt_save_CC=$CC
16250 lt_save_LD=$LD
16251 lt_save_GCC=$GCC
16252 GCC=$GXX
16253 lt_save_with_gnu_ld=$with_gnu_ld
16254 lt_save_path_LD=$lt_cv_path_LD
16255 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
16256 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
16257 else
16258 $as_unset lt_cv_prog_gnu_ld
16259 fi
16260 if test -n "${lt_cv_path_LDCXX+set}"; then
16261 lt_cv_path_LD=$lt_cv_path_LDCXX
16262 else
16263 $as_unset lt_cv_path_LD
16264 fi
16265 test -z "${LDCXX+set}" || LD=$LDCXX
16266 CC=${CXX-"c++"}
16267 compiler=$CC
16268 compiler_CXX=$CC
16269 for cc_temp in $compiler""; do
16270 case $cc_temp in
16271 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16272 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16273 \-*) ;;
16274 *) break;;
16275 esac
16276done
cristy18304f92009-11-22 15:48:26 +000016277cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
cristy3ed852e2009-09-05 21:47:34 +000016278
16279
16280 if test -n "$compiler"; then
16281 # We don't want -fno-exception when compiling C++ code, so set the
16282 # no_builtin_flag separately
16283 if test "$GXX" = yes; then
16284 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
16285 else
16286 lt_prog_compiler_no_builtin_flag_CXX=
16287 fi
16288
16289 if test "$GXX" = yes; then
16290 # Set up default GNU C++ configuration
16291
16292
16293
16294# Check whether --with-gnu-ld was given.
cristy8b350f62009-11-15 23:12:43 +000016295if test "${with_gnu_ld+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000016296 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16297else
16298 with_gnu_ld=no
16299fi
16300
16301ac_prog=ld
16302if test "$GCC" = yes; then
16303 # Check if gcc -print-prog-name=ld gives a path.
cristy8b350f62009-11-15 23:12:43 +000016304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +000016305$as_echo_n "checking for ld used by $CC... " >&6; }
16306 case $host in
16307 *-*-mingw*)
16308 # gcc leaves a trailing carriage return which upsets mingw
16309 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16310 *)
16311 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16312 esac
16313 case $ac_prog in
16314 # Accept absolute paths.
16315 [\\/]* | ?:[\\/]*)
16316 re_direlt='/[^/][^/]*/\.\./'
16317 # Canonicalize the pathname of ld
16318 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
16319 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
16320 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
16321 done
16322 test -z "$LD" && LD="$ac_prog"
16323 ;;
16324 "")
16325 # If it fails, then pretend we aren't using GCC.
16326 ac_prog=ld
16327 ;;
16328 *)
16329 # If it is relative, then search for the first ld in PATH.
16330 with_gnu_ld=unknown
16331 ;;
16332 esac
16333elif test "$with_gnu_ld" = yes; then
cristy8b350f62009-11-15 23:12:43 +000016334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +000016335$as_echo_n "checking for GNU ld... " >&6; }
16336else
cristy8b350f62009-11-15 23:12:43 +000016337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +000016338$as_echo_n "checking for non-GNU ld... " >&6; }
16339fi
cristy8b350f62009-11-15 23:12:43 +000016340if test "${lt_cv_path_LD+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000016341 $as_echo_n "(cached) " >&6
16342else
16343 if test -z "$LD"; then
16344 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16345 for ac_dir in $PATH; do
16346 IFS="$lt_save_ifs"
16347 test -z "$ac_dir" && ac_dir=.
16348 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16349 lt_cv_path_LD="$ac_dir/$ac_prog"
16350 # Check to see if the program is GNU ld. I'd rather use --version,
16351 # but apparently some variants of GNU ld only accept -v.
16352 # Break only if it was the GNU/non-GNU ld that we prefer.
16353 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16354 *GNU* | *'with BFD'*)
16355 test "$with_gnu_ld" != no && break
16356 ;;
16357 *)
16358 test "$with_gnu_ld" != yes && break
16359 ;;
16360 esac
16361 fi
16362 done
16363 IFS="$lt_save_ifs"
16364else
16365 lt_cv_path_LD="$LD" # Let the user override the test with a path.
16366fi
16367fi
16368
16369LD="$lt_cv_path_LD"
16370if test -n "$LD"; then
cristy8b350f62009-11-15 23:12:43 +000016371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
cristy3ed852e2009-09-05 21:47:34 +000016372$as_echo "$LD" >&6; }
16373else
cristy8b350f62009-11-15 23:12:43 +000016374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000016375$as_echo "no" >&6; }
16376fi
cristy8b350f62009-11-15 23:12:43 +000016377test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
16378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +000016379$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000016380if test "${lt_cv_prog_gnu_ld+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000016381 $as_echo_n "(cached) " >&6
16382else
16383 # I'd rather use --version here, but apparently some GNU lds only accept -v.
16384case `$LD -v 2>&1 </dev/null` in
16385*GNU* | *'with BFD'*)
16386 lt_cv_prog_gnu_ld=yes
16387 ;;
16388*)
16389 lt_cv_prog_gnu_ld=no
16390 ;;
16391esac
16392fi
cristy8b350f62009-11-15 23:12:43 +000016393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
cristy3ed852e2009-09-05 21:47:34 +000016394$as_echo "$lt_cv_prog_gnu_ld" >&6; }
16395with_gnu_ld=$lt_cv_prog_gnu_ld
16396
16397
16398
16399
16400
16401
16402
16403 # Check if GNU C++ uses GNU ld as the underlying linker, since the
16404 # archiving commands below assume that GNU ld is being used.
16405 if test "$with_gnu_ld" = yes; then
16406 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16407 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'
16408
16409 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16410 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16411
16412 # If archive_cmds runs LD, not CC, wlarc should be empty
16413 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
16414 # investigate it a little bit more. (MM)
16415 wlarc='${wl}'
16416
16417 # ancient GNU ld didn't support --whole-archive et. al.
16418 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
16419 $GREP 'no-whole-archive' > /dev/null; then
16420 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16421 else
16422 whole_archive_flag_spec_CXX=
16423 fi
16424 else
16425 with_gnu_ld=no
16426 wlarc=
16427
16428 # A generic and very simple default shared library creation
16429 # command for GNU C++ for the case where it uses the native
16430 # linker, instead of GNU ld. If possible, this setting should
16431 # overridden to take advantage of the native linker features on
16432 # the platform it is being used on.
16433 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16434 fi
16435
16436 # Commands to make compiler produce verbose output that lists
16437 # what "hidden" libraries, object files and flags are used when
16438 # linking a shared library.
cristy18304f92009-11-22 15:48:26 +000016439 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
cristy3ed852e2009-09-05 21:47:34 +000016440
16441 else
16442 GXX=no
16443 with_gnu_ld=no
16444 wlarc=
16445 fi
16446
16447 # PORTME: fill in a description of your system's C++ link characteristics
cristy8b350f62009-11-15 23:12:43 +000016448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000016449$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16450 ld_shlibs_CXX=yes
16451 case $host_os in
16452 aix3*)
16453 # FIXME: insert proper C++ library support
16454 ld_shlibs_CXX=no
16455 ;;
16456 aix[4-9]*)
16457 if test "$host_cpu" = ia64; then
16458 # On IA64, the linker does run time linking by default, so we don't
16459 # have to do anything special.
16460 aix_use_runtimelinking=no
16461 exp_sym_flag='-Bexport'
16462 no_entry_flag=""
16463 else
16464 aix_use_runtimelinking=no
16465
16466 # Test if we are trying to use run time linking or normal
16467 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16468 # need to do runtime linking.
16469 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16470 for ld_flag in $LDFLAGS; do
16471 case $ld_flag in
16472 *-brtl*)
16473 aix_use_runtimelinking=yes
16474 break
16475 ;;
16476 esac
16477 done
16478 ;;
16479 esac
16480
16481 exp_sym_flag='-bexport'
16482 no_entry_flag='-bnoentry'
16483 fi
16484
16485 # When large executables or shared objects are built, AIX ld can
16486 # have problems creating the table of contents. If linking a library
16487 # or program results in "error TOC overflow" add -mminimal-toc to
16488 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16489 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16490
16491 archive_cmds_CXX=''
16492 hardcode_direct_CXX=yes
16493 hardcode_direct_absolute_CXX=yes
16494 hardcode_libdir_separator_CXX=':'
16495 link_all_deplibs_CXX=yes
16496 file_list_spec_CXX='${wl}-f,'
16497
16498 if test "$GXX" = yes; then
16499 case $host_os in aix4.[012]|aix4.[012].*)
16500 # We only want to do this on AIX 4.2 and lower, the check
16501 # below for broken collect2 doesn't work under 4.3+
16502 collect2name=`${CC} -print-prog-name=collect2`
16503 if test -f "$collect2name" &&
16504 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16505 then
16506 # We have reworked collect2
16507 :
16508 else
16509 # We have old collect2
16510 hardcode_direct_CXX=unsupported
16511 # It fails to find uninstalled libraries when the uninstalled
16512 # path is not listed in the libpath. Setting hardcode_minus_L
16513 # to unsupported forces relinking
16514 hardcode_minus_L_CXX=yes
16515 hardcode_libdir_flag_spec_CXX='-L$libdir'
16516 hardcode_libdir_separator_CXX=
16517 fi
16518 esac
16519 shared_flag='-shared'
16520 if test "$aix_use_runtimelinking" = yes; then
16521 shared_flag="$shared_flag "'${wl}-G'
16522 fi
16523 else
16524 # not using gcc
16525 if test "$host_cpu" = ia64; then
16526 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16527 # chokes on -Wl,-G. The following line is correct:
16528 shared_flag='-G'
16529 else
16530 if test "$aix_use_runtimelinking" = yes; then
16531 shared_flag='${wl}-G'
16532 else
16533 shared_flag='${wl}-bM:SRE'
16534 fi
16535 fi
16536 fi
16537
16538 export_dynamic_flag_spec_CXX='${wl}-bexpall'
16539 # It seems that -bexpall does not export symbols beginning with
16540 # underscore (_), so it is better to generate a list of symbols to
16541 # export.
16542 always_export_symbols_CXX=yes
16543 if test "$aix_use_runtimelinking" = yes; then
16544 # Warning - without using the other runtime loading flags (-brtl),
16545 # -berok will link without error, but may produce a broken library.
16546 allow_undefined_flag_CXX='-berok'
16547 # Determine the default libpath from the value encoded in an empty
16548 # executable.
cristy8b350f62009-11-15 23:12:43 +000016549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000016550/* end confdefs.h. */
16551
16552int
16553main ()
16554{
16555
16556 ;
16557 return 0;
16558}
16559_ACEOF
cristy8b350f62009-11-15 23:12:43 +000016560if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000016561
16562lt_aix_libpath_sed='
16563 /Import File Strings/,/^$/ {
16564 /^0/ {
16565 s/^0 *\(.*\)$/\1/
16566 p
16567 }
16568 }'
16569aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16570# Check for a 64-bit object if we didn't find anything.
16571if test -z "$aix_libpath"; then
16572 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16573fi
cristy3ed852e2009-09-05 21:47:34 +000016574fi
cristy8b350f62009-11-15 23:12:43 +000016575rm -f core conftest.err conftest.$ac_objext \
16576 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000016577if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16578
16579 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
16580
cristy18304f92009-11-22 15:48:26 +000016581 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 +000016582 else
16583 if test "$host_cpu" = ia64; then
16584 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
16585 allow_undefined_flag_CXX="-z nodefs"
16586 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"
16587 else
16588 # Determine the default libpath from the value encoded in an
16589 # empty executable.
cristy8b350f62009-11-15 23:12:43 +000016590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000016591/* end confdefs.h. */
16592
16593int
16594main ()
16595{
16596
16597 ;
16598 return 0;
16599}
16600_ACEOF
cristy8b350f62009-11-15 23:12:43 +000016601if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000016602
16603lt_aix_libpath_sed='
16604 /Import File Strings/,/^$/ {
16605 /^0/ {
16606 s/^0 *\(.*\)$/\1/
16607 p
16608 }
16609 }'
16610aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16611# Check for a 64-bit object if we didn't find anything.
16612if test -z "$aix_libpath"; then
16613 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16614fi
cristy3ed852e2009-09-05 21:47:34 +000016615fi
cristy8b350f62009-11-15 23:12:43 +000016616rm -f core conftest.err conftest.$ac_objext \
16617 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000016618if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16619
16620 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
16621 # Warning - without using the other run time loading flags,
16622 # -berok will link without error, but may produce a broken library.
16623 no_undefined_flag_CXX=' ${wl}-bernotok'
16624 allow_undefined_flag_CXX=' ${wl}-berok'
cristy18304f92009-11-22 15:48:26 +000016625 # Exported symbols can be pulled into shared objects from archives
16626 whole_archive_flag_spec_CXX='$convenience'
cristy3ed852e2009-09-05 21:47:34 +000016627 archive_cmds_need_lc_CXX=yes
16628 # This is similar to how AIX traditionally builds its shared
16629 # libraries.
16630 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'
16631 fi
16632 fi
16633 ;;
16634
16635 beos*)
16636 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16637 allow_undefined_flag_CXX=unsupported
16638 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16639 # support --undefined. This deserves some investigation. FIXME
16640 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16641 else
16642 ld_shlibs_CXX=no
16643 fi
16644 ;;
16645
16646 chorus*)
16647 case $cc_basename in
16648 *)
16649 # FIXME: insert proper C++ library support
16650 ld_shlibs_CXX=no
16651 ;;
16652 esac
16653 ;;
16654
16655 cygwin* | mingw* | pw32* | cegcc*)
16656 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
16657 # as there is no search path for DLLs.
16658 hardcode_libdir_flag_spec_CXX='-L$libdir'
16659 allow_undefined_flag_CXX=unsupported
16660 always_export_symbols_CXX=no
16661 enable_shared_with_static_runtimes_CXX=yes
16662
16663 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16664 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'
16665 # If the export-symbols file already is a .def file (1st line
16666 # is EXPORTS), use it as is; otherwise, prepend...
16667 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16668 cp $export_symbols $output_objdir/$soname.def;
16669 else
16670 echo EXPORTS > $output_objdir/$soname.def;
16671 cat $export_symbols >> $output_objdir/$soname.def;
16672 fi~
16673 $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'
16674 else
16675 ld_shlibs_CXX=no
16676 fi
16677 ;;
16678 darwin* | rhapsody*)
16679
16680
16681 archive_cmds_need_lc_CXX=no
16682 hardcode_direct_CXX=no
16683 hardcode_automatic_CXX=yes
16684 hardcode_shlibpath_var_CXX=unsupported
cristy18304f92009-11-22 15:48:26 +000016685 whole_archive_flag_spec_CXX=''
cristy3ed852e2009-09-05 21:47:34 +000016686 link_all_deplibs_CXX=yes
16687 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
16688 case $cc_basename in
16689 ifort*) _lt_dar_can_shared=yes ;;
16690 *) _lt_dar_can_shared=$GCC ;;
16691 esac
16692 if test "$_lt_dar_can_shared" = "yes"; then
cristy18304f92009-11-22 15:48:26 +000016693 output_verbose_link_cmd=echo
cristy3ed852e2009-09-05 21:47:34 +000016694 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}"
16695 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16696 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}"
16697 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}"
16698 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
16699 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}"
16700 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}"
16701 fi
16702
16703 else
16704 ld_shlibs_CXX=no
16705 fi
16706
16707 ;;
16708
16709 dgux*)
16710 case $cc_basename in
16711 ec++*)
16712 # FIXME: insert proper C++ library support
16713 ld_shlibs_CXX=no
16714 ;;
16715 ghcx*)
16716 # Green Hills C++ Compiler
16717 # FIXME: insert proper C++ library support
16718 ld_shlibs_CXX=no
16719 ;;
16720 *)
16721 # FIXME: insert proper C++ library support
16722 ld_shlibs_CXX=no
16723 ;;
16724 esac
16725 ;;
16726
16727 freebsd[12]*)
16728 # C++ shared libraries reported to be fairly broken before
16729 # switch to ELF
16730 ld_shlibs_CXX=no
16731 ;;
16732
16733 freebsd-elf*)
16734 archive_cmds_need_lc_CXX=no
16735 ;;
16736
16737 freebsd* | dragonfly*)
16738 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
16739 # conventions
16740 ld_shlibs_CXX=yes
16741 ;;
16742
16743 gnu*)
16744 ;;
16745
16746 hpux9*)
16747 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16748 hardcode_libdir_separator_CXX=:
16749 export_dynamic_flag_spec_CXX='${wl}-E'
16750 hardcode_direct_CXX=yes
16751 hardcode_minus_L_CXX=yes # Not in the search PATH,
16752 # but as the default
16753 # location of the library.
16754
16755 case $cc_basename in
16756 CC*)
16757 # FIXME: insert proper C++ library support
16758 ld_shlibs_CXX=no
16759 ;;
16760 aCC*)
16761 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'
16762 # Commands to make compiler produce verbose output that lists
16763 # what "hidden" libraries, object files and flags are used when
16764 # linking a shared library.
16765 #
16766 # There doesn't appear to be a way to prevent this compiler from
16767 # explicitly linking system object files so we need to strip them
16768 # from the output so that they don't get included in the library
16769 # dependencies.
cristy18304f92009-11-22 15:48:26 +000016770 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 +000016771 ;;
16772 *)
16773 if test "$GXX" = yes; then
16774 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'
16775 else
16776 # FIXME: insert proper C++ library support
16777 ld_shlibs_CXX=no
16778 fi
16779 ;;
16780 esac
16781 ;;
16782
16783 hpux10*|hpux11*)
16784 if test $with_gnu_ld = no; then
16785 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16786 hardcode_libdir_separator_CXX=:
16787
16788 case $host_cpu in
16789 hppa*64*|ia64*)
16790 ;;
16791 *)
16792 export_dynamic_flag_spec_CXX='${wl}-E'
16793 ;;
16794 esac
16795 fi
16796 case $host_cpu in
16797 hppa*64*|ia64*)
16798 hardcode_direct_CXX=no
16799 hardcode_shlibpath_var_CXX=no
16800 ;;
16801 *)
16802 hardcode_direct_CXX=yes
16803 hardcode_direct_absolute_CXX=yes
16804 hardcode_minus_L_CXX=yes # Not in the search PATH,
16805 # but as the default
16806 # location of the library.
16807 ;;
16808 esac
16809
16810 case $cc_basename in
16811 CC*)
16812 # FIXME: insert proper C++ library support
16813 ld_shlibs_CXX=no
16814 ;;
16815 aCC*)
16816 case $host_cpu in
16817 hppa*64*)
16818 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16819 ;;
16820 ia64*)
16821 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16822 ;;
16823 *)
16824 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16825 ;;
16826 esac
16827 # Commands to make compiler produce verbose output that lists
16828 # what "hidden" libraries, object files and flags are used when
16829 # linking a shared library.
16830 #
16831 # There doesn't appear to be a way to prevent this compiler from
16832 # explicitly linking system object files so we need to strip them
16833 # from the output so that they don't get included in the library
16834 # dependencies.
cristy18304f92009-11-22 15:48:26 +000016835 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 +000016836 ;;
16837 *)
16838 if test "$GXX" = yes; then
16839 if test $with_gnu_ld = no; then
16840 case $host_cpu in
16841 hppa*64*)
16842 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16843 ;;
16844 ia64*)
16845 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16846 ;;
16847 *)
16848 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'
16849 ;;
16850 esac
16851 fi
16852 else
16853 # FIXME: insert proper C++ library support
16854 ld_shlibs_CXX=no
16855 fi
16856 ;;
16857 esac
16858 ;;
16859
16860 interix[3-9]*)
16861 hardcode_direct_CXX=no
16862 hardcode_shlibpath_var_CXX=no
16863 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16864 export_dynamic_flag_spec_CXX='${wl}-E'
16865 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16866 # Instead, shared libraries are loaded at an image base (0x10000000 by
16867 # default) and relocated if they conflict, which is a slow very memory
16868 # consuming and fragmenting process. To avoid this, we pick a random,
16869 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16870 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16871 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'
16872 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'
16873 ;;
16874 irix5* | irix6*)
16875 case $cc_basename in
16876 CC*)
16877 # SGI C++
cristy18304f92009-11-22 15:48:26 +000016878 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 +000016879
16880 # Archives containing C++ object files must be created using
16881 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
16882 # necessary to make sure instantiated templates are included
16883 # in the archive.
16884 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
16885 ;;
16886 *)
16887 if test "$GXX" = yes; then
16888 if test "$with_gnu_ld" = no; then
cristy18304f92009-11-22 15:48:26 +000016889 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 +000016890 else
cristy18304f92009-11-22 15:48:26 +000016891 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 +000016892 fi
16893 fi
16894 link_all_deplibs_CXX=yes
16895 ;;
16896 esac
16897 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16898 hardcode_libdir_separator_CXX=:
16899 inherit_rpath_CXX=yes
16900 ;;
16901
cristy18304f92009-11-22 15:48:26 +000016902 linux* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000016903 case $cc_basename in
16904 KCC*)
16905 # Kuck and Associates, Inc. (KAI) C++ Compiler
16906
16907 # KCC will only create a shared library if the output file
16908 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16909 # to its proper name (with version) after linking.
16910 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'
16911 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'
16912 # Commands to make compiler produce verbose output that lists
16913 # what "hidden" libraries, object files and flags are used when
16914 # linking a shared library.
16915 #
16916 # There doesn't appear to be a way to prevent this compiler from
16917 # explicitly linking system object files so we need to strip them
16918 # from the output so that they don't get included in the library
16919 # dependencies.
cristy18304f92009-11-22 15:48:26 +000016920 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 +000016921
16922 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16923 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16924
16925 # Archives containing C++ object files must be created using
16926 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16927 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16928 ;;
16929 icpc* | ecpc* )
16930 # Intel C++
16931 with_gnu_ld=yes
16932 # version 8.0 and above of icpc choke on multiply defined symbols
16933 # if we add $predep_objects and $postdep_objects, however 7.1 and
16934 # earlier do not add the objects themselves.
16935 case `$CC -V 2>&1` in
16936 *"Version 7."*)
16937 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16938 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'
16939 ;;
16940 *) # Version 8.0 or newer
16941 tmp_idyn=
16942 case $host_cpu in
16943 ia64*) tmp_idyn=' -i_dynamic';;
16944 esac
16945 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16946 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'
16947 ;;
16948 esac
16949 archive_cmds_need_lc_CXX=no
16950 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16951 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16952 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16953 ;;
16954 pgCC* | pgcpp*)
16955 # Portland Group C++ compiler
16956 case `$CC -V` in
16957 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
16958 prelink_cmds_CXX='tpldir=Template.dir~
16959 rm -rf $tpldir~
16960 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
16961 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
16962 old_archive_cmds_CXX='tpldir=Template.dir~
16963 rm -rf $tpldir~
16964 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
16965 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
16966 $RANLIB $oldlib'
16967 archive_cmds_CXX='tpldir=Template.dir~
16968 rm -rf $tpldir~
16969 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
16970 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
16971 archive_expsym_cmds_CXX='tpldir=Template.dir~
16972 rm -rf $tpldir~
16973 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
16974 $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'
16975 ;;
16976 *) # Version 6 will use weak symbols
16977 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
16978 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'
16979 ;;
16980 esac
16981
16982 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
16983 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
cristy18304f92009-11-22 15:48:26 +000016984 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 +000016985 ;;
16986 cxx*)
16987 # Compaq C++
16988 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16989 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'
16990
16991 runpath_var=LD_RUN_PATH
16992 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16993 hardcode_libdir_separator_CXX=:
16994
16995 # Commands to make compiler produce verbose output that lists
16996 # what "hidden" libraries, object files and flags are used when
16997 # linking a shared library.
16998 #
16999 # There doesn't appear to be a way to prevent this compiler from
17000 # explicitly linking system object files so we need to strip them
17001 # from the output so that they don't get included in the library
17002 # dependencies.
cristy18304f92009-11-22 15:48:26 +000017003 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 +000017004 ;;
cristy18304f92009-11-22 15:48:26 +000017005 xl*)
cristy3ed852e2009-09-05 21:47:34 +000017006 # IBM XL 8.0 on PPC, with GNU ld
17007 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17008 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17009 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17010 if test "x$supports_anon_versioning" = xyes; then
17011 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
17012 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17013 echo "local: *; };" >> $output_objdir/$libname.ver~
17014 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17015 fi
17016 ;;
17017 *)
17018 case `$CC -V 2>&1 | sed 5q` in
17019 *Sun\ C*)
17020 # Sun C++ 5.9
17021 no_undefined_flag_CXX=' -zdefs'
17022 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17023 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'
17024 hardcode_libdir_flag_spec_CXX='-R$libdir'
cristy18304f92009-11-22 15:48:26 +000017025 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 +000017026 compiler_needs_object_CXX=yes
17027
17028 # Not sure whether something based on
17029 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
17030 # would be better.
cristy18304f92009-11-22 15:48:26 +000017031 output_verbose_link_cmd='echo'
cristy3ed852e2009-09-05 21:47:34 +000017032
17033 # Archives containing C++ object files must be created using
17034 # "CC -xar", where "CC" is the Sun C++ compiler. This is
17035 # necessary to make sure instantiated templates are included
17036 # in the archive.
17037 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17038 ;;
17039 esac
17040 ;;
17041 esac
17042 ;;
17043
17044 lynxos*)
17045 # FIXME: insert proper C++ library support
17046 ld_shlibs_CXX=no
17047 ;;
17048
17049 m88k*)
17050 # FIXME: insert proper C++ library support
17051 ld_shlibs_CXX=no
17052 ;;
17053
17054 mvs*)
17055 case $cc_basename in
17056 cxx*)
17057 # FIXME: insert proper C++ library support
17058 ld_shlibs_CXX=no
17059 ;;
17060 *)
17061 # FIXME: insert proper C++ library support
17062 ld_shlibs_CXX=no
17063 ;;
17064 esac
17065 ;;
17066
17067 netbsd*)
17068 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17069 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
17070 wlarc=
17071 hardcode_libdir_flag_spec_CXX='-R$libdir'
17072 hardcode_direct_CXX=yes
17073 hardcode_shlibpath_var_CXX=no
17074 fi
17075 # Workaround some broken pre-1.5 toolchains
17076 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
17077 ;;
17078
17079 *nto* | *qnx*)
17080 ld_shlibs_CXX=yes
17081 ;;
17082
17083 openbsd2*)
17084 # C++ shared libraries are fairly broken
17085 ld_shlibs_CXX=no
17086 ;;
17087
17088 openbsd*)
17089 if test -f /usr/libexec/ld.so; then
17090 hardcode_direct_CXX=yes
17091 hardcode_shlibpath_var_CXX=no
17092 hardcode_direct_absolute_CXX=yes
17093 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17094 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17095 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17096 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
17097 export_dynamic_flag_spec_CXX='${wl}-E'
17098 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17099 fi
cristy18304f92009-11-22 15:48:26 +000017100 output_verbose_link_cmd=echo
cristy3ed852e2009-09-05 21:47:34 +000017101 else
17102 ld_shlibs_CXX=no
17103 fi
17104 ;;
17105
17106 osf3* | osf4* | osf5*)
17107 case $cc_basename in
17108 KCC*)
17109 # Kuck and Associates, Inc. (KAI) C++ Compiler
17110
17111 # KCC will only create a shared library if the output file
17112 # ends with ".so" (or ".sl" for HP-UX), so rename the library
17113 # to its proper name (with version) after linking.
17114 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'
17115
17116 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17117 hardcode_libdir_separator_CXX=:
17118
17119 # Archives containing C++ object files must be created using
17120 # the KAI C++ compiler.
17121 case $host in
17122 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
17123 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
17124 esac
17125 ;;
17126 RCC*)
17127 # Rational C++ 2.4.1
17128 # FIXME: insert proper C++ library support
17129 ld_shlibs_CXX=no
17130 ;;
17131 cxx*)
17132 case $host in
17133 osf3*)
17134 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
cristy18304f92009-11-22 15:48:26 +000017135 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 +000017136 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17137 ;;
17138 *)
17139 allow_undefined_flag_CXX=' -expect_unresolved \*'
cristy18304f92009-11-22 15:48:26 +000017140 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 +000017141 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
17142 echo "-hidden">> $lib.exp~
cristy18304f92009-11-22 15:48:26 +000017143 $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 +000017144 $RM $lib.exp'
17145 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17146 ;;
17147 esac
17148
17149 hardcode_libdir_separator_CXX=:
17150
17151 # Commands to make compiler produce verbose output that lists
17152 # what "hidden" libraries, object files and flags are used when
17153 # linking a shared library.
17154 #
17155 # There doesn't appear to be a way to prevent this compiler from
17156 # explicitly linking system object files so we need to strip them
17157 # from the output so that they don't get included in the library
17158 # dependencies.
cristy18304f92009-11-22 15:48:26 +000017159 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 +000017160 ;;
17161 *)
17162 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17163 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
17164 case $host in
17165 osf3*)
cristy18304f92009-11-22 15:48:26 +000017166 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 +000017167 ;;
17168 *)
cristy18304f92009-11-22 15:48:26 +000017169 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 +000017170 ;;
17171 esac
17172
17173 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17174 hardcode_libdir_separator_CXX=:
17175
17176 # Commands to make compiler produce verbose output that lists
17177 # what "hidden" libraries, object files and flags are used when
17178 # linking a shared library.
cristy18304f92009-11-22 15:48:26 +000017179 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
cristy3ed852e2009-09-05 21:47:34 +000017180
17181 else
17182 # FIXME: insert proper C++ library support
17183 ld_shlibs_CXX=no
17184 fi
17185 ;;
17186 esac
17187 ;;
17188
17189 psos*)
17190 # FIXME: insert proper C++ library support
17191 ld_shlibs_CXX=no
17192 ;;
17193
17194 sunos4*)
17195 case $cc_basename in
17196 CC*)
17197 # Sun C++ 4.x
17198 # FIXME: insert proper C++ library support
17199 ld_shlibs_CXX=no
17200 ;;
17201 lcc*)
17202 # Lucid
17203 # FIXME: insert proper C++ library support
17204 ld_shlibs_CXX=no
17205 ;;
17206 *)
17207 # FIXME: insert proper C++ library support
17208 ld_shlibs_CXX=no
17209 ;;
17210 esac
17211 ;;
17212
17213 solaris*)
17214 case $cc_basename in
17215 CC*)
17216 # Sun C++ 4.2, 5.x and Centerline C++
17217 archive_cmds_need_lc_CXX=yes
17218 no_undefined_flag_CXX=' -zdefs'
17219 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17220 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17221 $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'
17222
17223 hardcode_libdir_flag_spec_CXX='-R$libdir'
17224 hardcode_shlibpath_var_CXX=no
17225 case $host_os in
17226 solaris2.[0-5] | solaris2.[0-5].*) ;;
17227 *)
17228 # The compiler driver will combine and reorder linker options,
17229 # but understands `-z linker_flag'.
17230 # Supported since Solaris 2.6 (maybe 2.5.1?)
17231 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
17232 ;;
17233 esac
17234 link_all_deplibs_CXX=yes
17235
cristy18304f92009-11-22 15:48:26 +000017236 output_verbose_link_cmd='echo'
cristy3ed852e2009-09-05 21:47:34 +000017237
17238 # Archives containing C++ object files must be created using
17239 # "CC -xar", where "CC" is the Sun C++ compiler. This is
17240 # necessary to make sure instantiated templates are included
17241 # in the archive.
17242 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17243 ;;
17244 gcx*)
17245 # Green Hills C++ Compiler
17246 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17247
17248 # The C++ compiler must be used to create the archive.
17249 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
17250 ;;
17251 *)
17252 # GNU C++ compiler with Solaris linker
17253 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17254 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
17255 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
17256 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17257 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17258 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
17259
17260 # Commands to make compiler produce verbose output that lists
17261 # what "hidden" libraries, object files and flags are used when
17262 # linking a shared library.
cristy18304f92009-11-22 15:48:26 +000017263 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
cristy3ed852e2009-09-05 21:47:34 +000017264 else
17265 # g++ 2.7 appears to require `-G' NOT `-shared' on this
17266 # platform.
17267 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17268 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17269 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
17270
17271 # Commands to make compiler produce verbose output that lists
17272 # what "hidden" libraries, object files and flags are used when
17273 # linking a shared library.
cristy18304f92009-11-22 15:48:26 +000017274 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
cristy3ed852e2009-09-05 21:47:34 +000017275 fi
17276
17277 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
17278 case $host_os in
17279 solaris2.[0-5] | solaris2.[0-5].*) ;;
17280 *)
17281 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17282 ;;
17283 esac
17284 fi
17285 ;;
17286 esac
17287 ;;
17288
17289 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17290 no_undefined_flag_CXX='${wl}-z,text'
17291 archive_cmds_need_lc_CXX=no
17292 hardcode_shlibpath_var_CXX=no
17293 runpath_var='LD_RUN_PATH'
17294
17295 case $cc_basename in
17296 CC*)
17297 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17298 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17299 ;;
17300 *)
17301 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17302 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17303 ;;
17304 esac
17305 ;;
17306
17307 sysv5* | sco3.2v5* | sco5v6*)
17308 # Note: We can NOT use -z defs as we might desire, because we do not
17309 # link with -lc, and that would cause any symbols used from libc to
17310 # always be unresolved, which means just about no library would
17311 # ever link correctly. If we're not using GNU ld we use -z text
17312 # though, which does catch some bad symbols but isn't as heavy-handed
17313 # as -z defs.
17314 no_undefined_flag_CXX='${wl}-z,text'
17315 allow_undefined_flag_CXX='${wl}-z,nodefs'
17316 archive_cmds_need_lc_CXX=no
17317 hardcode_shlibpath_var_CXX=no
17318 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
17319 hardcode_libdir_separator_CXX=':'
17320 link_all_deplibs_CXX=yes
17321 export_dynamic_flag_spec_CXX='${wl}-Bexport'
17322 runpath_var='LD_RUN_PATH'
17323
17324 case $cc_basename in
17325 CC*)
17326 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17327 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17328 ;;
17329 *)
17330 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17331 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17332 ;;
17333 esac
17334 ;;
17335
17336 tandem*)
17337 case $cc_basename in
17338 NCC*)
17339 # NonStop-UX NCC 3.20
17340 # FIXME: insert proper C++ library support
17341 ld_shlibs_CXX=no
17342 ;;
17343 *)
17344 # FIXME: insert proper C++ library support
17345 ld_shlibs_CXX=no
17346 ;;
17347 esac
17348 ;;
17349
17350 vxworks*)
17351 # FIXME: insert proper C++ library support
17352 ld_shlibs_CXX=no
17353 ;;
17354
17355 *)
17356 # FIXME: insert proper C++ library support
17357 ld_shlibs_CXX=no
17358 ;;
17359 esac
17360
cristy8b350f62009-11-15 23:12:43 +000017361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000017362$as_echo "$ld_shlibs_CXX" >&6; }
17363 test "$ld_shlibs_CXX" = no && can_build_shared=no
17364
17365 GCC_CXX="$GXX"
17366 LD_CXX="$LD"
17367
17368 ## CAVEAT EMPTOR:
17369 ## There is no encapsulation within the following macros, do not change
17370 ## the running order or otherwise move them around unless you know exactly
17371 ## what you are doing...
17372 # Dependencies to place before and after the object being linked:
17373predep_objects_CXX=
17374postdep_objects_CXX=
17375predeps_CXX=
17376postdeps_CXX=
17377compiler_lib_search_path_CXX=
17378
17379cat > conftest.$ac_ext <<_LT_EOF
17380class Foo
17381{
17382public:
17383 Foo (void) { a = 0; }
17384private:
17385 int a;
17386};
17387_LT_EOF
17388
cristy8b350f62009-11-15 23:12:43 +000017389if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000017390 (eval $ac_compile) 2>&5
17391 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000017392 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17393 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000017394 # Parse the compiler output and extract the necessary
17395 # objects, libraries and library flags.
17396
17397 # Sentinel used to keep track of whether or not we are before
17398 # the conftest object file.
17399 pre_test_object_deps_done=no
17400
17401 for p in `eval "$output_verbose_link_cmd"`; do
17402 case $p in
17403
17404 -L* | -R* | -l*)
17405 # Some compilers place space between "-{L,R}" and the path.
17406 # Remove the space.
17407 if test $p = "-L" ||
17408 test $p = "-R"; then
17409 prev=$p
17410 continue
17411 else
17412 prev=
17413 fi
17414
17415 if test "$pre_test_object_deps_done" = no; then
17416 case $p in
17417 -L* | -R*)
17418 # Internal compiler library paths should come after those
17419 # provided the user. The postdeps already come after the
17420 # user supplied libs so there is no need to process them.
17421 if test -z "$compiler_lib_search_path_CXX"; then
17422 compiler_lib_search_path_CXX="${prev}${p}"
17423 else
17424 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
17425 fi
17426 ;;
17427 # The "-l" case would never come before the object being
17428 # linked, so don't bother handling this case.
17429 esac
17430 else
17431 if test -z "$postdeps_CXX"; then
17432 postdeps_CXX="${prev}${p}"
17433 else
17434 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
17435 fi
17436 fi
17437 ;;
17438
17439 *.$objext)
17440 # This assumes that the test object file only shows up
17441 # once in the compiler output.
17442 if test "$p" = "conftest.$objext"; then
17443 pre_test_object_deps_done=yes
17444 continue
17445 fi
17446
17447 if test "$pre_test_object_deps_done" = no; then
17448 if test -z "$predep_objects_CXX"; then
17449 predep_objects_CXX="$p"
17450 else
17451 predep_objects_CXX="$predep_objects_CXX $p"
17452 fi
17453 else
17454 if test -z "$postdep_objects_CXX"; then
17455 postdep_objects_CXX="$p"
17456 else
17457 postdep_objects_CXX="$postdep_objects_CXX $p"
17458 fi
17459 fi
17460 ;;
17461
17462 *) ;; # Ignore the rest.
17463
17464 esac
17465 done
17466
17467 # Clean up.
17468 rm -f a.out a.exe
17469else
17470 echo "libtool.m4: error: problem compiling CXX test program"
17471fi
17472
17473$RM -f confest.$objext
17474
17475# PORTME: override above test on systems where it is broken
17476case $host_os in
17477interix[3-9]*)
17478 # Interix 3.5 installs completely hosed .la files for C++, so rather than
17479 # hack all around it, let's just trust "g++" to DTRT.
17480 predep_objects_CXX=
17481 postdep_objects_CXX=
17482 postdeps_CXX=
17483 ;;
17484
17485linux*)
17486 case `$CC -V 2>&1 | sed 5q` in
17487 *Sun\ C*)
17488 # Sun C++ 5.9
17489
17490 # The more standards-conforming stlport4 library is
17491 # incompatible with the Cstd library. Avoid specifying
17492 # it if it's in CXXFLAGS. Ignore libCrun as
17493 # -library=stlport4 depends on it.
17494 case " $CXX $CXXFLAGS " in
17495 *" -library=stlport4 "*)
17496 solaris_use_stlport4=yes
17497 ;;
17498 esac
17499
17500 if test "$solaris_use_stlport4" != yes; then
17501 postdeps_CXX='-library=Cstd -library=Crun'
17502 fi
17503 ;;
17504 esac
17505 ;;
17506
17507solaris*)
17508 case $cc_basename in
17509 CC*)
17510 # The more standards-conforming stlport4 library is
17511 # incompatible with the Cstd library. Avoid specifying
17512 # it if it's in CXXFLAGS. Ignore libCrun as
17513 # -library=stlport4 depends on it.
17514 case " $CXX $CXXFLAGS " in
17515 *" -library=stlport4 "*)
17516 solaris_use_stlport4=yes
17517 ;;
17518 esac
17519
17520 # Adding this requires a known-good setup of shared libraries for
17521 # Sun compiler versions before 5.6, else PIC objects from an old
17522 # archive will be linked into the output, leading to subtle bugs.
17523 if test "$solaris_use_stlport4" != yes; then
17524 postdeps_CXX='-library=Cstd -library=Crun'
17525 fi
17526 ;;
17527 esac
17528 ;;
17529esac
17530
17531
17532case " $postdeps_CXX " in
17533*" -lc "*) archive_cmds_need_lc_CXX=no ;;
17534esac
17535 compiler_lib_search_dirs_CXX=
17536if test -n "${compiler_lib_search_path_CXX}"; then
17537 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
17538fi
17539
17540
17541
17542
17543
17544
17545
17546
17547
17548
17549
17550
17551
17552
17553
17554
17555
17556
17557
17558
17559
17560
17561
17562
17563
17564
17565
17566
17567
17568
17569
17570 lt_prog_compiler_wl_CXX=
17571lt_prog_compiler_pic_CXX=
17572lt_prog_compiler_static_CXX=
17573
cristy8b350f62009-11-15 23:12:43 +000017574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
cristy3ed852e2009-09-05 21:47:34 +000017575$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
17576
17577 # C++ specific cases for pic, static, wl, etc.
17578 if test "$GXX" = yes; then
17579 lt_prog_compiler_wl_CXX='-Wl,'
17580 lt_prog_compiler_static_CXX='-static'
17581
17582 case $host_os in
17583 aix*)
17584 # All AIX code is PIC.
17585 if test "$host_cpu" = ia64; then
17586 # AIX 5 now supports IA64 processor
17587 lt_prog_compiler_static_CXX='-Bstatic'
17588 fi
17589 ;;
17590
17591 amigaos*)
17592 case $host_cpu in
17593 powerpc)
17594 # see comment about AmigaOS4 .so support
17595 lt_prog_compiler_pic_CXX='-fPIC'
17596 ;;
17597 m68k)
17598 # FIXME: we need at least 68020 code to build shared libraries, but
17599 # adding the `-m68020' flag to GCC prevents building anything better,
17600 # like `-m68040'.
17601 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
17602 ;;
17603 esac
17604 ;;
17605
17606 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17607 # PIC is the default for these OSes.
17608 ;;
17609 mingw* | cygwin* | os2* | pw32* | cegcc*)
17610 # This hack is so that the source file can tell whether it is being
17611 # built for inclusion in a dll (and should export symbols for example).
17612 # Although the cygwin gcc ignores -fPIC, still need this for old-style
17613 # (--disable-auto-import) libraries
17614 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
17615 ;;
17616 darwin* | rhapsody*)
17617 # PIC is the default on this platform
17618 # Common symbols not allowed in MH_DYLIB files
17619 lt_prog_compiler_pic_CXX='-fno-common'
17620 ;;
17621 *djgpp*)
17622 # DJGPP does not support shared libraries at all
17623 lt_prog_compiler_pic_CXX=
17624 ;;
17625 interix[3-9]*)
17626 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17627 # Instead, we relocate shared libraries at runtime.
17628 ;;
17629 sysv4*MP*)
17630 if test -d /usr/nec; then
17631 lt_prog_compiler_pic_CXX=-Kconform_pic
17632 fi
17633 ;;
17634 hpux*)
17635 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
17636 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
17637 # sets the default TLS model and affects inlining.
17638 case $host_cpu in
17639 hppa*64*)
17640 ;;
17641 *)
17642 lt_prog_compiler_pic_CXX='-fPIC'
17643 ;;
17644 esac
17645 ;;
17646 *qnx* | *nto*)
17647 # QNX uses GNU C++, but need to define -shared option too, otherwise
17648 # it will coredump.
17649 lt_prog_compiler_pic_CXX='-fPIC -shared'
17650 ;;
17651 *)
17652 lt_prog_compiler_pic_CXX='-fPIC'
17653 ;;
17654 esac
17655 else
17656 case $host_os in
17657 aix[4-9]*)
17658 # All AIX code is PIC.
17659 if test "$host_cpu" = ia64; then
17660 # AIX 5 now supports IA64 processor
17661 lt_prog_compiler_static_CXX='-Bstatic'
17662 else
17663 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
17664 fi
17665 ;;
17666 chorus*)
17667 case $cc_basename in
17668 cxch68*)
17669 # Green Hills C++ Compiler
17670 # _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"
17671 ;;
17672 esac
17673 ;;
17674 dgux*)
17675 case $cc_basename in
17676 ec++*)
17677 lt_prog_compiler_pic_CXX='-KPIC'
17678 ;;
17679 ghcx*)
17680 # Green Hills C++ Compiler
17681 lt_prog_compiler_pic_CXX='-pic'
17682 ;;
17683 *)
17684 ;;
17685 esac
17686 ;;
17687 freebsd* | dragonfly*)
17688 # FreeBSD uses GNU C++
17689 ;;
17690 hpux9* | hpux10* | hpux11*)
17691 case $cc_basename in
17692 CC*)
17693 lt_prog_compiler_wl_CXX='-Wl,'
17694 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
17695 if test "$host_cpu" != ia64; then
17696 lt_prog_compiler_pic_CXX='+Z'
17697 fi
17698 ;;
17699 aCC*)
17700 lt_prog_compiler_wl_CXX='-Wl,'
17701 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
17702 case $host_cpu in
17703 hppa*64*|ia64*)
17704 # +Z the default
17705 ;;
17706 *)
17707 lt_prog_compiler_pic_CXX='+Z'
17708 ;;
17709 esac
17710 ;;
17711 *)
17712 ;;
17713 esac
17714 ;;
17715 interix*)
17716 # This is c89, which is MS Visual C++ (no shared libs)
17717 # Anyone wants to do a port?
17718 ;;
17719 irix5* | irix6* | nonstopux*)
17720 case $cc_basename in
17721 CC*)
17722 lt_prog_compiler_wl_CXX='-Wl,'
17723 lt_prog_compiler_static_CXX='-non_shared'
17724 # CC pic flag -KPIC is the default.
17725 ;;
17726 *)
17727 ;;
17728 esac
17729 ;;
cristy18304f92009-11-22 15:48:26 +000017730 linux* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000017731 case $cc_basename in
17732 KCC*)
17733 # KAI C++ Compiler
17734 lt_prog_compiler_wl_CXX='--backend -Wl,'
17735 lt_prog_compiler_pic_CXX='-fPIC'
17736 ;;
17737 ecpc* )
17738 # old Intel C++ for x86_64 which still supported -KPIC.
17739 lt_prog_compiler_wl_CXX='-Wl,'
17740 lt_prog_compiler_pic_CXX='-KPIC'
17741 lt_prog_compiler_static_CXX='-static'
17742 ;;
17743 icpc* )
17744 # Intel C++, used to be incompatible with GCC.
17745 # ICC 10 doesn't accept -KPIC any more.
17746 lt_prog_compiler_wl_CXX='-Wl,'
17747 lt_prog_compiler_pic_CXX='-fPIC'
17748 lt_prog_compiler_static_CXX='-static'
17749 ;;
17750 pgCC* | pgcpp*)
17751 # Portland Group C++ compiler
17752 lt_prog_compiler_wl_CXX='-Wl,'
17753 lt_prog_compiler_pic_CXX='-fpic'
17754 lt_prog_compiler_static_CXX='-Bstatic'
17755 ;;
17756 cxx*)
17757 # Compaq C++
17758 # Make sure the PIC flag is empty. It appears that all Alpha
17759 # Linux and Compaq Tru64 Unix objects are PIC.
17760 lt_prog_compiler_pic_CXX=
17761 lt_prog_compiler_static_CXX='-non_shared'
17762 ;;
cristy18304f92009-11-22 15:48:26 +000017763 xlc* | xlC*)
17764 # IBM XL 8.0 on PPC
cristy3ed852e2009-09-05 21:47:34 +000017765 lt_prog_compiler_wl_CXX='-Wl,'
17766 lt_prog_compiler_pic_CXX='-qpic'
17767 lt_prog_compiler_static_CXX='-qstaticlink'
17768 ;;
17769 *)
17770 case `$CC -V 2>&1 | sed 5q` in
17771 *Sun\ C*)
17772 # Sun C++ 5.9
17773 lt_prog_compiler_pic_CXX='-KPIC'
17774 lt_prog_compiler_static_CXX='-Bstatic'
17775 lt_prog_compiler_wl_CXX='-Qoption ld '
17776 ;;
17777 esac
17778 ;;
17779 esac
17780 ;;
17781 lynxos*)
17782 ;;
17783 m88k*)
17784 ;;
17785 mvs*)
17786 case $cc_basename in
17787 cxx*)
17788 lt_prog_compiler_pic_CXX='-W c,exportall'
17789 ;;
17790 *)
17791 ;;
17792 esac
17793 ;;
17794 netbsd*)
17795 ;;
17796 *qnx* | *nto*)
17797 # QNX uses GNU C++, but need to define -shared option too, otherwise
17798 # it will coredump.
17799 lt_prog_compiler_pic_CXX='-fPIC -shared'
17800 ;;
17801 osf3* | osf4* | osf5*)
17802 case $cc_basename in
17803 KCC*)
17804 lt_prog_compiler_wl_CXX='--backend -Wl,'
17805 ;;
17806 RCC*)
17807 # Rational C++ 2.4.1
17808 lt_prog_compiler_pic_CXX='-pic'
17809 ;;
17810 cxx*)
17811 # Digital/Compaq C++
17812 lt_prog_compiler_wl_CXX='-Wl,'
17813 # Make sure the PIC flag is empty. It appears that all Alpha
17814 # Linux and Compaq Tru64 Unix objects are PIC.
17815 lt_prog_compiler_pic_CXX=
17816 lt_prog_compiler_static_CXX='-non_shared'
17817 ;;
17818 *)
17819 ;;
17820 esac
17821 ;;
17822 psos*)
17823 ;;
17824 solaris*)
17825 case $cc_basename in
17826 CC*)
17827 # Sun C++ 4.2, 5.x and Centerline C++
17828 lt_prog_compiler_pic_CXX='-KPIC'
17829 lt_prog_compiler_static_CXX='-Bstatic'
17830 lt_prog_compiler_wl_CXX='-Qoption ld '
17831 ;;
17832 gcx*)
17833 # Green Hills C++ Compiler
17834 lt_prog_compiler_pic_CXX='-PIC'
17835 ;;
17836 *)
17837 ;;
17838 esac
17839 ;;
17840 sunos4*)
17841 case $cc_basename in
17842 CC*)
17843 # Sun C++ 4.x
17844 lt_prog_compiler_pic_CXX='-pic'
17845 lt_prog_compiler_static_CXX='-Bstatic'
17846 ;;
17847 lcc*)
17848 # Lucid
17849 lt_prog_compiler_pic_CXX='-pic'
17850 ;;
17851 *)
17852 ;;
17853 esac
17854 ;;
17855 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17856 case $cc_basename in
17857 CC*)
17858 lt_prog_compiler_wl_CXX='-Wl,'
17859 lt_prog_compiler_pic_CXX='-KPIC'
17860 lt_prog_compiler_static_CXX='-Bstatic'
17861 ;;
17862 esac
17863 ;;
17864 tandem*)
17865 case $cc_basename in
17866 NCC*)
17867 # NonStop-UX NCC 3.20
17868 lt_prog_compiler_pic_CXX='-KPIC'
17869 ;;
17870 *)
17871 ;;
17872 esac
17873 ;;
17874 vxworks*)
17875 ;;
17876 *)
17877 lt_prog_compiler_can_build_shared_CXX=no
17878 ;;
17879 esac
17880 fi
17881
17882case $host_os in
17883 # For platforms which do not support PIC, -DPIC is meaningless:
17884 *djgpp*)
17885 lt_prog_compiler_pic_CXX=
17886 ;;
17887 *)
17888 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
17889 ;;
17890esac
cristy8b350f62009-11-15 23:12:43 +000017891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000017892$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
17893
17894
17895
17896#
17897# Check to make sure the PIC flag actually works.
17898#
17899if test -n "$lt_prog_compiler_pic_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000017900 { $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 +000017901$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017902if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017903 $as_echo_n "(cached) " >&6
17904else
17905 lt_cv_prog_compiler_pic_works_CXX=no
17906 ac_outfile=conftest.$ac_objext
17907 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17908 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
17909 # Insert the option either (1) after the last *FLAGS variable, or
17910 # (2) before a word containing "conftest.", or (3) at the end.
17911 # Note that $ac_compile itself does not contain backslashes and begins
17912 # with a dollar sign (not a hyphen), so the echo should work correctly.
17913 # The option is referenced via a variable to avoid confusing sed.
17914 lt_compile=`echo "$ac_compile" | $SED \
17915 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17916 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17917 -e 's:$: $lt_compiler_flag:'`
cristy0d3a6382010-04-26 00:45:55 +000017918 (eval echo "\"\$as_me:17918: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000017919 (eval "$lt_compile" 2>conftest.err)
17920 ac_status=$?
17921 cat conftest.err >&5
cristy0d3a6382010-04-26 00:45:55 +000017922 echo "$as_me:17922: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000017923 if (exit $ac_status) && test -s "$ac_outfile"; then
17924 # The compiler can only warn and ignore the option if not recognized
17925 # So say no if there are warnings other than the usual output.
cristy18304f92009-11-22 15:48:26 +000017926 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000017927 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17928 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17929 lt_cv_prog_compiler_pic_works_CXX=yes
17930 fi
17931 fi
17932 $RM conftest*
17933
17934fi
cristy8b350f62009-11-15 23:12:43 +000017935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000017936$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
17937
17938if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
17939 case $lt_prog_compiler_pic_CXX in
17940 "" | " "*) ;;
17941 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
17942 esac
17943else
17944 lt_prog_compiler_pic_CXX=
17945 lt_prog_compiler_can_build_shared_CXX=no
17946fi
17947
17948fi
17949
17950
17951
17952#
17953# Check to make sure the static flag actually works.
17954#
17955wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
cristy8b350f62009-11-15 23:12:43 +000017956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
cristy3ed852e2009-09-05 21:47:34 +000017957$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017958if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017959 $as_echo_n "(cached) " >&6
17960else
17961 lt_cv_prog_compiler_static_works_CXX=no
17962 save_LDFLAGS="$LDFLAGS"
17963 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17964 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17965 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17966 # The linker can only warn and ignore the option if not recognized
17967 # So say no if there are warnings
17968 if test -s conftest.err; then
17969 # Append any errors to the config.log.
17970 cat conftest.err 1>&5
cristy18304f92009-11-22 15:48:26 +000017971 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000017972 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17973 if diff conftest.exp conftest.er2 >/dev/null; then
17974 lt_cv_prog_compiler_static_works_CXX=yes
17975 fi
17976 else
17977 lt_cv_prog_compiler_static_works_CXX=yes
17978 fi
17979 fi
17980 $RM -r conftest*
17981 LDFLAGS="$save_LDFLAGS"
17982
17983fi
cristy8b350f62009-11-15 23:12:43 +000017984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000017985$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
17986
17987if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
17988 :
17989else
17990 lt_prog_compiler_static_CXX=
17991fi
17992
17993
17994
17995
cristy8b350f62009-11-15 23:12:43 +000017996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +000017997$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017998if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017999 $as_echo_n "(cached) " >&6
18000else
18001 lt_cv_prog_compiler_c_o_CXX=no
18002 $RM -r conftest 2>/dev/null
18003 mkdir conftest
18004 cd conftest
18005 mkdir out
18006 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18007
18008 lt_compiler_flag="-o out/conftest2.$ac_objext"
18009 # Insert the option either (1) after the last *FLAGS variable, or
18010 # (2) before a word containing "conftest.", or (3) at the end.
18011 # Note that $ac_compile itself does not contain backslashes and begins
18012 # with a dollar sign (not a hyphen), so the echo should work correctly.
18013 lt_compile=`echo "$ac_compile" | $SED \
18014 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18015 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18016 -e 's:$: $lt_compiler_flag:'`
cristy0d3a6382010-04-26 00:45:55 +000018017 (eval echo "\"\$as_me:18017: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000018018 (eval "$lt_compile" 2>out/conftest.err)
18019 ac_status=$?
18020 cat out/conftest.err >&5
cristy0d3a6382010-04-26 00:45:55 +000018021 echo "$as_me:18021: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000018022 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18023 then
18024 # The compiler can only warn and ignore the option if not recognized
18025 # So say no if there are warnings
cristy18304f92009-11-22 15:48:26 +000018026 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000018027 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18028 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18029 lt_cv_prog_compiler_c_o_CXX=yes
18030 fi
18031 fi
18032 chmod u+w . 2>&5
18033 $RM conftest*
18034 # SGI C++ compiler will create directory out/ii_files/ for
18035 # template instantiation
18036 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18037 $RM out/* && rmdir out
18038 cd ..
18039 $RM -r conftest
18040 $RM conftest*
18041
18042fi
cristy8b350f62009-11-15 23:12:43 +000018043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000018044$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
18045
18046
18047
cristy8b350f62009-11-15 23:12:43 +000018048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +000018049$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018050if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018051 $as_echo_n "(cached) " >&6
18052else
18053 lt_cv_prog_compiler_c_o_CXX=no
18054 $RM -r conftest 2>/dev/null
18055 mkdir conftest
18056 cd conftest
18057 mkdir out
18058 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18059
18060 lt_compiler_flag="-o out/conftest2.$ac_objext"
18061 # Insert the option either (1) after the last *FLAGS variable, or
18062 # (2) before a word containing "conftest.", or (3) at the end.
18063 # Note that $ac_compile itself does not contain backslashes and begins
18064 # with a dollar sign (not a hyphen), so the echo should work correctly.
18065 lt_compile=`echo "$ac_compile" | $SED \
18066 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18067 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18068 -e 's:$: $lt_compiler_flag:'`
cristy0d3a6382010-04-26 00:45:55 +000018069 (eval echo "\"\$as_me:18069: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000018070 (eval "$lt_compile" 2>out/conftest.err)
18071 ac_status=$?
18072 cat out/conftest.err >&5
cristy0d3a6382010-04-26 00:45:55 +000018073 echo "$as_me:18073: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000018074 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18075 then
18076 # The compiler can only warn and ignore the option if not recognized
18077 # So say no if there are warnings
cristy18304f92009-11-22 15:48:26 +000018078 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000018079 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18080 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18081 lt_cv_prog_compiler_c_o_CXX=yes
18082 fi
18083 fi
18084 chmod u+w . 2>&5
18085 $RM conftest*
18086 # SGI C++ compiler will create directory out/ii_files/ for
18087 # template instantiation
18088 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18089 $RM out/* && rmdir out
18090 cd ..
18091 $RM -r conftest
18092 $RM conftest*
18093
18094fi
cristy8b350f62009-11-15 23:12:43 +000018095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000018096$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
18097
18098
18099
18100
18101hard_links="nottested"
18102if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
18103 # do not overwrite the value of need_locks provided by the user
cristy8b350f62009-11-15 23:12:43 +000018104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
cristy3ed852e2009-09-05 21:47:34 +000018105$as_echo_n "checking if we can lock with hard links... " >&6; }
18106 hard_links=yes
18107 $RM conftest*
18108 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18109 touch conftest.a
18110 ln conftest.a conftest.b 2>&5 || hard_links=no
18111 ln conftest.a conftest.b 2>/dev/null && hard_links=no
cristy8b350f62009-11-15 23:12:43 +000018112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
cristy3ed852e2009-09-05 21:47:34 +000018113$as_echo "$hard_links" >&6; }
18114 if test "$hard_links" = no; then
cristy8b350f62009-11-15 23:12:43 +000018115 { $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 +000018116$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18117 need_locks=warn
18118 fi
18119else
18120 need_locks=no
18121fi
18122
18123
18124
cristy8b350f62009-11-15 23:12:43 +000018125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000018126$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18127
18128 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18129 case $host_os in
18130 aix[4-9]*)
18131 # If we're using GNU nm, then we don't want the "-C" option.
18132 # -C means demangle to AIX nm, but means don't demangle with GNU nm
18133 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy18304f92009-11-22 15:48:26 +000018134 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 +000018135 else
18136 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'
18137 fi
18138 ;;
18139 pw32*)
18140 export_symbols_cmds_CXX="$ltdll_cmds"
18141 ;;
18142 cygwin* | mingw* | cegcc*)
18143 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'
18144 ;;
18145 *)
18146 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18147 ;;
18148 esac
18149 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
18150
cristy8b350f62009-11-15 23:12:43 +000018151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000018152$as_echo "$ld_shlibs_CXX" >&6; }
18153test "$ld_shlibs_CXX" = no && can_build_shared=no
18154
18155with_gnu_ld_CXX=$with_gnu_ld
18156
18157
18158
18159
18160
18161
18162#
18163# Do we need to explicitly link libc?
18164#
18165case "x$archive_cmds_need_lc_CXX" in
18166x|xyes)
18167 # Assume -lc should be added
18168 archive_cmds_need_lc_CXX=yes
18169
18170 if test "$enable_shared" = yes && test "$GCC" = yes; then
18171 case $archive_cmds_CXX in
18172 *'~'*)
18173 # FIXME: we may have to deal with multi-command sequences.
18174 ;;
18175 '$CC '*)
18176 # Test whether the compiler implicitly links with -lc since on some
18177 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18178 # to ld, don't add -lc before -lgcc.
cristy8b350f62009-11-15 23:12:43 +000018179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
cristy3ed852e2009-09-05 21:47:34 +000018180$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristy18304f92009-11-22 15:48:26 +000018181 $RM conftest*
18182 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000018183
cristy18304f92009-11-22 15:48:26 +000018184 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000018185 (eval $ac_compile) 2>&5
18186 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000018187 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18188 test $ac_status = 0; } 2>conftest.err; then
cristy18304f92009-11-22 15:48:26 +000018189 soname=conftest
18190 lib=conftest
18191 libobjs=conftest.$ac_objext
18192 deplibs=
18193 wl=$lt_prog_compiler_wl_CXX
18194 pic_flag=$lt_prog_compiler_pic_CXX
18195 compiler_flags=-v
18196 linker_flags=-v
18197 verstring=
18198 output_objdir=.
18199 libname=conftest
18200 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
18201 allow_undefined_flag_CXX=
18202 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 +000018203 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
18204 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000018205 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18206 test $ac_status = 0; }
cristy18304f92009-11-22 15:48:26 +000018207 then
18208 archive_cmds_need_lc_CXX=no
18209 else
18210 archive_cmds_need_lc_CXX=yes
18211 fi
18212 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
18213 else
18214 cat conftest.err 1>&5
18215 fi
18216 $RM conftest*
18217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
18218$as_echo "$archive_cmds_need_lc_CXX" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000018219 ;;
18220 esac
18221 fi
18222 ;;
18223esac
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
18258
18259
18260
18261
18262
18263
18264
18265
18266
18267
18268
18269
18270
18271
18272
18273
18274
18275
18276
18277
18278
18279
18280
18281
18282
18283
18284
18285
18286
18287
cristy8b350f62009-11-15 23:12:43 +000018288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
cristy3ed852e2009-09-05 21:47:34 +000018289$as_echo_n "checking dynamic linker characteristics... " >&6; }
18290
18291library_names_spec=
18292libname_spec='lib$name'
18293soname_spec=
18294shrext_cmds=".so"
18295postinstall_cmds=
18296postuninstall_cmds=
18297finish_cmds=
18298finish_eval=
18299shlibpath_var=
18300shlibpath_overrides_runpath=unknown
18301version_type=none
18302dynamic_linker="$host_os ld.so"
18303sys_lib_dlsearch_path_spec="/lib /usr/lib"
18304need_lib_prefix=unknown
18305hardcode_into_libs=no
18306
18307# when you set need_version to no, make sure it does not cause -set_version
18308# flags to be left without arguments
18309need_version=unknown
18310
18311case $host_os in
18312aix3*)
18313 version_type=linux
18314 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18315 shlibpath_var=LIBPATH
18316
18317 # AIX 3 has no versioning support, so we append a major version to the name.
18318 soname_spec='${libname}${release}${shared_ext}$major'
18319 ;;
18320
18321aix[4-9]*)
18322 version_type=linux
18323 need_lib_prefix=no
18324 need_version=no
18325 hardcode_into_libs=yes
18326 if test "$host_cpu" = ia64; then
18327 # AIX 5 supports IA64
18328 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18329 shlibpath_var=LD_LIBRARY_PATH
18330 else
18331 # With GCC up to 2.95.x, collect2 would create an import file
18332 # for dependence libraries. The import file would start with
18333 # the line `#! .'. This would cause the generated library to
18334 # depend on `.', always an invalid library. This was fixed in
18335 # development snapshots of GCC prior to 3.0.
18336 case $host_os in
18337 aix4 | aix4.[01] | aix4.[01].*)
18338 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18339 echo ' yes '
18340 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
18341 :
18342 else
18343 can_build_shared=no
18344 fi
18345 ;;
18346 esac
18347 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18348 # soname into executable. Probably we can add versioning support to
18349 # collect2, so additional links can be useful in future.
18350 if test "$aix_use_runtimelinking" = yes; then
18351 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18352 # instead of lib<name>.a to let people know that these are not
18353 # typical AIX shared libraries.
18354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18355 else
18356 # We preserve .a as extension for shared libraries through AIX4.2
18357 # and later when we are not doing run time linking.
18358 library_names_spec='${libname}${release}.a $libname.a'
18359 soname_spec='${libname}${release}${shared_ext}$major'
18360 fi
18361 shlibpath_var=LIBPATH
18362 fi
18363 ;;
18364
18365amigaos*)
18366 case $host_cpu in
18367 powerpc)
18368 # Since July 2007 AmigaOS4 officially supports .so libraries.
18369 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
18370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18371 ;;
18372 m68k)
18373 library_names_spec='$libname.ixlibrary $libname.a'
18374 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy18304f92009-11-22 15:48:26 +000018375 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 +000018376 ;;
18377 esac
18378 ;;
18379
18380beos*)
18381 library_names_spec='${libname}${shared_ext}'
18382 dynamic_linker="$host_os ld.so"
18383 shlibpath_var=LIBRARY_PATH
18384 ;;
18385
18386bsdi[45]*)
18387 version_type=linux
18388 need_version=no
18389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18390 soname_spec='${libname}${release}${shared_ext}$major'
18391 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18392 shlibpath_var=LD_LIBRARY_PATH
18393 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18394 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18395 # the default ld.so.conf also contains /usr/contrib/lib and
18396 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18397 # libtool to hard-code these into programs
18398 ;;
18399
18400cygwin* | mingw* | pw32* | cegcc*)
18401 version_type=windows
18402 shrext_cmds=".dll"
18403 need_version=no
18404 need_lib_prefix=no
18405
18406 case $GCC,$host_os in
18407 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
18408 library_names_spec='$libname.dll.a'
18409 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18410 postinstall_cmds='base_file=`basename \${file}`~
18411 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
18412 dldir=$destdir/`dirname \$dlpath`~
18413 test -d \$dldir || mkdir -p \$dldir~
18414 $install_prog $dir/$dlname \$dldir/$dlname~
18415 chmod a+x \$dldir/$dlname~
18416 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18417 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18418 fi'
18419 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18420 dlpath=$dir/\$dldll~
18421 $RM \$dlpath'
18422 shlibpath_overrides_runpath=yes
18423
18424 case $host_os in
18425 cygwin*)
18426 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18427 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy18304f92009-11-22 15:48:26 +000018428 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
cristy3ed852e2009-09-05 21:47:34 +000018429 ;;
18430 mingw* | cegcc*)
18431 # MinGW DLLs use traditional 'lib' prefix
18432 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy18304f92009-11-22 15:48:26 +000018433 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18434 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
18435 # It is most probably a Windows format PATH printed by
18436 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18437 # path with ; separators, and with drive letters. We can handle the
18438 # drive letters (cygwin fileutils understands them), so leave them,
18439 # especially as we might pass files found there to a mingw objdump,
18440 # which wouldn't understand a cygwinified path. Ahh.
18441 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18442 else
18443 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18444 fi
cristy3ed852e2009-09-05 21:47:34 +000018445 ;;
18446 pw32*)
18447 # pw32 DLLs use 'pw' prefix rather than 'lib'
18448 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18449 ;;
18450 esac
18451 ;;
18452
18453 *)
18454 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18455 ;;
18456 esac
18457 dynamic_linker='Win32 ld.exe'
18458 # FIXME: first we should search . and the directory the executable is in
18459 shlibpath_var=PATH
18460 ;;
18461
18462darwin* | rhapsody*)
18463 dynamic_linker="$host_os dyld"
18464 version_type=darwin
18465 need_lib_prefix=no
18466 need_version=no
18467 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18468 soname_spec='${libname}${release}${major}$shared_ext'
18469 shlibpath_overrides_runpath=yes
18470 shlibpath_var=DYLD_LIBRARY_PATH
18471 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18472
18473 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18474 ;;
18475
18476dgux*)
18477 version_type=linux
18478 need_lib_prefix=no
18479 need_version=no
18480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18481 soname_spec='${libname}${release}${shared_ext}$major'
18482 shlibpath_var=LD_LIBRARY_PATH
18483 ;;
18484
18485freebsd1*)
18486 dynamic_linker=no
18487 ;;
18488
18489freebsd* | dragonfly*)
18490 # DragonFly does not have aout. When/if they implement a new
18491 # versioning mechanism, adjust this.
18492 if test -x /usr/bin/objformat; then
18493 objformat=`/usr/bin/objformat`
18494 else
18495 case $host_os in
18496 freebsd[123]*) objformat=aout ;;
18497 *) objformat=elf ;;
18498 esac
18499 fi
18500 version_type=freebsd-$objformat
18501 case $version_type in
18502 freebsd-elf*)
18503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18504 need_version=no
18505 need_lib_prefix=no
18506 ;;
18507 freebsd-*)
18508 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18509 need_version=yes
18510 ;;
18511 esac
18512 shlibpath_var=LD_LIBRARY_PATH
18513 case $host_os in
18514 freebsd2*)
18515 shlibpath_overrides_runpath=yes
18516 ;;
18517 freebsd3.[01]* | freebsdelf3.[01]*)
18518 shlibpath_overrides_runpath=yes
18519 hardcode_into_libs=yes
18520 ;;
18521 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18522 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18523 shlibpath_overrides_runpath=no
18524 hardcode_into_libs=yes
18525 ;;
18526 *) # from 4.6 on, and DragonFly
18527 shlibpath_overrides_runpath=yes
18528 hardcode_into_libs=yes
18529 ;;
18530 esac
18531 ;;
18532
18533gnu*)
18534 version_type=linux
18535 need_lib_prefix=no
18536 need_version=no
18537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18538 soname_spec='${libname}${release}${shared_ext}$major'
18539 shlibpath_var=LD_LIBRARY_PATH
18540 hardcode_into_libs=yes
18541 ;;
18542
18543hpux9* | hpux10* | hpux11*)
18544 # Give a soname corresponding to the major version so that dld.sl refuses to
18545 # link against other versions.
18546 version_type=sunos
18547 need_lib_prefix=no
18548 need_version=no
18549 case $host_cpu in
18550 ia64*)
18551 shrext_cmds='.so'
18552 hardcode_into_libs=yes
18553 dynamic_linker="$host_os dld.so"
18554 shlibpath_var=LD_LIBRARY_PATH
18555 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18557 soname_spec='${libname}${release}${shared_ext}$major'
18558 if test "X$HPUX_IA64_MODE" = X32; then
18559 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18560 else
18561 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18562 fi
18563 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18564 ;;
18565 hppa*64*)
18566 shrext_cmds='.sl'
18567 hardcode_into_libs=yes
18568 dynamic_linker="$host_os dld.sl"
18569 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18570 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18571 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18572 soname_spec='${libname}${release}${shared_ext}$major'
18573 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18574 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18575 ;;
18576 *)
18577 shrext_cmds='.sl'
18578 dynamic_linker="$host_os dld.sl"
18579 shlibpath_var=SHLIB_PATH
18580 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18582 soname_spec='${libname}${release}${shared_ext}$major'
18583 ;;
18584 esac
cristy18304f92009-11-22 15:48:26 +000018585 # HP-UX runs *really* slowly unless shared libraries are mode 555.
cristy3ed852e2009-09-05 21:47:34 +000018586 postinstall_cmds='chmod 555 $lib'
18587 ;;
18588
18589interix[3-9]*)
18590 version_type=linux
18591 need_lib_prefix=no
18592 need_version=no
18593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18594 soname_spec='${libname}${release}${shared_ext}$major'
18595 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18596 shlibpath_var=LD_LIBRARY_PATH
18597 shlibpath_overrides_runpath=no
18598 hardcode_into_libs=yes
18599 ;;
18600
18601irix5* | irix6* | nonstopux*)
18602 case $host_os in
18603 nonstopux*) version_type=nonstopux ;;
18604 *)
18605 if test "$lt_cv_prog_gnu_ld" = yes; then
18606 version_type=linux
18607 else
18608 version_type=irix
18609 fi ;;
18610 esac
18611 need_lib_prefix=no
18612 need_version=no
18613 soname_spec='${libname}${release}${shared_ext}$major'
18614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18615 case $host_os in
18616 irix5* | nonstopux*)
18617 libsuff= shlibsuff=
18618 ;;
18619 *)
18620 case $LD in # libtool.m4 will add one of these switches to LD
18621 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18622 libsuff= shlibsuff= libmagic=32-bit;;
18623 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18624 libsuff=32 shlibsuff=N32 libmagic=N32;;
18625 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18626 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18627 *) libsuff= shlibsuff= libmagic=never-match;;
18628 esac
18629 ;;
18630 esac
18631 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18632 shlibpath_overrides_runpath=no
18633 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18634 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18635 hardcode_into_libs=yes
18636 ;;
18637
18638# No shared lib support for Linux oldld, aout, or coff.
18639linux*oldld* | linux*aout* | linux*coff*)
18640 dynamic_linker=no
18641 ;;
18642
18643# This must be Linux ELF.
cristy18304f92009-11-22 15:48:26 +000018644linux* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000018645 version_type=linux
18646 need_lib_prefix=no
18647 need_version=no
18648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18649 soname_spec='${libname}${release}${shared_ext}$major'
18650 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18651 shlibpath_var=LD_LIBRARY_PATH
18652 shlibpath_overrides_runpath=no
18653 # Some binutils ld are patched to set DT_RUNPATH
cristy18304f92009-11-22 15:48:26 +000018654 save_LDFLAGS=$LDFLAGS
18655 save_libdir=$libdir
18656 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
18657 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
18658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000018659/* end confdefs.h. */
18660
18661int
18662main ()
18663{
18664
18665 ;
18666 return 0;
18667}
18668_ACEOF
cristy8b350f62009-11-15 23:12:43 +000018669if ac_fn_cxx_try_link "$LINENO"; then :
18670 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy18304f92009-11-22 15:48:26 +000018671 shlibpath_overrides_runpath=yes
cristy3ed852e2009-09-05 21:47:34 +000018672fi
cristy3ed852e2009-09-05 21:47:34 +000018673fi
cristy8b350f62009-11-15 23:12:43 +000018674rm -f core conftest.err conftest.$ac_objext \
18675 conftest$ac_exeext conftest.$ac_ext
cristy18304f92009-11-22 15:48:26 +000018676 LDFLAGS=$save_LDFLAGS
18677 libdir=$save_libdir
cristy3ed852e2009-09-05 21:47:34 +000018678
18679 # This implies no fast_install, which is unacceptable.
18680 # Some rework will be needed to allow for fast_install
18681 # before this can be enabled.
18682 hardcode_into_libs=yes
18683
cristy679ed8e2009-12-05 02:37:41 +000018684 # Add ABI-specific directories to the system library path.
18685 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
18686
cristy3ed852e2009-09-05 21:47:34 +000018687 # Append ld.so.conf contents to the search path
18688 if test -f /etc/ld.so.conf; then
cristy18304f92009-11-22 15:48:26 +000018689 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 +000018690 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy3ed852e2009-09-05 21:47:34 +000018691 fi
18692
18693 # We used to test for /lib/ld.so.1 and disable shared libraries on
18694 # powerpc, because MkLinux only supported shared libraries with the
18695 # GNU dynamic linker. Since this was broken with cross compilers,
18696 # most powerpc-linux boxes support dynamic linking these days and
18697 # people can always --disable-shared, the test was removed, and we
18698 # assume the GNU/Linux dynamic linker is in use.
18699 dynamic_linker='GNU/Linux ld.so'
18700 ;;
18701
18702netbsd*)
18703 version_type=sunos
18704 need_lib_prefix=no
18705 need_version=no
18706 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18708 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18709 dynamic_linker='NetBSD (a.out) ld.so'
18710 else
18711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18712 soname_spec='${libname}${release}${shared_ext}$major'
18713 dynamic_linker='NetBSD ld.elf_so'
18714 fi
18715 shlibpath_var=LD_LIBRARY_PATH
18716 shlibpath_overrides_runpath=yes
18717 hardcode_into_libs=yes
18718 ;;
18719
18720newsos6)
18721 version_type=linux
18722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18723 shlibpath_var=LD_LIBRARY_PATH
18724 shlibpath_overrides_runpath=yes
18725 ;;
18726
18727*nto* | *qnx*)
18728 version_type=qnx
18729 need_lib_prefix=no
18730 need_version=no
18731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18732 soname_spec='${libname}${release}${shared_ext}$major'
18733 shlibpath_var=LD_LIBRARY_PATH
18734 shlibpath_overrides_runpath=no
18735 hardcode_into_libs=yes
18736 dynamic_linker='ldqnx.so'
18737 ;;
18738
18739openbsd*)
18740 version_type=sunos
18741 sys_lib_dlsearch_path_spec="/usr/lib"
18742 need_lib_prefix=no
18743 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18744 case $host_os in
18745 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18746 *) need_version=no ;;
18747 esac
18748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18749 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18750 shlibpath_var=LD_LIBRARY_PATH
18751 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18752 case $host_os in
18753 openbsd2.[89] | openbsd2.[89].*)
18754 shlibpath_overrides_runpath=no
18755 ;;
18756 *)
18757 shlibpath_overrides_runpath=yes
18758 ;;
18759 esac
18760 else
18761 shlibpath_overrides_runpath=yes
18762 fi
18763 ;;
18764
18765os2*)
18766 libname_spec='$name'
18767 shrext_cmds=".dll"
18768 need_lib_prefix=no
18769 library_names_spec='$libname${shared_ext} $libname.a'
18770 dynamic_linker='OS/2 ld.exe'
18771 shlibpath_var=LIBPATH
18772 ;;
18773
18774osf3* | osf4* | osf5*)
18775 version_type=osf
18776 need_lib_prefix=no
18777 need_version=no
18778 soname_spec='${libname}${release}${shared_ext}$major'
18779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18780 shlibpath_var=LD_LIBRARY_PATH
18781 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18782 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18783 ;;
18784
18785rdos*)
18786 dynamic_linker=no
18787 ;;
18788
18789solaris*)
18790 version_type=linux
18791 need_lib_prefix=no
18792 need_version=no
18793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18794 soname_spec='${libname}${release}${shared_ext}$major'
18795 shlibpath_var=LD_LIBRARY_PATH
18796 shlibpath_overrides_runpath=yes
18797 hardcode_into_libs=yes
18798 # ldd complains unless libraries are executable
18799 postinstall_cmds='chmod +x $lib'
18800 ;;
18801
18802sunos4*)
18803 version_type=sunos
18804 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18805 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18806 shlibpath_var=LD_LIBRARY_PATH
18807 shlibpath_overrides_runpath=yes
18808 if test "$with_gnu_ld" = yes; then
18809 need_lib_prefix=no
18810 fi
18811 need_version=yes
18812 ;;
18813
18814sysv4 | sysv4.3*)
18815 version_type=linux
18816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18817 soname_spec='${libname}${release}${shared_ext}$major'
18818 shlibpath_var=LD_LIBRARY_PATH
18819 case $host_vendor in
18820 sni)
18821 shlibpath_overrides_runpath=no
18822 need_lib_prefix=no
18823 runpath_var=LD_RUN_PATH
18824 ;;
18825 siemens)
18826 need_lib_prefix=no
18827 ;;
18828 motorola)
18829 need_lib_prefix=no
18830 need_version=no
18831 shlibpath_overrides_runpath=no
18832 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18833 ;;
18834 esac
18835 ;;
18836
18837sysv4*MP*)
18838 if test -d /usr/nec ;then
18839 version_type=linux
18840 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18841 soname_spec='$libname${shared_ext}.$major'
18842 shlibpath_var=LD_LIBRARY_PATH
18843 fi
18844 ;;
18845
18846sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18847 version_type=freebsd-elf
18848 need_lib_prefix=no
18849 need_version=no
18850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18851 soname_spec='${libname}${release}${shared_ext}$major'
18852 shlibpath_var=LD_LIBRARY_PATH
18853 shlibpath_overrides_runpath=yes
18854 hardcode_into_libs=yes
18855 if test "$with_gnu_ld" = yes; then
18856 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18857 else
18858 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18859 case $host_os in
18860 sco3.2v5*)
18861 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18862 ;;
18863 esac
18864 fi
18865 sys_lib_dlsearch_path_spec='/usr/lib'
18866 ;;
18867
18868tpf*)
18869 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
18870 version_type=linux
18871 need_lib_prefix=no
18872 need_version=no
18873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18874 shlibpath_var=LD_LIBRARY_PATH
18875 shlibpath_overrides_runpath=no
18876 hardcode_into_libs=yes
18877 ;;
18878
18879uts4*)
18880 version_type=linux
18881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18882 soname_spec='${libname}${release}${shared_ext}$major'
18883 shlibpath_var=LD_LIBRARY_PATH
18884 ;;
18885
18886*)
18887 dynamic_linker=no
18888 ;;
18889esac
cristy8b350f62009-11-15 23:12:43 +000018890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
cristy3ed852e2009-09-05 21:47:34 +000018891$as_echo "$dynamic_linker" >&6; }
18892test "$dynamic_linker" = no && can_build_shared=no
18893
18894variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18895if test "$GCC" = yes; then
18896 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18897fi
18898
18899if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18900 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18901fi
18902if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18903 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18904fi
18905
18906
18907
18908
18909
18910
18911
18912
18913
18914
18915
18916
18917
18918
18919
18920
18921
18922
18923
18924
18925
18926
18927
18928
18929
18930
18931
18932
18933
18934
18935
18936
18937
18938
18939
18940
cristy8b350f62009-11-15 23:12:43 +000018941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000018942$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18943hardcode_action_CXX=
18944if test -n "$hardcode_libdir_flag_spec_CXX" ||
18945 test -n "$runpath_var_CXX" ||
18946 test "X$hardcode_automatic_CXX" = "Xyes" ; then
18947
18948 # We can hardcode non-existent directories.
18949 if test "$hardcode_direct_CXX" != no &&
18950 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18951 # have to relink, otherwise we might link with an installed library
18952 # when we should be linking with a yet-to-be-installed one
18953 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
18954 test "$hardcode_minus_L_CXX" != no; then
18955 # Linking always hardcodes the temporary library directory.
18956 hardcode_action_CXX=relink
18957 else
18958 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18959 hardcode_action_CXX=immediate
18960 fi
18961else
18962 # We cannot hardcode anything, or else we can only hardcode existing
18963 # directories.
18964 hardcode_action_CXX=unsupported
18965fi
cristy8b350f62009-11-15 23:12:43 +000018966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000018967$as_echo "$hardcode_action_CXX" >&6; }
18968
18969if test "$hardcode_action_CXX" = relink ||
18970 test "$inherit_rpath_CXX" = yes; then
18971 # Fast installation is not supported
18972 enable_fast_install=no
18973elif test "$shlibpath_overrides_runpath" = yes ||
18974 test "$enable_shared" = no; then
18975 # Fast installation is not necessary
18976 enable_fast_install=needless
18977fi
18978
18979
18980
18981
18982
18983
18984
18985 fi # test -n "$compiler"
18986
18987 CC=$lt_save_CC
18988 LDCXX=$LD
18989 LD=$lt_save_LD
18990 GCC=$lt_save_GCC
18991 with_gnu_ld=$lt_save_with_gnu_ld
18992 lt_cv_path_LDCXX=$lt_cv_path_LD
18993 lt_cv_path_LD=$lt_save_path_LD
18994 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18995 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18996fi # test "$_lt_caught_CXX_error" != yes
18997
18998ac_ext=c
18999ac_cpp='$CPP $CPPFLAGS'
19000ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19001ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19002ac_compiler_gnu=$ac_cv_c_compiler_gnu
19003
19004
19005
19006
19007
19008
19009
19010
19011
19012
19013
19014
19015
19016 ac_config_commands="$ac_config_commands libtool"
19017
19018
19019
19020
19021# Only expand once:
19022
19023
19024
19025
19026
19027# Configure libltdl
19028
19029
19030
19031
19032
19033
19034
cristy18304f92009-11-22 15:48:26 +000019035
cristy8b350f62009-11-15 23:12:43 +000019036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
cristy3ed852e2009-09-05 21:47:34 +000019037$as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019038if test "${libltdl_cv_shlibext+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019039 $as_echo_n "(cached) " >&6
19040else
19041
19042module=yes
19043eval libltdl_cv_shlibext=$shrext_cmds
19044
19045fi
cristy8b350f62009-11-15 23:12:43 +000019046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
cristy3ed852e2009-09-05 21:47:34 +000019047$as_echo "$libltdl_cv_shlibext" >&6; }
19048if test -n "$libltdl_cv_shlibext"; then
19049
19050cat >>confdefs.h <<_ACEOF
19051#define LT_MODULE_EXT "$libltdl_cv_shlibext"
19052_ACEOF
19053
19054fi
19055
cristy8b350f62009-11-15 23:12:43 +000019056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
cristy3ed852e2009-09-05 21:47:34 +000019057$as_echo_n "checking which variable specifies run-time module search path... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019058if test "${lt_cv_module_path_var+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019059 $as_echo_n "(cached) " >&6
19060else
19061 lt_cv_module_path_var="$shlibpath_var"
19062fi
cristy8b350f62009-11-15 23:12:43 +000019063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
cristy3ed852e2009-09-05 21:47:34 +000019064$as_echo "$lt_cv_module_path_var" >&6; }
19065if test -n "$lt_cv_module_path_var"; then
19066
19067cat >>confdefs.h <<_ACEOF
19068#define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
19069_ACEOF
19070
19071fi
19072
cristy8b350f62009-11-15 23:12:43 +000019073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
cristy3ed852e2009-09-05 21:47:34 +000019074$as_echo_n "checking for the default library search path... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019075if test "${lt_cv_sys_dlsearch_path+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019076 $as_echo_n "(cached) " >&6
19077else
19078 lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
19079fi
cristy8b350f62009-11-15 23:12:43 +000019080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
cristy3ed852e2009-09-05 21:47:34 +000019081$as_echo "$lt_cv_sys_dlsearch_path" >&6; }
19082if test -n "$lt_cv_sys_dlsearch_path"; then
19083 sys_dlsearch_path=
19084 for dir in $lt_cv_sys_dlsearch_path; do
19085 if test -z "$sys_dlsearch_path"; then
19086 sys_dlsearch_path="$dir"
19087 else
19088 sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
19089 fi
19090 done
19091
19092cat >>confdefs.h <<_ACEOF
19093#define LT_DLSEARCH_PATH "$sys_dlsearch_path"
19094_ACEOF
19095
19096fi
19097
19098
19099LT_DLLOADERS=
19100
19101
19102ac_ext=c
19103ac_cpp='$CPP $CPPFLAGS'
19104ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19105ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19106ac_compiler_gnu=$ac_cv_c_compiler_gnu
19107
19108
19109LIBADD_DLOPEN=
cristy8b350f62009-11-15 23:12:43 +000019110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000019111$as_echo_n "checking for library containing dlopen... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019112if test "${ac_cv_search_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019113 $as_echo_n "(cached) " >&6
19114else
19115 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000019116cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019117/* end confdefs.h. */
19118
19119/* Override any GCC internal prototype to avoid an error.
19120 Use char because int might match the return type of a GCC
19121 builtin and then its argument prototype would still apply. */
19122#ifdef __cplusplus
19123extern "C"
19124#endif
19125char dlopen ();
19126int
19127main ()
19128{
19129return dlopen ();
19130 ;
19131 return 0;
19132}
19133_ACEOF
19134for ac_lib in '' dl; do
19135 if test -z "$ac_lib"; then
19136 ac_res="none required"
19137 else
19138 ac_res=-l$ac_lib
19139 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19140 fi
cristy8b350f62009-11-15 23:12:43 +000019141 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019142 ac_cv_search_dlopen=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000019143fi
cristy8b350f62009-11-15 23:12:43 +000019144rm -f core conftest.err conftest.$ac_objext \
19145 conftest$ac_exeext
19146 if test "${ac_cv_search_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019147 break
19148fi
19149done
cristy8b350f62009-11-15 23:12:43 +000019150if test "${ac_cv_search_dlopen+set}" = set; then :
19151
cristy3ed852e2009-09-05 21:47:34 +000019152else
19153 ac_cv_search_dlopen=no
19154fi
19155rm conftest.$ac_ext
19156LIBS=$ac_func_search_save_LIBS
19157fi
cristy8b350f62009-11-15 23:12:43 +000019158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000019159$as_echo "$ac_cv_search_dlopen" >&6; }
19160ac_res=$ac_cv_search_dlopen
cristy8b350f62009-11-15 23:12:43 +000019161if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000019162 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19163
cristy8b350f62009-11-15 23:12:43 +000019164$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019165
19166 if test "$ac_cv_search_dlopen" != "none required" ; then
19167 LIBADD_DLOPEN="-ldl"
19168 fi
19169 libltdl_cv_lib_dl_dlopen="yes"
19170 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
19171else
cristy8b350f62009-11-15 23:12:43 +000019172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019173/* end confdefs.h. */
19174#if HAVE_DLFCN_H
19175# include <dlfcn.h>
19176#endif
19177
19178int
19179main ()
19180{
19181dlopen(0, 0);
19182 ;
19183 return 0;
19184}
19185_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019186if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019187
cristy8b350f62009-11-15 23:12:43 +000019188$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019189
19190 libltdl_cv_func_dlopen="yes"
19191 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
19192else
cristy8b350f62009-11-15 23:12:43 +000019193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
cristy3ed852e2009-09-05 21:47:34 +000019194$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019195if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019196 $as_echo_n "(cached) " >&6
19197else
19198 ac_check_lib_save_LIBS=$LIBS
19199LIBS="-lsvld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000019200cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019201/* end confdefs.h. */
19202
19203/* Override any GCC internal prototype to avoid an error.
19204 Use char because int might match the return type of a GCC
19205 builtin and then its argument prototype would still apply. */
19206#ifdef __cplusplus
19207extern "C"
19208#endif
19209char dlopen ();
19210int
19211main ()
19212{
19213return dlopen ();
19214 ;
19215 return 0;
19216}
19217_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019218if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019219 ac_cv_lib_svld_dlopen=yes
19220else
cristy8b350f62009-11-15 23:12:43 +000019221 ac_cv_lib_svld_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000019222fi
cristy8b350f62009-11-15 23:12:43 +000019223rm -f core conftest.err conftest.$ac_objext \
19224 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019225LIBS=$ac_check_lib_save_LIBS
19226fi
cristy8b350f62009-11-15 23:12:43 +000019227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000019228$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000019229if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019230
cristy8b350f62009-11-15 23:12:43 +000019231$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019232
19233 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
19234 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
19235fi
19236
19237fi
cristy8b350f62009-11-15 23:12:43 +000019238rm -f core conftest.err conftest.$ac_objext \
19239 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019240fi
19241
19242if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
19243then
19244 lt_save_LIBS="$LIBS"
19245 LIBS="$LIBS $LIBADD_DLOPEN"
cristy8b350f62009-11-15 23:12:43 +000019246 for ac_func in dlerror
19247do :
19248 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
19249if test "x$ac_cv_func_dlerror" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019250 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019251#define HAVE_DLERROR 1
cristy3ed852e2009-09-05 21:47:34 +000019252_ACEOF
19253
19254fi
19255done
19256
19257 LIBS="$lt_save_LIBS"
19258fi
19259
19260
19261LIBADD_SHL_LOAD=
cristy8b350f62009-11-15 23:12:43 +000019262ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
19263if test "x$ac_cv_func_shl_load" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019264
cristy8b350f62009-11-15 23:12:43 +000019265$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019266
19267 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
19268else
cristy8b350f62009-11-15 23:12:43 +000019269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
cristy3ed852e2009-09-05 21:47:34 +000019270$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019271if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019272 $as_echo_n "(cached) " >&6
19273else
19274 ac_check_lib_save_LIBS=$LIBS
19275LIBS="-ldld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000019276cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019277/* end confdefs.h. */
19278
19279/* Override any GCC internal prototype to avoid an error.
19280 Use char because int might match the return type of a GCC
19281 builtin and then its argument prototype would still apply. */
19282#ifdef __cplusplus
19283extern "C"
19284#endif
19285char shl_load ();
19286int
19287main ()
19288{
19289return shl_load ();
19290 ;
19291 return 0;
19292}
19293_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019294if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019295 ac_cv_lib_dld_shl_load=yes
19296else
cristy8b350f62009-11-15 23:12:43 +000019297 ac_cv_lib_dld_shl_load=no
cristy3ed852e2009-09-05 21:47:34 +000019298fi
cristy8b350f62009-11-15 23:12:43 +000019299rm -f core conftest.err conftest.$ac_objext \
19300 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019301LIBS=$ac_check_lib_save_LIBS
19302fi
cristy8b350f62009-11-15 23:12:43 +000019303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
cristy3ed852e2009-09-05 21:47:34 +000019304$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristy8b350f62009-11-15 23:12:43 +000019305if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019306
cristy8b350f62009-11-15 23:12:43 +000019307$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019308
19309 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
19310 LIBADD_SHL_LOAD="-ldld"
19311fi
19312
19313fi
19314
19315
19316
19317case $host_os in
19318darwin[1567].*)
19319# We only want this for pre-Mac OS X 10.4.
cristy8b350f62009-11-15 23:12:43 +000019320 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
19321if test "x$ac_cv_func__dyld_func_lookup" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019322
cristy8b350f62009-11-15 23:12:43 +000019323$as_echo "#define HAVE_DYLD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019324
19325 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
19326fi
19327
19328 ;;
19329beos*)
19330 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
19331 ;;
19332cygwin* | mingw* | os2* | pw32*)
cristy8b350f62009-11-15 23:12:43 +000019333 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
19334"
19335if test "x$ac_cv_have_decl_cygwin_conv_path" = x""yes; then :
19336 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000019337else
cristy8b350f62009-11-15 23:12:43 +000019338 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000019339fi
19340
cristy3ed852e2009-09-05 21:47:34 +000019341cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019342#define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000019343_ACEOF
19344
cristy3ed852e2009-09-05 21:47:34 +000019345 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
19346 ;;
19347esac
19348
cristy8b350f62009-11-15 23:12:43 +000019349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
cristy3ed852e2009-09-05 21:47:34 +000019350$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019351if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019352 $as_echo_n "(cached) " >&6
19353else
19354 ac_check_lib_save_LIBS=$LIBS
19355LIBS="-ldld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000019356cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019357/* end confdefs.h. */
19358
19359/* Override any GCC internal prototype to avoid an error.
19360 Use char because int might match the return type of a GCC
19361 builtin and then its argument prototype would still apply. */
19362#ifdef __cplusplus
19363extern "C"
19364#endif
19365char dld_link ();
19366int
19367main ()
19368{
19369return dld_link ();
19370 ;
19371 return 0;
19372}
19373_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019374if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019375 ac_cv_lib_dld_dld_link=yes
19376else
cristy8b350f62009-11-15 23:12:43 +000019377 ac_cv_lib_dld_dld_link=no
cristy3ed852e2009-09-05 21:47:34 +000019378fi
cristy8b350f62009-11-15 23:12:43 +000019379rm -f core conftest.err conftest.$ac_objext \
19380 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019381LIBS=$ac_check_lib_save_LIBS
19382fi
cristy8b350f62009-11-15 23:12:43 +000019383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
cristy3ed852e2009-09-05 21:47:34 +000019384$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristy8b350f62009-11-15 23:12:43 +000019385if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019386
cristy8b350f62009-11-15 23:12:43 +000019387$as_echo "#define HAVE_DLD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019388
19389 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
19390fi
19391
19392
19393
19394
19395LT_DLPREOPEN=
19396if test -n "$LT_DLLOADERS"
19397then
19398 for lt_loader in $LT_DLLOADERS; do
19399 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
19400 done
19401
cristy8b350f62009-11-15 23:12:43 +000019402$as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019403
19404fi
19405
19406
19407LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
19408
19409
19410ac_ext=c
19411ac_cpp='$CPP $CPPFLAGS'
19412ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19413ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19414ac_compiler_gnu=$ac_cv_c_compiler_gnu
19415
19416
cristy8b350f62009-11-15 23:12:43 +000019417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
cristy3ed852e2009-09-05 21:47:34 +000019418$as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019419if test "${lt_cv_sys_symbol_underscore+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019420 $as_echo_n "(cached) " >&6
19421else
19422 lt_cv_sys_symbol_underscore=no
19423 cat > conftest.$ac_ext <<_LT_EOF
19424void nm_test_func(){}
19425int main(){nm_test_func;return 0;}
19426_LT_EOF
cristy8b350f62009-11-15 23:12:43 +000019427 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000019428 (eval $ac_compile) 2>&5
19429 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000019430 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19431 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000019432 # Now try to grab the symbols.
19433 ac_nlist=conftest.nm
cristy8b350f62009-11-15 23:12:43 +000019434 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 +000019435 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
19436 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000019437 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19438 test $ac_status = 0; } && test -s "$ac_nlist"; then
cristy3ed852e2009-09-05 21:47:34 +000019439 # See whether the symbols have a leading underscore.
19440 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
19441 lt_cv_sys_symbol_underscore=yes
19442 else
19443 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
19444 :
19445 else
19446 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
19447 fi
19448 fi
19449 else
19450 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
19451 fi
19452 else
19453 echo "configure: failed program was:" >&5
19454 cat conftest.c >&5
19455 fi
19456 rm -rf conftest*
19457
19458fi
cristy8b350f62009-11-15 23:12:43 +000019459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
cristy3ed852e2009-09-05 21:47:34 +000019460$as_echo "$lt_cv_sys_symbol_underscore" >&6; }
19461 sys_symbol_underscore=$lt_cv_sys_symbol_underscore
19462
19463
19464if test x"$lt_cv_sys_symbol_underscore" = xyes; then
19465 if test x"$libltdl_cv_func_dlopen" = xyes ||
19466 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
cristy8b350f62009-11-15 23:12:43 +000019467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
cristy3ed852e2009-09-05 21:47:34 +000019468$as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019469if test "${libltdl_cv_need_uscore+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019470 $as_echo_n "(cached) " >&6
19471else
19472 libltdl_cv_need_uscore=unknown
19473 save_LIBS="$LIBS"
19474 LIBS="$LIBS $LIBADD_DLOPEN"
19475 if test "$cross_compiling" = yes; then :
19476 libltdl_cv_need_uscore=cross
19477else
19478 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19479 lt_status=$lt_dlunknown
19480 cat > conftest.$ac_ext <<_LT_EOF
cristy0d3a6382010-04-26 00:45:55 +000019481#line 19481 "configure"
cristy3ed852e2009-09-05 21:47:34 +000019482#include "confdefs.h"
19483
19484#if HAVE_DLFCN_H
19485#include <dlfcn.h>
19486#endif
19487
19488#include <stdio.h>
19489
19490#ifdef RTLD_GLOBAL
19491# define LT_DLGLOBAL RTLD_GLOBAL
19492#else
19493# ifdef DL_GLOBAL
19494# define LT_DLGLOBAL DL_GLOBAL
19495# else
19496# define LT_DLGLOBAL 0
19497# endif
19498#endif
19499
19500/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19501 find out it does not work in some platform. */
19502#ifndef LT_DLLAZY_OR_NOW
19503# ifdef RTLD_LAZY
19504# define LT_DLLAZY_OR_NOW RTLD_LAZY
19505# else
19506# ifdef DL_LAZY
19507# define LT_DLLAZY_OR_NOW DL_LAZY
19508# else
19509# ifdef RTLD_NOW
19510# define LT_DLLAZY_OR_NOW RTLD_NOW
19511# else
19512# ifdef DL_NOW
19513# define LT_DLLAZY_OR_NOW DL_NOW
19514# else
19515# define LT_DLLAZY_OR_NOW 0
19516# endif
19517# endif
19518# endif
19519# endif
19520#endif
19521
cristy18304f92009-11-22 15:48:26 +000019522void fnord() { int i=42;}
cristy3ed852e2009-09-05 21:47:34 +000019523int main ()
19524{
19525 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19526 int status = $lt_dlunknown;
19527
19528 if (self)
19529 {
19530 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy18304f92009-11-22 15:48:26 +000019531 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
cristy3ed852e2009-09-05 21:47:34 +000019532 /* dlclose (self); */
19533 }
19534 else
19535 puts (dlerror ());
19536
19537 return status;
19538}
19539_LT_EOF
cristy8b350f62009-11-15 23:12:43 +000019540 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000019541 (eval $ac_link) 2>&5
19542 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000019543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19544 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000019545 (./conftest; exit; ) >&5 2>/dev/null
19546 lt_status=$?
19547 case x$lt_status in
19548 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
19549 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
19550 x$lt_dlunknown|x*) ;;
19551 esac
19552 else :
19553 # compilation failed
19554
19555 fi
19556fi
19557rm -fr conftest*
19558
19559 LIBS="$save_LIBS"
19560
19561fi
cristy8b350f62009-11-15 23:12:43 +000019562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
cristy3ed852e2009-09-05 21:47:34 +000019563$as_echo "$libltdl_cv_need_uscore" >&6; }
19564 fi
19565fi
19566
19567if test x"$libltdl_cv_need_uscore" = xyes; then
19568
cristy8b350f62009-11-15 23:12:43 +000019569$as_echo "#define NEED_USCORE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019570
19571fi
19572
cristy8b350f62009-11-15 23:12:43 +000019573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000019574$as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019575if test "${lt_cv_sys_dlopen_deplibs+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019576 $as_echo_n "(cached) " >&6
19577else
19578 # PORTME does your system automatically load deplibs for dlopen?
19579 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
19580 # For now, we just catch OSes we know something about -- in the
19581 # future, we'll try test this programmatically.
19582 lt_cv_sys_dlopen_deplibs=unknown
19583 case $host_os in
19584 aix3*|aix4.1.*|aix4.2.*)
19585 # Unknown whether this is true for these versions of AIX, but
19586 # we want this `case' here to explicitly catch those versions.
19587 lt_cv_sys_dlopen_deplibs=unknown
19588 ;;
19589 aix[4-9]*)
19590 lt_cv_sys_dlopen_deplibs=yes
19591 ;;
19592 amigaos*)
19593 case $host_cpu in
19594 powerpc)
19595 lt_cv_sys_dlopen_deplibs=no
19596 ;;
19597 esac
19598 ;;
19599 darwin*)
19600 # Assuming the user has installed a libdl from somewhere, this is true
19601 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
19602 lt_cv_sys_dlopen_deplibs=yes
19603 ;;
19604 freebsd* | dragonfly*)
19605 lt_cv_sys_dlopen_deplibs=yes
19606 ;;
cristy18304f92009-11-22 15:48:26 +000019607 gnu* | linux* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000019608 # GNU and its variants, using gnu ld.so (Glibc)
19609 lt_cv_sys_dlopen_deplibs=yes
19610 ;;
19611 hpux10*|hpux11*)
19612 lt_cv_sys_dlopen_deplibs=yes
19613 ;;
19614 interix*)
19615 lt_cv_sys_dlopen_deplibs=yes
19616 ;;
19617 irix[12345]*|irix6.[01]*)
19618 # Catch all versions of IRIX before 6.2, and indicate that we don't
19619 # know how it worked for any of those versions.
19620 lt_cv_sys_dlopen_deplibs=unknown
19621 ;;
19622 irix*)
19623 # The case above catches anything before 6.2, and it's known that
19624 # at 6.2 and later dlopen does load deplibs.
19625 lt_cv_sys_dlopen_deplibs=yes
19626 ;;
19627 netbsd*)
19628 lt_cv_sys_dlopen_deplibs=yes
19629 ;;
19630 openbsd*)
19631 lt_cv_sys_dlopen_deplibs=yes
19632 ;;
19633 osf[1234]*)
19634 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
19635 # it did *not* use an RPATH in a shared library to find objects the
19636 # library depends on, so we explicitly say `no'.
19637 lt_cv_sys_dlopen_deplibs=no
19638 ;;
19639 osf5.0|osf5.0a|osf5.1)
19640 # dlopen *does* load deplibs and with the right loader patch applied
19641 # it even uses RPATH in a shared library to search for shared objects
19642 # that the library depends on, but there's no easy way to know if that
19643 # patch is installed. Since this is the case, all we can really
19644 # say is unknown -- it depends on the patch being installed. If
19645 # it is, this changes to `yes'. Without it, it would be `no'.
19646 lt_cv_sys_dlopen_deplibs=unknown
19647 ;;
19648 osf*)
19649 # the two cases above should catch all versions of osf <= 5.1. Read
19650 # the comments above for what we know about them.
19651 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
19652 # is used to find them so we can finally say `yes'.
19653 lt_cv_sys_dlopen_deplibs=yes
19654 ;;
19655 qnx*)
19656 lt_cv_sys_dlopen_deplibs=yes
19657 ;;
19658 solaris*)
19659 lt_cv_sys_dlopen_deplibs=yes
19660 ;;
19661 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19662 libltdl_cv_sys_dlopen_deplibs=yes
19663 ;;
19664 esac
19665
19666fi
cristy8b350f62009-11-15 23:12:43 +000019667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
cristy3ed852e2009-09-05 21:47:34 +000019668$as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
19669if test "$lt_cv_sys_dlopen_deplibs" != yes; then
19670
cristy8b350f62009-11-15 23:12:43 +000019671$as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019672
19673fi
19674
19675:
19676
cristy3ed852e2009-09-05 21:47:34 +000019677for ac_header in argz.h
cristy8b350f62009-11-15 23:12:43 +000019678do :
19679 ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
19680"
19681if test "x$ac_cv_header_argz_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019682 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019683#define HAVE_ARGZ_H 1
cristy3ed852e2009-09-05 21:47:34 +000019684_ACEOF
19685
19686fi
19687
19688done
19689
19690
cristy8b350f62009-11-15 23:12:43 +000019691ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
cristy3ed852e2009-09-05 21:47:34 +000019692# include <argz.h>
19693#endif
cristy8b350f62009-11-15 23:12:43 +000019694"
19695if test "x$ac_cv_type_error_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019696
19697cat >>confdefs.h <<_ACEOF
19698#define HAVE_ERROR_T 1
19699_ACEOF
19700
19701
19702else
19703
cristy8b350f62009-11-15 23:12:43 +000019704$as_echo "#define error_t int" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019705
19706
cristy8b350f62009-11-15 23:12:43 +000019707$as_echo "#define __error_t_defined 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019708
19709fi
19710
19711
19712ARGZ_H=
cristy3ed852e2009-09-05 21:47:34 +000019713for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
19714 argz_next argz_stringify
cristy8b350f62009-11-15 23:12:43 +000019715do :
19716 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19717ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19718eval as_val=\$$as_ac_var
19719 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019720 cat >>confdefs.h <<_ACEOF
19721#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19722_ACEOF
19723
19724else
19725 ARGZ_H=argz.h;
19726
19727 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
19728
19729fi
19730done
19731
19732
cristy8b350f62009-11-15 23:12:43 +000019733if test -z "$ARGZ_H"; then :
19734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
cristy3ed852e2009-09-05 21:47:34 +000019735$as_echo_n "checking if argz actually works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019736if test "${lt_cv_sys_argz_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019737 $as_echo_n "(cached) " >&6
19738else
19739 case $host_os in #(
19740 *cygwin*)
19741 lt_cv_sys_argz_works=no
19742 if test "$cross_compiling" != no; then
19743 lt_cv_sys_argz_works="guessing no"
19744 else
19745 lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
19746 save_IFS=$IFS
19747 IFS=-.
19748 set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
19749 IFS=$save_IFS
19750 lt_os_major=${2-0}
19751 lt_os_minor=${3-0}
19752 lt_os_micro=${4-0}
19753 if test "$lt_os_major" -gt 1 \
19754 || { test "$lt_os_major" -eq 1 \
19755 && { test "$lt_os_minor" -gt 5 \
19756 || { test "$lt_os_minor" -eq 5 \
19757 && test "$lt_os_micro" -gt 24; }; }; }; then
19758 lt_cv_sys_argz_works=yes
19759 fi
19760 fi
19761 ;; #(
19762 *) lt_cv_sys_argz_works=yes ;;
19763 esac
19764fi
cristy8b350f62009-11-15 23:12:43 +000019765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000019766$as_echo "$lt_cv_sys_argz_works" >&6; }
cristy8b350f62009-11-15 23:12:43 +000019767 if test $lt_cv_sys_argz_works = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019768
cristy8b350f62009-11-15 23:12:43 +000019769$as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019770
19771else
19772 ARGZ_H=argz.h
19773
19774
19775 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
19776
19777fi
cristy3ed852e2009-09-05 21:47:34 +000019778fi
19779
19780
19781
cristy8b350f62009-11-15 23:12:43 +000019782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000019783$as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019784if test "${libltdl_cv_preloaded_symbols+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019785 $as_echo_n "(cached) " >&6
19786else
19787 if test -n "$lt_cv_sys_global_symbol_pipe"; then
19788 libltdl_cv_preloaded_symbols=yes
19789 else
19790 libltdl_cv_preloaded_symbols=no
19791 fi
19792
19793fi
cristy8b350f62009-11-15 23:12:43 +000019794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
cristy3ed852e2009-09-05 21:47:34 +000019795$as_echo "$libltdl_cv_preloaded_symbols" >&6; }
19796if test x"$libltdl_cv_preloaded_symbols" = xyes; then
19797
cristy8b350f62009-11-15 23:12:43 +000019798$as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019799
19800fi
19801
19802# Set options
19803
19804
19805
19806
19807
19808
19809
19810
19811
19812
19813
19814# Check whether --with-included_ltdl was given.
cristy8b350f62009-11-15 23:12:43 +000019815if test "${with_included_ltdl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019816 withval=$with_included_ltdl;
19817fi
19818
19819
19820if test "x$with_included_ltdl" != xyes; then
19821 # We are not being forced to use the included libltdl sources, so
19822 # decide whether there is a useful installed version we can use.
cristy8b350f62009-11-15 23:12:43 +000019823 ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
cristy3ed852e2009-09-05 21:47:34 +000019824
cristy8b350f62009-11-15 23:12:43 +000019825"
19826if test "x$ac_cv_header_ltdl_h" = x""yes; then :
19827 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 +000019828 #include <ltdl.h>
cristy8b350f62009-11-15 23:12:43 +000019829"
19830if test "x$ac_cv_have_decl_lt_dlinterface_register" = x""yes; then :
19831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
cristy3ed852e2009-09-05 21:47:34 +000019832$as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019833if test "${ac_cv_lib_ltdl_lt_dladvise_preload+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019834 $as_echo_n "(cached) " >&6
19835else
19836 ac_check_lib_save_LIBS=$LIBS
19837LIBS="-lltdl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000019838cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019839/* end confdefs.h. */
19840
19841/* Override any GCC internal prototype to avoid an error.
19842 Use char because int might match the return type of a GCC
19843 builtin and then its argument prototype would still apply. */
19844#ifdef __cplusplus
19845extern "C"
19846#endif
19847char lt_dladvise_preload ();
19848int
19849main ()
19850{
19851return lt_dladvise_preload ();
19852 ;
19853 return 0;
19854}
19855_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019856if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019857 ac_cv_lib_ltdl_lt_dladvise_preload=yes
19858else
cristy8b350f62009-11-15 23:12:43 +000019859 ac_cv_lib_ltdl_lt_dladvise_preload=no
cristy3ed852e2009-09-05 21:47:34 +000019860fi
cristy8b350f62009-11-15 23:12:43 +000019861rm -f core conftest.err conftest.$ac_objext \
19862 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019863LIBS=$ac_check_lib_save_LIBS
19864fi
cristy8b350f62009-11-15 23:12:43 +000019865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
cristy3ed852e2009-09-05 21:47:34 +000019866$as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
cristy8b350f62009-11-15 23:12:43 +000019867if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019868 with_included_ltdl=no
19869else
19870 with_included_ltdl=yes
19871fi
19872
19873else
19874 with_included_ltdl=yes
19875fi
19876
19877else
19878 with_included_ltdl=yes
19879fi
19880
19881
19882fi
19883
19884
19885
19886
19887# Check whether --with-ltdl_include was given.
cristy8b350f62009-11-15 23:12:43 +000019888if test "${with_ltdl_include+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019889 withval=$with_ltdl_include;
19890fi
19891
19892
19893if test -n "$with_ltdl_include"; then
19894 if test -f "$with_ltdl_include/ltdl.h"; then :
19895 else
cristy8b350f62009-11-15 23:12:43 +000019896 as_fn_error "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000019897 fi
19898else
19899 with_ltdl_include=no
19900fi
19901
19902
19903# Check whether --with-ltdl_lib was given.
cristy8b350f62009-11-15 23:12:43 +000019904if test "${with_ltdl_lib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019905 withval=$with_ltdl_lib;
19906fi
19907
19908
19909if test -n "$with_ltdl_lib"; then
19910 if test -f "$with_ltdl_lib/libltdl.la"; then :
19911 else
cristy8b350f62009-11-15 23:12:43 +000019912 as_fn_error "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000019913 fi
19914else
19915 with_ltdl_lib=no
19916fi
19917
19918case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
19919 ,yes,no,no,)
19920 case $enable_ltdl_convenience in
cristy8b350f62009-11-15 23:12:43 +000019921 no) as_fn_error "this package needs a convenience libltdl" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000019922 "") enable_ltdl_convenience=yes
19923 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
19924esac
19925LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
19926LTDLDEPS=$LIBLTDL
19927LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
19928
19929
19930
19931
19932
19933# For backwards non-gettext consistent compatibility...
19934INCLTDL="$LTDLINCL"
19935
19936
19937 ;;
19938 ,no,no,no,)
19939 # If the included ltdl is not to be used, then use the
19940 # preinstalled libltdl we found.
19941
cristy8b350f62009-11-15 23:12:43 +000019942$as_echo "#define HAVE_LTDL 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019943
19944 LIBLTDL=-lltdl
19945 LTDLDEPS=
19946 LTDLINCL=
19947 ;;
19948 ,no*,no,*)
cristy8b350f62009-11-15 23:12:43 +000019949 as_fn_error "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000019950 ;;
19951 *) with_included_ltdl=no
19952 LIBLTDL="-L$with_ltdl_lib -lltdl"
19953 LTDLDEPS=
19954 LTDLINCL="-I$with_ltdl_include"
19955 ;;
19956esac
19957INCLTDL="$LTDLINCL"
19958
19959# Report our decision...
cristy8b350f62009-11-15 23:12:43 +000019960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
cristy3ed852e2009-09-05 21:47:34 +000019961$as_echo_n "checking where to find libltdl headers... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000019963$as_echo "$LTDLINCL" >&6; }
cristy8b350f62009-11-15 23:12:43 +000019964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
cristy3ed852e2009-09-05 21:47:34 +000019965$as_echo_n "checking where to find libltdl library... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
cristy3ed852e2009-09-05 21:47:34 +000019967$as_echo "$LIBLTDL" >&6; }
19968
19969
19970
19971# Check whether --enable-ltdl-install was given.
cristy8b350f62009-11-15 23:12:43 +000019972if test "${enable_ltdl_install+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019973 enableval=$enable_ltdl_install;
19974fi
19975
19976
19977case ,${enable_ltdl_install},${enable_ltdl_convenience} in
19978 *yes*) ;;
19979 *) enable_ltdl_convenience=yes ;;
19980esac
19981
19982 if test x"${enable_ltdl_install-no}" != xno; then
19983 INSTALL_LTDL_TRUE=
19984 INSTALL_LTDL_FALSE='#'
19985else
19986 INSTALL_LTDL_TRUE='#'
19987 INSTALL_LTDL_FALSE=
19988fi
19989
19990 if test x"${enable_ltdl_convenience-no}" != xno; then
19991 CONVENIENCE_LTDL_TRUE=
19992 CONVENIENCE_LTDL_FALSE='#'
19993else
19994 CONVENIENCE_LTDL_TRUE='#'
19995 CONVENIENCE_LTDL_FALSE=
19996fi
19997
19998
19999
20000
20001
20002
cristy18304f92009-11-22 15:48:26 +000020003
cristy3ed852e2009-09-05 21:47:34 +000020004# In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
20005# the user used. This is so that ltdl.h can pick up the parent projects
20006# config.h file, The first file in AC_CONFIG_HEADERS must contain the
20007# definitions required by ltdl.c.
20008# FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
20009
20010
20011
cristy3ed852e2009-09-05 21:47:34 +000020012for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
cristy8b350f62009-11-15 23:12:43 +000020013do :
20014 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20015ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
20016"
20017eval as_val=\$$as_ac_Header
20018 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020019 cat >>confdefs.h <<_ACEOF
20020#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20021_ACEOF
20022
20023fi
20024
20025done
20026
20027
cristy3ed852e2009-09-05 21:47:34 +000020028for ac_func in closedir opendir readdir
cristy8b350f62009-11-15 23:12:43 +000020029do :
20030 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20031ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20032eval as_val=\$$as_ac_var
20033 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020034 cat >>confdefs.h <<_ACEOF
20035#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20036_ACEOF
20037
20038else
20039
20040
20041 _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
20042
20043fi
20044done
20045
cristy3ed852e2009-09-05 21:47:34 +000020046for ac_func in strlcat strlcpy
cristy8b350f62009-11-15 23:12:43 +000020047do :
20048 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20049ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20050eval as_val=\$$as_ac_var
20051 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020052 cat >>confdefs.h <<_ACEOF
20053#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20054_ACEOF
20055
20056else
20057
20058
20059 _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
20060
20061fi
20062done
20063
20064
20065
20066cat >>confdefs.h <<_ACEOF
20067#define LT_LIBEXT "$libext"
20068_ACEOF
20069
20070
20071name=ltdl
20072LTDLOPEN=`eval "\\$ECHO \"$libname_spec\""`
20073
20074
20075
20076
20077
20078
20079
20080
20081# Only expand once:
20082
20083
20084
20085# Check to see if building shared libraries
20086libtool_build_shared_libs='no'
20087if test "$enable_shared" = 'yes'; then
20088 libtool_build_shared_libs='yes'
20089fi
20090
20091# Check to see if building static libraries
20092libtool_build_static_libs='no'
20093if test "$enable_static" = 'yes'; then
20094 libtool_build_static_libs='yes'
20095fi
20096
cristyfa112112010-01-04 17:48:07 +000020097 if test "${libtool_build_shared_libs}" = 'yes'; then
20098 WITH_SHARED_LIBS_TRUE=
20099 WITH_SHARED_LIBS_FALSE='#'
20100else
20101 WITH_SHARED_LIBS_TRUE='#'
20102 WITH_SHARED_LIBS_FALSE=
cristy3ed852e2009-09-05 21:47:34 +000020103fi
20104
20105#
20106# Enable support for building loadable modules
20107#
20108
20109# Check whether --with-modules was given.
cristy8b350f62009-11-15 23:12:43 +000020110if test "${with_modules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020111 withval=$with_modules; with_modules=$withval
20112else
cristy5a1cefd2010-01-06 20:42:35 +000020113 with_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000020114fi
20115
20116
20117# Only allow building loadable modules if we are building shared libraries
20118if test "$with_modules" != 'no' ; then
20119 if test "$libtool_build_shared_libs" = 'no'; then
cristy8b350f62009-11-15 23:12:43 +000020120 { $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 +000020121$as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
20122 with_modules='no'
20123 fi
20124fi
20125if test "$with_modules" != 'no'; then
20126
cristy8b350f62009-11-15 23:12:43 +000020127$as_echo "#define BUILD_MODULES 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020128
20129fi
20130 if test "$with_modules" != 'no'; then
20131 WITH_MODULES_TRUE=
20132 WITH_MODULES_FALSE='#'
20133else
20134 WITH_MODULES_TRUE='#'
20135 WITH_MODULES_FALSE=
20136fi
20137
20138
20139# Enable building/use of libltdl if we are building shared libraries regardless
20140# of whether modules are built or not.
20141with_ltdl='no'
20142if test "$libtool_build_shared_libs" != 'no'; then
20143 with_ltdl='yes'
20144fi
20145
20146 if test "$with_ltdl" != 'no'; then
20147 WITH_LTDL_TRUE=
20148 WITH_LTDL_FALSE='#'
20149else
20150 WITH_LTDL_TRUE='#'
20151 WITH_LTDL_FALSE=
20152fi
20153
20154if test "$with_ltdl" != 'no'; then
20155
cristy8b350f62009-11-15 23:12:43 +000020156$as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020157
20158
20159 # Set DLLDFLAGS
20160 if test X"$enable_shared" = Xyes; then
20161 DLLDFLAGS=-export-dynamic
20162
20163 fi
20164fi
20165
20166# Enable build using delegate libraries built in subdirectories rather than installed
cristy5850e4b2010-01-08 14:28:24 +000020167# delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms png tiff ttf wmf xml zlib)
cristy3ed852e2009-09-05 21:47:34 +000020168# Check whether --enable-delegate-build was given.
cristy8b350f62009-11-15 23:12:43 +000020169if test "${enable_delegate_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020170 enableval=$enable_delegate_build; enable_delegate_build=$enableval
20171else
20172 enable_delegate_build='no'
20173fi
20174
20175
20176# Check whether --enable-deprecated was given.
cristy8b350f62009-11-15 23:12:43 +000020177if test "${enable_deprecated+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020178 enableval=$enable_deprecated; enable_deprecated=$enableval
20179else
20180 enable_deprecated='no'
20181fi
20182
20183
20184if test "$enable_deprecated" = 'yes'; then
20185
cristy8b350f62009-11-15 23:12:43 +000020186$as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020187
20188else
20189 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
20190fi
20191
20192# Build a version of ImageMagick which operates uninstalled.
20193# Used to build distributions located via MAGICK_HOME / executable path
20194# Check whether --enable-installed was given.
cristy8b350f62009-11-15 23:12:43 +000020195if test "${enable_installed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020196 enableval=$enable_installed; enable_installed=$enableval
20197else
20198 enable_installed='yes'
20199fi
20200
20201
20202if test "$enable_installed" = 'yes'; then
20203
cristy8b350f62009-11-15 23:12:43 +000020204$as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020205
20206else
20207 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
20208fi
20209
20210# Permit enciphering and deciphering image pixels.
20211# Check whether --enable-cipher was given.
cristy8b350f62009-11-15 23:12:43 +000020212if test "${enable_cipher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020213 enableval=$enable_cipher; enable_cipher=$enableval
20214else
20215 enable_cipher='yes'
20216fi
20217
20218
20219if test "$enable_cipher" = 'yes'; then
20220
cristy8b350f62009-11-15 23:12:43 +000020221$as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020222
20223fi
20224
20225# Build an embeddable version of ImageMagick.
20226# Check whether --enable-embeddable was given.
cristy8b350f62009-11-15 23:12:43 +000020227if test "${enable_embeddable+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020228 enableval=$enable_embeddable; enable_embeddable=$enableval
20229else
20230 enable_embeddable='no'
20231fi
20232
20233
20234if test "$enable_embeddable" = 'yes'; then
20235
cristy8b350f62009-11-15 23:12:43 +000020236$as_echo "#define EMBEDDABLE_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020237
20238fi
20239
20240# Build a high dynamic range version of ImageMagick.
20241# Check whether --enable-hdri was given.
cristy8b350f62009-11-15 23:12:43 +000020242if test "${enable_hdri+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020243 enableval=$enable_hdri; enable_hdri=$enableval
20244else
20245 enable_hdri='no'
20246fi
20247
20248
20249MAGICK_HDRI=""
20250if test "$enable_hdri" = 'yes'; then
20251 MAGICK_HDRI="HDRI"
20252
cristy8b350f62009-11-15 23:12:43 +000020253$as_echo "#define HDRI_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020254
20255fi
20256
cristy3ed852e2009-09-05 21:47:34 +000020257# Build a version of ImageMagick with assert statements.
20258# Check whether --enable-assert was given.
cristy8b350f62009-11-15 23:12:43 +000020259if test "${enable_assert+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020260 enableval=$enable_assert; enable_assert=$enableval
20261else
20262 enable_assert='yes'
20263fi
20264
20265
20266if test "$enable_assert" = 'no'; then
20267
cristy8b350f62009-11-15 23:12:43 +000020268$as_echo "#define NDEBUG 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020269
20270fi
20271
20272# Add configure option --enable-maintainer-mode which enables dependency
20273# checking and generation useful to package maintainers. This is made an
20274# option to avoid confusing end users.
20275
cristy8b350f62009-11-15 23:12:43 +000020276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
cristy3ed852e2009-09-05 21:47:34 +000020277$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
20278 # Check whether --enable-maintainer-mode was given.
cristy8b350f62009-11-15 23:12:43 +000020279if test "${enable_maintainer_mode+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020280 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
20281else
20282 USE_MAINTAINER_MODE=no
20283fi
20284
cristy8b350f62009-11-15 23:12:43 +000020285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
cristy3ed852e2009-09-05 21:47:34 +000020286$as_echo "$USE_MAINTAINER_MODE" >&6; }
20287 if test $USE_MAINTAINER_MODE = yes; then
20288 MAINTAINER_MODE_TRUE=
20289 MAINTAINER_MODE_FALSE='#'
20290else
20291 MAINTAINER_MODE_TRUE='#'
20292 MAINTAINER_MODE_FALSE=
20293fi
20294
20295 MAINT=$MAINTAINER_MODE_TRUE
20296
20297
20298
20299
20300# Enable ccmalloc memory debugging support
20301# Check whether --enable-ccmalloc was given.
cristy8b350f62009-11-15 23:12:43 +000020302if test "${enable_ccmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020303 enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
20304else
20305 enable_ccmalloc='no'
20306fi
20307
20308
20309# Enable Electric Fence memory debugging support
20310# Check whether --enable-efence was given.
cristy8b350f62009-11-15 23:12:43 +000020311if test "${enable_efence+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020312 enableval=$enable_efence; enable_efence=$enableval
20313else
20314 enable_efence='no'
20315fi
20316
20317
20318# Enable prof-based profiling support
20319# Check whether --enable-prof was given.
cristy8b350f62009-11-15 23:12:43 +000020320if test "${enable_prof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020321 enableval=$enable_prof; enable_prof=$enableval
20322else
20323 enable_prof='no'
20324fi
20325
20326
20327# Enable gprof-based profiling support
20328# Check whether --enable-gprof was given.
cristy8b350f62009-11-15 23:12:43 +000020329if test "${enable_gprof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020330 enableval=$enable_gprof; enable_gprof=$enableval
20331else
20332 enable_gprof='no'
20333fi
20334
20335
20336# Enable gcov-based profiling support
20337# Check whether --enable-gcov was given.
cristy8b350f62009-11-15 23:12:43 +000020338if test "${enable_gcov+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020339 enableval=$enable_gcov; enable_gcov=$enableval
20340else
20341 enable_gcov='no'
20342fi
20343
20344
20345enable_profiling='no'
20346if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
20347 enable_profiling='yes'
20348 if test "$libtool_build_shared_libs" = 'yes'; then
20349 echo "Warning: Can not profile code using shared libraries"
20350 fi
20351fi
20352
20353# Magick API method prefix
20354
20355# Check whether --with-method-prefix was given.
cristy8b350f62009-11-15 23:12:43 +000020356if test "${with_method_prefix+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020357 withval=$with_method_prefix; with_method_prefix=$enableval
20358else
20359 with_method_prefix=''
20360fi
20361
20362
20363if test "$with_method_prefix" != ''; then
20364
20365cat >>confdefs.h <<_ACEOF
20366#define NAMESPACE_PREFIX $with_method_prefix
20367_ACEOF
20368
20369fi
20370
20371# Number of bits in a Quantum
20372
20373# Check whether --with-quantum-depth was given.
cristy8b350f62009-11-15 23:12:43 +000020374if test "${with_quantum_depth+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020375 withval=$with_quantum_depth; with_quantum_depth=$withval
20376else
20377 with_quantum_depth=16
20378fi
20379
20380
20381if test "$with_quantum_depth" != '8'; then
20382 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
20383fi
20384
20385case "${with_quantum_depth}" in
20386 8 ) ;;
20387 16 ) ;;
20388 32 ) ;;
20389 64 ) ;;
cristy8b350f62009-11-15 23:12:43 +000020390 * ) { as_fn_set_status 16
20391as_fn_error "\"Pixel quantum depth must have value of 8" "$LINENO" 5; } ;;
cristy3ed852e2009-09-05 21:47:34 +000020392esac
20393QUANTUM_DEPTH="$with_quantum_depth"
20394
20395cat >>confdefs.h <<_ACEOF
20396#define QUANTUM_DEPTH $QUANTUM_DEPTH
20397_ACEOF
20398
20399
20400# Set pixel cache threshold
20401
20402# Check whether --with-cache was given.
cristy8b350f62009-11-15 23:12:43 +000020403if test "${with_cache+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020404 withval=$with_cache; with_cache=$withval
20405else
20406 with_cache=''
20407fi
20408
20409
20410if test "$with_cache" != ''; then
20411
20412cat >>confdefs.h <<_ACEOF
20413#define PixelCacheThreshold $with_cache
20414_ACEOF
20415
20416 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
20417fi
20418
20419# Disable/Enable support for full delegate paths
20420
20421# Check whether --with-frozenpaths was given.
cristy8b350f62009-11-15 23:12:43 +000020422if test "${with_frozenpaths+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020423 withval=$with_frozenpaths; with_frozenpaths=$withval
20424else
20425 with_frozenpaths='no'
20426fi
20427
20428
20429# Enable build/install of Magick++
20430
20431# Check whether --with-magick-plus-plus was given.
cristy8b350f62009-11-15 23:12:43 +000020432if test "${with_magick_plus_plus+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020433 withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
20434else
20435 with_magick_plus_plus='yes'
20436fi
20437
20438
20439# Disable build/install of PerlMagick.
20440
20441# Check whether --with-perl was given.
cristy8b350f62009-11-15 23:12:43 +000020442if test "${with_perl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020443 withval=$with_perl; with_perl=$withval
20444else
cristyb5f4e2f2010-04-25 00:49:11 +000020445 with_perl='no'
cristy3ed852e2009-09-05 21:47:34 +000020446fi
20447
20448
20449# Options to pass when configuring PerlMagick
20450
20451# Check whether --with-perl-options was given.
cristy8b350f62009-11-15 23:12:43 +000020452if test "${with_perl_options+set}" = set; then :
cristy949301e2010-01-06 01:38:40 +000020453 withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
cristy3ed852e2009-09-05 21:47:34 +000020454fi
20455
20456
cristy3ed852e2009-09-05 21:47:34 +000020457
20458# Enable umem, object-caching memory allocation library.
20459
20460# Check whether --with-umem was given.
cristy8b350f62009-11-15 23:12:43 +000020461if test "${with_umem+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020462 withval=$with_umem; with_umem=$withval
20463else
20464 with_umem='no'
20465fi
20466
20467if test "$with_umem" != 'yes' ; then
20468 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
20469fi
20470
20471#
20472# Specify path to shared libstdc++ if not in normal location
20473#
20474
20475# Check whether --with-libstdc was given.
cristy8b350f62009-11-15 23:12:43 +000020476if test "${with_libstdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020477 withval=$with_libstdc; with_libstdc=$withval
20478else
20479 with_libstdc=''
20480fi
20481
20482
20483if test "$with_libstdc" != ''; then
20484 if test -d "$with_libstdc"; then
20485 LIBSTDCLDFLAGS="-L$with_libstdc"
20486 fi
20487fi
20488
20489
20490# Does gcc required -traditional?
20491if test $ac_cv_c_compiler_gnu = yes; then
cristy8b350f62009-11-15 23:12:43 +000020492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000020493$as_echo_n "checking whether $CC needs -traditional... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020494if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020495 $as_echo_n "(cached) " >&6
20496else
20497 ac_pattern="Autoconf.*'x'"
cristy8b350f62009-11-15 23:12:43 +000020498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020499/* end confdefs.h. */
20500#include <sgtty.h>
20501Autoconf TIOCGETP
20502_ACEOF
20503if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000020504 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000020505 ac_cv_prog_gcc_traditional=yes
20506else
20507 ac_cv_prog_gcc_traditional=no
20508fi
20509rm -f conftest*
20510
20511
20512 if test $ac_cv_prog_gcc_traditional = no; then
cristy8b350f62009-11-15 23:12:43 +000020513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020514/* end confdefs.h. */
20515#include <termio.h>
20516Autoconf TCGETA
20517_ACEOF
20518if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000020519 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000020520 ac_cv_prog_gcc_traditional=yes
20521fi
20522rm -f conftest*
20523
20524 fi
20525fi
cristy8b350f62009-11-15 23:12:43 +000020526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000020527$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
20528 if test $ac_cv_prog_gcc_traditional = yes; then
20529 CC="$CC -traditional"
20530 fi
20531fi
20532
20533
20534########
20535#
20536# Set defines required to build DLLs and modules using MinGW
20537#
20538########
20539# These options are set for multi-thread DLL module build
20540# libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_
20541# module: _DLL
20542# executable/Magick++: _DLL _MAGICKMOD_
20543MODULE_EXTRA_CPPFLAGS=''
20544LIBRARY_EXTRA_CPPFLAGS=''
20545if test "${native_win32_build}" = 'yes'; then
20546 if test "${libtool_build_shared_libs}" = 'yes'; then
20547 CPPFLAGS="$CPPFLAGS -D_DLL"
20548 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
20549 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
20550 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
20551 if test "$with_modules" = 'yes'; then
20552 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
20553 else
20554 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
20555 fi
20556 else
20557 CPPFLAGS="$CPPFLAGS -D_LIB"
20558 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
20559 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
20560 fi
20561 if test "$with_threads" = 'yes'; then
20562 CPPFLAGS="$CPPFLAGS -D_MT"
20563 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
20564 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
20565 fi
20566fi
20567
20568
20569
20570# Check standard headers
cristy8b350f62009-11-15 23:12:43 +000020571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
cristy3ed852e2009-09-05 21:47:34 +000020572$as_echo_n "checking for ANSI C header files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020573if test "${ac_cv_header_stdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020574 $as_echo_n "(cached) " >&6
20575else
cristy8b350f62009-11-15 23:12:43 +000020576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020577/* end confdefs.h. */
20578#include <stdlib.h>
20579#include <stdarg.h>
20580#include <string.h>
20581#include <float.h>
20582
20583int
20584main ()
20585{
20586
20587 ;
20588 return 0;
20589}
20590_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020591if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020592 ac_cv_header_stdc=yes
20593else
cristy8b350f62009-11-15 23:12:43 +000020594 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000020595fi
cristy3ed852e2009-09-05 21:47:34 +000020596rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20597
20598if test $ac_cv_header_stdc = yes; then
20599 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000020600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020601/* end confdefs.h. */
20602#include <string.h>
20603
20604_ACEOF
20605if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000020606 $EGREP "memchr" >/dev/null 2>&1; then :
20607
cristy3ed852e2009-09-05 21:47:34 +000020608else
20609 ac_cv_header_stdc=no
20610fi
20611rm -f conftest*
20612
20613fi
20614
20615if test $ac_cv_header_stdc = yes; then
20616 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000020617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020618/* end confdefs.h. */
20619#include <stdlib.h>
20620
20621_ACEOF
20622if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000020623 $EGREP "free" >/dev/null 2>&1; then :
20624
cristy3ed852e2009-09-05 21:47:34 +000020625else
20626 ac_cv_header_stdc=no
20627fi
20628rm -f conftest*
20629
20630fi
20631
20632if test $ac_cv_header_stdc = yes; then
20633 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cristy8b350f62009-11-15 23:12:43 +000020634 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020635 :
20636else
cristy8b350f62009-11-15 23:12:43 +000020637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020638/* end confdefs.h. */
20639#include <ctype.h>
20640#include <stdlib.h>
20641#if ((' ' & 0x0FF) == 0x020)
20642# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20643# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20644#else
20645# define ISLOWER(c) \
20646 (('a' <= (c) && (c) <= 'i') \
20647 || ('j' <= (c) && (c) <= 'r') \
20648 || ('s' <= (c) && (c) <= 'z'))
20649# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20650#endif
20651
20652#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20653int
20654main ()
20655{
20656 int i;
20657 for (i = 0; i < 256; i++)
20658 if (XOR (islower (i), ISLOWER (i))
20659 || toupper (i) != TOUPPER (i))
20660 return 2;
20661 return 0;
20662}
20663_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020664if ac_fn_c_try_run "$LINENO"; then :
20665
cristy3ed852e2009-09-05 21:47:34 +000020666else
cristy8b350f62009-11-15 23:12:43 +000020667 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000020668fi
cristy8b350f62009-11-15 23:12:43 +000020669rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20670 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020671fi
20672
cristy3ed852e2009-09-05 21:47:34 +000020673fi
20674fi
cristy8b350f62009-11-15 23:12:43 +000020675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +000020676$as_echo "$ac_cv_header_stdc" >&6; }
20677if test $ac_cv_header_stdc = yes; then
20678
cristy8b350f62009-11-15 23:12:43 +000020679$as_echo "#define STDC_HEADERS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020680
20681fi
20682
20683if ! test x"$ac_cv_header_stdc" = x"yes"; then
cristy8b350f62009-11-15 23:12:43 +000020684 { $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 +000020685 header files. Compilation cannot proceed. Please install the ANSI C
20686 headers and rerun this script." >&5
20687$as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
20688 header files. Compilation cannot proceed. Please install the ANSI C
20689 headers and rerun this script." >&2;};
20690fi
cristya0b81c32010-01-22 02:54:33 +000020691
20692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
20693$as_echo_n "checking whether to enable assertions... " >&6; }
20694 # Check whether --enable-assert was given.
20695if test "${enable_assert+set}" = set; then :
20696 enableval=$enable_assert; ac_enable_assert=$enableval
20697 if test "x$enableval" = xno; then :
20698
20699$as_echo "#define NDEBUG 1" >>confdefs.h
20700
20701elif test "x$enableval" != xyes; then :
20702 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
20703$as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
20704 ac_enable_assert=yes
20705fi
20706else
20707 ac_enable_assert=yes
20708fi
20709
20710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
20711$as_echo "$ac_enable_assert" >&6; }
20712
cristy3ed852e2009-09-05 21:47:34 +000020713ac_header_dirent=no
20714for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
20715 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
cristy8b350f62009-11-15 23:12:43 +000020716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
cristy3ed852e2009-09-05 21:47:34 +000020717$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020718if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
cristy3ed852e2009-09-05 21:47:34 +000020719 $as_echo_n "(cached) " >&6
20720else
cristy8b350f62009-11-15 23:12:43 +000020721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020722/* end confdefs.h. */
20723#include <sys/types.h>
20724#include <$ac_hdr>
20725
20726int
20727main ()
20728{
20729if ((DIR *) 0)
20730return 0;
20731 ;
20732 return 0;
20733}
20734_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020735if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020736 eval "$as_ac_Header=yes"
20737else
cristy8b350f62009-11-15 23:12:43 +000020738 eval "$as_ac_Header=no"
cristy3ed852e2009-09-05 21:47:34 +000020739fi
cristy3ed852e2009-09-05 21:47:34 +000020740rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20741fi
cristy8b350f62009-11-15 23:12:43 +000020742eval ac_res=\$$as_ac_Header
20743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cristy3ed852e2009-09-05 21:47:34 +000020744$as_echo "$ac_res" >&6; }
cristy8b350f62009-11-15 23:12:43 +000020745eval as_val=\$$as_ac_Header
20746 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020747 cat >>confdefs.h <<_ACEOF
20748#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20749_ACEOF
20750
20751ac_header_dirent=$ac_hdr; break
20752fi
20753
20754done
20755# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20756if test $ac_header_dirent = dirent.h; then
cristy8b350f62009-11-15 23:12:43 +000020757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000020758$as_echo_n "checking for library containing opendir... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020759if test "${ac_cv_search_opendir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020760 $as_echo_n "(cached) " >&6
20761else
20762 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000020763cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020764/* end confdefs.h. */
20765
20766/* Override any GCC internal prototype to avoid an error.
20767 Use char because int might match the return type of a GCC
20768 builtin and then its argument prototype would still apply. */
20769#ifdef __cplusplus
20770extern "C"
20771#endif
20772char opendir ();
20773int
20774main ()
20775{
20776return opendir ();
20777 ;
20778 return 0;
20779}
20780_ACEOF
20781for ac_lib in '' dir; do
20782 if test -z "$ac_lib"; then
20783 ac_res="none required"
20784 else
20785 ac_res=-l$ac_lib
20786 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20787 fi
cristy8b350f62009-11-15 23:12:43 +000020788 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020789 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000020790fi
cristy8b350f62009-11-15 23:12:43 +000020791rm -f core conftest.err conftest.$ac_objext \
20792 conftest$ac_exeext
20793 if test "${ac_cv_search_opendir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020794 break
20795fi
20796done
cristy8b350f62009-11-15 23:12:43 +000020797if test "${ac_cv_search_opendir+set}" = set; then :
20798
cristy3ed852e2009-09-05 21:47:34 +000020799else
20800 ac_cv_search_opendir=no
20801fi
20802rm conftest.$ac_ext
20803LIBS=$ac_func_search_save_LIBS
20804fi
cristy8b350f62009-11-15 23:12:43 +000020805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000020806$as_echo "$ac_cv_search_opendir" >&6; }
20807ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000020808if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000020809 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20810
20811fi
20812
20813else
cristy8b350f62009-11-15 23:12:43 +000020814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000020815$as_echo_n "checking for library containing opendir... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020816if test "${ac_cv_search_opendir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020817 $as_echo_n "(cached) " >&6
20818else
20819 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000020820cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020821/* end confdefs.h. */
20822
20823/* Override any GCC internal prototype to avoid an error.
20824 Use char because int might match the return type of a GCC
20825 builtin and then its argument prototype would still apply. */
20826#ifdef __cplusplus
20827extern "C"
20828#endif
20829char opendir ();
20830int
20831main ()
20832{
20833return opendir ();
20834 ;
20835 return 0;
20836}
20837_ACEOF
20838for ac_lib in '' x; do
20839 if test -z "$ac_lib"; then
20840 ac_res="none required"
20841 else
20842 ac_res=-l$ac_lib
20843 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20844 fi
cristy8b350f62009-11-15 23:12:43 +000020845 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020846 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000020847fi
cristy8b350f62009-11-15 23:12:43 +000020848rm -f core conftest.err conftest.$ac_objext \
20849 conftest$ac_exeext
20850 if test "${ac_cv_search_opendir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020851 break
20852fi
20853done
cristy8b350f62009-11-15 23:12:43 +000020854if test "${ac_cv_search_opendir+set}" = set; then :
20855
cristy3ed852e2009-09-05 21:47:34 +000020856else
20857 ac_cv_search_opendir=no
20858fi
20859rm conftest.$ac_ext
20860LIBS=$ac_func_search_save_LIBS
20861fi
cristy8b350f62009-11-15 23:12:43 +000020862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000020863$as_echo "$ac_cv_search_opendir" >&6; }
20864ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000020865if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000020866 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20867
20868fi
20869
20870fi
20871
20872
20873# Check additional headers
cristya0b81c32010-01-22 02:54:33 +000020874for 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 +000020875do :
20876 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20877ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20878eval as_val=\$$as_ac_Header
20879 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020880 cat >>confdefs.h <<_ACEOF
20881#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20882_ACEOF
20883
20884fi
20885
20886done
20887
20888
20889########
20890#
20891# Checks for typedefs, structures, and compiler characteristics.
20892#
20893########
20894
cristy8b350f62009-11-15 23:12:43 +000020895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
cristy3ed852e2009-09-05 21:47:34 +000020896$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020897if test "${ac_cv_header_stdbool_h+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020898 $as_echo_n "(cached) " >&6
20899else
cristy8b350f62009-11-15 23:12:43 +000020900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020901/* end confdefs.h. */
20902
20903#include <stdbool.h>
20904#ifndef bool
20905 "error: bool is not defined"
20906#endif
20907#ifndef false
20908 "error: false is not defined"
20909#endif
20910#if false
20911 "error: false is not 0"
20912#endif
20913#ifndef true
20914 "error: true is not defined"
20915#endif
20916#if true != 1
20917 "error: true is not 1"
20918#endif
20919#ifndef __bool_true_false_are_defined
20920 "error: __bool_true_false_are_defined is not defined"
20921#endif
20922
20923 struct s { _Bool s: 1; _Bool t; } s;
20924
20925 char a[true == 1 ? 1 : -1];
20926 char b[false == 0 ? 1 : -1];
20927 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
20928 char d[(bool) 0.5 == true ? 1 : -1];
20929 bool e = &s;
20930 char f[(_Bool) 0.0 == false ? 1 : -1];
20931 char g[true];
20932 char h[sizeof (_Bool)];
20933 char i[sizeof s.t];
20934 enum { j = false, k = true, l = false * true, m = true * 256 };
20935 /* The following fails for
20936 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
20937 _Bool n[m];
20938 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
20939 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
20940# if defined __xlc__ || defined __GNUC__
20941 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
20942 reported by James Lemley on 2005-10-05; see
20943 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
20944 This test is not quite right, since xlc is allowed to
20945 reject this program, as the initializer for xlcbug is
20946 not one of the forms that C requires support for.
20947 However, doing the test right would require a runtime
20948 test, and that would make cross-compilation harder.
20949 Let us hope that IBM fixes the xlc bug, and also adds
20950 support for this kind of constant expression. In the
20951 meantime, this test will reject xlc, which is OK, since
20952 our stdbool.h substitute should suffice. We also test
20953 this with GCC, where it should work, to detect more
20954 quickly whether someone messes up the test in the
20955 future. */
20956 char digs[] = "0123456789";
20957 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
20958# endif
20959 /* Catch a bug in an HP-UX C compiler. See
20960 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
20961 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
20962 */
20963 _Bool q = true;
20964 _Bool *pq = &q;
20965
20966int
20967main ()
20968{
20969
20970 *pq |= q;
20971 *pq |= ! q;
20972 /* Refer to every declared value, to avoid compiler optimizations. */
20973 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
20974 + !m + !n + !o + !p + !q + !pq);
20975
20976 ;
20977 return 0;
20978}
20979_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020980if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020981 ac_cv_header_stdbool_h=yes
20982else
cristy8b350f62009-11-15 23:12:43 +000020983 ac_cv_header_stdbool_h=no
cristy3ed852e2009-09-05 21:47:34 +000020984fi
cristy3ed852e2009-09-05 21:47:34 +000020985rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20986fi
cristy8b350f62009-11-15 23:12:43 +000020987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
cristy3ed852e2009-09-05 21:47:34 +000020988$as_echo "$ac_cv_header_stdbool_h" >&6; }
cristy8b350f62009-11-15 23:12:43 +000020989ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
20990if test "x$ac_cv_type__Bool" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020991
20992cat >>confdefs.h <<_ACEOF
20993#define HAVE__BOOL 1
20994_ACEOF
20995
20996
20997fi
20998
20999if test $ac_cv_header_stdbool_h = yes; then
21000
cristy8b350f62009-11-15 23:12:43 +000021001$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021002
21003fi
21004
cristy8b350f62009-11-15 23:12:43 +000021005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000021006$as_echo_n "checking for working volatile... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021007if test "${ac_cv_c_volatile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021008 $as_echo_n "(cached) " >&6
21009else
cristy8b350f62009-11-15 23:12:43 +000021010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021011/* end confdefs.h. */
21012
21013int
21014main ()
21015{
21016
21017volatile int x;
21018int * volatile y = (int *) 0;
21019return !x && !y;
21020 ;
21021 return 0;
21022}
21023_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021024if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021025 ac_cv_c_volatile=yes
21026else
cristy8b350f62009-11-15 23:12:43 +000021027 ac_cv_c_volatile=no
cristy3ed852e2009-09-05 21:47:34 +000021028fi
cristy3ed852e2009-09-05 21:47:34 +000021029rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21030fi
cristy8b350f62009-11-15 23:12:43 +000021031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000021032$as_echo "$ac_cv_c_volatile" >&6; }
21033if test $ac_cv_c_volatile = no; then
21034
cristy8b350f62009-11-15 23:12:43 +000021035$as_echo "#define volatile /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021036
21037fi
21038
cristy8b350f62009-11-15 23:12:43 +000021039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
cristy3ed852e2009-09-05 21:47:34 +000021040$as_echo_n "checking for preprocessor stringizing operator... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021041if test "${ac_cv_c_stringize+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021042 $as_echo_n "(cached) " >&6
21043else
cristy8b350f62009-11-15 23:12:43 +000021044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021045/* end confdefs.h. */
21046#define x(y) #y
21047
21048char *s = x(teststring);
21049_ACEOF
21050if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021051 $EGREP "#teststring" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021052 ac_cv_c_stringize=no
21053else
21054 ac_cv_c_stringize=yes
21055fi
21056rm -f conftest*
21057
21058fi
cristy8b350f62009-11-15 23:12:43 +000021059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
cristy3ed852e2009-09-05 21:47:34 +000021060$as_echo "$ac_cv_c_stringize" >&6; }
21061if test $ac_cv_c_stringize = yes; then
21062
cristy8b350f62009-11-15 23:12:43 +000021063$as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021064
21065fi
21066
cristy8b350f62009-11-15 23:12:43 +000021067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000021068$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021069if test "${ac_cv_header_stat_broken+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021070 $as_echo_n "(cached) " >&6
21071else
cristy8b350f62009-11-15 23:12:43 +000021072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021073/* end confdefs.h. */
21074#include <sys/types.h>
21075#include <sys/stat.h>
21076
21077#if defined S_ISBLK && defined S_IFDIR
21078extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
21079#endif
21080
21081#if defined S_ISBLK && defined S_IFCHR
21082extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
21083#endif
21084
21085#if defined S_ISLNK && defined S_IFREG
21086extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
21087#endif
21088
21089#if defined S_ISSOCK && defined S_IFREG
21090extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
21091#endif
21092
21093_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021094if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021095 ac_cv_header_stat_broken=no
21096else
cristy8b350f62009-11-15 23:12:43 +000021097 ac_cv_header_stat_broken=yes
cristy3ed852e2009-09-05 21:47:34 +000021098fi
cristy3ed852e2009-09-05 21:47:34 +000021099rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21100fi
cristy8b350f62009-11-15 23:12:43 +000021101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000021102$as_echo "$ac_cv_header_stat_broken" >&6; }
21103if test $ac_cv_header_stat_broken = yes; then
21104
cristy8b350f62009-11-15 23:12:43 +000021105$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021106
21107fi
21108
cristy8b350f62009-11-15 23:12:43 +000021109{ $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 +000021110$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021111if test "${ac_cv_header_time+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021112 $as_echo_n "(cached) " >&6
21113else
cristy8b350f62009-11-15 23:12:43 +000021114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021115/* end confdefs.h. */
21116#include <sys/types.h>
21117#include <sys/time.h>
21118#include <time.h>
21119
21120int
21121main ()
21122{
21123if ((struct tm *) 0)
21124return 0;
21125 ;
21126 return 0;
21127}
21128_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021129if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021130 ac_cv_header_time=yes
21131else
cristy8b350f62009-11-15 23:12:43 +000021132 ac_cv_header_time=no
cristy3ed852e2009-09-05 21:47:34 +000021133fi
cristy3ed852e2009-09-05 21:47:34 +000021134rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21135fi
cristy8b350f62009-11-15 23:12:43 +000021136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
cristy3ed852e2009-09-05 21:47:34 +000021137$as_echo "$ac_cv_header_time" >&6; }
21138if test $ac_cv_header_time = yes; then
21139
cristy8b350f62009-11-15 23:12:43 +000021140$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021141
21142fi
21143
cristy8b350f62009-11-15 23:12:43 +000021144{ $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 +000021145$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021146if test "${ac_cv_struct_tm+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021147 $as_echo_n "(cached) " >&6
21148else
cristy8b350f62009-11-15 23:12:43 +000021149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021150/* end confdefs.h. */
21151#include <sys/types.h>
21152#include <time.h>
21153
21154int
21155main ()
21156{
21157struct tm tm;
21158 int *p = &tm.tm_sec;
21159 return !p;
21160 ;
21161 return 0;
21162}
21163_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021164if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021165 ac_cv_struct_tm=time.h
21166else
cristy8b350f62009-11-15 23:12:43 +000021167 ac_cv_struct_tm=sys/time.h
cristy3ed852e2009-09-05 21:47:34 +000021168fi
cristy3ed852e2009-09-05 21:47:34 +000021169rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21170fi
cristy8b350f62009-11-15 23:12:43 +000021171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
cristy3ed852e2009-09-05 21:47:34 +000021172$as_echo "$ac_cv_struct_tm" >&6; }
21173if test $ac_cv_struct_tm = sys/time.h; then
21174
cristy8b350f62009-11-15 23:12:43 +000021175$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021176
21177fi
21178
cristy92703d82010-04-26 00:18:18 +000021179ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
21180#include <$ac_cv_struct_tm>
21181
21182"
21183if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
21184
21185cat >>confdefs.h <<_ACEOF
21186#define HAVE_STRUCT_TM_TM_ZONE 1
21187_ACEOF
21188
21189
21190fi
21191
21192if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21193
21194$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
21195
21196else
21197 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
21198"
21199if test "x$ac_cv_have_decl_tzname" = x""yes; then :
21200 ac_have_decl=1
21201else
21202 ac_have_decl=0
21203fi
21204
21205cat >>confdefs.h <<_ACEOF
21206#define HAVE_DECL_TZNAME $ac_have_decl
21207_ACEOF
21208
21209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
21210$as_echo_n "checking for tzname... " >&6; }
21211if test "${ac_cv_var_tzname+set}" = set; then :
21212 $as_echo_n "(cached) " >&6
21213else
21214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21215/* end confdefs.h. */
21216#include <time.h>
21217#if !HAVE_DECL_TZNAME
21218extern char *tzname[];
21219#endif
21220
21221int
21222main ()
21223{
21224return tzname[0][0];
21225 ;
21226 return 0;
21227}
21228_ACEOF
21229if ac_fn_c_try_link "$LINENO"; then :
21230 ac_cv_var_tzname=yes
21231else
21232 ac_cv_var_tzname=no
21233fi
21234rm -f core conftest.err conftest.$ac_objext \
21235 conftest$ac_exeext conftest.$ac_ext
21236fi
21237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
21238$as_echo "$ac_cv_var_tzname" >&6; }
21239 if test $ac_cv_var_tzname = yes; then
21240
21241$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
21242
21243 fi
21244fi
21245
cristy8b350f62009-11-15 23:12:43 +000021246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
cristy3ed852e2009-09-05 21:47:34 +000021247$as_echo_n "checking whether #! works in shell scripts... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021248if test "${ac_cv_sys_interpreter+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021249 $as_echo_n "(cached) " >&6
21250else
21251 echo '#! /bin/cat
21252exit 69
21253' >conftest
21254chmod u+x conftest
21255(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
21256if test $? -ne 69; then
21257 ac_cv_sys_interpreter=yes
21258else
21259 ac_cv_sys_interpreter=no
21260fi
21261rm -f conftest
21262fi
cristy8b350f62009-11-15 23:12:43 +000021263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
cristy3ed852e2009-09-05 21:47:34 +000021264$as_echo "$ac_cv_sys_interpreter" >&6; }
21265interpval=$ac_cv_sys_interpreter
21266
21267
cristy3ed852e2009-09-05 21:47:34 +000021268# If the C compiler supports the keyword inline, do nothing. Otherwise
21269# define inline to __inline__ or __inline if it accepts one of those,
21270# otherwise define inline to be empty.
cristy8b350f62009-11-15 23:12:43 +000021271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000021272$as_echo_n "checking for inline... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021273if test "${ac_cv_c_inline+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021274 $as_echo_n "(cached) " >&6
21275else
21276 ac_cv_c_inline=no
21277for ac_kw in inline __inline__ __inline; do
cristy8b350f62009-11-15 23:12:43 +000021278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021279/* end confdefs.h. */
21280#ifndef __cplusplus
21281typedef int foo_t;
21282static $ac_kw foo_t static_foo () {return 0; }
21283$ac_kw foo_t foo () {return 0; }
21284#endif
21285
21286_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021287if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021288 ac_cv_c_inline=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000021289fi
cristy3ed852e2009-09-05 21:47:34 +000021290rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21291 test "$ac_cv_c_inline" != no && break
21292done
21293
21294fi
cristy8b350f62009-11-15 23:12:43 +000021295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000021296$as_echo "$ac_cv_c_inline" >&6; }
21297
cristy3ed852e2009-09-05 21:47:34 +000021298case $ac_cv_c_inline in
21299 inline | yes) ;;
21300 *)
21301 case $ac_cv_c_inline in
21302 no) ac_val=;;
21303 *) ac_val=$ac_cv_c_inline;;
21304 esac
21305 cat >>confdefs.h <<_ACEOF
21306#ifndef __cplusplus
21307#define inline $ac_val
21308#endif
21309_ACEOF
21310 ;;
21311esac
21312
21313
21314# If the C compiler supports the keyword restrict, do nothing. Otherwise
21315# define restrict to __restrict__ or __restrict if it accepts one of those,
21316# otherwise define restrict to be empty.
cristy8b350f62009-11-15 23:12:43 +000021317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
cristy3ed852e2009-09-05 21:47:34 +000021318$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021319if test "${ac_cv_c_restrict+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021320 $as_echo_n "(cached) " >&6
21321else
21322 ac_cv_c_restrict=no
21323 # The order here caters to the fact that C++ does not require restrict.
21324 for ac_kw in __restrict __restrict__ _Restrict restrict; do
cristy8b350f62009-11-15 23:12:43 +000021325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021326/* end confdefs.h. */
21327typedef int * int_ptr;
21328 int foo (int_ptr $ac_kw ip) {
21329 return ip[0];
21330 }
21331int
21332main ()
21333{
21334int s[1];
21335 int * $ac_kw t = s;
21336 t[0] = 0;
21337 return foo(t)
21338 ;
21339 return 0;
21340}
21341_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021342if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021343 ac_cv_c_restrict=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000021344fi
cristy3ed852e2009-09-05 21:47:34 +000021345rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21346 test "$ac_cv_c_restrict" != no && break
21347 done
21348
21349fi
cristy8b350f62009-11-15 23:12:43 +000021350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
cristy3ed852e2009-09-05 21:47:34 +000021351$as_echo "$ac_cv_c_restrict" >&6; }
21352
cristy3ed852e2009-09-05 21:47:34 +000021353 case $ac_cv_c_restrict in
21354 restrict) ;;
cristy8b350f62009-11-15 23:12:43 +000021355 no) $as_echo "#define restrict /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021356 ;;
21357 *) cat >>confdefs.h <<_ACEOF
21358#define restrict $ac_cv_c_restrict
21359_ACEOF
21360 ;;
21361 esac
21362
21363
21364# If words are stored with the most significant byte first (like
21365# Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
cristy8b350f62009-11-15 23:12:43 +000021366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000021367$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021368if test "${ac_cv_c_bigendian+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021369 $as_echo_n "(cached) " >&6
21370else
21371 ac_cv_c_bigendian=unknown
21372 # See if we're dealing with a universal compiler.
cristy8b350f62009-11-15 23:12:43 +000021373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021374/* end confdefs.h. */
21375#ifndef __APPLE_CC__
21376 not a universal capable compiler
21377 #endif
21378 typedef int dummy;
21379
21380_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021381if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021382
21383 # Check for potential -arch flags. It is not universal unless
cristy8b350f62009-11-15 23:12:43 +000021384 # there are at least two -arch flags with different values.
21385 ac_arch=
21386 ac_prev=
21387 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
21388 if test -n "$ac_prev"; then
21389 case $ac_word in
21390 i?86 | x86_64 | ppc | ppc64)
21391 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
21392 ac_arch=$ac_word
21393 else
21394 ac_cv_c_bigendian=universal
21395 break
21396 fi
21397 ;;
21398 esac
21399 ac_prev=
21400 elif test "x$ac_word" = "x-arch"; then
21401 ac_prev=arch
21402 fi
21403 done
cristy3ed852e2009-09-05 21:47:34 +000021404fi
cristy3ed852e2009-09-05 21:47:34 +000021405rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21406 if test $ac_cv_c_bigendian = unknown; then
21407 # See if sys/param.h defines the BYTE_ORDER macro.
cristy8b350f62009-11-15 23:12:43 +000021408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021409/* end confdefs.h. */
21410#include <sys/types.h>
21411 #include <sys/param.h>
21412
21413int
21414main ()
21415{
21416#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
21417 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
21418 && LITTLE_ENDIAN)
21419 bogus endian macros
21420 #endif
21421
21422 ;
21423 return 0;
21424}
21425_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021426if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021427 # It does; now see whether it defined to BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000021428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021429/* end confdefs.h. */
21430#include <sys/types.h>
21431 #include <sys/param.h>
21432
21433int
21434main ()
21435{
21436#if BYTE_ORDER != BIG_ENDIAN
21437 not big endian
21438 #endif
21439
21440 ;
21441 return 0;
21442}
21443_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021444if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021445 ac_cv_c_bigendian=yes
21446else
cristy8b350f62009-11-15 23:12:43 +000021447 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000021448fi
cristy3ed852e2009-09-05 21:47:34 +000021449rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021450fi
cristy3ed852e2009-09-05 21:47:34 +000021451rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21452 fi
21453 if test $ac_cv_c_bigendian = unknown; then
21454 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
cristy8b350f62009-11-15 23:12:43 +000021455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021456/* end confdefs.h. */
21457#include <limits.h>
21458
21459int
21460main ()
21461{
21462#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
21463 bogus endian macros
21464 #endif
21465
21466 ;
21467 return 0;
21468}
21469_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021470if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021471 # It does; now see whether it defined to _BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000021472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021473/* end confdefs.h. */
21474#include <limits.h>
21475
21476int
21477main ()
21478{
21479#ifndef _BIG_ENDIAN
21480 not big endian
21481 #endif
21482
21483 ;
21484 return 0;
21485}
21486_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021487if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021488 ac_cv_c_bigendian=yes
21489else
cristy8b350f62009-11-15 23:12:43 +000021490 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000021491fi
cristy3ed852e2009-09-05 21:47:34 +000021492rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021493fi
cristy3ed852e2009-09-05 21:47:34 +000021494rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21495 fi
21496 if test $ac_cv_c_bigendian = unknown; then
21497 # Compile a test program.
cristy8b350f62009-11-15 23:12:43 +000021498 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021499 # Try to guess by grepping values from an object file.
cristy8b350f62009-11-15 23:12:43 +000021500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021501/* end confdefs.h. */
21502short int ascii_mm[] =
21503 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
21504 short int ascii_ii[] =
21505 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
21506 int use_ascii (int i) {
21507 return ascii_mm[i] + ascii_ii[i];
21508 }
21509 short int ebcdic_ii[] =
21510 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
21511 short int ebcdic_mm[] =
21512 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
21513 int use_ebcdic (int i) {
21514 return ebcdic_mm[i] + ebcdic_ii[i];
21515 }
21516 extern int foo;
21517
21518int
21519main ()
21520{
21521return use_ascii (foo) == use_ebcdic (foo);
21522 ;
21523 return 0;
21524}
21525_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021526if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021527 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
21528 ac_cv_c_bigendian=yes
21529 fi
21530 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
21531 if test "$ac_cv_c_bigendian" = unknown; then
21532 ac_cv_c_bigendian=no
21533 else
21534 # finding both strings is unlikely to happen, but who knows?
21535 ac_cv_c_bigendian=unknown
21536 fi
21537 fi
cristy3ed852e2009-09-05 21:47:34 +000021538fi
cristy3ed852e2009-09-05 21:47:34 +000021539rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21540else
cristy8b350f62009-11-15 23:12:43 +000021541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021542/* end confdefs.h. */
21543$ac_includes_default
21544int
21545main ()
21546{
21547
21548 /* Are we little or big endian? From Harbison&Steele. */
21549 union
21550 {
21551 long int l;
21552 char c[sizeof (long int)];
21553 } u;
21554 u.l = 1;
21555 return u.c[sizeof (long int) - 1] == 1;
21556
21557 ;
21558 return 0;
21559}
21560_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021561if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021562 ac_cv_c_bigendian=no
21563else
cristy8b350f62009-11-15 23:12:43 +000021564 ac_cv_c_bigendian=yes
cristy3ed852e2009-09-05 21:47:34 +000021565fi
cristy8b350f62009-11-15 23:12:43 +000021566rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21567 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021568fi
21569
cristy3ed852e2009-09-05 21:47:34 +000021570 fi
21571fi
cristy8b350f62009-11-15 23:12:43 +000021572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000021573$as_echo "$ac_cv_c_bigendian" >&6; }
21574 case $ac_cv_c_bigendian in #(
21575 yes)
cristy8b350f62009-11-15 23:12:43 +000021576 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021577;; #(
21578 no)
21579 ;; #(
21580 universal)
21581
cristy8b350f62009-11-15 23:12:43 +000021582$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021583
21584 ;; #(
21585 *)
cristy8b350f62009-11-15 23:12:43 +000021586 as_fn_error "unknown endianness
21587 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000021588 esac
21589
21590
21591# Define mode_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000021592ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
21593if test "x$ac_cv_type_mode_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021594
cristy3ed852e2009-09-05 21:47:34 +000021595else
21596
21597cat >>confdefs.h <<_ACEOF
21598#define mode_t int
21599_ACEOF
21600
21601fi
21602
21603
21604# Define off_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000021605ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
21606if test "x$ac_cv_type_off_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021607
cristy3ed852e2009-09-05 21:47:34 +000021608else
21609
21610cat >>confdefs.h <<_ACEOF
21611#define off_t long int
21612_ACEOF
21613
21614fi
21615
21616
21617# Define pid_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000021618ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
21619if test "x$ac_cv_type_pid_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021620
cristy3ed852e2009-09-05 21:47:34 +000021621else
21622
21623cat >>confdefs.h <<_ACEOF
21624#define pid_t int
21625_ACEOF
21626
21627fi
21628
21629
21630# Define size_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000021631ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
21632if test "x$ac_cv_type_size_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021633
cristy3ed852e2009-09-05 21:47:34 +000021634else
21635
21636cat >>confdefs.h <<_ACEOF
21637#define size_t unsigned int
21638_ACEOF
21639
21640fi
21641
21642
21643# Define ssize_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000021644ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
21645if test "x$ac_cv_type_ssize_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021646
cristy3ed852e2009-09-05 21:47:34 +000021647else
21648
21649cat >>confdefs.h <<_ACEOF
21650#define ssize_t int
21651_ACEOF
21652
21653fi
21654
21655
21656# If the C compiler supports a working long double type with more range
21657# or precision than the double type, define HAVE_LONG_DOUBLE.
21658
cristy8b350f62009-11-15 23:12:43 +000021659 { $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 +000021660$as_echo_n "checking for long double with more range or precision than double... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021661if test "${ac_cv_type_long_double_wider+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021662 $as_echo_n "(cached) " >&6
21663else
cristy8b350f62009-11-15 23:12:43 +000021664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021665/* end confdefs.h. */
21666#include <float.h>
21667 long double const a[] =
21668 {
21669 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
21670 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
21671 };
21672 long double
21673 f (long double x)
21674 {
21675 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
21676 + (x ? f (x) : 'c'));
21677 }
21678
21679int
21680main ()
21681{
21682static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
21683 + (DBL_MANT_DIG < LDBL_MANT_DIG)
21684 - (LDBL_MAX_EXP < DBL_MAX_EXP)
21685 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
21686 && (int) LDBL_EPSILON == 0
21687 )];
21688test_array [0] = 0
21689
21690 ;
21691 return 0;
21692}
21693_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021694if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021695 ac_cv_type_long_double_wider=yes
21696else
cristy8b350f62009-11-15 23:12:43 +000021697 ac_cv_type_long_double_wider=no
cristy3ed852e2009-09-05 21:47:34 +000021698fi
cristy3ed852e2009-09-05 21:47:34 +000021699rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21700fi
cristy8b350f62009-11-15 23:12:43 +000021701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
cristy3ed852e2009-09-05 21:47:34 +000021702$as_echo "$ac_cv_type_long_double_wider" >&6; }
21703 if test $ac_cv_type_long_double_wider = yes; then
21704
cristy8b350f62009-11-15 23:12:43 +000021705$as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021706
21707 fi
21708
21709
21710# If the C type char is unsigned, define __CHAR_UNSIGNED__, unless the
21711# C compiler predefines it.
cristy8b350f62009-11-15 23:12:43 +000021712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000021713$as_echo_n "checking whether char is unsigned... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021714if test "${ac_cv_c_char_unsigned+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021715 $as_echo_n "(cached) " >&6
21716else
cristy8b350f62009-11-15 23:12:43 +000021717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021718/* end confdefs.h. */
21719$ac_includes_default
21720int
21721main ()
21722{
21723static int test_array [1 - 2 * !(((char) -1) < 0)];
21724test_array [0] = 0
21725
21726 ;
21727 return 0;
21728}
21729_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021730if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021731 ac_cv_c_char_unsigned=no
21732else
cristy8b350f62009-11-15 23:12:43 +000021733 ac_cv_c_char_unsigned=yes
cristy3ed852e2009-09-05 21:47:34 +000021734fi
cristy3ed852e2009-09-05 21:47:34 +000021735rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21736fi
cristy8b350f62009-11-15 23:12:43 +000021737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000021738$as_echo "$ac_cv_c_char_unsigned" >&6; }
21739if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
cristy8b350f62009-11-15 23:12:43 +000021740 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021741
21742fi
21743
21744
21745# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
21746# The cast to long int works around a bug in the HP C Compiler
21747# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21748# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21749# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
cristy3ed852e2009-09-05 21:47:34 +000021751$as_echo_n "checking size of signed short... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021752if test "${ac_cv_sizeof_signed_short+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021753 $as_echo_n "(cached) " >&6
21754else
cristy8b350f62009-11-15 23:12:43 +000021755 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 +000021756
cristy3ed852e2009-09-05 21:47:34 +000021757else
cristy8b350f62009-11-15 23:12:43 +000021758 if test "$ac_cv_type_signed_short" = yes; then
21759 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021760$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000021761{ as_fn_set_status 77
21762as_fn_error "cannot compute sizeof (signed short)
21763See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000021764 else
21765 ac_cv_sizeof_signed_short=0
21766 fi
21767fi
cristy8b350f62009-11-15 23:12:43 +000021768
cristy3ed852e2009-09-05 21:47:34 +000021769fi
cristy8b350f62009-11-15 23:12:43 +000021770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000021771$as_echo "$ac_cv_sizeof_signed_short" >&6; }
21772
21773
21774
21775cat >>confdefs.h <<_ACEOF
21776#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
21777_ACEOF
21778
21779
21780
21781# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
21782# The cast to long int works around a bug in the HP C Compiler
21783# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21784# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21785# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
cristy3ed852e2009-09-05 21:47:34 +000021787$as_echo_n "checking size of unsigned short... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021788if test "${ac_cv_sizeof_unsigned_short+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021789 $as_echo_n "(cached) " >&6
21790else
cristy8b350f62009-11-15 23:12:43 +000021791 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 +000021792
cristy3ed852e2009-09-05 21:47:34 +000021793else
cristy8b350f62009-11-15 23:12:43 +000021794 if test "$ac_cv_type_unsigned_short" = yes; then
21795 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021796$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000021797{ as_fn_set_status 77
21798as_fn_error "cannot compute sizeof (unsigned short)
21799See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000021800 else
21801 ac_cv_sizeof_unsigned_short=0
21802 fi
21803fi
cristy8b350f62009-11-15 23:12:43 +000021804
cristy3ed852e2009-09-05 21:47:34 +000021805fi
cristy8b350f62009-11-15 23:12:43 +000021806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000021807$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
21808
21809
21810
21811cat >>confdefs.h <<_ACEOF
21812#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
21813_ACEOF
21814
21815
21816
21817# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
21818# The cast to long int works around a bug in the HP C Compiler
21819# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21820# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21821# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
cristy3ed852e2009-09-05 21:47:34 +000021823$as_echo_n "checking size of signed int... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021824if test "${ac_cv_sizeof_signed_int+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021825 $as_echo_n "(cached) " >&6
21826else
cristy8b350f62009-11-15 23:12:43 +000021827 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 +000021828
cristy3ed852e2009-09-05 21:47:34 +000021829else
cristy8b350f62009-11-15 23:12:43 +000021830 if test "$ac_cv_type_signed_int" = yes; then
21831 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021832$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000021833{ as_fn_set_status 77
21834as_fn_error "cannot compute sizeof (signed int)
21835See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000021836 else
21837 ac_cv_sizeof_signed_int=0
21838 fi
21839fi
cristy8b350f62009-11-15 23:12:43 +000021840
cristy3ed852e2009-09-05 21:47:34 +000021841fi
cristy8b350f62009-11-15 23:12:43 +000021842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000021843$as_echo "$ac_cv_sizeof_signed_int" >&6; }
21844
21845
21846
21847cat >>confdefs.h <<_ACEOF
21848#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
21849_ACEOF
21850
21851
21852
21853# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
21854# The cast to long int works around a bug in the HP C Compiler
21855# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21856# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21857# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
cristy3ed852e2009-09-05 21:47:34 +000021859$as_echo_n "checking size of unsigned int... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021860if test "${ac_cv_sizeof_unsigned_int+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021861 $as_echo_n "(cached) " >&6
21862else
cristy8b350f62009-11-15 23:12:43 +000021863 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 +000021864
cristy3ed852e2009-09-05 21:47:34 +000021865else
cristy8b350f62009-11-15 23:12:43 +000021866 if test "$ac_cv_type_unsigned_int" = yes; then
21867 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021868$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000021869{ as_fn_set_status 77
21870as_fn_error "cannot compute sizeof (unsigned int)
21871See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000021872 else
21873 ac_cv_sizeof_unsigned_int=0
21874 fi
21875fi
cristy8b350f62009-11-15 23:12:43 +000021876
cristy3ed852e2009-09-05 21:47:34 +000021877fi
cristy8b350f62009-11-15 23:12:43 +000021878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000021879$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
21880
21881
21882
21883cat >>confdefs.h <<_ACEOF
21884#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
21885_ACEOF
21886
21887
21888
21889# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
21890# The cast to long int works around a bug in the HP C Compiler
21891# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21892# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21893# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021895$as_echo_n "checking size of signed long... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021896if test "${ac_cv_sizeof_signed_long+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021897 $as_echo_n "(cached) " >&6
21898else
cristy8b350f62009-11-15 23:12:43 +000021899 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 +000021900
cristy3ed852e2009-09-05 21:47:34 +000021901else
cristy8b350f62009-11-15 23:12:43 +000021902 if test "$ac_cv_type_signed_long" = yes; then
21903 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021904$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000021905{ as_fn_set_status 77
21906as_fn_error "cannot compute sizeof (signed long)
21907See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000021908 else
21909 ac_cv_sizeof_signed_long=0
21910 fi
21911fi
cristy8b350f62009-11-15 23:12:43 +000021912
cristy3ed852e2009-09-05 21:47:34 +000021913fi
cristy8b350f62009-11-15 23:12:43 +000021914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021915$as_echo "$ac_cv_sizeof_signed_long" >&6; }
21916
21917
21918
21919cat >>confdefs.h <<_ACEOF
21920#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
21921_ACEOF
21922
21923
21924
21925# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
21926# The cast to long int works around a bug in the HP C Compiler
21927# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21928# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21929# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021931$as_echo_n "checking size of unsigned long... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021932if test "${ac_cv_sizeof_unsigned_long+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021933 $as_echo_n "(cached) " >&6
21934else
cristy8b350f62009-11-15 23:12:43 +000021935 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 +000021936
cristy3ed852e2009-09-05 21:47:34 +000021937else
cristy8b350f62009-11-15 23:12:43 +000021938 if test "$ac_cv_type_unsigned_long" = yes; then
21939 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021940$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000021941{ as_fn_set_status 77
21942as_fn_error "cannot compute sizeof (unsigned long)
21943See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000021944 else
21945 ac_cv_sizeof_unsigned_long=0
21946 fi
21947fi
cristy8b350f62009-11-15 23:12:43 +000021948
cristy3ed852e2009-09-05 21:47:34 +000021949fi
cristy8b350f62009-11-15 23:12:43 +000021950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021951$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
21952
21953
21954
21955cat >>confdefs.h <<_ACEOF
21956#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
21957_ACEOF
21958
21959
21960
21961# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If
21962# 'signed long long' is not supported then the value defined is zero.
21963# The cast to long int works around a bug in the HP C Compiler
21964# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21965# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21966# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021968$as_echo_n "checking size of signed long long... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021969if test "${ac_cv_sizeof_signed_long_long+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021970 $as_echo_n "(cached) " >&6
21971else
cristy8b350f62009-11-15 23:12:43 +000021972 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 +000021973
cristy3ed852e2009-09-05 21:47:34 +000021974else
cristy8b350f62009-11-15 23:12:43 +000021975 if test "$ac_cv_type_signed_long_long" = yes; then
21976 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021977$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000021978{ as_fn_set_status 77
21979as_fn_error "cannot compute sizeof (signed long long)
21980See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000021981 else
21982 ac_cv_sizeof_signed_long_long=0
21983 fi
21984fi
cristy8b350f62009-11-15 23:12:43 +000021985
cristy3ed852e2009-09-05 21:47:34 +000021986fi
cristy8b350f62009-11-15 23:12:43 +000021987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021988$as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
21989
21990
21991
21992cat >>confdefs.h <<_ACEOF
21993#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
21994_ACEOF
21995
21996
21997
21998# Obtain size of a 'unsigned long long' and define as
21999# SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not
22000# supported then the value defined is zero.
22001# The cast to long int works around a bug in the HP C Compiler
22002# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22003# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22004# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000022005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000022006$as_echo_n "checking size of unsigned long long... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022007if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022008 $as_echo_n "(cached) " >&6
22009else
cristy8b350f62009-11-15 23:12:43 +000022010 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 +000022011
cristy3ed852e2009-09-05 21:47:34 +000022012else
cristy8b350f62009-11-15 23:12:43 +000022013 if test "$ac_cv_type_unsigned_long_long" = yes; then
22014 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000022015$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000022016{ as_fn_set_status 77
22017as_fn_error "cannot compute sizeof (unsigned long long)
22018See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000022019 else
22020 ac_cv_sizeof_unsigned_long_long=0
22021 fi
22022fi
cristy8b350f62009-11-15 23:12:43 +000022023
cristy3ed852e2009-09-05 21:47:34 +000022024fi
cristy8b350f62009-11-15 23:12:43 +000022025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000022026$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
22027
22028
22029
22030cat >>confdefs.h <<_ACEOF
22031#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
22032_ACEOF
22033
22034
22035
22036# Obtain size of off_t and define as SIZEOF_OFF_T
22037# The cast to long int works around a bug in the HP C Compiler
22038# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22039# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22040# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000022041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000022042$as_echo_n "checking size of off_t... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022043if test "${ac_cv_sizeof_off_t+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022044 $as_echo_n "(cached) " >&6
22045else
cristy8b350f62009-11-15 23:12:43 +000022046 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 +000022047
cristy3ed852e2009-09-05 21:47:34 +000022048else
cristy8b350f62009-11-15 23:12:43 +000022049 if test "$ac_cv_type_off_t" = yes; then
22050 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000022051$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000022052{ as_fn_set_status 77
22053as_fn_error "cannot compute sizeof (off_t)
22054See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000022055 else
22056 ac_cv_sizeof_off_t=0
22057 fi
22058fi
cristy8b350f62009-11-15 23:12:43 +000022059
cristy3ed852e2009-09-05 21:47:34 +000022060fi
cristy8b350f62009-11-15 23:12:43 +000022061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000022062$as_echo "$ac_cv_sizeof_off_t" >&6; }
22063
22064
22065
22066cat >>confdefs.h <<_ACEOF
22067#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
22068_ACEOF
22069
22070
22071
22072# Obtain size of size_t and define as SIZEOF_SIZE_T
22073# The cast to long int works around a bug in the HP C Compiler
22074# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22075# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22076# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000022077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000022078$as_echo_n "checking size of size_t... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022079if test "${ac_cv_sizeof_size_t+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022080 $as_echo_n "(cached) " >&6
22081else
cristy8b350f62009-11-15 23:12:43 +000022082 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 +000022083
cristy3ed852e2009-09-05 21:47:34 +000022084else
cristy8b350f62009-11-15 23:12:43 +000022085 if test "$ac_cv_type_size_t" = yes; then
22086 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000022087$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000022088{ as_fn_set_status 77
22089as_fn_error "cannot compute sizeof (size_t)
22090See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000022091 else
22092 ac_cv_sizeof_size_t=0
22093 fi
22094fi
cristy8b350f62009-11-15 23:12:43 +000022095
cristy3ed852e2009-09-05 21:47:34 +000022096fi
cristy8b350f62009-11-15 23:12:43 +000022097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000022098$as_echo "$ac_cv_sizeof_size_t" >&6; }
22099
22100
22101
22102cat >>confdefs.h <<_ACEOF
22103#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
22104_ACEOF
22105
22106
22107
cristy330e9352010-06-01 18:42:49 +000022108# Obtain size of ssize_t and define as SIZEOF_SSIZE_T
22109# The cast to long int works around a bug in the HP C Compiler
22110# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22111# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22112# This bug is HP SR number 8606223364.
22113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
22114$as_echo_n "checking size of ssize_t... " >&6; }
22115if test "${ac_cv_sizeof_ssize_t+set}" = set; then :
22116 $as_echo_n "(cached) " >&6
22117else
22118 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t" "$ac_includes_default"; then :
22119
22120else
22121 if test "$ac_cv_type_ssize_t" = yes; then
22122 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22123$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22124{ as_fn_set_status 77
22125as_fn_error "cannot compute sizeof (ssize_t)
22126See \`config.log' for more details." "$LINENO" 5; }; }
22127 else
22128 ac_cv_sizeof_ssize_t=0
22129 fi
22130fi
22131
22132fi
22133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
22134$as_echo "$ac_cv_sizeof_ssize_t" >&6; }
22135
22136
22137
22138cat >>confdefs.h <<_ACEOF
22139#define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
22140_ACEOF
22141
22142
22143
cristy3ed852e2009-09-05 21:47:34 +000022144# Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
22145# The cast to long int works around a bug in the HP C Compiler
22146# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22147# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22148# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000022149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
cristy3ed852e2009-09-05 21:47:34 +000022150$as_echo_n "checking size of unsigned int*... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022151if test "${ac_cv_sizeof_unsigned_intp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022152 $as_echo_n "(cached) " >&6
22153else
cristy8b350f62009-11-15 23:12:43 +000022154 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 +000022155
cristy3ed852e2009-09-05 21:47:34 +000022156else
cristy8b350f62009-11-15 23:12:43 +000022157 if test "$ac_cv_type_unsigned_intp" = yes; then
22158 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000022159$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000022160{ as_fn_set_status 77
22161as_fn_error "cannot compute sizeof (unsigned int*)
22162See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000022163 else
22164 ac_cv_sizeof_unsigned_intp=0
22165 fi
22166fi
cristy8b350f62009-11-15 23:12:43 +000022167
cristy3ed852e2009-09-05 21:47:34 +000022168fi
cristy8b350f62009-11-15 23:12:43 +000022169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
cristy3ed852e2009-09-05 21:47:34 +000022170$as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
22171
22172
22173
22174cat >>confdefs.h <<_ACEOF
22175#define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
22176_ACEOF
22177
22178
22179
22180#
22181# Compute sized types for current CPU and compiler options.
22182#
22183
cristy8b350f62009-11-15 23:12:43 +000022184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022185$as_echo_n "checking for signed 8-bit type... " >&6; }
22186INT8_T='signed char'
cristy8b350f62009-11-15 23:12:43 +000022187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT8_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022188$as_echo "$INT8_T" >&6; }
22189
22190
cristy8b350f62009-11-15 23:12:43 +000022191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022192$as_echo_n "checking for unsigned 8-bit type... " >&6; }
22193UINT8_T='unsigned char'
cristy8b350f62009-11-15 23:12:43 +000022194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT8_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022195$as_echo "$UINT8_T" >&6; }
22196
22197
cristy8b350f62009-11-15 23:12:43 +000022198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022199$as_echo_n "checking for signed 16-bit type... " >&6; }
22200INT16_T='signed short'
cristy8b350f62009-11-15 23:12:43 +000022201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT16_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022202$as_echo "$INT16_T" >&6; }
22203
22204
cristy8b350f62009-11-15 23:12:43 +000022205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022206$as_echo_n "checking for unsigned 16-bit type... " >&6; }
22207UINT16_T='unsigned short'
cristy8b350f62009-11-15 23:12:43 +000022208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT16_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022209$as_echo "$UINT16_T" >&6; }
22210
22211
cristy8b350f62009-11-15 23:12:43 +000022212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022213$as_echo_n "checking for signed 32-bit type... " >&6; }
22214INT32_T='none'
22215if test $ac_cv_sizeof_signed_int -eq 4; then
22216 INT32_T='signed int'
22217elif test $ac_cv_sizeof_signed_long -eq 4; then
22218 INT32_T='signed long'
22219fi
cristy8b350f62009-11-15 23:12:43 +000022220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT32_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022221$as_echo "$INT32_T" >&6; }
22222
22223
cristy8b350f62009-11-15 23:12:43 +000022224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022225$as_echo_n "checking for unsigned 32-bit type... " >&6; }
22226UINT32_T='none'
22227if test $ac_cv_sizeof_unsigned_int -eq 4; then
22228 UINT32_T='unsigned int'
22229elif test $ac_cv_sizeof_unsigned_long -eq 4; then
22230 UINT32_T='unsigned long'
22231fi
cristy8b350f62009-11-15 23:12:43 +000022232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT32_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022233$as_echo "$UINT32_T" >&6; }
22234
22235
cristy8b350f62009-11-15 23:12:43 +000022236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022237$as_echo_n "checking for signed 64-bit type... " >&6; }
22238INT64_T='none'
22239if test $ac_cv_sizeof_signed_long -eq 8; then
22240 INT64_T='signed long'
22241elif test $ac_cv_sizeof_signed_long_long -eq 8; then
22242 INT64_T='signed long long'
22243fi
cristy8b350f62009-11-15 23:12:43 +000022244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT64_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022245$as_echo "$INT64_T" >&6; }
22246
22247
cristy8b350f62009-11-15 23:12:43 +000022248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022249$as_echo_n "checking for unsigned 64-bit type... " >&6; }
22250UINT64_T='none'
22251if test $ac_cv_sizeof_unsigned_long -eq 8; then
22252 UINT64_T='unsigned long'
22253elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
22254 UINT64_T='unsigned long long'
22255fi
cristy8b350f62009-11-15 23:12:43 +000022256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT64_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022257$as_echo "$UINT64_T" >&6; }
22258
22259
cristy8b350f62009-11-15 23:12:43 +000022260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022261$as_echo_n "checking for unsigned maximum type... " >&6; }
22262UINTMAX_T='none'
22263if test "$UINT64_T" != 'none'; then
22264 UINTMAX_T=$UINT64_T
22265elif test "$UINT32_T" != 'none'; then
22266 UINTMAX_T=$UINT32_T
22267fi
cristy8b350f62009-11-15 23:12:43 +000022268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTMAX_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022269$as_echo "$UINTMAX_T" >&6; }
22270
22271
cristy8b350f62009-11-15 23:12:43 +000022272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022273$as_echo_n "checking for pointer difference type... " >&6; }
22274UINTPTR_T='none'
22275if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
22276 UINTPTR_T='unsigned long'
22277elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
22278 UINTPTR_T='unsigned long long'
22279fi
cristy8b350f62009-11-15 23:12:43 +000022280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTPTR_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022281$as_echo "$UINTPTR_T" >&6; }
22282
22283
cristy8b350f62009-11-15 23:12:43 +000022284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
cristy3ed852e2009-09-05 21:47:34 +000022285$as_echo_n "checking whether our compiler supports __func__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022286cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022287/* end confdefs.h. */
22288
22289int
22290main ()
22291{
22292{ const char *func = __func__; return(func != 0 ? 0 : 1); }
22293 ;
22294 return 0;
22295}
22296_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022297if ac_fn_c_try_compile "$LINENO"; then :
22298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000022299$as_echo "yes" >&6; }
22300else
cristy8b350f62009-11-15 23:12:43 +000022301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000022302$as_echo "no" >&6; }
cristy8b350f62009-11-15 23:12:43 +000022303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
cristy3ed852e2009-09-05 21:47:34 +000022304$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
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
22308int
22309main ()
22310{
22311{ const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
22312 ;
22313 return 0;
22314}
22315_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022316if ac_fn_c_try_compile "$LINENO"; then :
22317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000022318$as_echo "yes" >&6; }
22319
cristy8b350f62009-11-15 23:12:43 +000022320$as_echo "#define __func__ __FUNCTION__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022321
22322else
cristy8b350f62009-11-15 23:12:43 +000022323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000022324$as_echo "no" >&6; }
22325
cristy8b350f62009-11-15 23:12:43 +000022326$as_echo "#define __func__ __FILE__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022327
22328fi
cristy3ed852e2009-09-05 21:47:34 +000022329rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22330fi
cristy3ed852e2009-09-05 21:47:34 +000022331rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22332
22333########
22334#
22335# Check for functions
22336#
22337########
cristy3ed852e2009-09-05 21:47:34 +000022338for ac_header in stdlib.h unistd.h
cristy8b350f62009-11-15 23:12:43 +000022339do :
22340 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22341ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22342eval as_val=\$$as_ac_Header
22343 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022344 cat >>confdefs.h <<_ACEOF
22345#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22346_ACEOF
22347
22348fi
22349
22350done
22351
cristy3ed852e2009-09-05 21:47:34 +000022352for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000022353do :
22354 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
22355if test "x$ac_cv_func_getpagesize" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022356 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022357#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000022358_ACEOF
22359
22360fi
22361done
22362
cristy8b350f62009-11-15 23:12:43 +000022363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap file i/o" >&5
cristy3ed852e2009-09-05 21:47:34 +000022364$as_echo_n "checking for working mmap file i/o... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022365if test "${magick_cv_func_mmap_fileio+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022366 $as_echo_n "(cached) " >&6
22367else
cristy8b350f62009-11-15 23:12:43 +000022368 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022369 magick_cv_func_mmap_fileio=no
22370else
cristy8b350f62009-11-15 23:12:43 +000022371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022372/* end confdefs.h. */
22373$ac_includes_default
22374/* malloc might have been renamed as rpl_malloc. */
22375#undef malloc
22376
22377/*
22378 This test is derived from GNU Autoconf's similar macro.
22379 The purpose of this test is to verify that files may be memory
22380 mapped, and that memory mapping and file I/O are coherent.
22381
22382 The test creates a test file, memory maps the file, updates
22383 the file using the memory map, and then reads the file using
22384 file I/O to verify that the file contains the updates.
22385*/
22386
22387#include <fcntl.h>
22388#include <sys/mman.h>
22389
22390#if !STDC_HEADERS && !HAVE_STDLIB_H
22391char *malloc ();
22392#endif
22393
22394/* This mess was copied from the GNU getpagesize.h. */
22395#if !HAVE_GETPAGESIZE
22396/* Assume that all systems that can run configure have sys/param.h. */
22397# if !HAVE_SYS_PARAM_H
22398# define HAVE_SYS_PARAM_H 1
22399# endif
22400
22401# ifdef _SC_PAGESIZE
22402# define getpagesize() sysconf(_SC_PAGESIZE)
22403# else /* no _SC_PAGESIZE */
22404# if HAVE_SYS_PARAM_H
22405# include <sys/param.h>
22406# ifdef EXEC_PAGESIZE
22407# define getpagesize() EXEC_PAGESIZE
22408# else /* no EXEC_PAGESIZE */
22409# ifdef NBPG
22410# define getpagesize() NBPG * CLSIZE
22411# ifndef CLSIZE
22412# define CLSIZE 1
22413# endif /* no CLSIZE */
22414# else /* no NBPG */
22415# ifdef NBPC
22416# define getpagesize() NBPC
22417# else /* no NBPC */
22418# ifdef PAGESIZE
22419# define getpagesize() PAGESIZE
22420# endif /* PAGESIZE */
22421# endif /* no NBPC */
22422# endif /* no NBPG */
22423# endif /* no EXEC_PAGESIZE */
22424# else /* no HAVE_SYS_PARAM_H */
22425# define getpagesize() 8192 /* punt totally */
22426# endif /* no HAVE_SYS_PARAM_H */
22427# endif /* no _SC_PAGESIZE */
22428
22429#endif /* no HAVE_GETPAGESIZE */
22430
22431int
22432main ()
22433{
22434 char *data, *data2, *data3;
22435 int i, pagesize;
22436 int fd;
22437
22438 pagesize = getpagesize ();
22439
22440 /* First, make a file with some known garbage in it. */
22441 data = (char *) malloc (pagesize);
22442 if (!data)
22443 exit (1);
22444 for (i = 0; i < pagesize; ++i)
22445 *(data + i) = rand ();
22446 umask (0);
22447 fd = creat ("conftest.mmap", 0600);
22448 if (fd < 0)
22449 exit (1);
22450 if (write (fd, data, pagesize) != pagesize)
22451 exit (1);
22452 close (fd);
22453
22454 /* Mmap the file as read/write/shared and verify that we see the
22455 same garbage. */
22456 fd = open ("conftest.mmap", O_RDWR);
22457 if (fd < 0)
22458 exit (1);
22459 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0L);
22460 if (data2 == 0)
22461 exit (1);
22462 for (i = 0; i < pagesize; ++i)
22463 if (*(data + i) != *(data2 + i))
22464 exit (1);
22465
22466 /* Finally, make sure that changes to the mapped area
22467 percolate back to the file as seen by read(). */
22468 for (i = 0; i < pagesize; ++i)
22469 *(data2 + i) = *(data2 + i) + 1;
22470 data3 = (char *) malloc (pagesize);
22471 if (!data3)
22472 exit (1);
22473 if (read (fd, data3, pagesize) != pagesize)
22474 exit (1);
22475 for (i = 0; i < pagesize; ++i)
22476 if (*(data2 + i) != *(data3 + i))
22477 exit (1);
22478 close (fd);
22479 exit (0);
22480}
22481_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022482if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022483 magick_cv_func_mmap_fileio=yes
22484else
cristy8b350f62009-11-15 23:12:43 +000022485 magick_cv_func_mmap_fileio=no
cristy3ed852e2009-09-05 21:47:34 +000022486fi
cristy8b350f62009-11-15 23:12:43 +000022487rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22488 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022489fi
22490
cristy3ed852e2009-09-05 21:47:34 +000022491fi
cristy8b350f62009-11-15 23:12:43 +000022492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $magick_cv_func_mmap_fileio" >&5
cristy3ed852e2009-09-05 21:47:34 +000022493$as_echo "$magick_cv_func_mmap_fileio" >&6; }
22494if test $magick_cv_func_mmap_fileio = yes; then
22495
cristy8b350f62009-11-15 23:12:43 +000022496$as_echo "#define HAVE_MMAP_FILEIO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022497
22498fi
22499rm -f conftest.mmap
22500
cristy8b350f62009-11-15 23:12:43 +000022501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
cristy3ed852e2009-09-05 21:47:34 +000022502$as_echo_n "checking whether closedir returns void... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022503if test "${ac_cv_func_closedir_void+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022504 $as_echo_n "(cached) " >&6
22505else
cristy8b350f62009-11-15 23:12:43 +000022506 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022507 ac_cv_func_closedir_void=yes
22508else
cristy8b350f62009-11-15 23:12:43 +000022509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022510/* end confdefs.h. */
22511$ac_includes_default
22512#include <$ac_header_dirent>
22513#ifndef __cplusplus
22514int closedir ();
22515#endif
22516
22517int
22518main ()
22519{
22520return closedir (opendir (".")) != 0;
22521 ;
22522 return 0;
22523}
22524_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022525if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022526 ac_cv_func_closedir_void=no
22527else
cristy8b350f62009-11-15 23:12:43 +000022528 ac_cv_func_closedir_void=yes
cristy3ed852e2009-09-05 21:47:34 +000022529fi
cristy8b350f62009-11-15 23:12:43 +000022530rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22531 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022532fi
22533
cristy3ed852e2009-09-05 21:47:34 +000022534fi
cristy8b350f62009-11-15 23:12:43 +000022535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
cristy3ed852e2009-09-05 21:47:34 +000022536$as_echo "$ac_cv_func_closedir_void" >&6; }
22537if test $ac_cv_func_closedir_void = yes; then
22538
cristy8b350f62009-11-15 23:12:43 +000022539$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022540
22541fi
22542
cristycd4c5312009-11-22 01:19:08 +000022543
22544
22545
22546 for ac_header in $ac_header_list
cristy8b350f62009-11-15 23:12:43 +000022547do :
22548 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
cristycd4c5312009-11-22 01:19:08 +000022549ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
22550"
cristy8b350f62009-11-15 23:12:43 +000022551eval as_val=\$$as_ac_Header
22552 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022553 cat >>confdefs.h <<_ACEOF
22554#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22555_ACEOF
22556
22557fi
22558
22559done
22560
cristycd4c5312009-11-22 01:19:08 +000022561
22562
22563
22564
22565
22566
22567
cristy3ed852e2009-09-05 21:47:34 +000022568for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000022569do :
22570 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
22571if test "x$ac_cv_func_getpagesize" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022572 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022573#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000022574_ACEOF
22575
22576fi
22577done
22578
cristy8b350f62009-11-15 23:12:43 +000022579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
cristy3ed852e2009-09-05 21:47:34 +000022580$as_echo_n "checking for working mmap... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022581if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022582 $as_echo_n "(cached) " >&6
22583else
cristy8b350f62009-11-15 23:12:43 +000022584 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022585 ac_cv_func_mmap_fixed_mapped=no
22586else
cristy8b350f62009-11-15 23:12:43 +000022587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022588/* end confdefs.h. */
22589$ac_includes_default
22590/* malloc might have been renamed as rpl_malloc. */
22591#undef malloc
22592
22593/* Thanks to Mike Haertel and Jim Avera for this test.
22594 Here is a matrix of mmap possibilities:
22595 mmap private not fixed
22596 mmap private fixed at somewhere currently unmapped
22597 mmap private fixed at somewhere already mapped
22598 mmap shared not fixed
22599 mmap shared fixed at somewhere currently unmapped
22600 mmap shared fixed at somewhere already mapped
22601 For private mappings, we should verify that changes cannot be read()
22602 back from the file, nor mmap's back from the file at a different
22603 address. (There have been systems where private was not correctly
22604 implemented like the infamous i386 svr4.0, and systems where the
22605 VM page cache was not coherent with the file system buffer cache
22606 like early versions of FreeBSD and possibly contemporary NetBSD.)
22607 For shared mappings, we should conversely verify that changes get
22608 propagated back to all the places they're supposed to be.
22609
22610 Grep wants private fixed already mapped.
22611 The main things grep needs to know about mmap are:
22612 * does it exist and is it safe to write into the mmap'd area
22613 * how to use it (BSD variants) */
22614
22615#include <fcntl.h>
22616#include <sys/mman.h>
22617
22618#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
22619char *malloc ();
22620#endif
22621
22622/* This mess was copied from the GNU getpagesize.h. */
22623#ifndef HAVE_GETPAGESIZE
cristy3ed852e2009-09-05 21:47:34 +000022624# ifdef _SC_PAGESIZE
22625# define getpagesize() sysconf(_SC_PAGESIZE)
22626# else /* no _SC_PAGESIZE */
22627# ifdef HAVE_SYS_PARAM_H
22628# include <sys/param.h>
22629# ifdef EXEC_PAGESIZE
22630# define getpagesize() EXEC_PAGESIZE
22631# else /* no EXEC_PAGESIZE */
22632# ifdef NBPG
22633# define getpagesize() NBPG * CLSIZE
22634# ifndef CLSIZE
22635# define CLSIZE 1
22636# endif /* no CLSIZE */
22637# else /* no NBPG */
22638# ifdef NBPC
22639# define getpagesize() NBPC
22640# else /* no NBPC */
22641# ifdef PAGESIZE
22642# define getpagesize() PAGESIZE
22643# endif /* PAGESIZE */
22644# endif /* no NBPC */
22645# endif /* no NBPG */
22646# endif /* no EXEC_PAGESIZE */
22647# else /* no HAVE_SYS_PARAM_H */
22648# define getpagesize() 8192 /* punt totally */
22649# endif /* no HAVE_SYS_PARAM_H */
22650# endif /* no _SC_PAGESIZE */
22651
22652#endif /* no HAVE_GETPAGESIZE */
22653
22654int
22655main ()
22656{
22657 char *data, *data2, *data3;
cristyc54f5d42009-11-27 21:36:31 +000022658 const char *cdata2;
cristy3ed852e2009-09-05 21:47:34 +000022659 int i, pagesize;
cristycd4c5312009-11-22 01:19:08 +000022660 int fd, fd2;
cristy3ed852e2009-09-05 21:47:34 +000022661
22662 pagesize = getpagesize ();
22663
22664 /* First, make a file with some known garbage in it. */
22665 data = (char *) malloc (pagesize);
22666 if (!data)
22667 return 1;
22668 for (i = 0; i < pagesize; ++i)
22669 *(data + i) = rand ();
22670 umask (0);
22671 fd = creat ("conftest.mmap", 0600);
22672 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000022673 return 2;
cristy3ed852e2009-09-05 21:47:34 +000022674 if (write (fd, data, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000022675 return 3;
cristy3ed852e2009-09-05 21:47:34 +000022676 close (fd);
22677
cristycd4c5312009-11-22 01:19:08 +000022678 /* Next, check that the tail of a page is zero-filled. File must have
22679 non-zero length, otherwise we risk SIGBUS for entire page. */
22680 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
22681 if (fd2 < 0)
22682 return 4;
cristyc54f5d42009-11-27 21:36:31 +000022683 cdata2 = "";
22684 if (write (fd2, cdata2, 1) != 1)
cristycd4c5312009-11-22 01:19:08 +000022685 return 5;
cristyc54f5d42009-11-27 21:36:31 +000022686 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
cristycd4c5312009-11-22 01:19:08 +000022687 if (data2 == MAP_FAILED)
22688 return 6;
22689 for (i = 0; i < pagesize; ++i)
22690 if (*(data2 + i))
22691 return 7;
22692 close (fd2);
22693 if (munmap (data2, pagesize))
22694 return 8;
22695
cristy3ed852e2009-09-05 21:47:34 +000022696 /* Next, try to mmap the file at a fixed address which already has
22697 something else allocated at it. If we can, also make sure that
22698 we see the same garbage. */
22699 fd = open ("conftest.mmap", O_RDWR);
22700 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000022701 return 9;
cristy3ed852e2009-09-05 21:47:34 +000022702 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
22703 MAP_PRIVATE | MAP_FIXED, fd, 0L))
cristycd4c5312009-11-22 01:19:08 +000022704 return 10;
cristy3ed852e2009-09-05 21:47:34 +000022705 for (i = 0; i < pagesize; ++i)
22706 if (*(data + i) != *(data2 + i))
cristycd4c5312009-11-22 01:19:08 +000022707 return 11;
cristy3ed852e2009-09-05 21:47:34 +000022708
22709 /* Finally, make sure that changes to the mapped area do not
22710 percolate back to the file as seen by read(). (This is a bug on
22711 some variants of i386 svr4.0.) */
22712 for (i = 0; i < pagesize; ++i)
22713 *(data2 + i) = *(data2 + i) + 1;
22714 data3 = (char *) malloc (pagesize);
22715 if (!data3)
cristycd4c5312009-11-22 01:19:08 +000022716 return 12;
cristy3ed852e2009-09-05 21:47:34 +000022717 if (read (fd, data3, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000022718 return 13;
cristy3ed852e2009-09-05 21:47:34 +000022719 for (i = 0; i < pagesize; ++i)
22720 if (*(data + i) != *(data3 + i))
cristycd4c5312009-11-22 01:19:08 +000022721 return 14;
cristy3ed852e2009-09-05 21:47:34 +000022722 close (fd);
22723 return 0;
22724}
22725_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022726if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022727 ac_cv_func_mmap_fixed_mapped=yes
22728else
cristy8b350f62009-11-15 23:12:43 +000022729 ac_cv_func_mmap_fixed_mapped=no
cristy3ed852e2009-09-05 21:47:34 +000022730fi
cristy8b350f62009-11-15 23:12:43 +000022731rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22732 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022733fi
22734
cristy3ed852e2009-09-05 21:47:34 +000022735fi
cristy8b350f62009-11-15 23:12:43 +000022736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000022737$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
22738if test $ac_cv_func_mmap_fixed_mapped = yes; then
22739
cristy8b350f62009-11-15 23:12:43 +000022740$as_echo "#define HAVE_MMAP 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022741
22742fi
cristycd4c5312009-11-22 01:19:08 +000022743rm -f conftest.mmap conftest.txt
cristy3ed852e2009-09-05 21:47:34 +000022744
cristy3ed852e2009-09-05 21:47:34 +000022745for ac_header in vfork.h
cristy8b350f62009-11-15 23:12:43 +000022746do :
22747 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
22748if test "x$ac_cv_header_vfork_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022749 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022750#define HAVE_VFORK_H 1
cristy3ed852e2009-09-05 21:47:34 +000022751_ACEOF
22752
22753fi
22754
22755done
22756
cristy3ed852e2009-09-05 21:47:34 +000022757for ac_func in fork vfork
cristy8b350f62009-11-15 23:12:43 +000022758do :
22759 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22760ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22761eval as_val=\$$as_ac_var
22762 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022763 cat >>confdefs.h <<_ACEOF
22764#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22765_ACEOF
22766
22767fi
22768done
22769
22770if test "x$ac_cv_func_fork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000022771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
cristy3ed852e2009-09-05 21:47:34 +000022772$as_echo_n "checking for working fork... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022773if test "${ac_cv_func_fork_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022774 $as_echo_n "(cached) " >&6
22775else
cristy8b350f62009-11-15 23:12:43 +000022776 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022777 ac_cv_func_fork_works=cross
22778else
cristy8b350f62009-11-15 23:12:43 +000022779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022780/* end confdefs.h. */
22781$ac_includes_default
22782int
22783main ()
22784{
22785
22786 /* By Ruediger Kuhlmann. */
22787 return fork () < 0;
22788
22789 ;
22790 return 0;
22791}
22792_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022793if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022794 ac_cv_func_fork_works=yes
22795else
cristy8b350f62009-11-15 23:12:43 +000022796 ac_cv_func_fork_works=no
cristy3ed852e2009-09-05 21:47:34 +000022797fi
cristy8b350f62009-11-15 23:12:43 +000022798rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22799 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022800fi
22801
cristy3ed852e2009-09-05 21:47:34 +000022802fi
cristy8b350f62009-11-15 23:12:43 +000022803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000022804$as_echo "$ac_cv_func_fork_works" >&6; }
22805
22806else
22807 ac_cv_func_fork_works=$ac_cv_func_fork
22808fi
22809if test "x$ac_cv_func_fork_works" = xcross; then
22810 case $host in
22811 *-*-amigaos* | *-*-msdosdjgpp*)
22812 # Override, as these systems have only a dummy fork() stub
22813 ac_cv_func_fork_works=no
22814 ;;
22815 *)
22816 ac_cv_func_fork_works=yes
22817 ;;
22818 esac
cristy8b350f62009-11-15 23:12:43 +000022819 { $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 +000022820$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
22821fi
22822ac_cv_func_vfork_works=$ac_cv_func_vfork
22823if test "x$ac_cv_func_vfork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000022824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
cristy3ed852e2009-09-05 21:47:34 +000022825$as_echo_n "checking for working vfork... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022826if test "${ac_cv_func_vfork_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022827 $as_echo_n "(cached) " >&6
22828else
cristy8b350f62009-11-15 23:12:43 +000022829 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022830 ac_cv_func_vfork_works=cross
22831else
cristy8b350f62009-11-15 23:12:43 +000022832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022833/* end confdefs.h. */
22834/* Thanks to Paul Eggert for this test. */
22835$ac_includes_default
22836#include <sys/wait.h>
22837#ifdef HAVE_VFORK_H
22838# include <vfork.h>
22839#endif
22840/* On some sparc systems, changes by the child to local and incoming
22841 argument registers are propagated back to the parent. The compiler
22842 is told about this with #include <vfork.h>, but some compilers
22843 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
22844 static variable whose address is put into a register that is
22845 clobbered by the vfork. */
22846static void
22847#ifdef __cplusplus
22848sparc_address_test (int arg)
22849# else
22850sparc_address_test (arg) int arg;
22851#endif
22852{
22853 static pid_t child;
22854 if (!child) {
22855 child = vfork ();
22856 if (child < 0) {
22857 perror ("vfork");
22858 _exit(2);
22859 }
22860 if (!child) {
22861 arg = getpid();
22862 write(-1, "", 0);
22863 _exit (arg);
22864 }
22865 }
22866}
22867
22868int
22869main ()
22870{
22871 pid_t parent = getpid ();
22872 pid_t child;
22873
22874 sparc_address_test (0);
22875
22876 child = vfork ();
22877
22878 if (child == 0) {
22879 /* Here is another test for sparc vfork register problems. This
22880 test uses lots of local variables, at least as many local
22881 variables as main has allocated so far including compiler
22882 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
22883 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
22884 reuse the register of parent for one of the local variables,
22885 since it will think that parent can't possibly be used any more
22886 in this routine. Assigning to the local variable will thus
22887 munge parent in the parent process. */
22888 pid_t
22889 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22890 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22891 /* Convince the compiler that p..p7 are live; otherwise, it might
22892 use the same hardware register for all 8 local variables. */
22893 if (p != p1 || p != p2 || p != p3 || p != p4
22894 || p != p5 || p != p6 || p != p7)
22895 _exit(1);
22896
22897 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22898 from child file descriptors. If the child closes a descriptor
22899 before it execs or exits, this munges the parent's descriptor
22900 as well. Test for this by closing stdout in the child. */
22901 _exit(close(fileno(stdout)) != 0);
22902 } else {
22903 int status;
22904 struct stat st;
22905
22906 while (wait(&status) != child)
22907 ;
22908 return (
22909 /* Was there some problem with vforking? */
22910 child < 0
22911
22912 /* Did the child fail? (This shouldn't happen.) */
22913 || status
22914
22915 /* Did the vfork/compiler bug occur? */
22916 || parent != getpid()
22917
22918 /* Did the file descriptor bug occur? */
22919 || fstat(fileno(stdout), &st) != 0
22920 );
22921 }
22922}
22923_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022924if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022925 ac_cv_func_vfork_works=yes
22926else
cristy8b350f62009-11-15 23:12:43 +000022927 ac_cv_func_vfork_works=no
cristy3ed852e2009-09-05 21:47:34 +000022928fi
cristy8b350f62009-11-15 23:12:43 +000022929rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22930 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022931fi
22932
cristy3ed852e2009-09-05 21:47:34 +000022933fi
cristy8b350f62009-11-15 23:12:43 +000022934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000022935$as_echo "$ac_cv_func_vfork_works" >&6; }
22936
22937fi;
22938if test "x$ac_cv_func_fork_works" = xcross; then
22939 ac_cv_func_vfork_works=$ac_cv_func_vfork
cristy8b350f62009-11-15 23:12:43 +000022940 { $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 +000022941$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
22942fi
22943
22944if test "x$ac_cv_func_vfork_works" = xyes; then
22945
cristy8b350f62009-11-15 23:12:43 +000022946$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022947
22948else
22949
cristy8b350f62009-11-15 23:12:43 +000022950$as_echo "#define vfork fork" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022951
22952fi
22953if test "x$ac_cv_func_fork_works" = xyes; then
22954
cristy8b350f62009-11-15 23:12:43 +000022955$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022956
22957fi
22958
cristy8b350f62009-11-15 23:12:43 +000022959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000022960$as_echo_n "checking for working memcmp... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022961if test "${ac_cv_func_memcmp_working+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022962 $as_echo_n "(cached) " >&6
22963else
cristy8b350f62009-11-15 23:12:43 +000022964 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022965 ac_cv_func_memcmp_working=no
22966else
cristy8b350f62009-11-15 23:12:43 +000022967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022968/* end confdefs.h. */
22969$ac_includes_default
22970int
22971main ()
22972{
22973
22974 /* Some versions of memcmp are not 8-bit clean. */
22975 char c0 = '\100', c1 = '\200', c2 = '\201';
22976 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
22977 return 1;
22978
22979 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
22980 or more and with at least one buffer not starting on a 4-byte boundary.
22981 William Lewis provided this test program. */
22982 {
22983 char foo[21];
22984 char bar[21];
22985 int i;
22986 for (i = 0; i < 4; i++)
22987 {
22988 char *a = foo + i;
22989 char *b = bar + i;
22990 strcpy (a, "--------01111111");
22991 strcpy (b, "--------10000000");
22992 if (memcmp (a, b, 16) >= 0)
22993 return 1;
22994 }
22995 return 0;
22996 }
22997
22998 ;
22999 return 0;
23000}
23001_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023002if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023003 ac_cv_func_memcmp_working=yes
23004else
cristy8b350f62009-11-15 23:12:43 +000023005 ac_cv_func_memcmp_working=no
cristy3ed852e2009-09-05 21:47:34 +000023006fi
cristy8b350f62009-11-15 23:12:43 +000023007rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23008 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023009fi
23010
cristy3ed852e2009-09-05 21:47:34 +000023011fi
cristy8b350f62009-11-15 23:12:43 +000023012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
cristy3ed852e2009-09-05 21:47:34 +000023013$as_echo "$ac_cv_func_memcmp_working" >&6; }
23014test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
23015 *" memcmp.$ac_objext "* ) ;;
23016 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
23017 ;;
23018esac
23019
23020
cristy3ed852e2009-09-05 21:47:34 +000023021for ac_header in sys/select.h sys/socket.h
cristy8b350f62009-11-15 23:12:43 +000023022do :
23023 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23024ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23025eval as_val=\$$as_ac_Header
23026 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023027 cat >>confdefs.h <<_ACEOF
23028#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23029_ACEOF
23030
23031fi
23032
23033done
23034
cristy8b350f62009-11-15 23:12:43 +000023035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
cristy3ed852e2009-09-05 21:47:34 +000023036$as_echo_n "checking types of arguments for select... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023037if test "${ac_cv_func_select_args+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023038 $as_echo_n "(cached) " >&6
23039else
23040 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
23041 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
23042 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
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$ac_includes_default
23046#ifdef HAVE_SYS_SELECT_H
23047# include <sys/select.h>
23048#endif
23049#ifdef HAVE_SYS_SOCKET_H
23050# include <sys/socket.h>
23051#endif
23052
23053int
23054main ()
23055{
23056extern int select ($ac_arg1,
23057 $ac_arg234, $ac_arg234, $ac_arg234,
23058 $ac_arg5);
23059 ;
23060 return 0;
23061}
23062_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023063if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023064 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
cristy3ed852e2009-09-05 21:47:34 +000023065fi
cristy3ed852e2009-09-05 21:47:34 +000023066rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23067 done
23068 done
23069done
23070# Provide a safe default value.
23071: ${ac_cv_func_select_args='int,int *,struct timeval *'}
23072
23073fi
cristy8b350f62009-11-15 23:12:43 +000023074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
cristy3ed852e2009-09-05 21:47:34 +000023075$as_echo "$ac_cv_func_select_args" >&6; }
23076ac_save_IFS=$IFS; IFS=','
23077set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
23078IFS=$ac_save_IFS
23079shift
23080
23081cat >>confdefs.h <<_ACEOF
23082#define SELECT_TYPE_ARG1 $1
23083_ACEOF
23084
23085
23086cat >>confdefs.h <<_ACEOF
23087#define SELECT_TYPE_ARG234 ($2)
23088_ACEOF
23089
23090
23091cat >>confdefs.h <<_ACEOF
23092#define SELECT_TYPE_ARG5 ($3)
23093_ACEOF
23094
23095rm -f conftest*
23096
cristy8b350f62009-11-15 23:12:43 +000023097if test "${ac_cv_func_setvbuf_reversed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023098 $as_echo_n "(cached) " >&6
23099else
23100 ac_cv_func_setvbuf_reversed=no
23101fi
23102
23103
cristy8b350f62009-11-15 23:12:43 +000023104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
cristy3ed852e2009-09-05 21:47:34 +000023105$as_echo_n "checking return type of signal handlers... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023106if test "${ac_cv_type_signal+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023107 $as_echo_n "(cached) " >&6
23108else
cristy8b350f62009-11-15 23:12:43 +000023109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023110/* end confdefs.h. */
23111#include <sys/types.h>
23112#include <signal.h>
23113
23114int
23115main ()
23116{
23117return *(signal (0, 0)) (0) == 1;
23118 ;
23119 return 0;
23120}
23121_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023122if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023123 ac_cv_type_signal=int
23124else
cristy8b350f62009-11-15 23:12:43 +000023125 ac_cv_type_signal=void
cristy3ed852e2009-09-05 21:47:34 +000023126fi
cristy3ed852e2009-09-05 21:47:34 +000023127rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23128fi
cristy8b350f62009-11-15 23:12:43 +000023129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
cristy3ed852e2009-09-05 21:47:34 +000023130$as_echo "$ac_cv_type_signal" >&6; }
23131
23132cat >>confdefs.h <<_ACEOF
23133#define RETSIGTYPE $ac_cv_type_signal
23134_ACEOF
23135
23136
cristy8b350f62009-11-15 23:12:43 +000023137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000023138$as_echo_n "checking for working strtod... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023139if test "${ac_cv_func_strtod+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023140 $as_echo_n "(cached) " >&6
23141else
cristy8b350f62009-11-15 23:12:43 +000023142 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023143 ac_cv_func_strtod=no
23144else
cristy8b350f62009-11-15 23:12:43 +000023145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023146/* end confdefs.h. */
23147
23148$ac_includes_default
23149#ifndef strtod
23150double strtod ();
23151#endif
23152int
23153main()
23154{
23155 {
23156 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
23157 char *string = " +69";
23158 char *term;
23159 double value;
23160 value = strtod (string, &term);
23161 if (value != 69 || term != (string + 4))
23162 return 1;
23163 }
23164
23165 {
23166 /* Under Solaris 2.4, strtod returns the wrong value for the
23167 terminating character under some conditions. */
23168 char *string = "NaN";
23169 char *term;
23170 strtod (string, &term);
23171 if (term != string && *(term - 1) == 0)
23172 return 1;
23173 }
23174 return 0;
23175}
23176
23177_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023178if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023179 ac_cv_func_strtod=yes
23180else
cristy8b350f62009-11-15 23:12:43 +000023181 ac_cv_func_strtod=no
cristy3ed852e2009-09-05 21:47:34 +000023182fi
cristy8b350f62009-11-15 23:12:43 +000023183rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23184 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023185fi
23186
cristy3ed852e2009-09-05 21:47:34 +000023187fi
cristy8b350f62009-11-15 23:12:43 +000023188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000023189$as_echo "$ac_cv_func_strtod" >&6; }
23190if test $ac_cv_func_strtod = no; then
23191 case " $LIBOBJS " in
23192 *" strtod.$ac_objext "* ) ;;
23193 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
23194 ;;
23195esac
23196
cristy8b350f62009-11-15 23:12:43 +000023197ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
23198if test "x$ac_cv_func_pow" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023199
cristy3ed852e2009-09-05 21:47:34 +000023200fi
23201
cristy3ed852e2009-09-05 21:47:34 +000023202if test $ac_cv_func_pow = no; then
cristy8b350f62009-11-15 23:12:43 +000023203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
cristy3ed852e2009-09-05 21:47:34 +000023204$as_echo_n "checking for pow in -lm... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023205if test "${ac_cv_lib_m_pow+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023206 $as_echo_n "(cached) " >&6
23207else
23208 ac_check_lib_save_LIBS=$LIBS
23209LIBS="-lm $LIBS"
cristy8b350f62009-11-15 23:12:43 +000023210cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023211/* end confdefs.h. */
23212
23213/* Override any GCC internal prototype to avoid an error.
23214 Use char because int might match the return type of a GCC
23215 builtin and then its argument prototype would still apply. */
23216#ifdef __cplusplus
23217extern "C"
23218#endif
23219char pow ();
23220int
23221main ()
23222{
23223return pow ();
23224 ;
23225 return 0;
23226}
23227_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023228if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023229 ac_cv_lib_m_pow=yes
23230else
cristy8b350f62009-11-15 23:12:43 +000023231 ac_cv_lib_m_pow=no
cristy3ed852e2009-09-05 21:47:34 +000023232fi
cristy8b350f62009-11-15 23:12:43 +000023233rm -f core conftest.err conftest.$ac_objext \
23234 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023235LIBS=$ac_check_lib_save_LIBS
23236fi
cristy8b350f62009-11-15 23:12:43 +000023237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000023238$as_echo "$ac_cv_lib_m_pow" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023239if test "x$ac_cv_lib_m_pow" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023240 POW_LIB=-lm
23241else
cristy8b350f62009-11-15 23:12:43 +000023242 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000023243$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
23244fi
23245
23246fi
23247
23248fi
23249
cristy3ed852e2009-09-05 21:47:34 +000023250for ac_func in vprintf
cristy8b350f62009-11-15 23:12:43 +000023251do :
23252 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
23253if test "x$ac_cv_func_vprintf" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023254 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023255#define HAVE_VPRINTF 1
cristy3ed852e2009-09-05 21:47:34 +000023256_ACEOF
23257
cristy8b350f62009-11-15 23:12:43 +000023258ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
23259if test "x$ac_cv_func__doprnt" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023260
cristy8b350f62009-11-15 23:12:43 +000023261$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023262
23263fi
23264
23265fi
23266done
23267
23268
23269
cristy161b9262010-03-20 19:34:32 +000023270#
23271# Find math library
23272#
23273MATH_LIBS=''
23274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
23275$as_echo_n "checking for sqrt in -lm... " >&6; }
23276if test "${ac_cv_lib_m_sqrt+set}" = set; then :
23277 $as_echo_n "(cached) " >&6
23278else
23279 ac_check_lib_save_LIBS=$LIBS
23280LIBS="-lm $LIBS"
23281cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23282/* end confdefs.h. */
23283
23284/* Override any GCC internal prototype to avoid an error.
23285 Use char because int might match the return type of a GCC
23286 builtin and then its argument prototype would still apply. */
23287#ifdef __cplusplus
23288extern "C"
23289#endif
23290char sqrt ();
23291int
23292main ()
23293{
23294return sqrt ();
23295 ;
23296 return 0;
23297}
23298_ACEOF
23299if ac_fn_c_try_link "$LINENO"; then :
23300 ac_cv_lib_m_sqrt=yes
23301else
23302 ac_cv_lib_m_sqrt=no
23303fi
23304rm -f core conftest.err conftest.$ac_objext \
23305 conftest$ac_exeext conftest.$ac_ext
23306LIBS=$ac_check_lib_save_LIBS
23307fi
23308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
23309$as_echo "$ac_cv_lib_m_sqrt" >&6; }
23310if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
23311 MATH_LIBS="-lm"
23312fi
23313
23314LIBS="$MATH_LIBS $LIBS"
23315
23316
cristy56ed31c2010-03-22 00:46:21 +000023317for 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 +000023318do :
23319 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23320ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23321eval as_val=\$$as_ac_var
23322 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023323 cat >>confdefs.h <<_ACEOF
23324#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23325_ACEOF
23326
23327fi
23328done
23329
23330
cristye43a45e2009-09-28 14:49:00 +000023331#
23332# Check for clock_gettime().
23333#
cristy8b350f62009-11-15 23:12:43 +000023334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000023335$as_echo_n "checking for library containing clock_gettime... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023336if test "${ac_cv_search_clock_gettime+set}" = set; then :
cristye43a45e2009-09-28 14:49:00 +000023337 $as_echo_n "(cached) " >&6
23338else
23339 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000023340cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000023341/* end confdefs.h. */
23342
23343/* Override any GCC internal prototype to avoid an error.
23344 Use char because int might match the return type of a GCC
23345 builtin and then its argument prototype would still apply. */
23346#ifdef __cplusplus
23347extern "C"
23348#endif
23349char clock_gettime ();
23350int
23351main ()
23352{
23353return clock_gettime ();
23354 ;
23355 return 0;
23356}
23357_ACEOF
23358for ac_lib in '' rt; do
23359 if test -z "$ac_lib"; then
23360 ac_res="none required"
23361 else
23362 ac_res=-l$ac_lib
23363 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23364 fi
cristy8b350f62009-11-15 23:12:43 +000023365 if ac_fn_c_try_link "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000023366 ac_cv_search_clock_gettime=$ac_res
cristye43a45e2009-09-28 14:49:00 +000023367fi
cristy8b350f62009-11-15 23:12:43 +000023368rm -f core conftest.err conftest.$ac_objext \
23369 conftest$ac_exeext
23370 if test "${ac_cv_search_clock_gettime+set}" = set; then :
cristye43a45e2009-09-28 14:49:00 +000023371 break
23372fi
23373done
cristy8b350f62009-11-15 23:12:43 +000023374if test "${ac_cv_search_clock_gettime+set}" = set; then :
23375
cristye43a45e2009-09-28 14:49:00 +000023376else
23377 ac_cv_search_clock_gettime=no
23378fi
23379rm conftest.$ac_ext
23380LIBS=$ac_func_search_save_LIBS
23381fi
cristy8b350f62009-11-15 23:12:43 +000023382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000023383$as_echo "$ac_cv_search_clock_gettime" >&6; }
23384ac_res=$ac_cv_search_clock_gettime
cristy8b350f62009-11-15 23:12:43 +000023385if test "$ac_res" != no; then :
cristye43a45e2009-09-28 14:49:00 +000023386 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23387
23388
cristy8b350f62009-11-15 23:12:43 +000023389$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000023390
cristy8b350f62009-11-15 23:12:43 +000023391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
cristye43a45e2009-09-28 14:49:00 +000023392$as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000023394/* end confdefs.h. */
23395#include <time.h>
23396int
23397main ()
23398{
23399clockid_t clockType = CLOCK_REALTIME;
cristye43a45e2009-09-28 14:49:00 +000023400 ;
23401 return 0;
23402}
23403_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023404if ac_fn_c_try_compile "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000023405
cristy8b350f62009-11-15 23:12:43 +000023406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristye43a45e2009-09-28 14:49:00 +000023407$as_echo "yes" >&6; }
23408
cristy8b350f62009-11-15 23:12:43 +000023409$as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000023410
23411
23412else
cristy8b350f62009-11-15 23:12:43 +000023413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristye43a45e2009-09-28 14:49:00 +000023414$as_echo "no" >&6; }
23415
23416fi
cristye43a45e2009-09-28 14:49:00 +000023417rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23418
23419else
23420
cristy8b350f62009-11-15 23:12:43 +000023421 for ac_func in gettimeofday ftime
23422do :
23423 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23424ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23425eval as_val=\$$as_ac_var
23426 if test "x$as_val" = x""yes; then :
cristye43a45e2009-09-28 14:49:00 +000023427 cat >>confdefs.h <<_ACEOF
23428#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23429_ACEOF
23430 break
23431fi
23432done
23433
23434
23435
23436fi
23437
23438
cristy3ed852e2009-09-05 21:47:34 +000023439########
23440#
23441# Check for function prototypes
23442#
23443########
23444
cristy8b350f62009-11-15 23:12:43 +000023445ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
cristy3ed852e2009-09-05 21:47:34 +000023446#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000023447"
23448if test "x$ac_cv_have_decl_pread" = x""yes; then :
23449 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000023450else
cristy8b350f62009-11-15 23:12:43 +000023451 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000023452fi
23453
cristy3ed852e2009-09-05 21:47:34 +000023454cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023455#define HAVE_DECL_PREAD $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000023456_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023457ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
cristy3ed852e2009-09-05 21:47:34 +000023458#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000023459"
23460if test "x$ac_cv_have_decl_pwrite" = x""yes; then :
23461 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000023462else
cristy8b350f62009-11-15 23:12:43 +000023463 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000023464fi
23465
cristy3ed852e2009-09-05 21:47:34 +000023466cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023467#define HAVE_DECL_PWRITE $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000023468_ACEOF
23469
23470
cristy8b350f62009-11-15 23:12:43 +000023471ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
cristy3ed852e2009-09-05 21:47:34 +000023472#include <strings.h>
cristy8b350f62009-11-15 23:12:43 +000023473"
23474if test "x$ac_cv_have_decl_strlcpy" = x""yes; then :
23475 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000023476else
cristy8b350f62009-11-15 23:12:43 +000023477 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000023478fi
23479
cristy3ed852e2009-09-05 21:47:34 +000023480cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023481#define HAVE_DECL_STRLCPY $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000023482_ACEOF
23483
23484
cristy8b350f62009-11-15 23:12:43 +000023485ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
cristy3ed852e2009-09-05 21:47:34 +000023486#include <stdio.h>
23487#include <stdarg.h>
cristy8b350f62009-11-15 23:12:43 +000023488"
23489if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
23490 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000023491else
cristy8b350f62009-11-15 23:12:43 +000023492 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000023493fi
23494
cristy3ed852e2009-09-05 21:47:34 +000023495cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023496#define HAVE_DECL_VSNPRINTF $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000023497_ACEOF
23498
23499
cristy3ed852e2009-09-05 21:47:34 +000023500########
23501#
23502# C++ Support Tests (For Magick++)
23503#
23504########
23505have_magick_plus_plus='no'
23506if test "$with_magick_plus_plus" = 'yes'; then
23507 OLIBS="$LIBS"
23508 LIBS=''
23509 ac_ext=cpp
23510ac_cpp='$CXXCPP $CPPFLAGS'
23511ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23512ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23513ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23514
23515
23516 # Full set of headers used...
23517 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
23518 # functional iomanip iosfwd iostream iterator list string strstream utility
23519 ac_ext=cpp
23520ac_cpp='$CXXCPP $CPPFLAGS'
23521ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23522ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23523ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23524
23525 ac_ext=cpp
23526ac_cpp='$CXXCPP $CPPFLAGS'
23527ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23528ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23529ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23530if test -z "$CXX"; then
23531 if test -n "$CCC"; then
23532 CXX=$CCC
23533 else
23534 if test -n "$ac_tool_prefix"; then
23535 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
23536 do
23537 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
23538set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000023539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000023540$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023541if test "${ac_cv_prog_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023542 $as_echo_n "(cached) " >&6
23543else
23544 if test -n "$CXX"; then
23545 ac_cv_prog_CXX="$CXX" # Let the user override the test.
23546else
23547as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23548for as_dir in $PATH
23549do
23550 IFS=$as_save_IFS
23551 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000023552 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000023553 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23554 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000023555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000023556 break 2
23557 fi
23558done
cristy8b350f62009-11-15 23:12:43 +000023559 done
cristy3ed852e2009-09-05 21:47:34 +000023560IFS=$as_save_IFS
23561
23562fi
23563fi
23564CXX=$ac_cv_prog_CXX
23565if test -n "$CXX"; then
cristy8b350f62009-11-15 23:12:43 +000023566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000023567$as_echo "$CXX" >&6; }
23568else
cristy8b350f62009-11-15 23:12:43 +000023569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000023570$as_echo "no" >&6; }
23571fi
23572
23573
23574 test -n "$CXX" && break
23575 done
23576fi
23577if test -z "$CXX"; then
23578 ac_ct_CXX=$CXX
23579 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
23580do
23581 # Extract the first word of "$ac_prog", so it can be a program name with args.
23582set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000023583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000023584$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023585if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023586 $as_echo_n "(cached) " >&6
23587else
23588 if test -n "$ac_ct_CXX"; then
23589 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
23590else
23591as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23592for as_dir in $PATH
23593do
23594 IFS=$as_save_IFS
23595 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000023596 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000023597 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23598 ac_cv_prog_ac_ct_CXX="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000023599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000023600 break 2
23601 fi
23602done
cristy8b350f62009-11-15 23:12:43 +000023603 done
cristy3ed852e2009-09-05 21:47:34 +000023604IFS=$as_save_IFS
23605
23606fi
23607fi
23608ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
23609if test -n "$ac_ct_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000023610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000023611$as_echo "$ac_ct_CXX" >&6; }
23612else
cristy8b350f62009-11-15 23:12:43 +000023613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000023614$as_echo "no" >&6; }
23615fi
23616
23617
23618 test -n "$ac_ct_CXX" && break
23619done
23620
23621 if test "x$ac_ct_CXX" = x; then
23622 CXX="g++"
23623 else
23624 case $cross_compiling:$ac_tool_warned in
23625yes:)
cristy8b350f62009-11-15 23:12:43 +000023626{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000023627$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23628ac_tool_warned=yes ;;
23629esac
23630 CXX=$ac_ct_CXX
23631 fi
23632fi
23633
23634 fi
23635fi
23636# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +000023637$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +000023638set X $ac_compile
23639ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +000023640for ac_option in --version -v -V -qversion; do
23641 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +000023642case "(($ac_try" in
23643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23644 *) ac_try_echo=$ac_try;;
23645esac
cristy8b350f62009-11-15 23:12:43 +000023646eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
23647$as_echo "$ac_try_echo"; } >&5
23648 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +000023649 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000023650 if test -s conftest.err; then
23651 sed '10a\
23652... rest of stderr output deleted ...
23653 10q' conftest.err >conftest.er1
23654 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +000023655 fi
cristycd4c5312009-11-22 01:19:08 +000023656 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +000023657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23658 test $ac_status = 0; }
23659done
cristy3ed852e2009-09-05 21:47:34 +000023660
cristy8b350f62009-11-15 23:12:43 +000023661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +000023662$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023663if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023664 $as_echo_n "(cached) " >&6
23665else
cristy8b350f62009-11-15 23:12:43 +000023666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023667/* end confdefs.h. */
23668
23669int
23670main ()
23671{
23672#ifndef __GNUC__
23673 choke me
23674#endif
23675
23676 ;
23677 return 0;
23678}
23679_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023680if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023681 ac_compiler_gnu=yes
23682else
cristy8b350f62009-11-15 23:12:43 +000023683 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +000023684fi
cristy3ed852e2009-09-05 21:47:34 +000023685rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23686ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
23687
23688fi
cristy8b350f62009-11-15 23:12:43 +000023689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +000023690$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
23691if test $ac_compiler_gnu = yes; then
23692 GXX=yes
23693else
23694 GXX=
23695fi
23696ac_test_CXXFLAGS=${CXXFLAGS+set}
23697ac_save_CXXFLAGS=$CXXFLAGS
cristy8b350f62009-11-15 23:12:43 +000023698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +000023699$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023700if test "${ac_cv_prog_cxx_g+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023701 $as_echo_n "(cached) " >&6
23702else
23703 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
23704 ac_cxx_werror_flag=yes
23705 ac_cv_prog_cxx_g=no
23706 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000023707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023708/* end confdefs.h. */
23709
23710int
23711main ()
23712{
23713
23714 ;
23715 return 0;
23716}
23717_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023718if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023719 ac_cv_prog_cxx_g=yes
23720else
cristy8b350f62009-11-15 23:12:43 +000023721 CXXFLAGS=""
23722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023723/* end confdefs.h. */
23724
23725int
23726main ()
23727{
23728
23729 ;
23730 return 0;
23731}
23732_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023733if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023734
cristy8b350f62009-11-15 23:12:43 +000023735else
23736 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
cristy3ed852e2009-09-05 21:47:34 +000023737 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000023738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023739/* end confdefs.h. */
23740
23741int
23742main ()
23743{
23744
23745 ;
23746 return 0;
23747}
23748_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023749if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023750 ac_cv_prog_cxx_g=yes
cristy3ed852e2009-09-05 21:47:34 +000023751fi
cristy3ed852e2009-09-05 21:47:34 +000023752rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23753fi
cristy3ed852e2009-09-05 21:47:34 +000023754rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23755fi
cristy3ed852e2009-09-05 21:47:34 +000023756rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23757 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
23758fi
cristy8b350f62009-11-15 23:12:43 +000023759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
cristy3ed852e2009-09-05 21:47:34 +000023760$as_echo "$ac_cv_prog_cxx_g" >&6; }
23761if test "$ac_test_CXXFLAGS" = set; then
23762 CXXFLAGS=$ac_save_CXXFLAGS
23763elif test $ac_cv_prog_cxx_g = yes; then
23764 if test "$GXX" = yes; then
23765 CXXFLAGS="-g -O2"
23766 else
23767 CXXFLAGS="-g"
23768 fi
23769else
23770 if test "$GXX" = yes; then
23771 CXXFLAGS="-O2"
23772 else
23773 CXXFLAGS=
23774 fi
23775fi
23776ac_ext=cpp
23777ac_cpp='$CXXCPP $CPPFLAGS'
23778ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23779ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23780ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23781
23782depcc="$CXX" am_compiler_list=
23783
cristy8b350f62009-11-15 23:12:43 +000023784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
cristy3ed852e2009-09-05 21:47:34 +000023785$as_echo_n "checking dependency style of $depcc... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023786if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023787 $as_echo_n "(cached) " >&6
23788else
23789 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
23790 # We make a subdir and do the tests there. Otherwise we can end up
23791 # making bogus files that we don't know about and never remove. For
23792 # instance it was reported that on HP-UX the gcc test will end up
23793 # making a dummy file named `D' -- because `-MD' means `put the output
23794 # in D'.
23795 mkdir conftest.dir
23796 # Copy depcomp to subdir because otherwise we won't find it if we're
23797 # using a relative directory.
23798 cp "$am_depcomp" conftest.dir
23799 cd conftest.dir
23800 # We will build objects and dependencies in a subdirectory because
23801 # it helps to detect inapplicable dependency modes. For instance
23802 # both Tru64's cc and ICC support -MD to output dependencies as a
23803 # side effect of compilation, but ICC will put the dependencies in
23804 # the current directory while Tru64 will put them in the object
23805 # directory.
23806 mkdir sub
23807
23808 am_cv_CXX_dependencies_compiler_type=none
23809 if test "$am_compiler_list" = ""; then
23810 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
23811 fi
23812 am__universal=false
23813 case " $depcc " in #(
23814 *\ -arch\ *\ -arch\ *) am__universal=true ;;
23815 esac
23816
23817 for depmode in $am_compiler_list; do
23818 # Setup a source with many dependencies, because some compilers
23819 # like to wrap large dependency lists on column 80 (with \), and
23820 # we should not choose a depcomp mode which is confused by this.
23821 #
23822 # We need to recreate these files for each test, as the compiler may
23823 # overwrite some of them when testing with obscure command lines.
23824 # This happens at least with the AIX C compiler.
23825 : > sub/conftest.c
23826 for i in 1 2 3 4 5 6; do
23827 echo '#include "conftst'$i'.h"' >> sub/conftest.c
23828 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
23829 # Solaris 8's {/usr,}/bin/sh.
23830 touch sub/conftst$i.h
23831 done
23832 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
23833
23834 # We check with `-c' and `-o' for the sake of the "dashmstdout"
23835 # mode. It turns out that the SunPro C++ compiler does not properly
23836 # handle `-M -o', and we need to detect this. Also, some Intel
23837 # versions had trouble with output in subdirs
23838 am__obj=sub/conftest.${OBJEXT-o}
23839 am__minus_obj="-o $am__obj"
23840 case $depmode in
23841 gcc)
23842 # This depmode causes a compiler race in universal mode.
23843 test "$am__universal" = false || continue
23844 ;;
23845 nosideeffect)
23846 # after this tag, mechanisms are not by side-effect, so they'll
23847 # only be used when explicitly requested
23848 if test "x$enable_dependency_tracking" = xyes; then
23849 continue
23850 else
23851 break
23852 fi
23853 ;;
23854 msvisualcpp | msvcmsys)
23855 # This compiler won't grok `-c -o', but also, the minuso test has
23856 # not run yet. These depmodes are late enough in the game, and
23857 # so weak that their functioning should not be impacted.
23858 am__obj=conftest.${OBJEXT-o}
23859 am__minus_obj=
23860 ;;
23861 none) break ;;
23862 esac
23863 if depmode=$depmode \
23864 source=sub/conftest.c object=$am__obj \
23865 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
23866 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
23867 >/dev/null 2>conftest.err &&
23868 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
23869 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
23870 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
23871 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
23872 # icc doesn't choke on unknown options, it will just issue warnings
23873 # or remarks (even with -Werror). So we grep stderr for any message
23874 # that says an option was ignored or not supported.
23875 # When given -MP, icc 7.0 and 7.1 complain thusly:
23876 # icc: Command line warning: ignoring option '-M'; no argument required
23877 # The diagnosis changed in icc 8.0:
23878 # icc: Command line remark: option '-MP' not supported
23879 if (grep 'ignoring option' conftest.err ||
23880 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
23881 am_cv_CXX_dependencies_compiler_type=$depmode
23882 break
23883 fi
23884 fi
23885 done
23886
23887 cd ..
23888 rm -rf conftest.dir
23889else
23890 am_cv_CXX_dependencies_compiler_type=none
23891fi
23892
23893fi
cristy8b350f62009-11-15 23:12:43 +000023894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023895$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
23896CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
23897
23898 if
23899 test "x$enable_dependency_tracking" != xno \
23900 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
23901 am__fastdepCXX_TRUE=
23902 am__fastdepCXX_FALSE='#'
23903else
23904 am__fastdepCXX_TRUE='#'
23905 am__fastdepCXX_FALSE=
23906fi
23907
23908
cristy8b350f62009-11-15 23:12:43 +000023909 { $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 +000023910$as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
cristy964cb7f2010-04-25 23:18:00 +000023911if test "${ax_cv_cxx_bool+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023912 $as_echo_n "(cached) " >&6
23913else
23914
23915 ac_ext=cpp
23916ac_cpp='$CXXCPP $CPPFLAGS'
23917ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23918ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23919ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23920
cristy8b350f62009-11-15 23:12:43 +000023921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023922/* end confdefs.h. */
23923
23924int f(int x){return 1;}
23925int f(char x){return 1;}
23926int f(bool x){return 1;}
23927
23928int
23929main ()
23930{
23931bool b = true; return f(b);
23932 ;
23933 return 0;
23934}
23935_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023936if ac_fn_cxx_try_compile "$LINENO"; then :
cristy964cb7f2010-04-25 23:18:00 +000023937 ax_cv_cxx_bool=yes
cristy3ed852e2009-09-05 21:47:34 +000023938else
cristy964cb7f2010-04-25 23:18:00 +000023939 ax_cv_cxx_bool=no
cristy3ed852e2009-09-05 21:47:34 +000023940fi
cristy3ed852e2009-09-05 21:47:34 +000023941rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23942 ac_ext=cpp
23943ac_cpp='$CXXCPP $CPPFLAGS'
23944ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23945ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23946ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23947
23948
23949fi
cristy964cb7f2010-04-25 23:18:00 +000023950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_bool" >&5
23951$as_echo "$ax_cv_cxx_bool" >&6; }
23952if test "$ax_cv_cxx_bool" = yes; then
cristy3ed852e2009-09-05 21:47:34 +000023953
cristy8b350f62009-11-15 23:12:43 +000023954$as_echo "#define HAVE_BOOL /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023955
23956fi
23957
cristy8b350f62009-11-15 23:12:43 +000023958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
cristy3ed852e2009-09-05 21:47:34 +000023959$as_echo_n "checking whether the compiler implements namespaces... " >&6; }
cristy964cb7f2010-04-25 23:18:00 +000023960if test "${ax_cv_cxx_namespaces+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023961 $as_echo_n "(cached) " >&6
23962else
23963
23964 ac_ext=cpp
23965ac_cpp='$CXXCPP $CPPFLAGS'
23966ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23967ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23968ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23969
cristy8b350f62009-11-15 23:12:43 +000023970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023971/* end confdefs.h. */
23972namespace Outer { namespace Inner { int i = 0; }}
23973int
23974main ()
23975{
23976using namespace Outer::Inner; return i;
23977 ;
23978 return 0;
23979}
23980_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023981if ac_fn_cxx_try_compile "$LINENO"; then :
cristy964cb7f2010-04-25 23:18:00 +000023982 ax_cv_cxx_namespaces=yes
cristy3ed852e2009-09-05 21:47:34 +000023983else
cristy964cb7f2010-04-25 23:18:00 +000023984 ax_cv_cxx_namespaces=no
cristy3ed852e2009-09-05 21:47:34 +000023985fi
cristy3ed852e2009-09-05 21:47:34 +000023986rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23987 ac_ext=cpp
23988ac_cpp='$CXXCPP $CPPFLAGS'
23989ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23990ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23991ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23992
23993
23994fi
cristy964cb7f2010-04-25 23:18:00 +000023995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_namespaces" >&5
23996$as_echo "$ax_cv_cxx_namespaces" >&6; }
23997if test "$ax_cv_cxx_namespaces" = yes; then
cristy3ed852e2009-09-05 21:47:34 +000023998
cristy8b350f62009-11-15 23:12:43 +000023999$as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024000
24001fi
24002
cristy964cb7f2010-04-25 23:18:00 +000024003
24004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports namespace std" >&5
24005$as_echo_n "checking if g++ supports namespace std... " >&6; }
24006if test "${ax_cv_cxx_have_std_namespace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024007 $as_echo_n "(cached) " >&6
24008else
24009
cristy964cb7f2010-04-25 23:18:00 +000024010 ac_ext=cpp
cristy3ed852e2009-09-05 21:47:34 +000024011ac_cpp='$CXXCPP $CPPFLAGS'
24012ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24013ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24014ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24015
cristy964cb7f2010-04-25 23:18:00 +000024016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024017/* end confdefs.h. */
24018#include <iostream>
cristy964cb7f2010-04-25 23:18:00 +000024019 std::istream& is = std::cin;
cristy3ed852e2009-09-05 21:47:34 +000024020int
24021main ()
24022{
cristy964cb7f2010-04-25 23:18:00 +000024023
cristy3ed852e2009-09-05 21:47:34 +000024024 ;
24025 return 0;
24026}
24027_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024028if ac_fn_cxx_try_compile "$LINENO"; then :
cristy964cb7f2010-04-25 23:18:00 +000024029 ax_cv_cxx_have_std_namespace=yes
cristy3ed852e2009-09-05 21:47:34 +000024030else
cristy964cb7f2010-04-25 23:18:00 +000024031 ax_cv_cxx_have_std_namespace=no
cristy3ed852e2009-09-05 21:47:34 +000024032fi
cristy3ed852e2009-09-05 21:47:34 +000024033rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy964cb7f2010-04-25 23:18:00 +000024034 ac_ext=cpp
cristy3ed852e2009-09-05 21:47:34 +000024035ac_cpp='$CXXCPP $CPPFLAGS'
24036ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24037ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24038ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24039
24040
24041fi
cristy964cb7f2010-04-25 23:18:00 +000024042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_have_std_namespace" >&5
24043$as_echo "$ax_cv_cxx_have_std_namespace" >&6; }
24044 if test "$ax_cv_cxx_have_std_namespace" = yes; then
cristy3ed852e2009-09-05 21:47:34 +000024045
cristy964cb7f2010-04-25 23:18:00 +000024046$as_echo "#define HAVE_NAMESPACE_STD /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024047
cristy964cb7f2010-04-25 23:18:00 +000024048 fi
cristy3ed852e2009-09-05 21:47:34 +000024049
cristy8b350f62009-11-15 23:12:43 +000024050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
cristy3ed852e2009-09-05 21:47:34 +000024051$as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024052if test "${ac_cv_cxx_have_std_libs+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024053 $as_echo_n "(cached) " >&6
24054else
24055
24056
24057 ac_ext=cpp
24058ac_cpp='$CXXCPP $CPPFLAGS'
24059ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24060ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24061ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24062
cristy8b350f62009-11-15 23:12:43 +000024063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024064/* end confdefs.h. */
24065#include <iostream>
24066#include <map>
24067#include <iomanip>
24068#include <cmath>
24069#ifdef HAVE_NAMESPACES
24070using namespace std;
24071#endif
24072int
24073main ()
24074{
24075return 0;
24076 ;
24077 return 0;
24078}
24079_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024080if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024081 ac_cv_cxx_have_std_libs=yes
24082else
cristy8b350f62009-11-15 23:12:43 +000024083 ac_cv_cxx_have_std_libs=no
cristy3ed852e2009-09-05 21:47:34 +000024084fi
cristy3ed852e2009-09-05 21:47:34 +000024085rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24086 ac_ext=cpp
24087ac_cpp='$CXXCPP $CPPFLAGS'
24088ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24089ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24090ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24091
24092
24093fi
cristy8b350f62009-11-15 23:12:43 +000024094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
cristy3ed852e2009-09-05 21:47:34 +000024095$as_echo "$ac_cv_cxx_have_std_libs" >&6; }
24096if test "$ac_cv_cxx_have_std_libs" = yes; then
24097
cristy8b350f62009-11-15 23:12:43 +000024098$as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024099
24100fi
24101
cristy8b350f62009-11-15 23:12:43 +000024102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements L\"widestring\"" >&5
cristy3ed852e2009-09-05 21:47:34 +000024103$as_echo_n "checking whether the compiler implements L\"widestring\"... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024104if test "${ac_cv_cxx_have_lstring+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024105 $as_echo_n "(cached) " >&6
24106else
24107
24108 ac_ext=cpp
24109ac_cpp='$CXXCPP $CPPFLAGS'
24110ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24111ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24112ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24113
cristy8b350f62009-11-15 23:12:43 +000024114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024115/* end confdefs.h. */
24116const wchar_t* s=L"wide string";
24117_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024118if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024119 ac_cv_cxx_have_lstring=yes
24120else
cristy8b350f62009-11-15 23:12:43 +000024121 ac_cv_cxx_have_lstring=no
cristy3ed852e2009-09-05 21:47:34 +000024122fi
cristy3ed852e2009-09-05 21:47:34 +000024123rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24124 ac_ext=cpp
24125ac_cpp='$CXXCPP $CPPFLAGS'
24126ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24127ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24128ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24129
24130
24131fi
cristy8b350f62009-11-15 23:12:43 +000024132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_lstring" >&5
cristy3ed852e2009-09-05 21:47:34 +000024133$as_echo "$ac_cv_cxx_have_lstring" >&6; }
24134if test "$ac_cv_cxx_have_lstring" = yes; then
24135
cristy8b350f62009-11-15 23:12:43 +000024136$as_echo "#define HAVE_LSTRING /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024137
24138fi
24139
24140
24141 OPENMP_CXXFLAGS=
24142 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +000024143if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024144 enableval=$enable_openmp;
24145fi
24146
24147 if test "$enable_openmp" != no; then
cristycd4c5312009-11-22 01:19:08 +000024148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
24149$as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024150if test "${ac_cv_prog_cxx_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024151 $as_echo_n "(cached) " >&6
24152else
cristy8b350f62009-11-15 23:12:43 +000024153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24154/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000024155
24156#ifndef _OPENMP
24157 choke me
24158#endif
24159#include <omp.h>
24160int main () { return omp_get_num_threads (); }
24161
24162_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024163if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024164 ac_cv_prog_cxx_openmp='none needed'
24165else
cristy8b350f62009-11-15 23:12:43 +000024166 ac_cv_prog_cxx_openmp='unsupported'
cristy3ed852e2009-09-05 21:47:34 +000024167 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
24168 ac_save_CXXFLAGS=$CXXFLAGS
24169 CXXFLAGS="$CXXFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +000024170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24171/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000024172
24173#ifndef _OPENMP
24174 choke me
24175#endif
24176#include <omp.h>
24177int main () { return omp_get_num_threads (); }
24178
24179_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024180if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024181 ac_cv_prog_cxx_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +000024182fi
cristy8b350f62009-11-15 23:12:43 +000024183rm -f core conftest.err conftest.$ac_objext \
24184 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024185 CXXFLAGS=$ac_save_CXXFLAGS
24186 if test "$ac_cv_prog_cxx_openmp" != unsupported; then
24187 break
24188 fi
24189 done
24190fi
cristy8b350f62009-11-15 23:12:43 +000024191rm -f core conftest.err conftest.$ac_objext \
24192 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024193fi
cristy8b350f62009-11-15 23:12:43 +000024194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024195$as_echo "$ac_cv_prog_cxx_openmp" >&6; }
24196 case $ac_cv_prog_cxx_openmp in #(
24197 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +000024198 ;; #(
cristy3ed852e2009-09-05 21:47:34 +000024199 *)
cristy8b350f62009-11-15 23:12:43 +000024200 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +000024201 esac
24202 fi
24203
24204
24205 ac_ext=c
24206ac_cpp='$CPP $CPPFLAGS'
24207ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24208ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24209ac_compiler_gnu=$ac_cv_c_compiler_gnu
24210
24211
cristy8b350f62009-11-15 23:12:43 +000024212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
cristy3ed852e2009-09-05 21:47:34 +000024213$as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
24214 if \
cristy964cb7f2010-04-25 23:18:00 +000024215 test $ax_cv_cxx_bool = 'yes' && \
cristy3ed852e2009-09-05 21:47:34 +000024216 test $ac_cv_cxx_have_lstring = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000024217 test $ax_cv_cxx_namespaces = 'yes' && \
cristy3ed852e2009-09-05 21:47:34 +000024218 test $ac_cv_cxx_have_std_libs = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000024219 test $ax_cv_cxx_have_std_namespace = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000024220 have_magick_plus_plus='yes'
24221 else
24222 have_magick_plus_plus='no (failed tests)'
24223 fi
cristy8b350f62009-11-15 23:12:43 +000024224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_magick_plus_plus" >&5
cristy3ed852e2009-09-05 21:47:34 +000024225$as_echo "$have_magick_plus_plus" >&6; }
24226 LIBS="$OLIBS"
24227fi
24228 if test "$have_magick_plus_plus" = 'yes'; then
24229 WITH_MAGICK_PLUS_PLUS_TRUE=
24230 WITH_MAGICK_PLUS_PLUS_FALSE='#'
24231else
24232 WITH_MAGICK_PLUS_PLUS_TRUE='#'
24233 WITH_MAGICK_PLUS_PLUS_FALSE=
24234fi
24235
24236
24237# Only check for delegate libraries in subdirectories if requested.
24238if test "$enable_delegate_build" != 'no'; then
24239 # Check for delegate sub-directories and add -I & -L options as required.
24240 # This presumes that delegates are installed as detailed in the ImageMagick
24241 # README. If delegates are installed in a standard location where the
24242 # compiler will automatically find them then these options should not be
24243 # required.
24244
24245 #
24246 # Most delegates have includes in the same directory as the library, but not all...
24247 #
24248 # Includes
cristy5850e4b2010-01-08 14:28:24 +000024249 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 +000024250 if test -d "$builddir/$dir"; then
24251 CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
24252 else
24253 if test -d "$srcdirfull/$dir"; then
24254 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
24255 fi
24256 fi
24257 done
24258
24259 # Libraries
cristy5850e4b2010-01-08 14:28:24 +000024260 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 +000024261 if test -d "$builddir/$dir/.libs"; then
24262 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
24263 else
24264 if test -d "$srcdirfull/$dir/.libs"; then
24265 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
24266 fi
24267 fi
24268 if test -d "$builddir/$dir"; then
24269 LDFLAGS="$LDFLAGS -L$builddir/$dir"
24270 else
24271 if test -d "$srcdirfull/$dir"; then
24272 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
24273 fi
24274 fi
24275 done
24276fi
24277
24278# Assume that delegate headers reside under same directory as ImageMagick
24279# installation prefix.
24280MAGICK_CPPFLAGS="-I$INCLUDE_DIR/ImageMagick $MAGICK_CPPFLAGS"
24281
24282#
24283# Find the X11 RGB database
24284#
cristy8b350f62009-11-15 23:12:43 +000024285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
cristy3ed852e2009-09-05 21:47:34 +000024286$as_echo_n "checking for X11 configure files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024287if test "${im_cv_x_configure+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024288 $as_echo_n "(cached) " >&6
24289else
24290 # Look for the header file in a standard set of common directories.
24291# Check X11 before X11Rn because it is often a symlink to the current release.
24292 for ac_dir in \
24293 /lib/usr/lib/X11 \
24294 /usr/X11/lib \
24295 /usr/X11R4/lib \
24296 /usr/X11R5/lib \
24297 /usr/X11R6/lib \
24298 /usr/X11R7/lib \
24299 /usr/X386/lib \
24300 /usr/XFree86/lib/X11 \
24301 /usr/athena/lib \
24302 /usr/lib \
24303 /usr/lib/X11 \
24304 /usr/lib/X11R4 \
24305 /usr/lib/X11R5 \
24306 /usr/lib/X11R6 \
24307 /usr/lib/X11R7 \
24308 /usr/local/X11/lib \
24309 /usr/local/X11R4/lib \
24310 /usr/local/X11R5/lib \
24311 /usr/local/X11R6/lib \
24312 /usr/local/lib \
24313 /usr/local/lib/X11 \
24314 /usr/local/lib/X11R4 \
24315 /usr/local/lib/X11R5 \
24316 /usr/local/lib/X11R6 \
24317 /usr/local/lib/X11R7 \
24318 /usr/local/x11r5/lib \
24319 /usr/lpp/Xamples/lib \
24320 /usr/openwin/lib \
24321 /usr/openwin/share/lib \
24322 /usr/unsupported/lib \
24323 /usr/x386/lib \
24324 ; do
24325 if test -f "$ac_dir/X11/rgb.txt"; then
24326 im_cv_x_configure="$ac_dir/X11/"
24327 break
24328 elif test -f "$ac_dir/rgb.txt"; then
24329 im_cv_x_configure="$ac_dir/"
24330 break
24331 fi
24332
24333 done
24334fi
cristy8b350f62009-11-15 23:12:43 +000024335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
cristy3ed852e2009-09-05 21:47:34 +000024336$as_echo "$im_cv_x_configure" >&6; }
24337X11_CONFIGURE_PATH="$im_cv_x_configure"
24338case "${build_os}" in
24339 mingw* )
24340 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
24341 ;;
24342esac
24343
24344cat >>confdefs.h <<_ACEOF
24345#define X11_CONFIGURE_PATH "$X11ConfigurePath"
24346_ACEOF
24347
24348
24349#
24350# Find OpenMP library
24351#
24352GOMP_LIBS=''
24353if test "$enable_openmp" != 'no'; then
24354 if test "${GCC}" = "yes"; then
cristy8b350f62009-11-15 23:12:43 +000024355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024356$as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024357if test "${ac_cv_lib_gomp_GOMP_parallel_start+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024358 $as_echo_n "(cached) " >&6
24359else
24360 ac_check_lib_save_LIBS=$LIBS
24361LIBS="-lgomp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024362cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024363/* end confdefs.h. */
24364
24365/* Override any GCC internal prototype to avoid an error.
24366 Use char because int might match the return type of a GCC
24367 builtin and then its argument prototype would still apply. */
24368#ifdef __cplusplus
24369extern "C"
24370#endif
24371char GOMP_parallel_start ();
24372int
24373main ()
24374{
24375return GOMP_parallel_start ();
24376 ;
24377 return 0;
24378}
24379_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024380if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024381 ac_cv_lib_gomp_GOMP_parallel_start=yes
24382else
cristy8b350f62009-11-15 23:12:43 +000024383 ac_cv_lib_gomp_GOMP_parallel_start=no
cristy3ed852e2009-09-05 21:47:34 +000024384fi
cristy8b350f62009-11-15 23:12:43 +000024385rm -f core conftest.err conftest.$ac_objext \
24386 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024387LIBS=$ac_check_lib_save_LIBS
24388fi
cristy8b350f62009-11-15 23:12:43 +000024389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
cristy3ed852e2009-09-05 21:47:34 +000024390$as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024391if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024392 GOMP_LIBS="-lgomp"
24393fi
24394 # gcc
24395 else
cristy8b350f62009-11-15 23:12:43 +000024396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
cristy3ed852e2009-09-05 21:47:34 +000024397$as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024398if test "${ac_cv_lib_mtsk_sunw_mp_register_warn+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024399 $as_echo_n "(cached) " >&6
24400else
24401 ac_check_lib_save_LIBS=$LIBS
24402LIBS="-lmtsk $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024403cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024404/* end confdefs.h. */
24405
24406/* Override any GCC internal prototype to avoid an error.
24407 Use char because int might match the return type of a GCC
24408 builtin and then its argument prototype would still apply. */
24409#ifdef __cplusplus
24410extern "C"
24411#endif
24412char sunw_mp_register_warn ();
24413int
24414main ()
24415{
24416return sunw_mp_register_warn ();
24417 ;
24418 return 0;
24419}
24420_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024421if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024422 ac_cv_lib_mtsk_sunw_mp_register_warn=yes
24423else
cristy8b350f62009-11-15 23:12:43 +000024424 ac_cv_lib_mtsk_sunw_mp_register_warn=no
cristy3ed852e2009-09-05 21:47:34 +000024425fi
cristy8b350f62009-11-15 23:12:43 +000024426rm -f core conftest.err conftest.$ac_objext \
24427 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024428LIBS=$ac_check_lib_save_LIBS
24429fi
cristy8b350f62009-11-15 23:12:43 +000024430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
cristy3ed852e2009-09-05 21:47:34 +000024431$as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024432if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024433 GOMP_LIBS="-lmtsk"
24434fi
24435 # solaris cc
cristy8b350f62009-11-15 23:12:43 +000024436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024437$as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024438if test "${ac_cv_lib_xlsmp__xlsmpFlush+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024439 $as_echo_n "(cached) " >&6
24440else
24441 ac_check_lib_save_LIBS=$LIBS
24442LIBS="-lxlsmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024443cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024444/* end confdefs.h. */
24445
24446/* Override any GCC internal prototype to avoid an error.
24447 Use char because int might match the return type of a GCC
24448 builtin and then its argument prototype would still apply. */
24449#ifdef __cplusplus
24450extern "C"
24451#endif
24452char _xlsmpFlush ();
24453int
24454main ()
24455{
24456return _xlsmpFlush ();
24457 ;
24458 return 0;
24459}
24460_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024461if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024462 ac_cv_lib_xlsmp__xlsmpFlush=yes
24463else
cristy8b350f62009-11-15 23:12:43 +000024464 ac_cv_lib_xlsmp__xlsmpFlush=no
cristy3ed852e2009-09-05 21:47:34 +000024465fi
cristy8b350f62009-11-15 23:12:43 +000024466rm -f core conftest.err conftest.$ac_objext \
24467 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024468LIBS=$ac_check_lib_save_LIBS
24469fi
cristy8b350f62009-11-15 23:12:43 +000024470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
cristy3ed852e2009-09-05 21:47:34 +000024471$as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024472if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024473 GOMP_LIBS="-lxlsmp"
24474fi
24475 # AIX xlc
cristy8b350f62009-11-15 23:12:43 +000024476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024477$as_echo_n "checking for mp_destroy in -lmp... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024478if test "${ac_cv_lib_mp_mp_destroy+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024479 $as_echo_n "(cached) " >&6
24480else
24481 ac_check_lib_save_LIBS=$LIBS
24482LIBS="-lmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024483cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024484/* end confdefs.h. */
24485
24486/* Override any GCC internal prototype to avoid an error.
24487 Use char because int might match the return type of a GCC
24488 builtin and then its argument prototype would still apply. */
24489#ifdef __cplusplus
24490extern "C"
24491#endif
24492char mp_destroy ();
24493int
24494main ()
24495{
24496return mp_destroy ();
24497 ;
24498 return 0;
24499}
24500_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024501if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024502 ac_cv_lib_mp_mp_destroy=yes
24503else
cristy8b350f62009-11-15 23:12:43 +000024504 ac_cv_lib_mp_mp_destroy=no
cristy3ed852e2009-09-05 21:47:34 +000024505fi
cristy8b350f62009-11-15 23:12:43 +000024506rm -f core conftest.err conftest.$ac_objext \
24507 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024508LIBS=$ac_check_lib_save_LIBS
24509fi
cristy8b350f62009-11-15 23:12:43 +000024510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
cristy3ed852e2009-09-05 21:47:34 +000024511$as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024512if test "x$ac_cv_lib_mp_mp_destroy" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024513 GOMP_LIBS="-lmp"
24514fi
24515 # SGI IRIX 6.5 MIPSpro C/C++
24516 fi
24517 LIBS="$GOMP_LIBS $LIBS"
24518fi
24519
24520
24521#
24522# Find Posix threads library
24523#
24524THREAD_LIBS=''
24525if test "$with_threads" != 'no' && test "$have_threads" = 'yes'; then
24526
24527 if test "x$PTHREAD_LIBS" = "x"; then
24528 case "${host_cpu}-${host_os}" in
24529 *-freebsd*)
24530
24531
24532
24533ac_ext=c
24534ac_cpp='$CPP $CPPFLAGS'
24535ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24536ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24537ac_compiler_gnu=$ac_cv_c_compiler_gnu
24538
24539magick_pthread_lib_ok=no
24540
24541LIB=-lc_r
24542save_LIBS="$LIBS"
24543LIBS="$LIBS $LIB"
24544
cristy8b350f62009-11-15 23:12:43 +000024545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000024546$as_echo_n "checking for the pthreads library $LIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024547cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024548/* end confdefs.h. */
24549#include <pthread.h>
24550int
24551main ()
24552{
24553 pthread_t th;
24554 pthread_join(th, 0);
24555 pthread_attr_init(0);
24556 pthread_cleanup_push(0, 0);
24557 pthread_create(0,0,0,0);
24558 pthread_cleanup_pop(0);
24559 ;
24560 return 0;
24561}
24562_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024563if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024564 magick_pthread_lib_ok=yes
cristy3ed852e2009-09-05 21:47:34 +000024565fi
cristy8b350f62009-11-15 23:12:43 +000024566rm -f core conftest.err conftest.$ac_objext \
24567 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024568
cristy8b350f62009-11-15 23:12:43 +000024569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
cristy3ed852e2009-09-05 21:47:34 +000024570$as_echo "${magick_pthread_lib_ok}" >&6; }
24571if test "$magick_pthread_lib_ok" = yes
24572then
24573 PTHREAD_LIBS=-lc_r
24574 :
24575else
24576
24577 :
24578fi
24579
24580LIBS="$save_LIBS"
24581
24582ac_ext=c
24583ac_cpp='$CPP $CPPFLAGS'
24584ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24585ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24586ac_compiler_gnu=$ac_cv_c_compiler_gnu
24587
24588 ;;
24589 esac
24590 fi
24591
24592 for lib in pthread pthreads; do
24593 if test "x$PTHREAD_LIBS" = "x"; then
24594
24595
24596
24597ac_ext=c
24598ac_cpp='$CPP $CPPFLAGS'
24599ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24600ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24601ac_compiler_gnu=$ac_cv_c_compiler_gnu
24602
24603magick_pthread_lib_ok=no
24604
24605LIB=-l$lib
24606save_LIBS="$LIBS"
24607LIBS="$LIBS $LIB"
24608
cristy8b350f62009-11-15 23:12:43 +000024609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000024610$as_echo_n "checking for the pthreads library $LIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024611cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024612/* end confdefs.h. */
24613#include <pthread.h>
24614int
24615main ()
24616{
24617 pthread_t th;
24618 pthread_join(th, 0);
24619 pthread_attr_init(0);
24620 pthread_cleanup_push(0, 0);
24621 pthread_create(0,0,0,0);
24622 pthread_cleanup_pop(0);
24623 ;
24624 return 0;
24625}
24626_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024627if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024628 magick_pthread_lib_ok=yes
cristy3ed852e2009-09-05 21:47:34 +000024629fi
cristy8b350f62009-11-15 23:12:43 +000024630rm -f core conftest.err conftest.$ac_objext \
24631 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024632
cristy8b350f62009-11-15 23:12:43 +000024633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
cristy3ed852e2009-09-05 21:47:34 +000024634$as_echo "${magick_pthread_lib_ok}" >&6; }
24635if test "$magick_pthread_lib_ok" = yes
24636then
24637 PTHREAD_LIBS=-l$lib
24638 :
24639else
24640
24641 :
24642fi
24643
24644LIBS="$save_LIBS"
24645
24646ac_ext=c
24647ac_cpp='$CPP $CPPFLAGS'
24648ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24649ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24650ac_compiler_gnu=$ac_cv_c_compiler_gnu
24651
24652
24653 fi
24654 done
24655
24656 THREAD_LIBS="$PTHREAD_LIBS"
24657 LIBS="$LIBS $THREAD_LIBS"
24658fi
24659
24660
24661#
24662# Check for umem.
24663#
24664have_umem='no'
24665UMEM_LIBS=''
24666if test "$with_umem" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000024667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
cristy3ed852e2009-09-05 21:47:34 +000024668$as_echo_n "checking for UMEM support ... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000024670$as_echo "" >&6; }
24671 failed=0
24672 passed=0
cristy8b350f62009-11-15 23:12:43 +000024673 ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
24674if test "x$ac_cv_header_umem_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024675 passed=`expr $passed + 1`
24676else
24677 failed=`expr $failed + 1`
24678fi
24679
24680
cristy8b350f62009-11-15 23:12:43 +000024681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000024682$as_echo_n "checking for umem_alloc in -lumem... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024683if test "${ac_cv_lib_umem_umem_alloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024684 $as_echo_n "(cached) " >&6
24685else
24686 ac_check_lib_save_LIBS=$LIBS
24687LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024688cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024689/* end confdefs.h. */
24690
24691/* Override any GCC internal prototype to avoid an error.
24692 Use char because int might match the return type of a GCC
24693 builtin and then its argument prototype would still apply. */
24694#ifdef __cplusplus
24695extern "C"
24696#endif
24697char umem_alloc ();
24698int
24699main ()
24700{
24701return umem_alloc ();
24702 ;
24703 return 0;
24704}
24705_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024706if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024707 ac_cv_lib_umem_umem_alloc=yes
24708else
cristy8b350f62009-11-15 23:12:43 +000024709 ac_cv_lib_umem_umem_alloc=no
cristy3ed852e2009-09-05 21:47:34 +000024710fi
cristy8b350f62009-11-15 23:12:43 +000024711rm -f core conftest.err conftest.$ac_objext \
24712 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024713LIBS=$ac_check_lib_save_LIBS
24714fi
cristy8b350f62009-11-15 23:12:43 +000024715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000024716$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024717if test "x$ac_cv_lib_umem_umem_alloc" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024718 passed=`expr $passed + 1`
24719else
24720 failed=`expr $failed + 1`
24721fi
24722
cristy8b350f62009-11-15 23:12:43 +000024723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000024724$as_echo_n "checking for umem_free in -lumem... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024725if test "${ac_cv_lib_umem_umem_free+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024726 $as_echo_n "(cached) " >&6
24727else
24728 ac_check_lib_save_LIBS=$LIBS
24729LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024730cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024731/* end confdefs.h. */
24732
24733/* Override any GCC internal prototype to avoid an error.
24734 Use char because int might match the return type of a GCC
24735 builtin and then its argument prototype would still apply. */
24736#ifdef __cplusplus
24737extern "C"
24738#endif
24739char umem_free ();
24740int
24741main ()
24742{
24743return umem_free ();
24744 ;
24745 return 0;
24746}
24747_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024748if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024749 ac_cv_lib_umem_umem_free=yes
24750else
cristy8b350f62009-11-15 23:12:43 +000024751 ac_cv_lib_umem_umem_free=no
cristy3ed852e2009-09-05 21:47:34 +000024752fi
cristy8b350f62009-11-15 23:12:43 +000024753rm -f core conftest.err conftest.$ac_objext \
24754 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024755LIBS=$ac_check_lib_save_LIBS
24756fi
cristy8b350f62009-11-15 23:12:43 +000024757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
cristy3ed852e2009-09-05 21:47:34 +000024758$as_echo "$ac_cv_lib_umem_umem_free" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024759if test "x$ac_cv_lib_umem_umem_free" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024760 passed=`expr $passed + 1`
24761else
24762 failed=`expr $failed + 1`
24763fi
24764
cristy8b350f62009-11-15 23:12:43 +000024765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000024766$as_echo_n "checking if umem memory allocation library is complete... " >&6; }
24767 if test $passed -gt 0; then
24768 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000024769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000024770$as_echo "no -- some components failed test" >&6; }
24771 have_umem='no (failed tests)'
24772 else
24773 UMEM_LIBS='-lumem'
24774 LIBS="$UMEM_LIBS $LIBS"
24775
cristy8b350f62009-11-15 23:12:43 +000024776$as_echo "#define HasUMEM 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024777
cristy8b350f62009-11-15 23:12:43 +000024778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000024779$as_echo "yes" >&6; }
24780 have_umem='yes'
24781 fi
24782 else
cristy8b350f62009-11-15 23:12:43 +000024783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000024784$as_echo "no" >&6; }
24785 fi
24786fi
24787 if test "$have_umem" = 'yes'; then
24788 HasUMEM_TRUE=
24789 HasUMEM_FALSE='#'
24790else
24791 HasUMEM_TRUE='#'
24792 HasUMEM_FALSE=
24793fi
24794
24795
24796
24797#
24798# Add support for ccmalloc memory debugging library if requested
24799#
24800have_ccmalloc='no'
24801CCMALLOC_LIBS=''
24802if test "$enable_ccmalloc" = 'yes'; then
24803 # Extract the first word of "ccmalloc", so it can be a program name with args.
24804set dummy ccmalloc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000024805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000024806$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024807if test "${ac_cv_path_CCMALLOCDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024808 $as_echo_n "(cached) " >&6
24809else
24810 case $CCMALLOCDelegate in
24811 [\\/]* | ?:[\\/]*)
24812 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
24813 ;;
24814 *)
24815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24816for as_dir in $PATH
24817do
24818 IFS=$as_save_IFS
24819 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000024820 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000024821 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24822 ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000024823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000024824 break 2
24825 fi
24826done
cristy8b350f62009-11-15 23:12:43 +000024827 done
cristy3ed852e2009-09-05 21:47:34 +000024828IFS=$as_save_IFS
24829
24830 ;;
24831esac
24832fi
24833CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
24834if test -n "$CCMALLOCDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000024835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000024836$as_echo "$CCMALLOCDelegate" >&6; }
24837else
cristy8b350f62009-11-15 23:12:43 +000024838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000024839$as_echo "no" >&6; }
24840fi
24841
24842
24843 if test -n "$CCMALLOCDelegate"; then
24844 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
24845 OLIBS="$LIBS"
24846 # Assume that gcc is used with ccmalloc.
24847 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
cristy8b350f62009-11-15 23:12:43 +000024848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000024849$as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024850if test "${ac_cv_lib_ccmalloc_ccmalloc_malloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024851 $as_echo_n "(cached) " >&6
24852else
24853 ac_check_lib_save_LIBS=$LIBS
24854LIBS="-lccmalloc -ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024855cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024856/* end confdefs.h. */
24857
24858/* Override any GCC internal prototype to avoid an error.
24859 Use char because int might match the return type of a GCC
24860 builtin and then its argument prototype would still apply. */
24861#ifdef __cplusplus
24862extern "C"
24863#endif
24864char ccmalloc_malloc ();
24865int
24866main ()
24867{
24868return ccmalloc_malloc ();
24869 ;
24870 return 0;
24871}
24872_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024873if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024874 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
24875else
cristy8b350f62009-11-15 23:12:43 +000024876 ac_cv_lib_ccmalloc_ccmalloc_malloc=no
cristy3ed852e2009-09-05 21:47:34 +000024877fi
cristy8b350f62009-11-15 23:12:43 +000024878rm -f core conftest.err conftest.$ac_objext \
24879 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024880LIBS=$ac_check_lib_save_LIBS
24881fi
cristy8b350f62009-11-15 23:12:43 +000024882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000024883$as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024884if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024885 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
24886fi
24887
24888 if test -n "$CCMALLOC_LIBS"; then
24889 LIBS="$OLIBS"
24890 LIBS="$LIBS $CCMALLOC_LIBS"
24891 have_ccmalloc='yes'
24892 else
24893 LIBS="$OLIBS"
24894 fi
24895 fi
24896fi
24897
24898#
24899# Add support for efence memory debugging library if requested
24900#
24901if test "$enable_efence" = 'yes'; then
24902 EFENCE_LIBS='-lefence'
24903 LIBS="$EFENCE_LIBS $LIBS"
24904fi
24905
cristy3ed852e2009-09-05 21:47:34 +000024906
24907#
24908# Check for BZLIB
24909#
24910
24911
24912# Check whether --with-bzlib was given.
cristy8b350f62009-11-15 23:12:43 +000024913if test "${with_bzlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024914 withval=$with_bzlib; with_bzlib=$withval
24915else
24916 with_bzlib='yes'
24917fi
24918
24919
24920if test "$with_bzlib" != 'yes'; then
24921 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
24922fi
24923
24924have_bzlib='no'
24925if test "$with_bzlib" != 'no'; then
24926 BZLIB_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000024927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000024928$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000024930$as_echo_n "checking for BZLIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000024932$as_echo "" >&6; }
24933 failed=0
24934 passed=0
24935 found_libbz=0
cristy8b350f62009-11-15 23:12:43 +000024936 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
24937if test "x$ac_cv_header_bzlib_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024938 passed=`expr $passed + 1`
24939else
24940 failed=`expr $failed + 1`
24941fi
24942
24943
cristy8b350f62009-11-15 23:12:43 +000024944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000024945$as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024946if test "${ac_cv_lib_bz2_BZ2_bzDecompress+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024947 $as_echo_n "(cached) " >&6
24948else
24949 ac_check_lib_save_LIBS=$LIBS
24950LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024951cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024952/* end confdefs.h. */
24953
24954/* Override any GCC internal prototype to avoid an error.
24955 Use char because int might match the return type of a GCC
24956 builtin and then its argument prototype would still apply. */
24957#ifdef __cplusplus
24958extern "C"
24959#endif
24960char BZ2_bzDecompress ();
24961int
24962main ()
24963{
24964return BZ2_bzDecompress ();
24965 ;
24966 return 0;
24967}
24968_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024969if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024970 ac_cv_lib_bz2_BZ2_bzDecompress=yes
24971else
cristy8b350f62009-11-15 23:12:43 +000024972 ac_cv_lib_bz2_BZ2_bzDecompress=no
cristy3ed852e2009-09-05 21:47:34 +000024973fi
cristy8b350f62009-11-15 23:12:43 +000024974rm -f core conftest.err conftest.$ac_objext \
24975 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024976LIBS=$ac_check_lib_save_LIBS
24977fi
cristy8b350f62009-11-15 23:12:43 +000024978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000024979$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024980if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024981 found_libbz=`expr $found_libbz + 1`
24982fi
24983
24984 if test "$native_win32_build" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000024985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000024986$as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024987if test "${ac_cv_lib_bz2__imp__BZ2_decompress+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024988 $as_echo_n "(cached) " >&6
24989else
24990 ac_check_lib_save_LIBS=$LIBS
24991LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024992cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024993/* end confdefs.h. */
24994
24995/* Override any GCC internal prototype to avoid an error.
24996 Use char because int might match the return type of a GCC
24997 builtin and then its argument prototype would still apply. */
24998#ifdef __cplusplus
24999extern "C"
25000#endif
25001char _imp__BZ2_decompress ();
25002int
25003main ()
25004{
25005return _imp__BZ2_decompress ();
25006 ;
25007 return 0;
25008}
25009_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025010if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025011 ac_cv_lib_bz2__imp__BZ2_decompress=yes
25012else
cristy8b350f62009-11-15 23:12:43 +000025013 ac_cv_lib_bz2__imp__BZ2_decompress=no
cristy3ed852e2009-09-05 21:47:34 +000025014fi
cristy8b350f62009-11-15 23:12:43 +000025015rm -f core conftest.err conftest.$ac_objext \
25016 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025017LIBS=$ac_check_lib_save_LIBS
25018fi
cristy8b350f62009-11-15 23:12:43 +000025019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000025020$as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025021if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025022 found_libbz=`expr $found_libbz + 1`
25023fi
25024
25025 fi
25026 if test $found_libbz -gt 0; then
25027 passed=`expr $passed + 1`
25028 else
25029 failed=`expr $failed + 1`
25030 fi
cristy8b350f62009-11-15 23:12:43 +000025031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000025032$as_echo_n "checking if BZLIB package is complete... " >&6; }
25033 if test $passed -gt 0; then
25034 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000025035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000025036$as_echo "no -- some components failed test" >&6; }
25037 have_bzlib='no (failed tests)'
25038 else
25039 BZLIB_LIBS='-lbz2'
25040 LIBS="$BZLIB_LIBS $LIBS"
25041
cristy8b350f62009-11-15 23:12:43 +000025042$as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025043
cristy8b350f62009-11-15 23:12:43 +000025044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000025045$as_echo "yes" >&6; }
25046 have_bzlib='yes'
25047 fi
25048 else
cristy8b350f62009-11-15 23:12:43 +000025049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025050$as_echo "no" >&6; }
25051 fi
25052fi
25053 if test "$have_bzlib" = 'yes'; then
25054 BZLIB_DELEGATE_TRUE=
25055 BZLIB_DELEGATE_FALSE='#'
25056else
25057 BZLIB_DELEGATE_TRUE='#'
25058 BZLIB_DELEGATE_FALSE=
25059fi
25060
25061
25062
25063#
25064# Find the X11 include and library directories.
25065#
25066IPC_LIBS=''
25067X11_LIBS=''
25068XEXT_LIBS=''
25069XT_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000025070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
cristyc7083c12009-10-14 03:16:55 +000025071$as_echo_n "checking for X... " >&6; }
25072
25073
25074# Check whether --with-x was given.
cristy8b350f62009-11-15 23:12:43 +000025075if test "${with_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000025076 withval=$with_x;
25077fi
25078
25079# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
25080if test "x$with_x" = xno; then
25081 # The user explicitly disabled X.
25082 have_x=disabled
25083else
25084 case $x_includes,$x_libraries in #(
cristy8b350f62009-11-15 23:12:43 +000025085 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
25086 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000025087 $as_echo_n "(cached) " >&6
25088else
25089 # One or both of the vars are not set, and there is no cached value.
25090ac_x_includes=no ac_x_libraries=no
25091rm -f -r conftest.dir
25092if mkdir conftest.dir; then
25093 cd conftest.dir
25094 cat >Imakefile <<'_ACEOF'
25095incroot:
25096 @echo incroot='${INCROOT}'
25097usrlibdir:
25098 @echo usrlibdir='${USRLIBDIR}'
25099libdir:
25100 @echo libdir='${LIBDIR}'
25101_ACEOF
25102 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
25103 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
25104 for ac_var in incroot usrlibdir libdir; do
25105 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
25106 done
25107 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
25108 for ac_extension in a so sl dylib la dll; do
25109 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
25110 test -f "$ac_im_libdir/libX11.$ac_extension"; then
25111 ac_im_usrlibdir=$ac_im_libdir; break
25112 fi
25113 done
25114 # Screen out bogus values from the imake configuration. They are
25115 # bogus both because they are the default anyway, and because
25116 # using them would break gcc on systems where it needs fixed includes.
25117 case $ac_im_incroot in
25118 /usr/include) ac_x_includes= ;;
25119 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
25120 esac
25121 case $ac_im_usrlibdir in
25122 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
25123 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
25124 esac
25125 fi
25126 cd ..
25127 rm -f -r conftest.dir
25128fi
25129
25130# Standard set of common directories for X headers.
25131# Check X11 before X11Rn because it is often a symlink to the current release.
25132ac_x_header_dirs='
25133/usr/X11/include
cristy8b350f62009-11-15 23:12:43 +000025134/usr/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000025135/usr/X11R6/include
25136/usr/X11R5/include
25137/usr/X11R4/include
25138
25139/usr/include/X11
cristy8b350f62009-11-15 23:12:43 +000025140/usr/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000025141/usr/include/X11R6
25142/usr/include/X11R5
25143/usr/include/X11R4
25144
25145/usr/local/X11/include
cristy8b350f62009-11-15 23:12:43 +000025146/usr/local/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000025147/usr/local/X11R6/include
25148/usr/local/X11R5/include
25149/usr/local/X11R4/include
25150
25151/usr/local/include/X11
cristy8b350f62009-11-15 23:12:43 +000025152/usr/local/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000025153/usr/local/include/X11R6
25154/usr/local/include/X11R5
25155/usr/local/include/X11R4
25156
25157/usr/X386/include
25158/usr/x386/include
25159/usr/XFree86/include/X11
25160
25161/usr/include
25162/usr/local/include
25163/usr/unsupported/include
25164/usr/athena/include
25165/usr/local/x11r5/include
25166/usr/lpp/Xamples/include
25167
25168/usr/openwin/include
25169/usr/openwin/share/include'
25170
25171if test "$ac_x_includes" = no; then
25172 # Guess where to find include files, by looking for Xlib.h.
25173 # First, try using that file with no special directory specified.
cristy8b350f62009-11-15 23:12:43 +000025174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000025175/* end confdefs.h. */
25176#include <X11/Xlib.h>
25177_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025178if ac_fn_c_try_cpp "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000025179 # We can compile using X headers with no special include directory.
25180ac_x_includes=
25181else
cristyc7083c12009-10-14 03:16:55 +000025182 for ac_dir in $ac_x_header_dirs; do
25183 if test -r "$ac_dir/X11/Xlib.h"; then
25184 ac_x_includes=$ac_dir
25185 break
25186 fi
25187done
25188fi
cristyc7083c12009-10-14 03:16:55 +000025189rm -f conftest.err conftest.$ac_ext
25190fi # $ac_x_includes = no
25191
25192if test "$ac_x_libraries" = no; then
25193 # Check for the libraries.
25194 # See if we find them without any special options.
25195 # Don't add to $LIBS permanently.
25196 ac_save_LIBS=$LIBS
25197 LIBS="-lX11 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000025199/* end confdefs.h. */
25200#include <X11/Xlib.h>
25201int
25202main ()
25203{
25204XrmInitialize ()
25205 ;
25206 return 0;
25207}
25208_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025209if ac_fn_c_try_link "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000025210 LIBS=$ac_save_LIBS
25211# We can link X programs with no special library path.
25212ac_x_libraries=
25213else
cristy8b350f62009-11-15 23:12:43 +000025214 LIBS=$ac_save_LIBS
cristyc7083c12009-10-14 03:16:55 +000025215for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
25216do
25217 # Don't even attempt the hair of trying to link an X program!
25218 for ac_extension in a so sl dylib la dll; do
25219 if test -r "$ac_dir/libX11.$ac_extension"; then
25220 ac_x_libraries=$ac_dir
25221 break 2
25222 fi
25223 done
25224done
25225fi
cristy8b350f62009-11-15 23:12:43 +000025226rm -f core conftest.err conftest.$ac_objext \
25227 conftest$ac_exeext conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000025228fi # $ac_x_libraries = no
25229
25230case $ac_x_includes,$ac_x_libraries in #(
25231 no,* | *,no | *\'*)
25232 # Didn't find X, or a directory has "'" in its name.
25233 ac_cv_have_x="have_x=no";; #(
25234 *)
25235 # Record where we found X for the cache.
25236 ac_cv_have_x="have_x=yes\
25237 ac_x_includes='$ac_x_includes'\
25238 ac_x_libraries='$ac_x_libraries'"
25239esac
25240fi
25241;; #(
25242 *) have_x=yes;;
25243 esac
25244 eval "$ac_cv_have_x"
25245fi # $with_x != no
25246
25247if test "$have_x" != yes; then
cristy8b350f62009-11-15 23:12:43 +000025248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
cristyc7083c12009-10-14 03:16:55 +000025249$as_echo "$have_x" >&6; }
25250 no_x=yes
25251else
25252 # If each of the values was on the command line, it overrides each guess.
25253 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
25254 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
25255 # Update the cache value to reflect the command line values.
25256 ac_cv_have_x="have_x=yes\
25257 ac_x_includes='$x_includes'\
25258 ac_x_libraries='$x_libraries'"
cristy8b350f62009-11-15 23:12:43 +000025259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
cristyc7083c12009-10-14 03:16:55 +000025260$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
25261fi
25262
cristy3ed852e2009-09-05 21:47:34 +000025263if test "$no_x" = yes; then
25264 # Not all programs may use this symbol, but it does not hurt to define it.
25265
cristy8b350f62009-11-15 23:12:43 +000025266$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025267
25268 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
25269else
25270 if test -n "$x_includes"; then
25271 X_CFLAGS="$X_CFLAGS -I$x_includes"
25272 fi
25273
25274 # It would also be nice to do this for all -L options, not just this one.
25275 if test -n "$x_libraries"; then
25276 X_LIBS="$X_LIBS -L$x_libraries"
25277 # For Solaris; some versions of Sun CC require a space after -R and
25278 # others require no space. Words are not sufficient . . . .
cristy8b350f62009-11-15 23:12:43 +000025279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
cristy3ed852e2009-09-05 21:47:34 +000025280$as_echo_n "checking whether -R must be followed by a space... " >&6; }
25281 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
25282 ac_xsave_c_werror_flag=$ac_c_werror_flag
25283 ac_c_werror_flag=yes
cristy8b350f62009-11-15 23:12:43 +000025284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025285/* end confdefs.h. */
25286
25287int
25288main ()
25289{
25290
25291 ;
25292 return 0;
25293}
25294_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025295if ac_fn_c_try_link "$LINENO"; then :
25296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025297$as_echo "no" >&6; }
25298 X_LIBS="$X_LIBS -R$x_libraries"
25299else
cristy8b350f62009-11-15 23:12:43 +000025300 LIBS="$ac_xsave_LIBS -R $x_libraries"
25301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025302/* end confdefs.h. */
25303
25304int
25305main ()
25306{
25307
25308 ;
25309 return 0;
25310}
25311_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025312if ac_fn_c_try_link "$LINENO"; then :
25313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000025314$as_echo "yes" >&6; }
25315 X_LIBS="$X_LIBS -R $x_libraries"
25316else
cristy8b350f62009-11-15 23:12:43 +000025317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
cristy3ed852e2009-09-05 21:47:34 +000025318$as_echo "neither works" >&6; }
25319fi
cristy8b350f62009-11-15 23:12:43 +000025320rm -f core conftest.err conftest.$ac_objext \
25321 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025322fi
cristy8b350f62009-11-15 23:12:43 +000025323rm -f core conftest.err conftest.$ac_objext \
25324 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025325 ac_c_werror_flag=$ac_xsave_c_werror_flag
25326 LIBS=$ac_xsave_LIBS
25327 fi
25328
25329 # Check for system-dependent libraries X programs must link with.
25330 # Do this before checking for the system-independent R6 libraries
25331 # (-lICE), since we may need -lsocket or whatever for X linking.
25332
25333 if test "$ISC" = yes; then
25334 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
25335 else
25336 # Martyn Johnson says this is needed for Ultrix, if the X
25337 # libraries were built with DECnet support. And Karl Berry says
25338 # the Alpha needs dnet_stub (dnet does not exist).
25339 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
cristy8b350f62009-11-15 23:12:43 +000025340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025341/* end confdefs.h. */
25342
25343/* Override any GCC internal prototype to avoid an error.
25344 Use char because int might match the return type of a GCC
25345 builtin and then its argument prototype would still apply. */
25346#ifdef __cplusplus
25347extern "C"
25348#endif
25349char XOpenDisplay ();
25350int
25351main ()
25352{
25353return XOpenDisplay ();
25354 ;
25355 return 0;
25356}
25357_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025358if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025359
cristy8b350f62009-11-15 23:12:43 +000025360else
25361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
cristy3ed852e2009-09-05 21:47:34 +000025362$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025363if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025364 $as_echo_n "(cached) " >&6
25365else
25366 ac_check_lib_save_LIBS=$LIBS
25367LIBS="-ldnet $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025368cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025369/* end confdefs.h. */
25370
25371/* Override any GCC internal prototype to avoid an error.
25372 Use char because int might match the return type of a GCC
25373 builtin and then its argument prototype would still apply. */
25374#ifdef __cplusplus
25375extern "C"
25376#endif
25377char dnet_ntoa ();
25378int
25379main ()
25380{
25381return dnet_ntoa ();
25382 ;
25383 return 0;
25384}
25385_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025386if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025387 ac_cv_lib_dnet_dnet_ntoa=yes
25388else
cristy8b350f62009-11-15 23:12:43 +000025389 ac_cv_lib_dnet_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000025390fi
cristy8b350f62009-11-15 23:12:43 +000025391rm -f core conftest.err conftest.$ac_objext \
25392 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025393LIBS=$ac_check_lib_save_LIBS
25394fi
cristy8b350f62009-11-15 23:12:43 +000025395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000025396$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025397if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025398 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
25399fi
25400
25401 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
cristy8b350f62009-11-15 23:12:43 +000025402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
cristy3ed852e2009-09-05 21:47:34 +000025403$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025404if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025405 $as_echo_n "(cached) " >&6
25406else
25407 ac_check_lib_save_LIBS=$LIBS
25408LIBS="-ldnet_stub $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025409cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025410/* end confdefs.h. */
25411
25412/* Override any GCC internal prototype to avoid an error.
25413 Use char because int might match the return type of a GCC
25414 builtin and then its argument prototype would still apply. */
25415#ifdef __cplusplus
25416extern "C"
25417#endif
25418char dnet_ntoa ();
25419int
25420main ()
25421{
25422return dnet_ntoa ();
25423 ;
25424 return 0;
25425}
25426_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025427if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025428 ac_cv_lib_dnet_stub_dnet_ntoa=yes
25429else
cristy8b350f62009-11-15 23:12:43 +000025430 ac_cv_lib_dnet_stub_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000025431fi
cristy8b350f62009-11-15 23:12:43 +000025432rm -f core conftest.err conftest.$ac_objext \
25433 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025434LIBS=$ac_check_lib_save_LIBS
25435fi
cristy8b350f62009-11-15 23:12:43 +000025436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000025437$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025438if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025439 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
25440fi
25441
25442 fi
25443fi
cristy8b350f62009-11-15 23:12:43 +000025444rm -f core conftest.err conftest.$ac_objext \
25445 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025446 LIBS="$ac_xsave_LIBS"
25447
25448 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
25449 # to get the SysV transport functions.
25450 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
25451 # needs -lnsl.
25452 # The nsl library prevents programs from opening the X display
25453 # on Irix 5.2, according to T.E. Dickey.
25454 # The functions gethostbyname, getservbyname, and inet_addr are
25455 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
cristy8b350f62009-11-15 23:12:43 +000025456 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
25457if test "x$ac_cv_func_gethostbyname" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025458
cristy3ed852e2009-09-05 21:47:34 +000025459fi
25460
cristy3ed852e2009-09-05 21:47:34 +000025461 if test $ac_cv_func_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000025462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
cristy3ed852e2009-09-05 21:47:34 +000025463$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025464if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025465 $as_echo_n "(cached) " >&6
25466else
25467 ac_check_lib_save_LIBS=$LIBS
25468LIBS="-lnsl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025469cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025470/* end confdefs.h. */
25471
25472/* Override any GCC internal prototype to avoid an error.
25473 Use char because int might match the return type of a GCC
25474 builtin and then its argument prototype would still apply. */
25475#ifdef __cplusplus
25476extern "C"
25477#endif
25478char gethostbyname ();
25479int
25480main ()
25481{
25482return gethostbyname ();
25483 ;
25484 return 0;
25485}
25486_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025487if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025488 ac_cv_lib_nsl_gethostbyname=yes
25489else
cristy8b350f62009-11-15 23:12:43 +000025490 ac_cv_lib_nsl_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000025491fi
cristy8b350f62009-11-15 23:12:43 +000025492rm -f core conftest.err conftest.$ac_objext \
25493 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025494LIBS=$ac_check_lib_save_LIBS
25495fi
cristy8b350f62009-11-15 23:12:43 +000025496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000025497$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025498if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025499 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
25500fi
25501
25502 if test $ac_cv_lib_nsl_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000025503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
cristy3ed852e2009-09-05 21:47:34 +000025504$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025505if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025506 $as_echo_n "(cached) " >&6
25507else
25508 ac_check_lib_save_LIBS=$LIBS
25509LIBS="-lbsd $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025510cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025511/* end confdefs.h. */
25512
25513/* Override any GCC internal prototype to avoid an error.
25514 Use char because int might match the return type of a GCC
25515 builtin and then its argument prototype would still apply. */
25516#ifdef __cplusplus
25517extern "C"
25518#endif
25519char gethostbyname ();
25520int
25521main ()
25522{
25523return gethostbyname ();
25524 ;
25525 return 0;
25526}
25527_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025528if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025529 ac_cv_lib_bsd_gethostbyname=yes
25530else
cristy8b350f62009-11-15 23:12:43 +000025531 ac_cv_lib_bsd_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000025532fi
cristy8b350f62009-11-15 23:12:43 +000025533rm -f core conftest.err conftest.$ac_objext \
25534 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025535LIBS=$ac_check_lib_save_LIBS
25536fi
cristy8b350f62009-11-15 23:12:43 +000025537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000025538$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025539if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025540 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
25541fi
25542
25543 fi
25544 fi
25545
25546 # lieder@skyler.mavd.honeywell.com says without -lsocket,
25547 # socket/setsockopt and other routines are undefined under SCO ODT
25548 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
25549 # on later versions), says Simon Leinen: it contains gethostby*
25550 # variants that don't use the name server (or something). -lsocket
25551 # must be given before -lnsl if both are needed. We assume that
25552 # if connect needs -lnsl, so does gethostbyname.
cristy8b350f62009-11-15 23:12:43 +000025553 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
25554if test "x$ac_cv_func_connect" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025555
cristy3ed852e2009-09-05 21:47:34 +000025556fi
25557
cristy3ed852e2009-09-05 21:47:34 +000025558 if test $ac_cv_func_connect = no; then
cristy8b350f62009-11-15 23:12:43 +000025559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
cristy3ed852e2009-09-05 21:47:34 +000025560$as_echo_n "checking for connect in -lsocket... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025561if test "${ac_cv_lib_socket_connect+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025562 $as_echo_n "(cached) " >&6
25563else
25564 ac_check_lib_save_LIBS=$LIBS
25565LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025566cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025567/* end confdefs.h. */
25568
25569/* Override any GCC internal prototype to avoid an error.
25570 Use char because int might match the return type of a GCC
25571 builtin and then its argument prototype would still apply. */
25572#ifdef __cplusplus
25573extern "C"
25574#endif
25575char connect ();
25576int
25577main ()
25578{
25579return connect ();
25580 ;
25581 return 0;
25582}
25583_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025584if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025585 ac_cv_lib_socket_connect=yes
25586else
cristy8b350f62009-11-15 23:12:43 +000025587 ac_cv_lib_socket_connect=no
cristy3ed852e2009-09-05 21:47:34 +000025588fi
cristy8b350f62009-11-15 23:12:43 +000025589rm -f core conftest.err conftest.$ac_objext \
25590 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025591LIBS=$ac_check_lib_save_LIBS
25592fi
cristy8b350f62009-11-15 23:12:43 +000025593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
cristy3ed852e2009-09-05 21:47:34 +000025594$as_echo "$ac_cv_lib_socket_connect" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025595if test "x$ac_cv_lib_socket_connect" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025596 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
25597fi
25598
25599 fi
25600
25601 # Guillermo Gomez says -lposix is necessary on A/UX.
cristy8b350f62009-11-15 23:12:43 +000025602 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
25603if test "x$ac_cv_func_remove" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025604
cristy3ed852e2009-09-05 21:47:34 +000025605fi
25606
cristy3ed852e2009-09-05 21:47:34 +000025607 if test $ac_cv_func_remove = no; then
cristy8b350f62009-11-15 23:12:43 +000025608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
cristy3ed852e2009-09-05 21:47:34 +000025609$as_echo_n "checking for remove in -lposix... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025610if test "${ac_cv_lib_posix_remove+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025611 $as_echo_n "(cached) " >&6
25612else
25613 ac_check_lib_save_LIBS=$LIBS
25614LIBS="-lposix $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025615cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025616/* end confdefs.h. */
25617
25618/* Override any GCC internal prototype to avoid an error.
25619 Use char because int might match the return type of a GCC
25620 builtin and then its argument prototype would still apply. */
25621#ifdef __cplusplus
25622extern "C"
25623#endif
25624char remove ();
25625int
25626main ()
25627{
25628return remove ();
25629 ;
25630 return 0;
25631}
25632_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025633if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025634 ac_cv_lib_posix_remove=yes
25635else
cristy8b350f62009-11-15 23:12:43 +000025636 ac_cv_lib_posix_remove=no
cristy3ed852e2009-09-05 21:47:34 +000025637fi
cristy8b350f62009-11-15 23:12:43 +000025638rm -f core conftest.err conftest.$ac_objext \
25639 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025640LIBS=$ac_check_lib_save_LIBS
25641fi
cristy8b350f62009-11-15 23:12:43 +000025642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
cristy3ed852e2009-09-05 21:47:34 +000025643$as_echo "$ac_cv_lib_posix_remove" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025644if test "x$ac_cv_lib_posix_remove" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025645 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
25646fi
25647
25648 fi
25649
25650 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
cristy8b350f62009-11-15 23:12:43 +000025651 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
25652if test "x$ac_cv_func_shmat" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025653
cristy3ed852e2009-09-05 21:47:34 +000025654fi
25655
cristy3ed852e2009-09-05 21:47:34 +000025656 if test $ac_cv_func_shmat = no; then
cristy8b350f62009-11-15 23:12:43 +000025657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
cristy3ed852e2009-09-05 21:47:34 +000025658$as_echo_n "checking for shmat in -lipc... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025659if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025660 $as_echo_n "(cached) " >&6
25661else
25662 ac_check_lib_save_LIBS=$LIBS
25663LIBS="-lipc $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025664cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025665/* end confdefs.h. */
25666
25667/* Override any GCC internal prototype to avoid an error.
25668 Use char because int might match the return type of a GCC
25669 builtin and then its argument prototype would still apply. */
25670#ifdef __cplusplus
25671extern "C"
25672#endif
25673char shmat ();
25674int
25675main ()
25676{
25677return shmat ();
25678 ;
25679 return 0;
25680}
25681_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025682if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025683 ac_cv_lib_ipc_shmat=yes
25684else
cristy8b350f62009-11-15 23:12:43 +000025685 ac_cv_lib_ipc_shmat=no
cristy3ed852e2009-09-05 21:47:34 +000025686fi
cristy8b350f62009-11-15 23:12:43 +000025687rm -f core conftest.err conftest.$ac_objext \
25688 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025689LIBS=$ac_check_lib_save_LIBS
25690fi
cristy8b350f62009-11-15 23:12:43 +000025691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
cristy3ed852e2009-09-05 21:47:34 +000025692$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025693if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025694 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
25695fi
25696
25697 fi
25698 fi
25699
25700 # Check for libraries that X11R6 Xt/Xaw programs need.
25701 ac_save_LDFLAGS=$LDFLAGS
25702 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
25703 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
25704 # check for ICE first), but we must link in the order -lSM -lICE or
25705 # we get undefined symbols. So assume we have SM if we have ICE.
25706 # These have to be linked with before -lX11, unlike the other
25707 # libraries we check for below, so use a different variable.
25708 # John Interrante, Karl Berry
cristy8b350f62009-11-15 23:12:43 +000025709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
cristy3ed852e2009-09-05 21:47:34 +000025710$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025711if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025712 $as_echo_n "(cached) " >&6
25713else
25714 ac_check_lib_save_LIBS=$LIBS
25715LIBS="-lICE $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025716cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025717/* end confdefs.h. */
25718
25719/* Override any GCC internal prototype to avoid an error.
25720 Use char because int might match the return type of a GCC
25721 builtin and then its argument prototype would still apply. */
25722#ifdef __cplusplus
25723extern "C"
25724#endif
25725char IceConnectionNumber ();
25726int
25727main ()
25728{
25729return IceConnectionNumber ();
25730 ;
25731 return 0;
25732}
25733_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025734if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025735 ac_cv_lib_ICE_IceConnectionNumber=yes
25736else
cristy8b350f62009-11-15 23:12:43 +000025737 ac_cv_lib_ICE_IceConnectionNumber=no
cristy3ed852e2009-09-05 21:47:34 +000025738fi
cristy8b350f62009-11-15 23:12:43 +000025739rm -f core conftest.err conftest.$ac_objext \
25740 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025741LIBS=$ac_check_lib_save_LIBS
25742fi
cristy8b350f62009-11-15 23:12:43 +000025743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
cristy3ed852e2009-09-05 21:47:34 +000025744$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025745if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025746 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
25747fi
25748
25749 LDFLAGS=$ac_save_LDFLAGS
25750
25751fi
25752
25753if test "$no_x" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000025754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000025755$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
cristy3ed852e2009-09-05 21:47:34 +000025757$as_echo_n "checking for X11... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000025759$as_echo "" >&6; }
25760 LDFLAGS="$LDFLAGS $X_LIBS"
25761 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
25762 LIBS="$X11_LIBS $LIBS"
25763 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
25764
25765
cristy8b350f62009-11-15 23:12:43 +000025766$as_echo "#define X11_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025767
25768 #
25769 # Check for X11 shared memory extension
25770 #
25771 # shmctl is required to support the shared memory extension
cristy8b350f62009-11-15 23:12:43 +000025772 ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
25773if test "x$ac_cv_func_shmctl" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025774 have_shmctl='yes'
25775fi
25776
25777 if test "$have_shmctl" != 'yes'; then
25778 PERSIST_LIBS=$LIBS
25779 LIBS="$LIBS -lcygipc"
cristy8b350f62009-11-15 23:12:43 +000025780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025781/* end confdefs.h. */
25782
25783/* Override any GCC internal prototype to avoid an error.
25784 Use char because int might match the return type of a GCC
25785 builtin and then its argument prototype would still apply. */
25786#ifdef __cplusplus
25787extern "C"
25788#endif
25789char shmctl ();
25790int
25791main ()
25792{
25793return shmctl ();
25794 ;
25795 return 0;
25796}
25797_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025798if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025799 have_shmctl='yes'; IPC_LIBS='-lcygipc'
cristy3ed852e2009-09-05 21:47:34 +000025800fi
cristy8b350f62009-11-15 23:12:43 +000025801rm -f core conftest.err conftest.$ac_objext \
25802 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025803 LIBS=$PERSIST_LIBS
25804 fi
25805
25806 if test "$have_shmctl" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000025807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025808$as_echo_n "checking for XShmAttach in -lXext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025809if test "${ac_cv_lib_Xext_XShmAttach+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025810 $as_echo_n "(cached) " >&6
25811else
25812 ac_check_lib_save_LIBS=$LIBS
25813LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025814cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025815/* end confdefs.h. */
25816
25817/* Override any GCC internal prototype to avoid an error.
25818 Use char because int might match the return type of a GCC
25819 builtin and then its argument prototype would still apply. */
25820#ifdef __cplusplus
25821extern "C"
25822#endif
25823char XShmAttach ();
25824int
25825main ()
25826{
25827return XShmAttach ();
25828 ;
25829 return 0;
25830}
25831_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025832if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025833 ac_cv_lib_Xext_XShmAttach=yes
25834else
cristy8b350f62009-11-15 23:12:43 +000025835 ac_cv_lib_Xext_XShmAttach=no
cristy3ed852e2009-09-05 21:47:34 +000025836fi
cristy8b350f62009-11-15 23:12:43 +000025837rm -f core conftest.err conftest.$ac_objext \
25838 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025839LIBS=$ac_check_lib_save_LIBS
25840fi
cristy8b350f62009-11-15 23:12:43 +000025841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
cristy3ed852e2009-09-05 21:47:34 +000025842$as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025843if test "x$ac_cv_lib_Xext_XShmAttach" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025844 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000025845$as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025846
25847fi
25848
25849 fi
25850
25851 #
25852 # Check for X11 shape extension
25853 #
cristy8b350f62009-11-15 23:12:43 +000025854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025855$as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025856if test "${ac_cv_lib_Xext_XShapeCombineMask+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025857 $as_echo_n "(cached) " >&6
25858else
25859 ac_check_lib_save_LIBS=$LIBS
25860LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025861cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025862/* end confdefs.h. */
25863
25864/* Override any GCC internal prototype to avoid an error.
25865 Use char because int might match the return type of a GCC
25866 builtin and then its argument prototype would still apply. */
25867#ifdef __cplusplus
25868extern "C"
25869#endif
25870char XShapeCombineMask ();
25871int
25872main ()
25873{
25874return XShapeCombineMask ();
25875 ;
25876 return 0;
25877}
25878_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025879if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025880 ac_cv_lib_Xext_XShapeCombineMask=yes
25881else
cristy8b350f62009-11-15 23:12:43 +000025882 ac_cv_lib_Xext_XShapeCombineMask=no
cristy3ed852e2009-09-05 21:47:34 +000025883fi
cristy8b350f62009-11-15 23:12:43 +000025884rm -f core conftest.err conftest.$ac_objext \
25885 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025886LIBS=$ac_check_lib_save_LIBS
25887fi
cristy8b350f62009-11-15 23:12:43 +000025888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
cristy3ed852e2009-09-05 21:47:34 +000025889$as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025890if test "x$ac_cv_lib_Xext_XShapeCombineMask" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025891 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000025892$as_echo "#define HAVE_SHAPE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025893
25894fi
25895
cristy8b350f62009-11-15 23:12:43 +000025896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
cristy3ed852e2009-09-05 21:47:34 +000025897$as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025898if test "${ac_cv_lib_Xt_XtSetEventDispatcher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025899 $as_echo_n "(cached) " >&6
25900else
25901 ac_check_lib_save_LIBS=$LIBS
25902LIBS="-lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025903cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025904/* end confdefs.h. */
25905
25906/* Override any GCC internal prototype to avoid an error.
25907 Use char because int might match the return type of a GCC
25908 builtin and then its argument prototype would still apply. */
25909#ifdef __cplusplus
25910extern "C"
25911#endif
25912char XtSetEventDispatcher ();
25913int
25914main ()
25915{
25916return XtSetEventDispatcher ();
25917 ;
25918 return 0;
25919}
25920_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025921if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025922 ac_cv_lib_Xt_XtSetEventDispatcher=yes
25923else
cristy8b350f62009-11-15 23:12:43 +000025924 ac_cv_lib_Xt_XtSetEventDispatcher=no
cristy3ed852e2009-09-05 21:47:34 +000025925fi
cristy8b350f62009-11-15 23:12:43 +000025926rm -f core conftest.err conftest.$ac_objext \
25927 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025928LIBS=$ac_check_lib_save_LIBS
25929fi
cristy8b350f62009-11-15 23:12:43 +000025930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
cristy3ed852e2009-09-05 21:47:34 +000025931$as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025932if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025933 XT_LIBS='-lXt'
25934fi
25935
25936 LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
25937fi
25938if test "$no_x" != 'yes'; then
25939 have_x='yes'
25940else
25941 have_x='no'
25942fi
25943 if test "$have_x" = 'yes'; then
25944 X11_DELEGATE_TRUE=
25945 X11_DELEGATE_FALSE='#'
25946else
25947 X11_DELEGATE_TRUE='#'
25948 X11_DELEGATE_FALSE=
25949fi
25950
25951
25952
25953
25954
25955#
25956# Check for ZLIB
25957#
25958
25959# Check whether --with-zlib was given.
cristy8b350f62009-11-15 23:12:43 +000025960if test "${with_zlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025961 withval=$with_zlib; with_zlib=$withval
25962else
25963 with_zlib='yes'
25964fi
25965
25966
25967if test "$with_zlib" != 'yes'; then
25968 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
25969fi
25970
25971have_zlib='no'
25972ZLIB_LIBS=''
25973if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000025974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000025975$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000025977$as_echo_n "checking for ZLIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000025979$as_echo "" >&6; }
25980 ZLIB_LIBS=''
25981 failed=0
25982 passed=0
cristy8b350f62009-11-15 23:12:43 +000025983 ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
25984if test "x$ac_cv_header_zconf_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025985 passed=`expr $passed + 1`
25986else
25987 failed=`expr $failed + 1`
25988fi
25989
25990
cristy8b350f62009-11-15 23:12:43 +000025991 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
25992if test "x$ac_cv_header_zlib_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025993 passed=`expr $passed + 1`
25994else
25995 failed=`expr $failed + 1`
25996fi
25997
25998
cristy8b350f62009-11-15 23:12:43 +000025999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000026000$as_echo_n "checking for compress in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026001if test "${ac_cv_lib_z_compress+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026002 $as_echo_n "(cached) " >&6
26003else
26004 ac_check_lib_save_LIBS=$LIBS
26005LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026006cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026007/* end confdefs.h. */
26008
26009/* Override any GCC internal prototype to avoid an error.
26010 Use char because int might match the return type of a GCC
26011 builtin and then its argument prototype would still apply. */
26012#ifdef __cplusplus
26013extern "C"
26014#endif
26015char compress ();
26016int
26017main ()
26018{
26019return compress ();
26020 ;
26021 return 0;
26022}
26023_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026024if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026025 ac_cv_lib_z_compress=yes
26026else
cristy8b350f62009-11-15 23:12:43 +000026027 ac_cv_lib_z_compress=no
cristy3ed852e2009-09-05 21:47:34 +000026028fi
cristy8b350f62009-11-15 23:12:43 +000026029rm -f core conftest.err conftest.$ac_objext \
26030 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026031LIBS=$ac_check_lib_save_LIBS
26032fi
cristy8b350f62009-11-15 23:12:43 +000026033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
cristy3ed852e2009-09-05 21:47:34 +000026034$as_echo "$ac_cv_lib_z_compress" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026035if test "x$ac_cv_lib_z_compress" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026036 passed=`expr $passed + 1`
26037else
26038 failed=`expr $failed + 1`
26039fi
26040
cristy8b350f62009-11-15 23:12:43 +000026041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000026042$as_echo_n "checking for uncompress in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026043if test "${ac_cv_lib_z_uncompress+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026044 $as_echo_n "(cached) " >&6
26045else
26046 ac_check_lib_save_LIBS=$LIBS
26047LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026048cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026049/* end confdefs.h. */
26050
26051/* Override any GCC internal prototype to avoid an error.
26052 Use char because int might match the return type of a GCC
26053 builtin and then its argument prototype would still apply. */
26054#ifdef __cplusplus
26055extern "C"
26056#endif
26057char uncompress ();
26058int
26059main ()
26060{
26061return uncompress ();
26062 ;
26063 return 0;
26064}
26065_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026066if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026067 ac_cv_lib_z_uncompress=yes
26068else
cristy8b350f62009-11-15 23:12:43 +000026069 ac_cv_lib_z_uncompress=no
cristy3ed852e2009-09-05 21:47:34 +000026070fi
cristy8b350f62009-11-15 23:12:43 +000026071rm -f core conftest.err conftest.$ac_objext \
26072 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026073LIBS=$ac_check_lib_save_LIBS
26074fi
cristy8b350f62009-11-15 23:12:43 +000026075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000026076$as_echo "$ac_cv_lib_z_uncompress" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026077if test "x$ac_cv_lib_z_uncompress" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026078 passed=`expr $passed + 1`
26079else
26080 failed=`expr $failed + 1`
26081fi
26082
cristy8b350f62009-11-15 23:12:43 +000026083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000026084$as_echo_n "checking for deflate in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026085if test "${ac_cv_lib_z_deflate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026086 $as_echo_n "(cached) " >&6
26087else
26088 ac_check_lib_save_LIBS=$LIBS
26089LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026090cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026091/* end confdefs.h. */
26092
26093/* Override any GCC internal prototype to avoid an error.
26094 Use char because int might match the return type of a GCC
26095 builtin and then its argument prototype would still apply. */
26096#ifdef __cplusplus
26097extern "C"
26098#endif
26099char deflate ();
26100int
26101main ()
26102{
26103return deflate ();
26104 ;
26105 return 0;
26106}
26107_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026108if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026109 ac_cv_lib_z_deflate=yes
26110else
cristy8b350f62009-11-15 23:12:43 +000026111 ac_cv_lib_z_deflate=no
cristy3ed852e2009-09-05 21:47:34 +000026112fi
cristy8b350f62009-11-15 23:12:43 +000026113rm -f core conftest.err conftest.$ac_objext \
26114 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026115LIBS=$ac_check_lib_save_LIBS
26116fi
cristy8b350f62009-11-15 23:12:43 +000026117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000026118$as_echo "$ac_cv_lib_z_deflate" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026119if test "x$ac_cv_lib_z_deflate" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026120 passed=`expr $passed + 1`
26121else
26122 failed=`expr $failed + 1`
26123fi
26124
cristy8b350f62009-11-15 23:12:43 +000026125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000026126$as_echo_n "checking for inflate in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026127if test "${ac_cv_lib_z_inflate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026128 $as_echo_n "(cached) " >&6
26129else
26130 ac_check_lib_save_LIBS=$LIBS
26131LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026132cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026133/* end confdefs.h. */
26134
26135/* Override any GCC internal prototype to avoid an error.
26136 Use char because int might match the return type of a GCC
26137 builtin and then its argument prototype would still apply. */
26138#ifdef __cplusplus
26139extern "C"
26140#endif
26141char inflate ();
26142int
26143main ()
26144{
26145return inflate ();
26146 ;
26147 return 0;
26148}
26149_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026150if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026151 ac_cv_lib_z_inflate=yes
26152else
cristy8b350f62009-11-15 23:12:43 +000026153 ac_cv_lib_z_inflate=no
cristy3ed852e2009-09-05 21:47:34 +000026154fi
cristy8b350f62009-11-15 23:12:43 +000026155rm -f core conftest.err conftest.$ac_objext \
26156 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026157LIBS=$ac_check_lib_save_LIBS
26158fi
cristy8b350f62009-11-15 23:12:43 +000026159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000026160$as_echo "$ac_cv_lib_z_inflate" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026161if test "x$ac_cv_lib_z_inflate" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026162 passed=`expr $passed + 1`
26163else
26164 failed=`expr $failed + 1`
26165fi
26166
cristy8b350f62009-11-15 23:12:43 +000026167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000026168$as_echo_n "checking for gzseek in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026169if test "${ac_cv_lib_z_gzseek+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026170 $as_echo_n "(cached) " >&6
26171else
26172 ac_check_lib_save_LIBS=$LIBS
26173LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026174cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026175/* end confdefs.h. */
26176
26177/* Override any GCC internal prototype to avoid an error.
26178 Use char because int might match the return type of a GCC
26179 builtin and then its argument prototype would still apply. */
26180#ifdef __cplusplus
26181extern "C"
26182#endif
26183char gzseek ();
26184int
26185main ()
26186{
26187return gzseek ();
26188 ;
26189 return 0;
26190}
26191_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026192if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026193 ac_cv_lib_z_gzseek=yes
26194else
cristy8b350f62009-11-15 23:12:43 +000026195 ac_cv_lib_z_gzseek=no
cristy3ed852e2009-09-05 21:47:34 +000026196fi
cristy8b350f62009-11-15 23:12:43 +000026197rm -f core conftest.err conftest.$ac_objext \
26198 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026199LIBS=$ac_check_lib_save_LIBS
26200fi
cristy8b350f62009-11-15 23:12:43 +000026201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
cristy3ed852e2009-09-05 21:47:34 +000026202$as_echo "$ac_cv_lib_z_gzseek" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026203if test "x$ac_cv_lib_z_gzseek" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026204 passed=`expr $passed + 1`
26205else
26206 failed=`expr $failed + 1`
26207fi
26208
cristy8b350f62009-11-15 23:12:43 +000026209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000026210$as_echo_n "checking for gztell in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026211if test "${ac_cv_lib_z_gztell+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026212 $as_echo_n "(cached) " >&6
26213else
26214 ac_check_lib_save_LIBS=$LIBS
26215LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026216cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026217/* end confdefs.h. */
26218
26219/* Override any GCC internal prototype to avoid an error.
26220 Use char because int might match the return type of a GCC
26221 builtin and then its argument prototype would still apply. */
26222#ifdef __cplusplus
26223extern "C"
26224#endif
26225char gztell ();
26226int
26227main ()
26228{
26229return gztell ();
26230 ;
26231 return 0;
26232}
26233_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026234if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026235 ac_cv_lib_z_gztell=yes
26236else
cristy8b350f62009-11-15 23:12:43 +000026237 ac_cv_lib_z_gztell=no
cristy3ed852e2009-09-05 21:47:34 +000026238fi
cristy8b350f62009-11-15 23:12:43 +000026239rm -f core conftest.err conftest.$ac_objext \
26240 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026241LIBS=$ac_check_lib_save_LIBS
26242fi
cristy8b350f62009-11-15 23:12:43 +000026243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
cristy3ed852e2009-09-05 21:47:34 +000026244$as_echo "$ac_cv_lib_z_gztell" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026245if test "x$ac_cv_lib_z_gztell" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026246 passed=`expr $passed + 1`
26247else
26248 failed=`expr $failed + 1`
26249fi
26250
cristy8b350f62009-11-15 23:12:43 +000026251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026252$as_echo_n "checking if ZLIB package is complete... " >&6; }
26253 if test $passed -gt 0; then
26254 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026256$as_echo "no -- some components failed test" >&6; }
26257 have_zlib='no (failed tests)'
26258 else
26259 ZLIB_LIBS='-lz'
26260 LIBS="$ZLIB_LIBS $LIBS"
26261
cristy8b350f62009-11-15 23:12:43 +000026262$as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026263
cristy8b350f62009-11-15 23:12:43 +000026264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026265$as_echo "yes" >&6; }
26266 have_zlib='yes'
26267 fi
26268 else
cristy8b350f62009-11-15 23:12:43 +000026269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026270$as_echo "no" >&6; }
26271 fi
26272fi
26273 if test "$have_zlib" = 'yes'; then
26274 ZLIB_DELEGATE_TRUE=
26275 ZLIB_DELEGATE_FALSE='#'
26276else
26277 ZLIB_DELEGATE_TRUE='#'
26278 ZLIB_DELEGATE_FALSE=
26279fi
26280
26281
26282
26283#
26284# If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
26285#
26286LIB_DL=''
26287if test "$enable_profiling" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000026288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000026289$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026290if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026291 $as_echo_n "(cached) " >&6
26292else
26293 ac_check_lib_save_LIBS=$LIBS
26294LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026295cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026296/* end confdefs.h. */
26297
26298/* Override any GCC internal prototype to avoid an error.
26299 Use char because int might match the return type of a GCC
26300 builtin and then its argument prototype would still apply. */
26301#ifdef __cplusplus
26302extern "C"
26303#endif
26304char dlopen ();
26305int
26306main ()
26307{
26308return dlopen ();
26309 ;
26310 return 0;
26311}
26312_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026313if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026314 ac_cv_lib_dl_dlopen=yes
26315else
cristy8b350f62009-11-15 23:12:43 +000026316 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000026317fi
cristy8b350f62009-11-15 23:12:43 +000026318rm -f core conftest.err conftest.$ac_objext \
26319 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026320LIBS=$ac_check_lib_save_LIBS
26321fi
cristy8b350f62009-11-15 23:12:43 +000026322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000026323$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026324if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026325 LIB_DL='-ldl'
26326fi
26327
26328 LIBS="$LIB_DL $LIBS"
26329fi
26330
26331
26332
26333#
26334# Check for Autotrace delegate library.
26335#
26336
26337# Check whether --with-autotrace was given.
cristy8b350f62009-11-15 23:12:43 +000026338if test "${with_autotrace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026339 withval=$with_autotrace; with_autotrace=$withval
26340else
26341 with_autotrace='no'
26342fi
26343
26344
26345if test "$with_autotrace" != 'yes'; then
26346 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
26347fi
26348
26349have_autotrace='no'
26350AUTOTRACE_CFLAGS=""
26351AUTOTRACE_LIBS=""
26352AUTOTRACE_PKG=""
26353if test "x$with_autotrace" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000026354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026355$as_echo "-------------------------------------------------------------" >&6; }
26356
26357pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000026358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
cristy3ed852e2009-09-05 21:47:34 +000026359$as_echo_n "checking for AUTOTRACE... " >&6; }
26360
26361if test -n "$AUTOTRACE_CFLAGS"; then
26362 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
26363 elif test -n "$PKG_CONFIG"; then
26364 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000026365 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000026366 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
26367 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000026368 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26369 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000026370 pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
26371else
26372 pkg_failed=yes
26373fi
26374 else
26375 pkg_failed=untried
26376fi
26377if test -n "$AUTOTRACE_LIBS"; then
26378 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
26379 elif test -n "$PKG_CONFIG"; then
26380 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000026381 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000026382 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
26383 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000026384 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26385 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000026386 pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
26387else
26388 pkg_failed=yes
26389fi
26390 else
26391 pkg_failed=untried
26392fi
26393
26394
26395
26396if test $pkg_failed = yes; then
26397
26398if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26399 _pkg_short_errors_supported=yes
26400else
26401 _pkg_short_errors_supported=no
26402fi
26403 if test $_pkg_short_errors_supported = yes; then
26404 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1`
26405 else
26406 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1`
26407 fi
26408 # Put the nasty error message in config.log where it belongs
26409 echo "$AUTOTRACE_PKG_ERRORS" >&5
26410
cristy8b350f62009-11-15 23:12:43 +000026411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026412$as_echo "no" >&6; }
26413 have_autotrace=no
26414elif test $pkg_failed = untried; then
26415 have_autotrace=no
26416else
26417 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
26418 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
cristy8b350f62009-11-15 23:12:43 +000026419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026420$as_echo "yes" >&6; }
26421 have_autotrace=yes
26422fi
cristy8b350f62009-11-15 23:12:43 +000026423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026424$as_echo "" >&6; }
26425fi
26426
26427if test "$have_autotrace" = 'yes'; then
26428 failed=0
26429
cristy8b350f62009-11-15 23:12:43 +000026430$as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026431
26432 if test "$with_modules" = 'no'; then
26433 CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
26434 fi
26435fi
26436
26437 if test "$have_autotrace" = 'yes'; then
26438 AUTOTRACE_DELEGATE_TRUE=
26439 AUTOTRACE_DELEGATE_FALSE='#'
26440else
26441 AUTOTRACE_DELEGATE_TRUE='#'
26442 AUTOTRACE_DELEGATE_FALSE=
26443fi
26444
26445
26446
26447
26448
26449#
26450# Check for Display Postscript delegate library.
26451#
26452
26453# Check whether --with-dps was given.
cristy8b350f62009-11-15 23:12:43 +000026454if test "${with_dps+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026455 withval=$with_dps; with_dps=$withval
26456else
26457 with_dps='yes'
26458fi
26459
26460
26461if test "$with_dps" != 'yes'; then
26462 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
26463fi
26464
26465have_dps='no'
26466DPS_LIBS=''
26467if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026469$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000026471$as_echo_n "checking for DPS... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026473$as_echo "" >&6; }
26474 failed=0
26475 passed=0
26476 PERSIST_CPPFLAGS="$CPPFLAGS"
26477 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
cristy8b350f62009-11-15 23:12:43 +000026478 ac_fn_c_check_header_mongrel "$LINENO" "DPS/dpsXclient.h" "ac_cv_header_DPS_dpsXclient_h" "$ac_includes_default"
26479if test "x$ac_cv_header_DPS_dpsXclient_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026480 passed=`expr $passed + 1`
26481else
26482 failed=`expr $failed + 1`
26483fi
26484
26485
26486 # DPS issues:
26487 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
26488 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
26489 # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
26490 # ImageMagick itself doesn't use -lXt.
26491 have_libdps='no'
26492 LIBDPS_XT=''
cristy8b350f62009-11-15 23:12:43 +000026493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000026494$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026495if test "${ac_cv_lib_dps_DPSInitialize+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026496 $as_echo_n "(cached) " >&6
26497else
26498 ac_check_lib_save_LIBS=$LIBS
26499LIBS="-ldps $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026500cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026501/* end confdefs.h. */
26502
26503/* Override any GCC internal prototype to avoid an error.
26504 Use char because int might match the return type of a GCC
26505 builtin and then its argument prototype would still apply. */
26506#ifdef __cplusplus
26507extern "C"
26508#endif
26509char DPSInitialize ();
26510int
26511main ()
26512{
26513return DPSInitialize ();
26514 ;
26515 return 0;
26516}
26517_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026518if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026519 ac_cv_lib_dps_DPSInitialize=yes
26520else
cristy8b350f62009-11-15 23:12:43 +000026521 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000026522fi
cristy8b350f62009-11-15 23:12:43 +000026523rm -f core conftest.err conftest.$ac_objext \
26524 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026525LIBS=$ac_check_lib_save_LIBS
26526fi
cristy8b350f62009-11-15 23:12:43 +000026527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000026528$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026529if test "x$ac_cv_lib_dps_DPSInitialize" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026530 have_libdps='yes'
26531else
26532 have_libdps='no'
26533fi
26534
26535 if test "$have_libdps" != 'yes'; then
26536 # Unset cache variable so we can try again.
26537 unset ac_cv_lib_dps_DPSInitialize
cristy8b350f62009-11-15 23:12:43 +000026538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000026539$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026540if test "${ac_cv_lib_dps_DPSInitialize+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026541 $as_echo_n "(cached) " >&6
26542else
26543 ac_check_lib_save_LIBS=$LIBS
26544LIBS="-ldps -lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026545cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026546/* end confdefs.h. */
26547
26548/* Override any GCC internal prototype to avoid an error.
26549 Use char because int might match the return type of a GCC
26550 builtin and then its argument prototype would still apply. */
26551#ifdef __cplusplus
26552extern "C"
26553#endif
26554char DPSInitialize ();
26555int
26556main ()
26557{
26558return DPSInitialize ();
26559 ;
26560 return 0;
26561}
26562_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026563if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026564 ac_cv_lib_dps_DPSInitialize=yes
26565else
cristy8b350f62009-11-15 23:12:43 +000026566 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000026567fi
cristy8b350f62009-11-15 23:12:43 +000026568rm -f core conftest.err conftest.$ac_objext \
26569 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026570LIBS=$ac_check_lib_save_LIBS
26571fi
cristy8b350f62009-11-15 23:12:43 +000026572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000026573$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026574if test "x$ac_cv_lib_dps_DPSInitialize" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026575 have_libdps='yes'
26576else
26577 have_libdps='no'
26578fi
26579
26580 if test "$have_libdps" = 'yes'; then
26581 LIBDPS_XT='-lXt'
26582 fi
26583 fi
26584 if test "$have_libdps" = 'yes'; then
26585 passed=`expr $passed + 1`
26586 else
26587 failed=`expr $failed + 1`
26588 fi
cristy8b350f62009-11-15 23:12:43 +000026589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
cristy3ed852e2009-09-05 21:47:34 +000026590$as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026591if test "${ac_cv_lib_dpstk_XDPSPixelsPerPoint+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026592 $as_echo_n "(cached) " >&6
26593else
26594 ac_check_lib_save_LIBS=$LIBS
26595LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026596cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026597/* end confdefs.h. */
26598
26599/* Override any GCC internal prototype to avoid an error.
26600 Use char because int might match the return type of a GCC
26601 builtin and then its argument prototype would still apply. */
26602#ifdef __cplusplus
26603extern "C"
26604#endif
26605char XDPSPixelsPerPoint ();
26606int
26607main ()
26608{
26609return XDPSPixelsPerPoint ();
26610 ;
26611 return 0;
26612}
26613_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026614if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026615 ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
26616else
cristy8b350f62009-11-15 23:12:43 +000026617 ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
cristy3ed852e2009-09-05 21:47:34 +000026618fi
cristy8b350f62009-11-15 23:12:43 +000026619rm -f core conftest.err conftest.$ac_objext \
26620 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026621LIBS=$ac_check_lib_save_LIBS
26622fi
cristy8b350f62009-11-15 23:12:43 +000026623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
cristy3ed852e2009-09-05 21:47:34 +000026624$as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026625if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026626 passed=`expr $passed + 1`
26627else
26628 failed=`expr $failed + 1`
26629fi
26630
cristy8b350f62009-11-15 23:12:43 +000026631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026632$as_echo_n "checking if DPS package is complete... " >&6; }
26633 if test $passed -gt 0; then
26634 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026636$as_echo "no -- some components failed test" >&6; }
26637 have_dps='no (failed tests)'
26638 CPPFLAGS="$PERSIST_CPPFLAGS"
26639 else
26640 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
26641 LIBS="$DPS_LIBS $LIBS"
26642
cristy8b350f62009-11-15 23:12:43 +000026643$as_echo "#define DPS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026644
cristy8b350f62009-11-15 23:12:43 +000026645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026646$as_echo "yes" >&6; }
26647 have_dps='yes'
26648 fi
26649 else
cristy8b350f62009-11-15 23:12:43 +000026650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026651$as_echo "no" >&6; }
26652 CPPFLAGS=$PERSIST_CPPFLAGS
26653 fi
26654fi
26655 if test "$have_dps" = 'yes'; then
26656 DPS_DELEGATE_TRUE=
26657 DPS_DELEGATE_FALSE='#'
26658else
26659 DPS_DELEGATE_TRUE='#'
26660 DPS_DELEGATE_FALSE=
26661fi
26662
26663
26664
26665
26666#
26667# Check for DJVU delegate library.
26668#
26669
26670# Check whether --with-djvu was given.
cristy8b350f62009-11-15 23:12:43 +000026671if test "${with_djvu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026672 withval=$with_djvu; with_djvu=$withval
26673else
26674 with_djvu='yes'
26675fi
26676
26677
26678if test "$with_djvu" != 'yes'; then
26679 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
26680fi
26681
26682have_djvu='no'
26683DJVU_LIBS=''
26684if test "$with_djvu" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026686$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5
cristy3ed852e2009-09-05 21:47:34 +000026688$as_echo_n "checking for DJVU... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026690$as_echo "" >&6; }
26691 failed=0
26692 passed=0
cristy8b350f62009-11-15 23:12:43 +000026693 ac_fn_c_check_header_mongrel "$LINENO" "libdjvu/ddjvuapi.h" "ac_cv_header_libdjvu_ddjvuapi_h" "$ac_includes_default"
26694if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026695 passed=`expr $passed + 1`
26696else
26697 failed=`expr $failed + 1`
26698fi
26699
26700
cristy8b350f62009-11-15 23:12:43 +000026701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_context_create in -ldjvulibre" >&5
cristy3ed852e2009-09-05 21:47:34 +000026702$as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026703if test "${ac_cv_lib_djvulibre_ddjvu_context_create+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026704 $as_echo_n "(cached) " >&6
26705else
26706 ac_check_lib_save_LIBS=$LIBS
26707LIBS="-ldjvulibre $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026708cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026709/* end confdefs.h. */
26710
26711/* Override any GCC internal prototype to avoid an error.
26712 Use char because int might match the return type of a GCC
26713 builtin and then its argument prototype would still apply. */
26714#ifdef __cplusplus
26715extern "C"
26716#endif
26717char ddjvu_context_create ();
26718int
26719main ()
26720{
26721return ddjvu_context_create ();
26722 ;
26723 return 0;
26724}
26725_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026726if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026727 ac_cv_lib_djvulibre_ddjvu_context_create=yes
26728else
cristy8b350f62009-11-15 23:12:43 +000026729 ac_cv_lib_djvulibre_ddjvu_context_create=no
cristy3ed852e2009-09-05 21:47:34 +000026730fi
cristy8b350f62009-11-15 23:12:43 +000026731rm -f core conftest.err conftest.$ac_objext \
26732 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026733LIBS=$ac_check_lib_save_LIBS
26734fi
cristy8b350f62009-11-15 23:12:43 +000026735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
cristy3ed852e2009-09-05 21:47:34 +000026736$as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026737if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026738 passed=`expr $passed + 1`
26739else
26740 failed=`expr $failed + 1`
26741fi
26742
cristy8b350f62009-11-15 23:12:43 +000026743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DJVU package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026744$as_echo_n "checking if DJVU package is complete... " >&6; }
26745 if test $passed -gt 0; then
26746 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026748$as_echo "no -- some components failed test" >&6; }
26749 have_djvu='no (failed tests)'
26750 else
26751 DJVU_LIBS='-ldjvulibre'
26752 LIBS="$DJVU_LIBS $LIBS"
26753
cristy8b350f62009-11-15 23:12:43 +000026754$as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026755
cristy8b350f62009-11-15 23:12:43 +000026756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026757$as_echo "yes" >&6; }
26758 have_djvu='yes'
26759 fi
26760 else
cristy8b350f62009-11-15 23:12:43 +000026761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026762$as_echo "no" >&6; }
26763 fi
26764fi
26765 if test "$have_djvu" = 'yes'; then
26766 DJVU_DELEGATE_TRUE=
26767 DJVU_DELEGATE_FALSE='#'
26768else
26769 DJVU_DELEGATE_TRUE='#'
26770 DJVU_DELEGATE_FALSE=
26771fi
26772
26773
26774
26775
26776#
cristy430a7312010-01-21 20:44:04 +000026777# Set DejaVu font directory.
26778#
26779
26780# Check whether --with-dejavu-font-dir was given.
26781if test "${with_dejavu_font_dir+set}" = set; then :
26782 withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval
26783else
26784 with_dejavu_font_dir='default'
26785fi
26786
26787
26788if test "$with_dejavu_font_dir" != 'default'; then
26789 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir "
26790fi
26791
26792
26793#
cristy3ed852e2009-09-05 21:47:34 +000026794# Check for FFTW delegate library.
26795#
26796
26797# Check whether --with-fftw was given.
cristy8b350f62009-11-15 23:12:43 +000026798if test "${with_fftw+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026799 withval=$with_fftw; with_fftw=$withval
26800else
26801 with_fftw='yes'
26802fi
26803
26804
26805if test "$with_fftw" != 'yes'; then
26806 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
26807fi
26808
26809have_fftw='no'
26810FFTW_LIBS=''
26811if test "$with_fftw" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026813$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5
cristy3ed852e2009-09-05 21:47:34 +000026815$as_echo_n "checking for FFTW... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026817$as_echo "" >&6; }
26818 failed=0
26819 passed=0
cristy8b350f62009-11-15 23:12:43 +000026820 ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
26821if test "x$ac_cv_header_fftw3_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026822 passed=`expr $passed + 1`
26823else
26824 failed=`expr $failed + 1`
26825fi
26826
26827
cristy8b350f62009-11-15 23:12:43 +000026828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
cristy3ed852e2009-09-05 21:47:34 +000026829$as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026830if test "${ac_cv_lib_fftw3_fftw_execute+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026831 $as_echo_n "(cached) " >&6
26832else
26833 ac_check_lib_save_LIBS=$LIBS
26834LIBS="-lfftw3 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026835cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026836/* end confdefs.h. */
26837
26838/* Override any GCC internal prototype to avoid an error.
26839 Use char because int might match the return type of a GCC
26840 builtin and then its argument prototype would still apply. */
26841#ifdef __cplusplus
26842extern "C"
26843#endif
26844char fftw_execute ();
26845int
26846main ()
26847{
26848return fftw_execute ();
26849 ;
26850 return 0;
26851}
26852_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026853if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026854 ac_cv_lib_fftw3_fftw_execute=yes
26855else
cristy8b350f62009-11-15 23:12:43 +000026856 ac_cv_lib_fftw3_fftw_execute=no
cristy3ed852e2009-09-05 21:47:34 +000026857fi
cristy8b350f62009-11-15 23:12:43 +000026858rm -f core conftest.err conftest.$ac_objext \
26859 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026860LIBS=$ac_check_lib_save_LIBS
26861fi
cristy8b350f62009-11-15 23:12:43 +000026862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
cristy3ed852e2009-09-05 21:47:34 +000026863$as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026864if test "x$ac_cv_lib_fftw3_fftw_execute" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026865 passed=`expr $passed + 1`
26866else
26867 failed=`expr $failed + 1`
26868fi
26869
cristy8b350f62009-11-15 23:12:43 +000026870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026871$as_echo_n "checking if FFTW package is complete... " >&6; }
26872 if test $passed -gt 0; then
26873 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026875$as_echo "no -- some components failed test" >&6; }
26876 have_fftw='no (failed tests)'
26877 else
26878 FFTW_LIBS='-lfftw3'
26879 LIBS="$FFTW_LIBS $LIBS"
26880
cristy8b350f62009-11-15 23:12:43 +000026881$as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026882
cristy8b350f62009-11-15 23:12:43 +000026883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026884$as_echo "yes" >&6; }
26885 have_fftw='yes'
26886 fi
26887 else
cristy8b350f62009-11-15 23:12:43 +000026888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026889$as_echo "no" >&6; }
26890 fi
26891fi
26892 if test "$have_fftw" = 'yes'; then
26893 FFTW_DELEGATE_TRUE=
26894 FFTW_DELEGATE_FALSE='#'
26895else
26896 FFTW_DELEGATE_TRUE='#'
26897 FFTW_DELEGATE_FALSE=
26898fi
26899
26900
26901
26902
26903#
26904# Check for FlashPIX delegate library.
26905#
26906
26907# Check whether --with-fpx was given.
cristy8b350f62009-11-15 23:12:43 +000026908if test "${with_fpx+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026909 withval=$with_fpx; with_fpx=$withval
26910else
26911 with_fpx='yes'
26912fi
26913
26914
26915if test "$with_fpx" != 'yes'; then
26916 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
26917fi
26918
26919have_fpx='no'
26920FPX_LIBS=''
26921if test "$with_fpx" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026923$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
cristy3ed852e2009-09-05 21:47:34 +000026925$as_echo_n "checking for FlashPIX... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026927$as_echo "" >&6; }
26928 failed=0
26929 passed=0
26930 ac_ext=cpp
26931ac_cpp='$CXXCPP $CPPFLAGS'
26932ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26933ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26934ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26935
26936
cristy8b350f62009-11-15 23:12:43 +000026937ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
26938if test "x$ac_cv_header_fpxlib_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026939 passed=`expr $passed + 1`
26940else
26941 failed=`expr $failed + 1`
26942fi
26943
26944
cristy8b350f62009-11-15 23:12:43 +000026945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
cristy3ed852e2009-09-05 21:47:34 +000026946$as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026947if test "${ac_cv_lib_fpx_FPX_OpenImageByFilename+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026948 $as_echo_n "(cached) " >&6
26949else
26950 ac_check_lib_save_LIBS=$LIBS
26951LIBS="-lfpx $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026952cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026953/* end confdefs.h. */
26954
26955/* Override any GCC internal prototype to avoid an error.
26956 Use char because int might match the return type of a GCC
26957 builtin and then its argument prototype would still apply. */
26958#ifdef __cplusplus
26959extern "C"
26960#endif
26961char FPX_OpenImageByFilename ();
26962int
26963main ()
26964{
26965return FPX_OpenImageByFilename ();
26966 ;
26967 return 0;
26968}
26969_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026970if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026971 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
26972else
cristy8b350f62009-11-15 23:12:43 +000026973 ac_cv_lib_fpx_FPX_OpenImageByFilename=no
cristy3ed852e2009-09-05 21:47:34 +000026974fi
cristy8b350f62009-11-15 23:12:43 +000026975rm -f core conftest.err conftest.$ac_objext \
26976 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026977LIBS=$ac_check_lib_save_LIBS
26978fi
cristy8b350f62009-11-15 23:12:43 +000026979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
cristy3ed852e2009-09-05 21:47:34 +000026980$as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026981if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026982 passed=`expr $passed + 1`
26983else
26984 failed=`expr $failed + 1`
26985fi
26986
26987 ac_ext=c
26988ac_cpp='$CPP $CPPFLAGS'
26989ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26990ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26991ac_compiler_gnu=$ac_cv_c_compiler_gnu
26992
cristy8b350f62009-11-15 23:12:43 +000026993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026994$as_echo_n "checking if FlashPIX package is complete... " >&6; }
26995 if test $passed -gt 0; then
26996 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026998$as_echo "no -- some components failed test" >&6; }
26999 have_fpx='no (failed tests)'
27000 else
27001 FPX_LIBS='-lfpx'
27002
cristy8b350f62009-11-15 23:12:43 +000027003$as_echo "#define FPX_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027004
cristy8b350f62009-11-15 23:12:43 +000027005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027006$as_echo "yes" >&6; }
27007 have_fpx='yes'
27008 PERLMAINCC="$CXX"
27009 fi
27010 else
cristy8b350f62009-11-15 23:12:43 +000027011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027012$as_echo "no" >&6; }
27013 fi
27014fi
27015 if test "$have_fpx" = 'yes'; then
27016 FPX_DELEGATE_TRUE=
27017 FPX_DELEGATE_FALSE='#'
27018else
27019 FPX_DELEGATE_TRUE='#'
27020 FPX_DELEGATE_FALSE=
27021fi
27022
27023
27024
27025
27026#
27027# Check for fontconfig delegate library.
27028#
27029
27030# Check whether --with-fontconfig was given.
cristy8b350f62009-11-15 23:12:43 +000027031if test "${with_fontconfig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027032 withval=$with_fontconfig; with_fontconfig=$withval
27033else
27034 with_fontconfig=$have_x
27035fi
27036
27037
27038if test "$with_fontconfig" != 'yes'; then
27039 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
27040fi
27041
27042have_fontconfig='no'
27043FONTCONFIG_CFLAGS=""
27044FONTCONFIG_LIBS=""
27045FONTCONFIG_PKG=""
27046if test "x$with_fontconfig" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000027047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027048$as_echo "-------------------------------------------------------------" >&6; }
27049
27050pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000027051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000027052$as_echo_n "checking for FONTCONFIG... " >&6; }
27053
27054if test -n "$FONTCONFIG_CFLAGS"; then
27055 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
27056 elif test -n "$PKG_CONFIG"; then
27057 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000027058 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000027059 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
27060 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000027061 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27062 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000027063 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
27064else
27065 pkg_failed=yes
27066fi
27067 else
27068 pkg_failed=untried
27069fi
27070if test -n "$FONTCONFIG_LIBS"; then
27071 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
27072 elif test -n "$PKG_CONFIG"; then
27073 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000027074 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000027075 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
27076 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000027077 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27078 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000027079 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
27080else
27081 pkg_failed=yes
27082fi
27083 else
27084 pkg_failed=untried
27085fi
27086
27087
27088
27089if test $pkg_failed = yes; then
27090
27091if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27092 _pkg_short_errors_supported=yes
27093else
27094 _pkg_short_errors_supported=no
27095fi
27096 if test $_pkg_short_errors_supported = yes; then
27097 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1`
27098 else
27099 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1`
27100 fi
27101 # Put the nasty error message in config.log where it belongs
27102 echo "$FONTCONFIG_PKG_ERRORS" >&5
27103
cristy8b350f62009-11-15 23:12:43 +000027104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027105$as_echo "no" >&6; }
27106 have_fontconfig=no
27107elif test $pkg_failed = untried; then
27108 have_fontconfig=no
27109else
27110 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
27111 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
cristy8b350f62009-11-15 23:12:43 +000027112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027113$as_echo "yes" >&6; }
27114 have_fontconfig=yes
27115fi
cristy8b350f62009-11-15 23:12:43 +000027116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027117$as_echo "" >&6; }
27118fi
27119
27120if test "$have_fontconfig" = 'yes'; then
27121
cristy8b350f62009-11-15 23:12:43 +000027122$as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027123
cristyd09bcf92010-03-25 03:04:45 +000027124 if test "$with_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000027125 CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
cristyd09bcf92010-03-25 03:04:45 +000027126 fi
cristy3ed852e2009-09-05 21:47:34 +000027127fi
27128
27129 if test "$have_fontconfig" = 'yes'; then
27130 FONTCONFIG_DELEGATE_TRUE=
27131 FONTCONFIG_DELEGATE_FALSE='#'
27132else
27133 FONTCONFIG_DELEGATE_TRUE='#'
27134 FONTCONFIG_DELEGATE_FALSE=
27135fi
27136
27137
27138
27139
27140
27141#
27142# Check for freetype delegate library.
27143#
27144
27145# Check whether --with-freetype was given.
cristy8b350f62009-11-15 23:12:43 +000027146if test "${with_freetype+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027147 withval=$with_freetype; with_freetype=$withval
27148else
27149 with_freetype='yes'
27150fi
27151
27152
27153
27154if test "$with_freetype" != 'yes'; then
27155 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
27156fi
27157
27158have_freetype='no'
27159FREETYPE_LIBS=''
27160if test "$with_freetype" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027162$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeType 2.0" >&5
cristy3ed852e2009-09-05 21:47:34 +000027164$as_echo_n "checking for FreeType 2.0... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027166$as_echo "" >&6; }
27167 failed=0
27168 passed=0
cristy66291112009-10-03 22:44:36 +000027169 PERSIST_LIBS="$LIBS"
cristy3ed852e2009-09-05 21:47:34 +000027170 PERSIST_CPPFLAGS="$CPPFLAGS"
27171 if test "$enable_delegate_build" != 'no' && test -d "$builddir/freetype/include"; then
27172 :
27173 else
27174 freetype_config=''
27175 for ac_prog in freetype-config
27176do
27177 # Extract the first word of "$ac_prog", so it can be a program name with args.
27178set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000027179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000027180$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027181if test "${ac_cv_prog_freetype_config+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027182 $as_echo_n "(cached) " >&6
27183else
27184 if test -n "$freetype_config"; then
27185 ac_cv_prog_freetype_config="$freetype_config" # Let the user override the test.
27186else
27187as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27188for as_dir in $PATH
27189do
27190 IFS=$as_save_IFS
27191 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000027192 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000027193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27194 ac_cv_prog_freetype_config="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000027195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027196 break 2
27197 fi
27198done
cristy8b350f62009-11-15 23:12:43 +000027199 done
cristy3ed852e2009-09-05 21:47:34 +000027200IFS=$as_save_IFS
27201
27202fi
27203fi
27204freetype_config=$ac_cv_prog_freetype_config
27205if test -n "$freetype_config"; then
cristy8b350f62009-11-15 23:12:43 +000027206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $freetype_config" >&5
cristy3ed852e2009-09-05 21:47:34 +000027207$as_echo "$freetype_config" >&6; }
27208else
cristy8b350f62009-11-15 23:12:43 +000027209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027210$as_echo "no" >&6; }
27211fi
27212
27213
27214 test -n "$freetype_config" && break
27215done
27216 if test -n "$freetype_config"; then
27217 freetype_cflags=`$freetype_config --cflags`
27218 freetype_libs=`$freetype_config --libs`
cristy66291112009-10-03 22:44:36 +000027219 LIBS="$LIBS $freetype_libs"
cristy3ed852e2009-09-05 21:47:34 +000027220 CPPFLAGS="$freetype_cflags $CPPFLAGS"
27221 fi
27222 fi
27223
27224 if test "$FREETYPE_LIBS" = ''; then
cristy8b350f62009-11-15 23:12:43 +000027225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_Init_FreeType in -lfreetype" >&5
cristy3ed852e2009-09-05 21:47:34 +000027226$as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027227if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027228 $as_echo_n "(cached) " >&6
27229else
27230 ac_check_lib_save_LIBS=$LIBS
27231LIBS="-lfreetype $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027232cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027233/* end confdefs.h. */
27234
27235/* Override any GCC internal prototype to avoid an error.
27236 Use char because int might match the return type of a GCC
27237 builtin and then its argument prototype would still apply. */
27238#ifdef __cplusplus
27239extern "C"
27240#endif
27241char FT_Init_FreeType ();
27242int
27243main ()
27244{
27245return FT_Init_FreeType ();
27246 ;
27247 return 0;
27248}
27249_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027250if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027251 ac_cv_lib_freetype_FT_Init_FreeType=yes
27252else
cristy8b350f62009-11-15 23:12:43 +000027253 ac_cv_lib_freetype_FT_Init_FreeType=no
cristy3ed852e2009-09-05 21:47:34 +000027254fi
cristy8b350f62009-11-15 23:12:43 +000027255rm -f core conftest.err conftest.$ac_objext \
27256 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027257LIBS=$ac_check_lib_save_LIBS
27258fi
cristy8b350f62009-11-15 23:12:43 +000027259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
cristy3ed852e2009-09-05 21:47:34 +000027260$as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027261if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027262 FREETYPE_LIBS='-lfreetype'
27263fi
27264
27265 if test "$FREETYPE_LIBS" != ''; then
27266 passed=`expr $passed + 1`
27267 else
27268 failed=`expr $failed + 1`
cristy66291112009-10-03 22:44:36 +000027269 LIBS="$PERSIST_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000027270 fi
27271 fi
27272
cristy8b350f62009-11-15 23:12:43 +000027273 ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
27274if test "x$ac_cv_header_ft2build_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027275 FT2BUILD_H='#include <ft2build.h>'
27276else
27277 ft2build=''
27278fi
27279
27280
cristy8b350f62009-11-15 23:12:43 +000027281 ac_fn_c_check_header_compile "$LINENO" "freetype/freetype.h" "ac_cv_header_freetype_freetype_h" "$FT2BUILD_H
27282"
27283if test "x$ac_cv_header_freetype_freetype_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027284 have_freetype_h='yes'
27285else
27286 have_freetype_h='no'
27287fi
27288
27289
27290 if test "$ac_cv_header_ft2build_h" = 'yes' || test "$have_freetype_h" = 'yes'; then
27291 passed=`expr $passed + 1`
27292 else
27293 failed=`expr $failed + 1`
27294 CPPFLAGS="$PERSIST_CPPFLAGS"
27295 fi
27296
cristy8b350f62009-11-15 23:12:43 +000027297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FreeType package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027298$as_echo_n "checking if FreeType package is complete... " >&6; }
27299 if test $passed -gt 0; then
27300 if test $failed -gt 0; then
27301 FREETYPE_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000027302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027303$as_echo "no -- some components failed test" >&6; }
27304 have_freetype='no (failed tests)'
27305 else
27306 LIBS="$FREETYPE_LIBS $LIBS"
27307
cristy8b350f62009-11-15 23:12:43 +000027308$as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027309
27310 if test "$ac_cv_header_ft2build_h" = 'yes'; then
27311
cristy8b350f62009-11-15 23:12:43 +000027312$as_echo "#define HAVE_FT2BUILD_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027313
27314 fi
cristy8b350f62009-11-15 23:12:43 +000027315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027316$as_echo "yes" >&6; }
27317 have_freetype='yes'
27318 fi
27319 else
cristy8b350f62009-11-15 23:12:43 +000027320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027321$as_echo "no" >&6; }
27322 fi
27323fi
27324 if test "$have_freetype" = 'yes'; then
27325 FREETYPE_DELEGATE_TRUE=
27326 FREETYPE_DELEGATE_FALSE='#'
27327else
27328 FREETYPE_DELEGATE_TRUE='#'
27329 FREETYPE_DELEGATE_FALSE=
27330fi
27331
27332
27333
27334
27335
27336#
27337# Check for Ghostscript library or framework.
27338#
27339# Test for iapi.h & test for gsapi_new_instance in -lgs
27340# or -framework Ghostscript
27341
27342
27343# Check whether --with-gslib was given.
cristy8b350f62009-11-15 23:12:43 +000027344if test "${with_gslib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027345 withval=$with_gslib; with_gslib=$withval
27346else
27347 with_gslib='no'
27348fi
27349
27350
cristyb7931f12009-09-25 10:22:21 +000027351gslib_framework='no'
cristy3ed852e2009-09-05 21:47:34 +000027352if test "$with_gslib" != 'yes'; then
27353 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
27354fi
27355
27356have_gslib='no'
27357GS_LIBS=''
27358if test "$with_gslib" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027360$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000027362$as_echo_n "checking for Ghostscript... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027364$as_echo "" >&6; }
cristyb7931f12009-09-25 10:22:21 +000027365 framework=0
cristy3ed852e2009-09-05 21:47:34 +000027366 failed=0
27367 passed=0
cristy8b350f62009-11-15 23:12:43 +000027368 ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/iapi.h" "ac_cv_header_ghostscript_iapi_h" "$ac_includes_default"
27369if test "x$ac_cv_header_ghostscript_iapi_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027370 passed=`expr $passed + 1`
27371else
27372 failed=`expr $failed + 1`
27373fi
27374
27375
cristy8b350f62009-11-15 23:12:43 +000027376 ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/ierrors.h" "ac_cv_header_ghostscript_ierrors_h" "$ac_includes_default"
27377if test "x$ac_cv_header_ghostscript_ierrors_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027378 passed=`expr $passed + 1`
27379else
27380 failed=`expr $failed + 1`
27381fi
27382
27383
cristy8b350f62009-11-15 23:12:43 +000027384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
cristy3ed852e2009-09-05 21:47:34 +000027385$as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027386if test "${ac_cv_framework_Ghostscript_gsapi_new_instance+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027387 $as_echo_n "(cached) " >&6
27388else
27389 ac_check_framework_save_LIBS=$LIBS
27390LIBS="-framework Ghostscript $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027391cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027392/* end confdefs.h. */
27393
27394/* Override any GCC internal prototype to avoid an error.
27395 Use char because int might match the return type of a GCC
27396 builtin and then its argument prototype would still apply. */
27397#ifdef __cplusplus
27398extern "C"
27399#endif
27400char gsapi_new_instance ();
27401int
27402main ()
27403{
27404return gsapi_new_instance ();
27405 ;
27406 return 0;
27407}
27408_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027409if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027410 ac_cv_framework_Ghostscript_gsapi_new_instance=yes
27411else
cristy8b350f62009-11-15 23:12:43 +000027412 ac_cv_framework_Ghostscript_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000027413fi
cristy8b350f62009-11-15 23:12:43 +000027414rm -f core conftest.err conftest.$ac_objext \
27415 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027416LIBS=$ac_check_framework_save_LIBS
27417fi
cristy8b350f62009-11-15 23:12:43 +000027418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000027419$as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027420if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027421 framework=`expr $framework + 1`
27422else
cristy8b350f62009-11-15 23:12:43 +000027423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
cristy3ed852e2009-09-05 21:47:34 +000027424$as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027425if test "${ac_cv_lib_gs_gsapi_new_instance+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027426 $as_echo_n "(cached) " >&6
27427else
27428 ac_check_lib_save_LIBS=$LIBS
27429LIBS="-lgs $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027430cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027431/* end confdefs.h. */
27432
27433/* Override any GCC internal prototype to avoid an error.
27434 Use char because int might match the return type of a GCC
27435 builtin and then its argument prototype would still apply. */
27436#ifdef __cplusplus
27437extern "C"
27438#endif
27439char gsapi_new_instance ();
27440int
27441main ()
27442{
27443return gsapi_new_instance ();
27444 ;
27445 return 0;
27446}
27447_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027448if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027449 ac_cv_lib_gs_gsapi_new_instance=yes
27450else
cristy8b350f62009-11-15 23:12:43 +000027451 ac_cv_lib_gs_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000027452fi
cristy8b350f62009-11-15 23:12:43 +000027453rm -f core conftest.err conftest.$ac_objext \
27454 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027455LIBS=$ac_check_lib_save_LIBS
27456fi
cristy8b350f62009-11-15 23:12:43 +000027457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000027458$as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027459if test "x$ac_cv_lib_gs_gsapi_new_instance" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027460 passed=`expr $passed + 1`
27461else
27462 failed=`expr $failed + 1`
27463fi
27464
27465fi
cristy8b350f62009-11-15 23:12:43 +000027466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027467$as_echo_n "checking if Ghostscript package is complete... " >&6; }
27468 if test $passed -gt 0; then
27469 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027471$as_echo "no -- some components failed test" >&6; }
27472 have_gslib='no (failed tests)'
27473 else
27474 if test $framework -gt 0; then
27475 GS_LIBS='-framework Ghostscript'
cristyb7931f12009-09-25 10:22:21 +000027476 gslib_framework='yes'
cristy8b350f62009-11-15 23:12:43 +000027477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using framework." >&5
cristy3ed852e2009-09-05 21:47:34 +000027478$as_echo "yes, using framework." >&6; }
27479 else
cristy8b350f62009-11-15 23:12:43 +000027480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using library." >&5
cristy3ed852e2009-09-05 21:47:34 +000027481$as_echo "yes, using library." >&6; }
27482 GS_LIBS='-lgs'
27483 fi
27484 LIBS="$GS_LIBS $LIBS"
27485
cristy8b350f62009-11-15 23:12:43 +000027486$as_echo "#define GS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027487
27488 have_gslib='yes'
27489 fi
27490 else
cristy8b350f62009-11-15 23:12:43 +000027491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027492$as_echo "no" >&6; }
27493 fi
27494fi
27495 if test "$have_gslib" = 'yes'; then
27496 GS_DELEGATE_TRUE=
27497 GS_DELEGATE_FALSE='#'
27498else
27499 GS_DELEGATE_TRUE='#'
27500 GS_DELEGATE_FALSE=
27501fi
27502
27503
27504
27505# Set default font search path
27506
27507# Check whether --with-fontpath was given.
cristy8b350f62009-11-15 23:12:43 +000027508if test "${with_fontpath+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027509 withval=$with_fontpath; with_fontpath=$withval
27510else
27511 with_fontpath=''
27512fi
27513
27514
27515if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
27516 with_fontpath=''
27517else
27518
27519cat >>confdefs.h <<_ACEOF
27520#define MAGICK_FONT_PATH "$with_fontpath"
27521_ACEOF
27522
27523fi
27524if test "$with_fontpath=" != ''; then
27525 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
27526fi
27527
27528# Set Ghostscript font directory
27529
27530# Check whether --with-gs-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000027531if test "${with_gs_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027532 withval=$with_gs_font_dir; with_gs_font_dir=$withval
27533else
27534 with_gs_font_dir='default'
27535fi
27536
27537
27538if test "$with_gs_font_dir" != 'default'; then
27539 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
27540fi
27541
27542
27543#
27544# Check for GVC delegate library.
27545#
27546
27547# Check whether --with-gvc was given.
cristy8b350f62009-11-15 23:12:43 +000027548if test "${with_gvc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027549 withval=$with_gvc; with_gvc=$withval
27550else
27551 with_gvc='yes'
27552fi
27553
27554
27555if test "$with_gvc" != 'yes'; then
27556 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
27557fi
27558
27559GVC_PKG=""
27560if test "x$with_gvc" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000027561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027562$as_echo "-------------------------------------------------------------" >&6; }
27563
27564pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000027565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
cristy3ed852e2009-09-05 21:47:34 +000027566$as_echo_n "checking for GVC... " >&6; }
27567
27568if test -n "$GVC_CFLAGS"; then
27569 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
27570 elif test -n "$PKG_CONFIG"; then
27571 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000027572 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000027573 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
27574 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000027575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27576 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000027577 pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
27578else
27579 pkg_failed=yes
27580fi
27581 else
27582 pkg_failed=untried
27583fi
27584if test -n "$GVC_LIBS"; then
27585 pkg_cv_GVC_LIBS="$GVC_LIBS"
27586 elif test -n "$PKG_CONFIG"; then
27587 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000027588 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000027589 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
27590 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000027591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27592 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000027593 pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
27594else
27595 pkg_failed=yes
27596fi
27597 else
27598 pkg_failed=untried
27599fi
27600
27601
27602
27603if test $pkg_failed = yes; then
27604
27605if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27606 _pkg_short_errors_supported=yes
27607else
27608 _pkg_short_errors_supported=no
27609fi
27610 if test $_pkg_short_errors_supported = yes; then
27611 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1`
27612 else
27613 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1`
27614 fi
27615 # Put the nasty error message in config.log where it belongs
27616 echo "$GVC_PKG_ERRORS" >&5
27617
cristy8b350f62009-11-15 23:12:43 +000027618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027619$as_echo "no" >&6; }
27620 have_gvc=no
27621elif test $pkg_failed = untried; then
27622 have_gvc=no
27623else
27624 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
27625 GVC_LIBS=$pkg_cv_GVC_LIBS
cristy8b350f62009-11-15 23:12:43 +000027626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027627$as_echo "yes" >&6; }
27628 have_gvc=yes
27629fi
cristy8b350f62009-11-15 23:12:43 +000027630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027631$as_echo "" >&6; }
27632fi
27633
27634if test "$have_gvc" = 'yes'; then
27635
cristy8b350f62009-11-15 23:12:43 +000027636$as_echo "#define GVC_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027637
27638 if test "$with_modules" = 'no'; then
27639 CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
27640 fi
27641fi
27642
27643 if test "$have_gvc" = 'yes'; then
27644 GVC_DELEGATE_TRUE=
27645 GVC_DELEGATE_FALSE='#'
27646else
27647 GVC_DELEGATE_TRUE='#'
27648 GVC_DELEGATE_FALSE=
27649fi
27650
27651
27652
27653
27654
27655#
27656# Check for JBIG delegate library.
27657#
27658
27659
27660# Check whether --with-jbig was given.
cristy8b350f62009-11-15 23:12:43 +000027661if test "${with_jbig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027662 withval=$with_jbig; with_jbig=$withval
27663else
27664 with_jbig='yes'
27665fi
27666
27667
27668have_jbig='no'
27669JBIG_LIBS=''
27670if test "$with_jbig" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027672$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000027674$as_echo_n "checking for JBIG... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027676$as_echo "" >&6; }
27677 failed=0
27678 passed=0
cristy8b350f62009-11-15 23:12:43 +000027679 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
27680if test "x$ac_cv_header_jbig_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027681 passed=`expr $passed + 1`
27682else
27683 failed=`expr $failed + 1`
27684fi
27685
27686
cristy8b350f62009-11-15 23:12:43 +000027687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
cristy3ed852e2009-09-05 21:47:34 +000027688$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027689if test "${ac_cv_lib_jbig_jbg_dec_init+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027690 $as_echo_n "(cached) " >&6
27691else
27692 ac_check_lib_save_LIBS=$LIBS
27693LIBS="-ljbig $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027694cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027695/* end confdefs.h. */
27696
27697/* Override any GCC internal prototype to avoid an error.
27698 Use char because int might match the return type of a GCC
27699 builtin and then its argument prototype would still apply. */
27700#ifdef __cplusplus
27701extern "C"
27702#endif
27703char jbg_dec_init ();
27704int
27705main ()
27706{
27707return jbg_dec_init ();
27708 ;
27709 return 0;
27710}
27711_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027712if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027713 ac_cv_lib_jbig_jbg_dec_init=yes
27714else
cristy8b350f62009-11-15 23:12:43 +000027715 ac_cv_lib_jbig_jbg_dec_init=no
cristy3ed852e2009-09-05 21:47:34 +000027716fi
cristy8b350f62009-11-15 23:12:43 +000027717rm -f core conftest.err conftest.$ac_objext \
27718 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027719LIBS=$ac_check_lib_save_LIBS
27720fi
cristy8b350f62009-11-15 23:12:43 +000027721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000027722$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027723if test "x$ac_cv_lib_jbig_jbg_dec_init" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027724 passed=`expr $passed + 1`
27725else
27726 failed=`expr $failed + 1`
27727fi
27728
cristy8b350f62009-11-15 23:12:43 +000027729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027730$as_echo_n "checking if JBIG package is complete... " >&6; }
27731 if test $passed -gt 0; then
27732 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027734$as_echo "no -- some components failed test" >&6; }
27735 have_jbig='no (failed tests)'
27736 else
27737 JBIG_LIBS='-ljbig'
27738 LIBS="$JBIG_LIBS $LIBS"
27739
cristy8b350f62009-11-15 23:12:43 +000027740$as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027741
cristy8b350f62009-11-15 23:12:43 +000027742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027743$as_echo "yes" >&6; }
27744 have_jbig='yes'
27745 fi
27746 else
cristy8b350f62009-11-15 23:12:43 +000027747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027748$as_echo "no" >&6; }
27749 fi
27750fi
27751 if test "$have_jbig" = 'yes'; then
27752 JBIG_DELEGATE_TRUE=
27753 JBIG_DELEGATE_FALSE='#'
27754else
27755 JBIG_DELEGATE_TRUE='#'
27756 JBIG_DELEGATE_FALSE=
27757fi
27758
27759
27760
27761
27762#
27763# Check for JPEG delegate library.
27764#
27765
27766# Check whether --with-jpeg was given.
cristy8b350f62009-11-15 23:12:43 +000027767if test "${with_jpeg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027768 withval=$with_jpeg; with_jpeg=$withval
27769else
27770 with_jpeg='yes'
27771fi
27772
27773
27774if test "$with_jpeg" != 'yes'; then
27775 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
27776fi
27777
27778have_jpeg='no'
27779JPEG_LIBS=''
27780if test "$with_jpeg" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027782$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
cristy3ed852e2009-09-05 21:47:34 +000027784$as_echo_n "checking for JPEG... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027786$as_echo "" >&6; }
27787 failed=0
27788 passed=0
cristy8b350f62009-11-15 23:12:43 +000027789 ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
27790if test "x$ac_cv_header_jconfig_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027791 passed=`expr $passed + 1`
27792else
27793 failed=`expr $failed + 1`
27794fi
27795
27796
cristy8b350f62009-11-15 23:12:43 +000027797 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
27798if test "x$ac_cv_header_jerror_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027799 passed=`expr $passed + 1`
27800else
27801 failed=`expr $failed + 1`
27802fi
27803
27804
cristy8b350f62009-11-15 23:12:43 +000027805 ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
27806if test "x$ac_cv_header_jmorecfg_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027807 passed=`expr $passed + 1`
27808else
27809 failed=`expr $failed + 1`
27810fi
27811
27812
cristy8b350f62009-11-15 23:12:43 +000027813 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
27814if test "x$ac_cv_header_jpeglib_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027815 passed=`expr $passed + 1`
27816else
27817 failed=`expr $failed + 1`
27818fi
27819
27820
cristy8b350f62009-11-15 23:12:43 +000027821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
cristy3ed852e2009-09-05 21:47:34 +000027822$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027823if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027824 $as_echo_n "(cached) " >&6
27825else
27826 ac_check_lib_save_LIBS=$LIBS
27827LIBS="-ljpeg $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027828cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027829/* end confdefs.h. */
27830
27831/* Override any GCC internal prototype to avoid an error.
27832 Use char because int might match the return type of a GCC
27833 builtin and then its argument prototype would still apply. */
27834#ifdef __cplusplus
27835extern "C"
27836#endif
27837char jpeg_read_header ();
27838int
27839main ()
27840{
27841return jpeg_read_header ();
27842 ;
27843 return 0;
27844}
27845_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027846if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027847 ac_cv_lib_jpeg_jpeg_read_header=yes
27848else
cristy8b350f62009-11-15 23:12:43 +000027849 ac_cv_lib_jpeg_jpeg_read_header=no
cristy3ed852e2009-09-05 21:47:34 +000027850fi
cristy8b350f62009-11-15 23:12:43 +000027851rm -f core conftest.err conftest.$ac_objext \
27852 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027853LIBS=$ac_check_lib_save_LIBS
27854fi
cristy8b350f62009-11-15 23:12:43 +000027855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
cristy3ed852e2009-09-05 21:47:34 +000027856$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027857if test "x$ac_cv_lib_jpeg_jpeg_read_header" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027858 passed=`expr $passed + 1`
27859else
27860 failed=`expr $failed + 1`
27861fi
27862
27863
27864# Test for compatible JPEG library
27865if test "$ac_cv_jpeg_version_ok" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
cristy3ed852e2009-09-05 21:47:34 +000027867$as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027868if test "${ac_cv_jpeg_version_ok+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027869 $as_echo_n "(cached) " >&6
27870else
cristy8b350f62009-11-15 23:12:43 +000027871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027872/* end confdefs.h. */
27873#include <stdio.h>
27874#include <stdlib.h>
27875#include <jpeglib.h>
27876
27877int
27878main ()
27879{
27880
27881#if JPEG_LIB_VERSION < 62
27882#error IJG JPEG library must be version 6b or newer!
27883#endif
27884return 0;
27885
27886 ;
27887 return 0;
27888}
27889_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027890if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027891 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
27892else
cristy8b350f62009-11-15 23:12:43 +000027893 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000027894fi
cristy3ed852e2009-09-05 21:47:34 +000027895rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27896fi
cristy8b350f62009-11-15 23:12:43 +000027897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000027898$as_echo "$ac_cv_jpeg_version_ok" >&6; }
27899fi
cristy8b350f62009-11-15 23:12:43 +000027900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027901$as_echo_n "checking if JPEG package is complete... " >&6; }
27902 if test $passed -gt 0; then
27903 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027905$as_echo "no -- some components failed test" >&6; }
27906 have_jpeg='no (failed tests)'
27907 else
27908 JPEG_LIBS='-ljpeg'
27909 LIBS="$JPEG_LIBS $LIBS"
27910
cristy8b350f62009-11-15 23:12:43 +000027911$as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027912
cristy8b350f62009-11-15 23:12:43 +000027913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027914$as_echo "yes" >&6; }
27915 have_jpeg='yes'
27916 fi
27917 else
cristy8b350f62009-11-15 23:12:43 +000027918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027919$as_echo "no" >&6; }
27920 fi
27921fi
27922 if test "$have_jpeg" = 'yes'; then
27923 JPEG_DELEGATE_TRUE=
27924 JPEG_DELEGATE_FALSE='#'
27925else
27926 JPEG_DELEGATE_TRUE='#'
27927 JPEG_DELEGATE_FALSE=
27928fi
27929
27930
27931
27932
27933#
27934# Check for JPEG Version 2 delegate library.
27935#
27936
27937# Check whether --with-jp2 was given.
cristy8b350f62009-11-15 23:12:43 +000027938if test "${with_jp2+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027939 withval=$with_jp2; with_jp2=$withval
27940else
27941 with_jp2='yes'
27942fi
27943
27944
27945if test "$with_jp2" != 'yes'; then
27946 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jp2=$with_jp2 "
27947fi
27948
27949have_jp2='no'
27950JP2_LIBS=''
27951if test "$with_jp2" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027953$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG Version 2" >&5
cristy3ed852e2009-09-05 21:47:34 +000027955$as_echo_n "checking for JPEG Version 2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027957$as_echo "" >&6; }
27958 failed=0
27959 passed=0
cristy8b350f62009-11-15 23:12:43 +000027960 ac_fn_c_check_header_mongrel "$LINENO" "jasper/jasper.h" "ac_cv_header_jasper_jasper_h" "$ac_includes_default"
27961if test "x$ac_cv_header_jasper_jasper_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027962 passed=`expr $passed + 1`
27963else
27964 failed=`expr $failed + 1`
27965fi
27966
27967
cristy8b350f62009-11-15 23:12:43 +000027968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jas_stream_fopen in -ljasper" >&5
cristy3ed852e2009-09-05 21:47:34 +000027969$as_echo_n "checking for jas_stream_fopen in -ljasper... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027970if test "${ac_cv_lib_jasper_jas_stream_fopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027971 $as_echo_n "(cached) " >&6
27972else
27973 ac_check_lib_save_LIBS=$LIBS
27974LIBS="-ljasper $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027975cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027976/* end confdefs.h. */
27977
27978/* Override any GCC internal prototype to avoid an error.
27979 Use char because int might match the return type of a GCC
27980 builtin and then its argument prototype would still apply. */
27981#ifdef __cplusplus
27982extern "C"
27983#endif
27984char jas_stream_fopen ();
27985int
27986main ()
27987{
27988return jas_stream_fopen ();
27989 ;
27990 return 0;
27991}
27992_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027993if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027994 ac_cv_lib_jasper_jas_stream_fopen=yes
27995else
cristy8b350f62009-11-15 23:12:43 +000027996 ac_cv_lib_jasper_jas_stream_fopen=no
cristy3ed852e2009-09-05 21:47:34 +000027997fi
cristy8b350f62009-11-15 23:12:43 +000027998rm -f core conftest.err conftest.$ac_objext \
27999 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028000LIBS=$ac_check_lib_save_LIBS
28001fi
cristy8b350f62009-11-15 23:12:43 +000028002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jasper_jas_stream_fopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000028003$as_echo "$ac_cv_lib_jasper_jas_stream_fopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028004if test "x$ac_cv_lib_jasper_jas_stream_fopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028005 passed=`expr $passed + 1`
28006else
28007 failed=`expr $failed + 1`
28008fi
28009
cristy8b350f62009-11-15 23:12:43 +000028010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG version 2 support package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028011$as_echo_n "checking if JPEG version 2 support package is complete... " >&6; }
28012 if test $passed -gt 0; then
28013 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000028014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000028015$as_echo "no -- some components failed test" >&6; }
28016 have_jp2='no (failed tests)'
28017 else
28018 JP2_LIBS='-ljasper'
28019 LIBS="$JP2_LIBS $LIBS"
28020
cristy8b350f62009-11-15 23:12:43 +000028021$as_echo "#define JP2_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028022
cristy8b350f62009-11-15 23:12:43 +000028023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028024$as_echo "yes" >&6; }
28025 have_jp2='yes'
28026 fi
28027 else
cristy8b350f62009-11-15 23:12:43 +000028028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028029$as_echo "no" >&6; }
28030 fi
28031fi
28032 if test "$have_jp2" = 'yes'; then
28033 JP2_DELEGATE_TRUE=
28034 JP2_DELEGATE_FALSE='#'
28035else
28036 JP2_DELEGATE_TRUE='#'
28037 JP2_DELEGATE_FALSE=
28038fi
28039
28040
28041
28042
28043#
28044# Check for LCMS delegate library.
28045#
28046
28047# Check whether --with-lcms was given.
cristy8b350f62009-11-15 23:12:43 +000028048if test "${with_lcms+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028049 withval=$with_lcms; with_lcms=$withval
28050else
28051 with_lcms='yes'
28052fi
28053
28054
28055if test "$with_lcms" != 'yes'; then
28056 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
28057fi
28058
28059have_lcms='no'
28060LCMS_LIBS=''
28061if test "$with_lcms" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000028062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028063$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS" >&5
cristy3ed852e2009-09-05 21:47:34 +000028065$as_echo_n "checking for LCMS... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028067$as_echo "" >&6; }
28068 failed=0
28069 passed=0
28070 have_lcms_header='no'
cristyd09bcf92010-03-25 03:04:45 +000028071 ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default"
28072if test "x$ac_cv_header_lcms2_h" = x""yes; then :
28073 have_lcms_header='yes'
28074fi
28075
28076
28077 if test "$have_lcms_header" = 'yes'; then
28078 passed=`expr $passed + 1`
28079
28080$as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h
28081
28082 else
28083 ac_fn_c_check_header_mongrel "$LINENO" "lcms/lcms2.h" "ac_cv_header_lcms_lcms2_h" "$ac_includes_default"
28084if test "x$ac_cv_header_lcms_lcms2_h" = x""yes; then :
28085 have_lcms_header='yes'
28086fi
28087
28088
28089 if test "$have_lcms_header" = 'yes'; then
28090 passed=`expr $passed + 1`
28091
28092$as_echo "#define HAVE_LCMS_LCMS2_H 1" >>confdefs.h
28093
28094 else
28095 failed=`expr $failed + 1`
28096 fi
28097 fi
28098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsOpenProfileFromMem in -llcms2" >&5
28099$as_echo_n "checking for cmsOpenProfileFromMem in -llcms2... " >&6; }
28100if test "${ac_cv_lib_lcms2_cmsOpenProfileFromMem+set}" = set; then :
28101 $as_echo_n "(cached) " >&6
28102else
28103 ac_check_lib_save_LIBS=$LIBS
28104LIBS="-llcms2 $LIBS"
28105cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28106/* end confdefs.h. */
28107
28108/* Override any GCC internal prototype to avoid an error.
28109 Use char because int might match the return type of a GCC
28110 builtin and then its argument prototype would still apply. */
28111#ifdef __cplusplus
28112extern "C"
28113#endif
28114char cmsOpenProfileFromMem ();
28115int
28116main ()
28117{
28118return cmsOpenProfileFromMem ();
28119 ;
28120 return 0;
28121}
28122_ACEOF
28123if ac_fn_c_try_link "$LINENO"; then :
28124 ac_cv_lib_lcms2_cmsOpenProfileFromMem=yes
28125else
28126 ac_cv_lib_lcms2_cmsOpenProfileFromMem=no
28127fi
28128rm -f core conftest.err conftest.$ac_objext \
28129 conftest$ac_exeext conftest.$ac_ext
28130LIBS=$ac_check_lib_save_LIBS
28131fi
28132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsOpenProfileFromMem" >&5
28133$as_echo "$ac_cv_lib_lcms2_cmsOpenProfileFromMem" >&6; }
28134if test "x$ac_cv_lib_lcms2_cmsOpenProfileFromMem" = x""yes; then :
28135 passed=`expr $passed + 1`
28136else
28137 failed=`expr $failed + 1`
28138fi
28139
28140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS2 package is complete" >&5
28141$as_echo_n "checking if LCMS2 package is complete... " >&6; }
28142 if test $passed -gt 0; then
28143 if test $failed -gt 0; then
28144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28145$as_echo "no -- some components failed test" >&6; }
28146 have_lcms='no (failed tests)'
28147 else
28148 LCMS_LIBS='-llcms2'
28149 LIBS="$LCMS_LIBS $LIBS"
28150
28151$as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
28152
28153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28154$as_echo "yes" >&6; }
28155 have_lcms='yes'
28156 fi
28157 else
28158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28159$as_echo "no" >&6; }
28160 fi
28161fi
28162
28163if test "$with_lcms" != 'no'; then
28164if test "$have_lcms" == 'no'; then
28165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28166$as_echo "-------------------------------------------------------------" >&6; }
28167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS" >&5
28168$as_echo_n "checking for LCMS... " >&6; }
28169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28170$as_echo "" >&6; }
28171 failed=0
28172 passed=0
28173 have_lcms_header='no'
cristy8b350f62009-11-15 23:12:43 +000028174 ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default"
28175if test "x$ac_cv_header_lcms_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028176 have_lcms_header='yes'
28177fi
28178
28179
28180 if test "$have_lcms_header" = 'yes'; then
28181 passed=`expr $passed + 1`
28182
cristy8b350f62009-11-15 23:12:43 +000028183$as_echo "#define HAVE_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028184
28185 else
cristy8b350f62009-11-15 23:12:43 +000028186 ac_fn_c_check_header_mongrel "$LINENO" "lcms/lcms.h" "ac_cv_header_lcms_lcms_h" "$ac_includes_default"
28187if test "x$ac_cv_header_lcms_lcms_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028188 have_lcms_header='yes'
28189fi
28190
28191
28192 if test "$have_lcms_header" = 'yes'; then
28193 passed=`expr $passed + 1`
28194
cristy8b350f62009-11-15 23:12:43 +000028195$as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028196
28197 else
28198 failed=`expr $failed + 1`
28199 fi
28200 fi
cristy8b350f62009-11-15 23:12:43 +000028201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsOpenProfileFromMem in -llcms" >&5
cristy3ed852e2009-09-05 21:47:34 +000028202$as_echo_n "checking for cmsOpenProfileFromMem in -llcms... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028203if test "${ac_cv_lib_lcms_cmsOpenProfileFromMem+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028204 $as_echo_n "(cached) " >&6
28205else
28206 ac_check_lib_save_LIBS=$LIBS
28207LIBS="-llcms $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028208cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028209/* end confdefs.h. */
28210
28211/* Override any GCC internal prototype to avoid an error.
28212 Use char because int might match the return type of a GCC
28213 builtin and then its argument prototype would still apply. */
28214#ifdef __cplusplus
28215extern "C"
28216#endif
28217char cmsOpenProfileFromMem ();
28218int
28219main ()
28220{
28221return cmsOpenProfileFromMem ();
28222 ;
28223 return 0;
28224}
28225_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028226if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028227 ac_cv_lib_lcms_cmsOpenProfileFromMem=yes
28228else
cristy8b350f62009-11-15 23:12:43 +000028229 ac_cv_lib_lcms_cmsOpenProfileFromMem=no
cristy3ed852e2009-09-05 21:47:34 +000028230fi
cristy8b350f62009-11-15 23:12:43 +000028231rm -f core conftest.err conftest.$ac_objext \
28232 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028233LIBS=$ac_check_lib_save_LIBS
28234fi
cristy8b350f62009-11-15 23:12:43 +000028235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsOpenProfileFromMem" >&5
cristy3ed852e2009-09-05 21:47:34 +000028236$as_echo "$ac_cv_lib_lcms_cmsOpenProfileFromMem" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028237if test "x$ac_cv_lib_lcms_cmsOpenProfileFromMem" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028238 passed=`expr $passed + 1`
28239else
28240 failed=`expr $failed + 1`
28241fi
28242
cristy8b350f62009-11-15 23:12:43 +000028243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028244$as_echo_n "checking if LCMS package is complete... " >&6; }
28245 if test $passed -gt 0; then
28246 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000028247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000028248$as_echo "no -- some components failed test" >&6; }
28249 have_lcms='no (failed tests)'
28250 else
28251 LCMS_LIBS='-llcms'
28252 LIBS="$LCMS_LIBS $LIBS"
28253
cristy8b350f62009-11-15 23:12:43 +000028254$as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028255
cristy8b350f62009-11-15 23:12:43 +000028256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028257$as_echo "yes" >&6; }
28258 have_lcms='yes'
28259 fi
28260 else
cristy8b350f62009-11-15 23:12:43 +000028261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028262$as_echo "no" >&6; }
28263 fi
28264fi
cristyd09bcf92010-03-25 03:04:45 +000028265fi
cristy3ed852e2009-09-05 21:47:34 +000028266 if test "$have_lcms" = 'yes'; then
28267 LCMS_DELEGATE_TRUE=
28268 LCMS_DELEGATE_FALSE='#'
28269else
28270 LCMS_DELEGATE_TRUE='#'
28271 LCMS_DELEGATE_FALSE=
28272fi
28273
28274
28275
28276
28277#
28278# Check for the LQR (Liquid Rescale) delegate library.
28279#
28280
28281# Check whether --with-lqr was given.
cristy8b350f62009-11-15 23:12:43 +000028282if test "${with_lqr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028283 withval=$with_lqr; with_lqr=$withval
28284else
28285 with_lqr='yes'
28286fi
28287
28288
28289if test "$with_lqr" != 'yes'; then
28290 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
28291fi
28292
28293have_lqr='no'
28294LQR_CFLAGS=""
28295LQR_LIBS=""
28296LQR_PKG=""
28297if test "x$with_lqr" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000028298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028299$as_echo "-------------------------------------------------------------" >&6; }
28300
28301pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000028302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
cristy3ed852e2009-09-05 21:47:34 +000028303$as_echo_n "checking for LQR... " >&6; }
28304
28305if test -n "$LQR_CFLAGS"; then
28306 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
28307 elif test -n "$PKG_CONFIG"; then
28308 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000028309 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000028310 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
28311 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000028312 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28313 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000028314 pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
28315else
28316 pkg_failed=yes
28317fi
28318 else
28319 pkg_failed=untried
28320fi
28321if test -n "$LQR_LIBS"; then
28322 pkg_cv_LQR_LIBS="$LQR_LIBS"
28323 elif test -n "$PKG_CONFIG"; then
28324 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000028325 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000028326 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
28327 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000028328 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28329 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000028330 pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
28331else
28332 pkg_failed=yes
28333fi
28334 else
28335 pkg_failed=untried
28336fi
28337
28338
28339
28340if test $pkg_failed = yes; then
28341
28342if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28343 _pkg_short_errors_supported=yes
28344else
28345 _pkg_short_errors_supported=no
28346fi
28347 if test $_pkg_short_errors_supported = yes; then
28348 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1`
28349 else
28350 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1`
28351 fi
28352 # Put the nasty error message in config.log where it belongs
28353 echo "$LQR_PKG_ERRORS" >&5
28354
cristy8b350f62009-11-15 23:12:43 +000028355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028356$as_echo "no" >&6; }
28357 have_lqr=no
28358elif test $pkg_failed = untried; then
28359 have_lqr=no
28360else
28361 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
28362 LQR_LIBS=$pkg_cv_LQR_LIBS
cristy8b350f62009-11-15 23:12:43 +000028363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028364$as_echo "yes" >&6; }
28365 have_lqr=yes
28366fi
cristy8b350f62009-11-15 23:12:43 +000028367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028368$as_echo "" >&6; }
28369fi
28370
28371if test "$have_lqr" = 'yes'; then
28372
cristy8b350f62009-11-15 23:12:43 +000028373$as_echo "#define LQR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028374
28375 CFLAGS="$LQR_CFLAGS $CFLAGS"
28376fi
28377
28378 if test "$have_lqr" = 'yes'; then
28379 LQR_DELEGATE_TRUE=
28380 LQR_DELEGATE_FALSE='#'
28381else
28382 LQR_DELEGATE_TRUE='#'
28383 LQR_DELEGATE_FALSE=
28384fi
28385
28386
28387
28388
28389
28390#
28391# Check for the OpenEXR delegate library.
28392#
28393
28394# Check whether --with-openexr was given.
cristy8b350f62009-11-15 23:12:43 +000028395if test "${with_openexr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028396 withval=$with_openexr; with_openexr=$withval
28397else
28398 with_openexr='yes'
28399fi
28400
28401
28402if test "$with_openexr" != 'yes'; then
28403 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
28404fi
28405
28406have_openexr='no'
28407OPENEXR_CFLAGS=""
28408OPENEXR_LIBS=""
28409OPENEXR_PKG=""
28410if test "x$with_openexr" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000028411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028412$as_echo "-------------------------------------------------------------" >&6; }
28413
28414pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000028415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
cristy3ed852e2009-09-05 21:47:34 +000028416$as_echo_n "checking for OPENEXR... " >&6; }
28417
28418if test -n "$OPENEXR_CFLAGS"; then
28419 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
28420 elif test -n "$PKG_CONFIG"; then
28421 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000028422 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000028423 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
28424 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000028425 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28426 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000028427 pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
28428else
28429 pkg_failed=yes
28430fi
28431 else
28432 pkg_failed=untried
28433fi
28434if test -n "$OPENEXR_LIBS"; then
28435 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
28436 elif test -n "$PKG_CONFIG"; then
28437 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000028438 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000028439 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
28440 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000028441 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28442 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000028443 pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
28444else
28445 pkg_failed=yes
28446fi
28447 else
28448 pkg_failed=untried
28449fi
28450
28451
28452
28453if test $pkg_failed = yes; then
28454
28455if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28456 _pkg_short_errors_supported=yes
28457else
28458 _pkg_short_errors_supported=no
28459fi
28460 if test $_pkg_short_errors_supported = yes; then
28461 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1`
28462 else
28463 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1`
28464 fi
28465 # Put the nasty error message in config.log where it belongs
28466 echo "$OPENEXR_PKG_ERRORS" >&5
28467
cristy8b350f62009-11-15 23:12:43 +000028468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028469$as_echo "no" >&6; }
28470 have_openexr=no
28471elif test $pkg_failed = untried; then
28472 have_openexr=no
28473else
28474 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
28475 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
cristy8b350f62009-11-15 23:12:43 +000028476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028477$as_echo "yes" >&6; }
28478 have_openexr=yes
28479fi
cristy8b350f62009-11-15 23:12:43 +000028480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028481$as_echo "" >&6; }
28482fi
28483
28484if test "$have_openexr" = 'yes'; then
28485
cristy8b350f62009-11-15 23:12:43 +000028486$as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028487
28488 if test "$with_modules" = 'no'; then
28489 CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
28490 fi
28491fi
28492
28493 if test "$have_openexr" = 'yes'; then
28494 OPENEXR_DELEGATE_TRUE=
28495 OPENEXR_DELEGATE_FALSE='#'
28496else
28497 OPENEXR_DELEGATE_TRUE='#'
28498 OPENEXR_DELEGATE_FALSE=
28499fi
28500
28501
28502
28503
28504
28505#
28506# Check for PNG delegate library.
28507#
28508
28509# Check whether --with-png was given.
cristy8b350f62009-11-15 23:12:43 +000028510if test "${with_png+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028511 withval=$with_png; with_png=$withval
28512else
28513 with_png='yes'
28514fi
28515
28516
28517if test "$with_png" != 'yes'; then
28518 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
28519fi
28520
28521have_png='no'
28522PNG_LIBS=''
28523if test "$with_png" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000028524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028525$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5
cristy3ed852e2009-09-05 21:47:34 +000028527$as_echo_n "checking for PNG... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028529$as_echo "" >&6; }
28530 failed=0
28531 passed=0
cristy8b350f62009-11-15 23:12:43 +000028532 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
28533if test "x$ac_cv_header_png_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028534 passed=`expr $passed + 1`
28535else
28536 failed=`expr $failed + 1`
28537fi
28538
28539
cristy8b350f62009-11-15 23:12:43 +000028540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5
cristy3ed852e2009-09-05 21:47:34 +000028541$as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028542if test "${ac_cv_lib_png_png_get_io_ptr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028543 $as_echo_n "(cached) " >&6
28544else
28545 ac_check_lib_save_LIBS=$LIBS
28546LIBS="-lpng $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028547cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028548/* end confdefs.h. */
28549
28550/* Override any GCC internal prototype to avoid an error.
28551 Use char because int might match the return type of a GCC
28552 builtin and then its argument prototype would still apply. */
28553#ifdef __cplusplus
28554extern "C"
28555#endif
28556char png_get_io_ptr ();
28557int
28558main ()
28559{
28560return png_get_io_ptr ();
28561 ;
28562 return 0;
28563}
28564_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028565if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028566 ac_cv_lib_png_png_get_io_ptr=yes
28567else
cristy8b350f62009-11-15 23:12:43 +000028568 ac_cv_lib_png_png_get_io_ptr=no
cristy3ed852e2009-09-05 21:47:34 +000028569fi
cristy8b350f62009-11-15 23:12:43 +000028570rm -f core conftest.err conftest.$ac_objext \
28571 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028572LIBS=$ac_check_lib_save_LIBS
28573fi
cristy8b350f62009-11-15 23:12:43 +000028574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5
cristy3ed852e2009-09-05 21:47:34 +000028575$as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028576if test "x$ac_cv_lib_png_png_get_io_ptr" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028577 passed=`expr $passed + 1`
28578else
28579 failed=`expr $failed + 1`
28580fi
28581
cristy8b350f62009-11-15 23:12:43 +000028582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PNG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028583$as_echo_n "checking if PNG package is complete... " >&6; }
28584 if test $passed -gt 0; then
28585 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000028586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000028587$as_echo "no -- some components failed test" >&6; }
28588 have_png='no (failed tests)'
28589 else
28590 PNG_LIBS='-lpng'
28591 LIBS="$PNG_LIBS $LIBS"
28592
cristy8b350f62009-11-15 23:12:43 +000028593$as_echo "#define PNG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028594
cristy8b350f62009-11-15 23:12:43 +000028595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028596$as_echo "yes" >&6; }
28597 have_png='yes'
28598 fi
28599 else
cristy8b350f62009-11-15 23:12:43 +000028600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028601$as_echo "no" >&6; }
28602 fi
28603fi
28604 if test "$have_png" = 'yes'; then
28605 PNG_DELEGATE_TRUE=
28606 PNG_DELEGATE_FALSE='#'
28607else
28608 PNG_DELEGATE_TRUE='#'
28609 PNG_DELEGATE_FALSE=
28610fi
28611
28612
28613
28614
28615#
28616# Check for RSVG delegate library.
28617#
28618
28619# Check whether --with-rsvg was given.
cristy8b350f62009-11-15 23:12:43 +000028620if test "${with_rsvg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028621 withval=$with_rsvg; with_rsvg=$withval
28622else
28623 with_rsvg=$have_x
28624fi
28625
28626
28627if test "$with_rsvg" != 'yes'; then
28628 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
28629fi
28630
28631have_rsvg='no'
28632have_cairo='no'
28633RSVG_CFLAGS=""
28634RSVG_LIBS=""
28635RSVG_PKG=""
28636if test "x$with_rsvg" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000028637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028638$as_echo "-------------------------------------------------------------" >&6; }
28639
28640pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000028641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
cristy3ed852e2009-09-05 21:47:34 +000028642$as_echo_n "checking for RSVG... " >&6; }
28643
28644if test -n "$RSVG_CFLAGS"; then
28645 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
28646 elif test -n "$PKG_CONFIG"; then
28647 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000028648 { { $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 +000028649 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
28650 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000028651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28652 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000028653 pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
28654else
28655 pkg_failed=yes
28656fi
28657 else
28658 pkg_failed=untried
28659fi
28660if test -n "$RSVG_LIBS"; then
28661 pkg_cv_RSVG_LIBS="$RSVG_LIBS"
28662 elif test -n "$PKG_CONFIG"; then
28663 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000028664 { { $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 +000028665 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
28666 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000028667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28668 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000028669 pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
28670else
28671 pkg_failed=yes
28672fi
28673 else
28674 pkg_failed=untried
28675fi
28676
28677
28678
28679if test $pkg_failed = yes; then
28680
28681if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28682 _pkg_short_errors_supported=yes
28683else
28684 _pkg_short_errors_supported=no
28685fi
28686 if test $_pkg_short_errors_supported = yes; then
28687 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
28688 else
28689 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
28690 fi
28691 # Put the nasty error message in config.log where it belongs
28692 echo "$RSVG_PKG_ERRORS" >&5
28693
cristy8b350f62009-11-15 23:12:43 +000028694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028695$as_echo "no" >&6; }
28696 have_rsvg=no
28697elif test $pkg_failed = untried; then
28698 have_rsvg=no
28699else
28700 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
28701 RSVG_LIBS=$pkg_cv_RSVG_LIBS
cristy8b350f62009-11-15 23:12:43 +000028702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028703$as_echo "yes" >&6; }
28704 have_rsvg=yes
28705fi
cristy8b350f62009-11-15 23:12:43 +000028706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028707$as_echo "" >&6; }
28708
28709pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000028710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
cristy3ed852e2009-09-05 21:47:34 +000028711$as_echo_n "checking for CAIRO_SVG... " >&6; }
28712
28713if test -n "$CAIRO_SVG_CFLAGS"; then
28714 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
28715 elif test -n "$PKG_CONFIG"; then
28716 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000028717 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000028718 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
28719 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000028720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28721 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000028722 pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
28723else
28724 pkg_failed=yes
28725fi
28726 else
28727 pkg_failed=untried
28728fi
28729if test -n "$CAIRO_SVG_LIBS"; then
28730 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
28731 elif test -n "$PKG_CONFIG"; then
28732 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000028733 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000028734 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
28735 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000028736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28737 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000028738 pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
28739else
28740 pkg_failed=yes
28741fi
28742 else
28743 pkg_failed=untried
28744fi
28745
28746
28747
28748if test $pkg_failed = yes; then
28749
28750if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28751 _pkg_short_errors_supported=yes
28752else
28753 _pkg_short_errors_supported=no
28754fi
28755 if test $_pkg_short_errors_supported = yes; then
28756 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1`
28757 else
28758 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1`
28759 fi
28760 # Put the nasty error message in config.log where it belongs
28761 echo "$CAIRO_SVG_PKG_ERRORS" >&5
28762
cristy8b350f62009-11-15 23:12:43 +000028763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028764$as_echo "no" >&6; }
28765 have_cairo=no
28766elif test $pkg_failed = untried; then
28767 have_cairo=no
28768else
28769 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
28770 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
cristy8b350f62009-11-15 23:12:43 +000028771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028772$as_echo "yes" >&6; }
28773 have_cairo=yes
28774fi
cristy8b350f62009-11-15 23:12:43 +000028775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028776$as_echo "" >&6; }
28777fi
28778
28779if test "$have_rsvg" = 'yes'; then
28780
cristy8b350f62009-11-15 23:12:43 +000028781$as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028782
28783 if test "$with_modules" = 'no'; then
28784 CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
28785 fi
28786fi
28787
28788if test "$have_cairo" = 'yes'; then
28789
cristy8b350f62009-11-15 23:12:43 +000028790$as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028791
28792 if test "$with_modules" = 'no'; then
28793 CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
28794 fi
28795fi
28796
28797 if test "$have_rsvg" = 'yes'; then
28798 RSVG_DELEGATE_TRUE=
28799 RSVG_DELEGATE_FALSE='#'
28800else
28801 RSVG_DELEGATE_TRUE='#'
28802 RSVG_DELEGATE_FALSE=
28803fi
28804
28805 if test "$have_cairo" = 'yes'; then
28806 CAIRO_DELEGATE_TRUE=
28807 CAIRO_DELEGATE_FALSE='#'
28808else
28809 CAIRO_DELEGATE_TRUE='#'
28810 CAIRO_DELEGATE_FALSE=
28811fi
28812
28813
28814
28815
28816
28817#
28818# Check for TIFF delegate library.
28819#
28820
28821# Check whether --with-tiff was given.
cristy8b350f62009-11-15 23:12:43 +000028822if test "${with_tiff+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028823 withval=$with_tiff; with_tiff=$withval
28824else
28825 with_tiff='yes'
28826fi
28827
28828
28829if test "$with_tiff" != 'yes'; then
28830 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
28831fi
28832
28833have_tiff='no'
28834TIFF_LIBS=''
28835if test "$with_tiff" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000028836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028837$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
cristy3ed852e2009-09-05 21:47:34 +000028839$as_echo_n "checking for TIFF... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028841$as_echo "" >&6; }
28842 failed=0
28843 passed=0
cristy8b350f62009-11-15 23:12:43 +000028844 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
28845if test "x$ac_cv_header_tiff_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028846 passed=`expr $passed + 1`
28847else
28848 failed=`expr $failed + 1`
28849fi
28850
28851
cristy8b350f62009-11-15 23:12:43 +000028852 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
28853if test "x$ac_cv_header_tiffio_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028854 passed=`expr $passed + 1`
28855else
28856 failed=`expr $failed + 1`
28857fi
28858
28859
cristy8b350f62009-11-15 23:12:43 +000028860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000028861$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028862if test "${ac_cv_lib_tiff_TIFFOpen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028863 $as_echo_n "(cached) " >&6
28864else
28865 ac_check_lib_save_LIBS=$LIBS
28866LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028867cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028868/* end confdefs.h. */
28869
28870/* Override any GCC internal prototype to avoid an error.
28871 Use char because int might match the return type of a GCC
28872 builtin and then its argument prototype would still apply. */
28873#ifdef __cplusplus
28874extern "C"
28875#endif
28876char TIFFOpen ();
28877int
28878main ()
28879{
28880return TIFFOpen ();
28881 ;
28882 return 0;
28883}
28884_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028885if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028886 ac_cv_lib_tiff_TIFFOpen=yes
28887else
cristy8b350f62009-11-15 23:12:43 +000028888 ac_cv_lib_tiff_TIFFOpen=no
cristy3ed852e2009-09-05 21:47:34 +000028889fi
cristy8b350f62009-11-15 23:12:43 +000028890rm -f core conftest.err conftest.$ac_objext \
28891 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028892LIBS=$ac_check_lib_save_LIBS
28893fi
cristy8b350f62009-11-15 23:12:43 +000028894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000028895$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028896if test "x$ac_cv_lib_tiff_TIFFOpen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028897 passed=`expr $passed + 1`
28898else
28899 failed=`expr $failed + 1`
28900fi
28901
cristy8b350f62009-11-15 23:12:43 +000028902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000028903$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028904if test "${ac_cv_lib_tiff_TIFFClientOpen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028905 $as_echo_n "(cached) " >&6
28906else
28907 ac_check_lib_save_LIBS=$LIBS
28908LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028909cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028910/* end confdefs.h. */
28911
28912/* Override any GCC internal prototype to avoid an error.
28913 Use char because int might match the return type of a GCC
28914 builtin and then its argument prototype would still apply. */
28915#ifdef __cplusplus
28916extern "C"
28917#endif
28918char TIFFClientOpen ();
28919int
28920main ()
28921{
28922return TIFFClientOpen ();
28923 ;
28924 return 0;
28925}
28926_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028927if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028928 ac_cv_lib_tiff_TIFFClientOpen=yes
28929else
cristy8b350f62009-11-15 23:12:43 +000028930 ac_cv_lib_tiff_TIFFClientOpen=no
cristy3ed852e2009-09-05 21:47:34 +000028931fi
cristy8b350f62009-11-15 23:12:43 +000028932rm -f core conftest.err conftest.$ac_objext \
28933 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028934LIBS=$ac_check_lib_save_LIBS
28935fi
cristy8b350f62009-11-15 23:12:43 +000028936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000028937$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028938if test "x$ac_cv_lib_tiff_TIFFClientOpen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028939 passed=`expr $passed + 1`
28940else
28941 failed=`expr $failed + 1`
28942fi
28943
cristy8b350f62009-11-15 23:12:43 +000028944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000028945$as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028946if test "${ac_cv_lib_tiff_TIFFIsByteSwapped+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028947 $as_echo_n "(cached) " >&6
28948else
28949 ac_check_lib_save_LIBS=$LIBS
28950LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028951cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028952/* end confdefs.h. */
28953
28954/* Override any GCC internal prototype to avoid an error.
28955 Use char because int might match the return type of a GCC
28956 builtin and then its argument prototype would still apply. */
28957#ifdef __cplusplus
28958extern "C"
28959#endif
28960char TIFFIsByteSwapped ();
28961int
28962main ()
28963{
28964return TIFFIsByteSwapped ();
28965 ;
28966 return 0;
28967}
28968_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028969if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028970 ac_cv_lib_tiff_TIFFIsByteSwapped=yes
28971else
cristy8b350f62009-11-15 23:12:43 +000028972 ac_cv_lib_tiff_TIFFIsByteSwapped=no
cristy3ed852e2009-09-05 21:47:34 +000028973fi
cristy8b350f62009-11-15 23:12:43 +000028974rm -f core conftest.err conftest.$ac_objext \
28975 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028976LIBS=$ac_check_lib_save_LIBS
28977fi
cristy8b350f62009-11-15 23:12:43 +000028978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000028979$as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028980if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028981 passed=`expr $passed + 1`
28982else
28983 failed=`expr $failed + 1`
28984fi
28985
cristy8b350f62009-11-15 23:12:43 +000028986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000028987$as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028988if test "${ac_cv_lib_tiff_TIFFReadRGBATile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028989 $as_echo_n "(cached) " >&6
28990else
28991 ac_check_lib_save_LIBS=$LIBS
28992LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028993cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028994/* end confdefs.h. */
28995
28996/* Override any GCC internal prototype to avoid an error.
28997 Use char because int might match the return type of a GCC
28998 builtin and then its argument prototype would still apply. */
28999#ifdef __cplusplus
29000extern "C"
29001#endif
29002char TIFFReadRGBATile ();
29003int
29004main ()
29005{
29006return TIFFReadRGBATile ();
29007 ;
29008 return 0;
29009}
29010_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029011if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029012 ac_cv_lib_tiff_TIFFReadRGBATile=yes
29013else
cristy8b350f62009-11-15 23:12:43 +000029014 ac_cv_lib_tiff_TIFFReadRGBATile=no
cristy3ed852e2009-09-05 21:47:34 +000029015fi
cristy8b350f62009-11-15 23:12:43 +000029016rm -f core conftest.err conftest.$ac_objext \
29017 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029018LIBS=$ac_check_lib_save_LIBS
29019fi
cristy8b350f62009-11-15 23:12:43 +000029020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
cristy3ed852e2009-09-05 21:47:34 +000029021$as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029022if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000029023 passed=`expr $passed + 1`
29024else
29025 failed=`expr $failed + 1`
29026fi
29027
cristy8b350f62009-11-15 23:12:43 +000029028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000029029$as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029030if test "${ac_cv_lib_tiff_TIFFReadRGBAStrip+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029031 $as_echo_n "(cached) " >&6
29032else
29033 ac_check_lib_save_LIBS=$LIBS
29034LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029035cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029036/* end confdefs.h. */
29037
29038/* Override any GCC internal prototype to avoid an error.
29039 Use char because int might match the return type of a GCC
29040 builtin and then its argument prototype would still apply. */
29041#ifdef __cplusplus
29042extern "C"
29043#endif
29044char TIFFReadRGBAStrip ();
29045int
29046main ()
29047{
29048return TIFFReadRGBAStrip ();
29049 ;
29050 return 0;
29051}
29052_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029053if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029054 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
29055else
cristy8b350f62009-11-15 23:12:43 +000029056 ac_cv_lib_tiff_TIFFReadRGBAStrip=no
cristy3ed852e2009-09-05 21:47:34 +000029057fi
cristy8b350f62009-11-15 23:12:43 +000029058rm -f core conftest.err conftest.$ac_objext \
29059 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029060LIBS=$ac_check_lib_save_LIBS
29061fi
cristy8b350f62009-11-15 23:12:43 +000029062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
cristy3ed852e2009-09-05 21:47:34 +000029063$as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029064if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000029065 passed=`expr $passed + 1`
29066else
29067 failed=`expr $failed + 1`
29068fi
29069
cristy8b350f62009-11-15 23:12:43 +000029070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029071$as_echo_n "checking if TIFF package is complete... " >&6; }
29072 if test $passed -gt 0; then
29073 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000029074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000029075$as_echo "no -- some components failed test" >&6; }
29076 have_tiff='no (failed tests)'
29077 else
29078 TIFF_LIBS='-ltiff'
29079 LIBS="$TIFF_LIBS $LIBS"
29080
cristy8b350f62009-11-15 23:12:43 +000029081$as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029082
cristy8b350f62009-11-15 23:12:43 +000029083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000029084$as_echo "yes" >&6; }
29085 have_tiff='yes'
cristy8b350f62009-11-15 23:12:43 +000029086 for ac_header in tiffconf.h
29087do :
29088 ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
29089if test "x$ac_cv_header_tiffconf_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000029090 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029091#define HAVE_TIFFCONF_H 1
cristy3ed852e2009-09-05 21:47:34 +000029092_ACEOF
29093
29094fi
29095
29096done
29097
cristy8b350f62009-11-15 23:12:43 +000029098 for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
cristy3ed852e2009-09-05 21:47:34 +000029099 TIFFReadEXIFDirectory TIFFSetErrorHandlerExt TIFFSetTagExtender \
29100 TIFFSetWarningHandlerExt TIFFSwabArrayOfTriples
cristy8b350f62009-11-15 23:12:43 +000029101do :
29102 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29103ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29104eval as_val=\$$as_ac_var
29105 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000029106 cat >>confdefs.h <<_ACEOF
29107#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29108_ACEOF
29109
29110fi
29111done
29112
29113 fi
29114 else
cristy8b350f62009-11-15 23:12:43 +000029115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029116$as_echo "no" >&6; }
29117 fi
29118fi
29119 if test "$have_tiff" = 'yes'; then
29120 TIFF_DELEGATE_TRUE=
29121 TIFF_DELEGATE_FALSE='#'
29122else
29123 TIFF_DELEGATE_TRUE='#'
29124 TIFF_DELEGATE_FALSE=
29125fi
29126
29127
29128
29129
29130#
29131# Set Windows font directory.
29132#
29133
29134# Check whether --with-windows-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000029135if test "${with_windows_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029136 withval=$with_windows_font_dir; with_windows_font_dir=$withval
29137else
29138 with_windows_font_dir=''
29139fi
29140
29141if test "$with_windows_font_dir" != '' ; then
29142 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
29143fi
29144
29145
29146#
29147# Check for WMF delegate library.
29148#
29149
29150# Check whether --with-wmf was given.
cristy8b350f62009-11-15 23:12:43 +000029151if test "${with_wmf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029152 withval=$with_wmf; with_wmf=$withval
29153else
cristy8d63d1d2010-01-06 20:38:37 +000029154 with_wmf='yes'
cristy3ed852e2009-09-05 21:47:34 +000029155fi
29156
29157
29158if test "$with_wmf" != 'yes'; then
29159 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
29160fi
29161
29162have_wmf='no'
29163WMF_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +000029164if test "$with_wmf" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000029165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000029166$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5
cristy3ed852e2009-09-05 21:47:34 +000029168$as_echo_n "checking for WMF... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000029170$as_echo "" >&6; }
cristy735e8942010-04-02 20:32:57 +000029171 failed=0
29172 passed=0
29173 ac_fn_c_check_header_mongrel "$LINENO" "libwmf/eps.h" "ac_cv_header_libwmf_eps_h" "$ac_includes_default"
29174if test "x$ac_cv_header_libwmf_eps_h" = x""yes; then :
29175 passed=`expr $passed + 1`
29176else
29177 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000029178fi
29179
29180
cristy735e8942010-04-02 20:32:57 +000029181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_eps_function in -lwmf" >&5
29182$as_echo_n "checking for wmf_eps_function in -lwmf... " >&6; }
29183if test "${ac_cv_lib_wmf_wmf_eps_function+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029184 $as_echo_n "(cached) " >&6
29185else
29186 ac_check_lib_save_LIBS=$LIBS
cristy22652362010-04-02 23:22:31 +000029187LIBS="-lwmf "-lwmflite" $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029188cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029189/* end confdefs.h. */
29190
29191/* Override any GCC internal prototype to avoid an error.
29192 Use char because int might match the return type of a GCC
29193 builtin and then its argument prototype would still apply. */
29194#ifdef __cplusplus
29195extern "C"
29196#endif
cristy735e8942010-04-02 20:32:57 +000029197char wmf_eps_function ();
cristy3ed852e2009-09-05 21:47:34 +000029198int
29199main ()
29200{
cristy735e8942010-04-02 20:32:57 +000029201return wmf_eps_function ();
cristy3ed852e2009-09-05 21:47:34 +000029202 ;
29203 return 0;
29204}
29205_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029206if ac_fn_c_try_link "$LINENO"; then :
cristy735e8942010-04-02 20:32:57 +000029207 ac_cv_lib_wmf_wmf_eps_function=yes
cristy3ed852e2009-09-05 21:47:34 +000029208else
cristy735e8942010-04-02 20:32:57 +000029209 ac_cv_lib_wmf_wmf_eps_function=no
cristy3ed852e2009-09-05 21:47:34 +000029210fi
cristy8b350f62009-11-15 23:12:43 +000029211rm -f core conftest.err conftest.$ac_objext \
29212 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029213LIBS=$ac_check_lib_save_LIBS
29214fi
cristy735e8942010-04-02 20:32:57 +000029215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_eps_function" >&5
29216$as_echo "$ac_cv_lib_wmf_wmf_eps_function" >&6; }
29217if test "x$ac_cv_lib_wmf_wmf_eps_function" = x""yes; then :
29218 passed=`expr $passed + 1`
29219else
29220 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000029221fi
29222
cristy735e8942010-04-02 20:32:57 +000029223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5
29224$as_echo_n "checking if WMF package is complete... " >&6; }
29225 if test $passed -gt 0; then
29226 if test $failed -gt 0; then
29227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29228$as_echo "no -- some components failed test" >&6; }
29229 have_wmf='no (failed tests)'
cristy3ed852e2009-09-05 21:47:34 +000029230 else
cristy735e8942010-04-02 20:32:57 +000029231 WMF_LIBS='-lwmf -lwmflite'
29232 LIBS="$WMF_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000029233
cristy8b350f62009-11-15 23:12:43 +000029234$as_echo "#define WMF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029235
cristy735e8942010-04-02 20:32:57 +000029236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000029237$as_echo "yes" >&6; }
cristy735e8942010-04-02 20:32:57 +000029238 have_wmf='yes'
29239 fi
cristy3ed852e2009-09-05 21:47:34 +000029240 else
cristy8b350f62009-11-15 23:12:43 +000029241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029242$as_echo "no" >&6; }
29243 fi
29244fi
29245 if test "$have_wmf" = 'yes'; then
29246 WMF_DELEGATE_TRUE=
29247 WMF_DELEGATE_FALSE='#'
29248else
29249 WMF_DELEGATE_TRUE='#'
29250 WMF_DELEGATE_FALSE=
29251fi
29252
29253
29254
29255
29256
cristy735e8942010-04-02 20:32:57 +000029257
cristy3ed852e2009-09-05 21:47:34 +000029258#
29259# Check for XML delegate library.
29260#
29261
29262# Check whether --with-xml was given.
cristy8b350f62009-11-15 23:12:43 +000029263if test "${with_xml+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029264 withval=$with_xml; with_xml=$withval
29265else
29266 with_xml=$have_x
29267fi
29268
29269
29270if test "$with_xml" != 'yes' ; then
29271 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
29272fi
29273
29274have_xml='no'
29275XML_LIBS=''
29276if test "$with_xml" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000029277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000029278$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
cristy3ed852e2009-09-05 21:47:34 +000029280$as_echo_n "checking for XML... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000029282$as_echo "" >&6; }
29283 PERSIST_LDFLAGS=$LDFLAGS
29284 PERSIST_CPPFLAGS=$CPPFLAGS
29285 xml2_config=''
29286 for ac_prog in xml2-config
29287do
29288 # Extract the first word of "$ac_prog", so it can be a program name with args.
29289set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029291$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029292if test "${ac_cv_prog_xml2_config+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029293 $as_echo_n "(cached) " >&6
29294else
29295 if test -n "$xml2_config"; then
29296 ac_cv_prog_xml2_config="$xml2_config" # Let the user override the test.
29297else
29298as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29299for as_dir in $PATH
29300do
29301 IFS=$as_save_IFS
29302 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029303 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029304 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29305 ac_cv_prog_xml2_config="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000029306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029307 break 2
29308 fi
29309done
cristy8b350f62009-11-15 23:12:43 +000029310 done
cristy3ed852e2009-09-05 21:47:34 +000029311IFS=$as_save_IFS
29312
29313fi
29314fi
29315xml2_config=$ac_cv_prog_xml2_config
29316if test -n "$xml2_config"; then
cristy8b350f62009-11-15 23:12:43 +000029317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5
cristy3ed852e2009-09-05 21:47:34 +000029318$as_echo "$xml2_config" >&6; }
29319else
cristy8b350f62009-11-15 23:12:43 +000029320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029321$as_echo "no" >&6; }
29322fi
29323
29324
29325 test -n "$xml2_config" && break
29326done
29327 if test -n "$xml2_config"; then
29328 # Debian installs libxml headers under /usr/include/libxml2/libxml with
29329 # the shared library installed under /usr/lib, whereas the package
29330 # installs itself under $prefix/libxml and $prefix/lib.
29331 xml2_prefix=`xml2-config --prefix`
29332 if test -d "${xml2_prefix}/include/libxml2"; then
29333 CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
29334 fi
29335 if test "${xml2_prefix}" != '/usr'; then
29336 LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
29337 fi
29338 fi
29339 failed=0
29340 passed=0
cristy8b350f62009-11-15 23:12:43 +000029341 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
29342if test "x$ac_cv_header_libxml_parser_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000029343 passed=`expr $passed + 1`
29344else
29345 failed=`expr $failed + 1`
29346fi
29347
29348
cristy8b350f62009-11-15 23:12:43 +000029349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseExternalEntity in -lxml2" >&5
cristy3ed852e2009-09-05 21:47:34 +000029350$as_echo_n "checking for xmlParseExternalEntity in -lxml2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029351if test "${ac_cv_lib_xml2_xmlParseExternalEntity+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029352 $as_echo_n "(cached) " >&6
29353else
29354 ac_check_lib_save_LIBS=$LIBS
29355LIBS="-lxml2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029356cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029357/* end confdefs.h. */
29358
29359/* Override any GCC internal prototype to avoid an error.
29360 Use char because int might match the return type of a GCC
29361 builtin and then its argument prototype would still apply. */
29362#ifdef __cplusplus
29363extern "C"
29364#endif
29365char xmlParseExternalEntity ();
29366int
29367main ()
29368{
29369return xmlParseExternalEntity ();
29370 ;
29371 return 0;
29372}
29373_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029374if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029375 ac_cv_lib_xml2_xmlParseExternalEntity=yes
29376else
cristy8b350f62009-11-15 23:12:43 +000029377 ac_cv_lib_xml2_xmlParseExternalEntity=no
cristy3ed852e2009-09-05 21:47:34 +000029378fi
cristy8b350f62009-11-15 23:12:43 +000029379rm -f core conftest.err conftest.$ac_objext \
29380 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029381LIBS=$ac_check_lib_save_LIBS
29382fi
cristy8b350f62009-11-15 23:12:43 +000029383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseExternalEntity" >&5
cristy3ed852e2009-09-05 21:47:34 +000029384$as_echo "$ac_cv_lib_xml2_xmlParseExternalEntity" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029385if test "x$ac_cv_lib_xml2_xmlParseExternalEntity" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000029386 passed=`expr $passed + 1`
29387else
29388 failed=`expr $failed + 1`
29389fi
29390
cristy8b350f62009-11-15 23:12:43 +000029391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029392$as_echo_n "checking if XML package is complete... " >&6; }
29393 if test $passed -gt 0; then
29394 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000029395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000029396$as_echo "no -- some components failed test" >&6; }
29397 have_xml='no (failed tests)'
29398 LDFLAGS="$PERSIST_LDFLAGS"
29399 CPPFLAGS="$PERSIST_CPPFLAGS"
29400 else
29401 XML_LIBS='-lxml2'
29402 LIBS="$XML_LIBS $LIBS"
29403
cristy8b350f62009-11-15 23:12:43 +000029404$as_echo "#define XML_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029405
cristy8b350f62009-11-15 23:12:43 +000029406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000029407$as_echo "yes" >&6; }
29408 have_xml='yes'
29409 fi
29410 else
cristy8b350f62009-11-15 23:12:43 +000029411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029412$as_echo "no" >&6; }
29413 fi
29414fi
29415 if test "$have_xml" = 'yes'; then
29416 XML_DELEGATE_TRUE=
29417 XML_DELEGATE_FALSE='#'
29418else
29419 XML_DELEGATE_TRUE='#'
29420 XML_DELEGATE_FALSE=
29421fi
29422
29423
29424
29425
29426# Substitute compiler name to build/link PerlMagick
29427#
29428
29429
29430#
29431# Configure install Paths
29432#
29433
29434# Subdirectory under lib to place ImageMagick lib files
29435LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
29436
29437cat >>confdefs.h <<_ACEOF
29438#define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
29439_ACEOF
29440
29441
29442# Path to ImageMagick bin directory
29443EXECUTABLE_PATH="${BIN_DIR}"
29444DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
29445case "${build_os}" in
29446 mingw* )
29447 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
29448 ;;
29449esac
29450
29451cat >>confdefs.h <<_ACEOF
29452#define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
29453_ACEOF
29454
29455
29456
29457# Path to ImageMagick lib
29458LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
29459DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
29460case "${build_os}" in
29461 mingw* )
29462 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
29463 ;;
29464esac
29465
29466cat >>confdefs.h <<_ACEOF
29467#define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
29468_ACEOF
29469
29470
29471
29472# Subdirectory under lib to place ImageMagick configuration files
29473CONFIGURE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
29474
29475cat >>confdefs.h <<_ACEOF
29476#define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
29477_ACEOF
29478
29479CONFIGURE_PATH="${LIB_DIR}/${CONFIGURE_RELATIVE_PATH}/"
29480DEFINE_CONFIGURE_PATH="${LIB_DIR}/${CONFIGURE_RELATIVE_PATH}/"
29481case "${build_os}" in
29482 mingw* )
29483 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
29484 ;;
29485esac
29486
29487cat >>confdefs.h <<_ACEOF
29488#define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
29489_ACEOF
29490
29491
29492
29493#
29494# Subdirectory under lib to place ImageMagick coder module files
29495CODER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/coders"
29496
29497cat >>confdefs.h <<_ACEOF
29498#define CODER_RELATIVE_PATH "$CODER_RELATIVE_PATH"
29499_ACEOF
29500
29501CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}"
29502DEFINE_CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}/"
29503case "${build_os}" in
29504 mingw* )
29505 DEFINE_CODER_PATH=`$WinPathScript "$DEFINE_CODER_PATH" 1`
29506 ;;
29507esac
29508
29509cat >>confdefs.h <<_ACEOF
29510#define CODER_PATH "$DEFINE_CODER_PATH"
29511_ACEOF
29512
29513
29514
29515#
29516# Subdirectory under lib to place ImageMagick filter module files
29517FILTER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/filters"
29518
29519cat >>confdefs.h <<_ACEOF
29520#define FILTER_RELATIVE_PATH "$FILTER_RELATIVE_PATH"
29521_ACEOF
29522
29523FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}"
29524DEFINE_FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}/"
29525case "${build_os}" in
29526 mingw* )
29527 DEFINE_FILTER_PATH=`$WinPathScript "$DEFINE_FILTER_PATH" 1`
29528 ;;
29529esac
29530
29531cat >>confdefs.h <<_ACEOF
29532#define FILTER_PATH "$DEFINE_FILTER_PATH"
29533_ACEOF
29534
29535
29536
29537#
29538# Path to ImageMagick documentation files
29539DOCUMENTATION_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
29540DOCUMENTATION_PATH="${DATA_DIR}/doc/${DOCUMENTATION_RELATIVE_PATH}"
29541DEFINE_DOCUMENTATION_PATH="${DATA_DIR}/doc/${DOCUMENTATION_RELATIVE_PATH}/"
29542case "${build_os}" in
29543 mingw* )
29544 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
29545 ;;
29546esac
29547
29548cat >>confdefs.h <<_ACEOF
29549#define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
29550_ACEOF
29551
29552
29553
29554#
29555# Path to ImageMagick share files
29556SHARE_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
29557SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
29558DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
29559case "${build_os}" in
29560 mingw* )
29561 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
29562 ;;
29563esac
29564
29565cat >>confdefs.h <<_ACEOF
29566#define SHARE_PATH "$DEFINE_SHARE_PATH"
29567_ACEOF
29568
29569
29570
29571# Subdirectory under share to place ImageMagick configuration files
29572SHARE_CONFIGURE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
29573
29574cat >>confdefs.h <<_ACEOF
29575#define SHARE_CONFIGURE_RELATIVE_PATH "$SHARE_CONFIGURE_RELATIVE_PATH"
29576_ACEOF
29577
29578SHARE_CONFIGURE_PATH="${DATA_DIR}/${SHARE_CONFIGURE_RELATIVE_PATH}"
29579DEFINE_SHARE_CONFIGURE_PATH="${DATA_DIR}/${SHARE_CONFIGURE_RELATIVE_PATH}/"
29580case "${build_os}" in
29581 mingw* )
29582 DEFINE_SHARE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_SHARE_CONFIGURE_PATH" 1`
29583 ;;
29584esac
29585
29586cat >>confdefs.h <<_ACEOF
29587#define SHARE_CONFIGURE_PATH "$DEFINE_SHARE_CONFIGURE_PATH"
29588_ACEOF
29589
29590
29591
29592#
29593# program_transform_name is formed for use in a Makefile, so create a
29594# modified version for use in a shell script.
29595configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
29596
29597# Default delegate definitions
cristy8b350f62009-11-15 23:12:43 +000029598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000029599$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000029601$as_echo_n "checking for ImageMagick delegate programs... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000029603$as_echo "" >&6; }
29604AutotraceDecodeDelegateDefault='autotrace'
29605AVIDecodeDelegateDefault='mplayer'
cristy3d7f8062009-09-24 20:45:35 +000029606BlenderDecodeDelegateDefault='blender'
cristy3ed852e2009-09-05 21:47:34 +000029607BZIPDelegateDefault='bzip2'
29608BrowseDelegateDefault='xdg-open'
29609CGMDecodeDelegateDefault='ralcgm'
29610CatDelegateDefault='cat'
29611DNGDecodeDelegateDefault='ufraw-batch'
29612GVCDecodeDelegateDefault='dot'
29613DVIDecodeDelegateDefault='dvips'
29614EchoDelegateDefault='echo'
29615EditorDelegateDefault='xterm'
29616FIGDecodeDelegateDefault='fig2dev'
29617ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
29618DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
29619MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
29620GnuplotDecodeDelegateDefault='gnuplot'
29621HDRDecodeDelegateDefault='ra_pfm'
29622HPGLDecodeDelegateDefault='hp2xx'
29623HTMLDecodeDelegateDefault='html2ps'
29624ILBMDecodeDelegateDefault='ilbmtoppm'
29625ILBMEncodeDelegateDefault='ppmtoilbm'
29626LPDelegateDefault='lp'
29627LPRDelegateDefault='lpr'
29628LZWDecodeDelegateDefault='uncompress'
29629LZWEncodeDelegateDefault='compress'
29630LaunchDelegateDefault='gimp'
29631MANDelegateDefault='groff'
29632MPEGDecodeDelegateDefault='ffmpeg'
29633MPEGEncodeDelegateDefault='ffmpeg'
29634MVDelegateDefault='mv'
29635PCLDelegateDefault='pcl6'
29636PGPDecodeDelegateDefault='pgpv'
29637POVDelegateDefault='povray'
29638if test "$native_win32_build" = 'yes'; then
29639 PSDelegateDefault='gswin32c'
cristyb7931f12009-09-25 10:22:21 +000029640elif test "$gslib_framework" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000029641 PSDelegateDefault='gsc'
29642else
29643 PSDelegateDefault='gs'
29644fi
29645RLEEncodeDelegateDefault='rawtorle'
29646RMDelegateDefault='rm'
cristy4689cf02010-02-17 21:15:45 +000029647RSVGDecodeDelegateDefault='rsvg'
cristy3ed852e2009-09-05 21:47:34 +000029648SCANDecodeDelegateDefault='scanimage'
29649TXTDelegateDefault='enscript'
29650WMFDecodeDelegateDefault='wmf2eps'
29651WWWDecodeDelegateDefault='curl'
29652XPSDelegateDefault='gxps'
29653ZipDelegateDefault='gzip'
29654
29655# Search for delegates
29656# Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
29657set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029659$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029660if test "${ac_cv_path_AutotraceDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029661 $as_echo_n "(cached) " >&6
29662else
29663 case $AutotraceDecodeDelegate in
29664 [\\/]* | ?:[\\/]*)
29665 ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
29666 ;;
29667 *)
29668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29669for as_dir in $PATH
29670do
29671 IFS=$as_save_IFS
29672 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029673 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29675 ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029677 break 2
29678 fi
29679done
cristy8b350f62009-11-15 23:12:43 +000029680 done
cristy3ed852e2009-09-05 21:47:34 +000029681IFS=$as_save_IFS
29682
29683 test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
29684 ;;
29685esac
29686fi
29687AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
29688if test -n "$AutotraceDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029690$as_echo "$AutotraceDecodeDelegate" >&6; }
29691else
cristy8b350f62009-11-15 23:12:43 +000029692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029693$as_echo "no" >&6; }
29694fi
29695
29696
29697# Extract the first word of ""$AVIDecodeDelegateDefault"", so it can be a program name with args.
29698set dummy "$AVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029700$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029701if test "${ac_cv_path_AVIDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029702 $as_echo_n "(cached) " >&6
29703else
29704 case $AVIDecodeDelegate in
29705 [\\/]* | ?:[\\/]*)
29706 ac_cv_path_AVIDecodeDelegate="$AVIDecodeDelegate" # Let the user override the test with a path.
29707 ;;
29708 *)
29709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29710for as_dir in $PATH
29711do
29712 IFS=$as_save_IFS
29713 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029714 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029715 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29716 ac_cv_path_AVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029718 break 2
29719 fi
29720done
cristy8b350f62009-11-15 23:12:43 +000029721 done
cristy3ed852e2009-09-05 21:47:34 +000029722IFS=$as_save_IFS
29723
29724 test -z "$ac_cv_path_AVIDecodeDelegate" && ac_cv_path_AVIDecodeDelegate=""$AVIDecodeDelegateDefault""
29725 ;;
29726esac
29727fi
29728AVIDecodeDelegate=$ac_cv_path_AVIDecodeDelegate
29729if test -n "$AVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029731$as_echo "$AVIDecodeDelegate" >&6; }
29732else
cristy8b350f62009-11-15 23:12:43 +000029733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029734$as_echo "no" >&6; }
29735fi
29736
29737
29738# Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
29739set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029741$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029742if test "${ac_cv_path_BlenderDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029743 $as_echo_n "(cached) " >&6
29744else
29745 case $BlenderDecodeDelegate in
29746 [\\/]* | ?:[\\/]*)
29747 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
29748 ;;
29749 *)
29750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29751for as_dir in $PATH
29752do
29753 IFS=$as_save_IFS
29754 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029755 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029756 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29757 ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029759 break 2
29760 fi
29761done
cristy8b350f62009-11-15 23:12:43 +000029762 done
cristy3ed852e2009-09-05 21:47:34 +000029763IFS=$as_save_IFS
29764
29765 test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
29766 ;;
29767esac
29768fi
29769BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
29770if test -n "$BlenderDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029772$as_echo "$BlenderDecodeDelegate" >&6; }
29773else
cristy8b350f62009-11-15 23:12:43 +000029774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029775$as_echo "no" >&6; }
29776fi
29777
29778
29779# Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
29780set dummy "$BZIPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029782$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029783if test "${ac_cv_path_BZIPDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029784 $as_echo_n "(cached) " >&6
29785else
29786 case $BZIPDelegate in
29787 [\\/]* | ?:[\\/]*)
29788 ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
29789 ;;
29790 *)
29791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29792for as_dir in $PATH
29793do
29794 IFS=$as_save_IFS
29795 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029796 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029797 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29798 ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029800 break 2
29801 fi
29802done
cristy8b350f62009-11-15 23:12:43 +000029803 done
cristy3ed852e2009-09-05 21:47:34 +000029804IFS=$as_save_IFS
29805
29806 test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
29807 ;;
29808esac
29809fi
29810BZIPDelegate=$ac_cv_path_BZIPDelegate
29811if test -n "$BZIPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029813$as_echo "$BZIPDelegate" >&6; }
29814else
cristy8b350f62009-11-15 23:12:43 +000029815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029816$as_echo "no" >&6; }
29817fi
29818
29819
29820# Extract the first word of ""$BrowseDelegateDefault" mozilla firefox netscape", so it can be a program name with args.
29821set dummy "$BrowseDelegateDefault" mozilla firefox netscape; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029823$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029824if test "${ac_cv_path_BrowseDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029825 $as_echo_n "(cached) " >&6
29826else
29827 case $BrowseDelegate in
29828 [\\/]* | ?:[\\/]*)
29829 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
29830 ;;
29831 *)
29832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29833for as_dir in $PATH
29834do
29835 IFS=$as_save_IFS
29836 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029837 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29839 ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029841 break 2
29842 fi
29843done
cristy8b350f62009-11-15 23:12:43 +000029844 done
cristy3ed852e2009-09-05 21:47:34 +000029845IFS=$as_save_IFS
29846
29847 test -z "$ac_cv_path_BrowseDelegate" && ac_cv_path_BrowseDelegate=""$BrowseDelegateDefault""
29848 ;;
29849esac
29850fi
29851BrowseDelegate=$ac_cv_path_BrowseDelegate
29852if test -n "$BrowseDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029854$as_echo "$BrowseDelegate" >&6; }
29855else
cristy8b350f62009-11-15 23:12:43 +000029856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029857$as_echo "no" >&6; }
29858fi
29859
29860
29861# Extract the first word of ""$CGMDecodeDelegateDefault"", so it can be a program name with args.
29862set dummy "$CGMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029864$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029865if test "${ac_cv_path_CGMDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029866 $as_echo_n "(cached) " >&6
29867else
29868 case $CGMDecodeDelegate in
29869 [\\/]* | ?:[\\/]*)
29870 ac_cv_path_CGMDecodeDelegate="$CGMDecodeDelegate" # Let the user override the test with a path.
29871 ;;
29872 *)
29873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29874for as_dir in $PATH
29875do
29876 IFS=$as_save_IFS
29877 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029878 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29880 ac_cv_path_CGMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029882 break 2
29883 fi
29884done
cristy8b350f62009-11-15 23:12:43 +000029885 done
cristy3ed852e2009-09-05 21:47:34 +000029886IFS=$as_save_IFS
29887
29888 test -z "$ac_cv_path_CGMDecodeDelegate" && ac_cv_path_CGMDecodeDelegate=""$CGMDecodeDelegateDefault""
29889 ;;
29890esac
29891fi
29892CGMDecodeDelegate=$ac_cv_path_CGMDecodeDelegate
29893if test -n "$CGMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CGMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029895$as_echo "$CGMDecodeDelegate" >&6; }
29896else
cristy8b350f62009-11-15 23:12:43 +000029897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029898$as_echo "no" >&6; }
29899fi
29900
29901
29902# Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
29903set dummy "$CatDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029905$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029906if test "${ac_cv_path_CatDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029907 $as_echo_n "(cached) " >&6
29908else
29909 case $CatDelegate in
29910 [\\/]* | ?:[\\/]*)
29911 ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
29912 ;;
29913 *)
29914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29915for as_dir in $PATH
29916do
29917 IFS=$as_save_IFS
29918 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029919 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029920 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29921 ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029923 break 2
29924 fi
29925done
cristy8b350f62009-11-15 23:12:43 +000029926 done
cristy3ed852e2009-09-05 21:47:34 +000029927IFS=$as_save_IFS
29928
29929 test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
29930 ;;
29931esac
29932fi
29933CatDelegate=$ac_cv_path_CatDelegate
29934if test -n "$CatDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029936$as_echo "$CatDelegate" >&6; }
29937else
cristy8b350f62009-11-15 23:12:43 +000029938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029939$as_echo "no" >&6; }
29940fi
29941
29942
29943# Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
29944set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029946$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029947if test "${ac_cv_path_DNGDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029948 $as_echo_n "(cached) " >&6
29949else
29950 case $DNGDecodeDelegate in
29951 [\\/]* | ?:[\\/]*)
29952 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
29953 ;;
29954 *)
29955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29956for as_dir in $PATH
29957do
29958 IFS=$as_save_IFS
29959 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029960 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29962 ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029964 break 2
29965 fi
29966done
cristy8b350f62009-11-15 23:12:43 +000029967 done
cristy3ed852e2009-09-05 21:47:34 +000029968IFS=$as_save_IFS
29969
29970 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
29971 ;;
29972esac
29973fi
29974DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
29975if test -n "$DNGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029977$as_echo "$DNGDecodeDelegate" >&6; }
29978else
cristy8b350f62009-11-15 23:12:43 +000029979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029980$as_echo "no" >&6; }
29981fi
29982
29983
29984# Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
29985set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029987$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029988if test "${ac_cv_path_GVCDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029989 $as_echo_n "(cached) " >&6
29990else
29991 case $GVCDecodeDelegate in
29992 [\\/]* | ?:[\\/]*)
29993 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
29994 ;;
29995 *)
29996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29997for as_dir in $PATH
29998do
29999 IFS=$as_save_IFS
30000 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030001 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030002 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30003 ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030005 break 2
30006 fi
30007done
cristy8b350f62009-11-15 23:12:43 +000030008 done
cristy3ed852e2009-09-05 21:47:34 +000030009IFS=$as_save_IFS
30010
30011 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
30012 ;;
30013esac
30014fi
30015GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
30016if test -n "$GVCDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030018$as_echo "$GVCDecodeDelegate" >&6; }
30019else
cristy8b350f62009-11-15 23:12:43 +000030020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030021$as_echo "no" >&6; }
30022fi
30023
30024
30025# Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
30026set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030028$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030029if test "${ac_cv_path_DVIDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030030 $as_echo_n "(cached) " >&6
30031else
30032 case $DVIDecodeDelegate in
30033 [\\/]* | ?:[\\/]*)
30034 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
30035 ;;
30036 *)
30037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30038for as_dir in $PATH
30039do
30040 IFS=$as_save_IFS
30041 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030042 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030043 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30044 ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030046 break 2
30047 fi
30048done
cristy8b350f62009-11-15 23:12:43 +000030049 done
cristy3ed852e2009-09-05 21:47:34 +000030050IFS=$as_save_IFS
30051
30052 test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
30053 ;;
30054esac
30055fi
30056DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
30057if test -n "$DVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030059$as_echo "$DVIDecodeDelegate" >&6; }
30060else
cristy8b350f62009-11-15 23:12:43 +000030061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030062$as_echo "no" >&6; }
30063fi
30064
30065
30066# Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
30067set dummy "$EchoDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030069$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030070if test "${ac_cv_path_EchoDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030071 $as_echo_n "(cached) " >&6
30072else
30073 case $EchoDelegate in
30074 [\\/]* | ?:[\\/]*)
30075 ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
30076 ;;
30077 *)
30078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30079for as_dir in $PATH
30080do
30081 IFS=$as_save_IFS
30082 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030083 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030084 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30085 ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030087 break 2
30088 fi
30089done
cristy8b350f62009-11-15 23:12:43 +000030090 done
cristy3ed852e2009-09-05 21:47:34 +000030091IFS=$as_save_IFS
30092
30093 test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
30094 ;;
30095esac
30096fi
30097EchoDelegate=$ac_cv_path_EchoDelegate
30098if test -n "$EchoDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030100$as_echo "$EchoDelegate" >&6; }
30101else
cristy8b350f62009-11-15 23:12:43 +000030102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030103$as_echo "no" >&6; }
30104fi
30105
30106
30107# Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
30108set dummy "$EditorDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030110$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030111if test "${ac_cv_path_EditorDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030112 $as_echo_n "(cached) " >&6
30113else
30114 case $EditorDelegate in
30115 [\\/]* | ?:[\\/]*)
30116 ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
30117 ;;
30118 *)
30119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30120for as_dir in $PATH
30121do
30122 IFS=$as_save_IFS
30123 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030124 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030125 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30126 ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030128 break 2
30129 fi
30130done
cristy8b350f62009-11-15 23:12:43 +000030131 done
cristy3ed852e2009-09-05 21:47:34 +000030132IFS=$as_save_IFS
30133
30134 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
30135 ;;
30136esac
30137fi
30138EditorDelegate=$ac_cv_path_EditorDelegate
30139if test -n "$EditorDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030141$as_echo "$EditorDelegate" >&6; }
30142else
cristy8b350f62009-11-15 23:12:43 +000030143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030144$as_echo "no" >&6; }
30145fi
30146
30147
30148# Extract the first word of ""$FIGDecodeDelegateDefault"", so it can be a program name with args.
30149set dummy "$FIGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030151$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030152if test "${ac_cv_path_FIGDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030153 $as_echo_n "(cached) " >&6
30154else
30155 case $FIGDecodeDelegate in
30156 [\\/]* | ?:[\\/]*)
30157 ac_cv_path_FIGDecodeDelegate="$FIGDecodeDelegate" # Let the user override the test with a path.
30158 ;;
30159 *)
30160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30161for as_dir in $PATH
30162do
30163 IFS=$as_save_IFS
30164 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030165 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30167 ac_cv_path_FIGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030169 break 2
30170 fi
30171done
cristy8b350f62009-11-15 23:12:43 +000030172 done
cristy3ed852e2009-09-05 21:47:34 +000030173IFS=$as_save_IFS
30174
30175 test -z "$ac_cv_path_FIGDecodeDelegate" && ac_cv_path_FIGDecodeDelegate=""$FIGDecodeDelegateDefault""
30176 ;;
30177esac
30178fi
30179FIGDecodeDelegate=$ac_cv_path_FIGDecodeDelegate
30180if test -n "$FIGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030182$as_echo "$FIGDecodeDelegate" >&6; }
30183else
cristy8b350f62009-11-15 23:12:43 +000030184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030185$as_echo "no" >&6; }
30186fi
30187
30188
30189# Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
30190set dummy "$ConvertDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030192$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030193if test "${ac_cv_path_ConvertDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030194 $as_echo_n "(cached) " >&6
30195else
30196 case $ConvertDelegate in
30197 [\\/]* | ?:[\\/]*)
30198 ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
30199 ;;
30200 *)
30201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30202for as_dir in $PATH
30203do
30204 IFS=$as_save_IFS
30205 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030206 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30208 ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030210 break 2
30211 fi
30212done
cristy8b350f62009-11-15 23:12:43 +000030213 done
cristy3ed852e2009-09-05 21:47:34 +000030214IFS=$as_save_IFS
30215
30216 test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
30217 ;;
30218esac
30219fi
30220ConvertDelegate=$ac_cv_path_ConvertDelegate
30221if test -n "$ConvertDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030223$as_echo "$ConvertDelegate" >&6; }
30224else
cristy8b350f62009-11-15 23:12:43 +000030225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030226$as_echo "no" >&6; }
30227fi
30228
30229
30230# Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
30231set dummy "$DisplayDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030233$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030234if test "${ac_cv_path_DisplayDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030235 $as_echo_n "(cached) " >&6
30236else
30237 case $DisplayDelegate in
30238 [\\/]* | ?:[\\/]*)
30239 ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
30240 ;;
30241 *)
30242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30243for as_dir in $PATH
30244do
30245 IFS=$as_save_IFS
30246 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030247 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030248 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30249 ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030251 break 2
30252 fi
30253done
cristy8b350f62009-11-15 23:12:43 +000030254 done
cristy3ed852e2009-09-05 21:47:34 +000030255IFS=$as_save_IFS
30256
30257 test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
30258 ;;
30259esac
30260fi
30261DisplayDelegate=$ac_cv_path_DisplayDelegate
30262if test -n "$DisplayDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030264$as_echo "$DisplayDelegate" >&6; }
30265else
cristy8b350f62009-11-15 23:12:43 +000030266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030267$as_echo "no" >&6; }
30268fi
30269
30270
30271# Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
30272set dummy "$MogrifyDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030274$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030275if test "${ac_cv_path_MogrifyDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030276 $as_echo_n "(cached) " >&6
30277else
30278 case $MogrifyDelegate in
30279 [\\/]* | ?:[\\/]*)
30280 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
30281 ;;
30282 *)
30283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30284for as_dir in $PATH
30285do
30286 IFS=$as_save_IFS
30287 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030288 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30290 ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030292 break 2
30293 fi
30294done
cristy8b350f62009-11-15 23:12:43 +000030295 done
cristy3ed852e2009-09-05 21:47:34 +000030296IFS=$as_save_IFS
30297
30298 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
30299 ;;
30300esac
30301fi
30302MogrifyDelegate=$ac_cv_path_MogrifyDelegate
30303if test -n "$MogrifyDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030305$as_echo "$MogrifyDelegate" >&6; }
30306else
cristy8b350f62009-11-15 23:12:43 +000030307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030308$as_echo "no" >&6; }
30309fi
30310
30311
30312# Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
30313set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030315$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030316if test "${ac_cv_path_GnuplotDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030317 $as_echo_n "(cached) " >&6
30318else
30319 case $GnuplotDecodeDelegate in
30320 [\\/]* | ?:[\\/]*)
30321 ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
30322 ;;
30323 *)
30324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30325for as_dir in $PATH
30326do
30327 IFS=$as_save_IFS
30328 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030329 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30331 ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030333 break 2
30334 fi
30335done
cristy8b350f62009-11-15 23:12:43 +000030336 done
cristy3ed852e2009-09-05 21:47:34 +000030337IFS=$as_save_IFS
30338
30339 test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
30340 ;;
30341esac
30342fi
30343GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
30344if test -n "$GnuplotDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030346$as_echo "$GnuplotDecodeDelegate" >&6; }
30347else
cristy8b350f62009-11-15 23:12:43 +000030348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030349$as_echo "no" >&6; }
30350fi
30351
30352
30353# Extract the first word of ""$HDRDecodeDelegateDefault"", so it can be a program name with args.
30354set dummy "$HDRDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030356$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030357if test "${ac_cv_path_HDRDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030358 $as_echo_n "(cached) " >&6
30359else
30360 case $HDRDecodeDelegate in
30361 [\\/]* | ?:[\\/]*)
30362 ac_cv_path_HDRDecodeDelegate="$HDRDecodeDelegate" # Let the user override the test with a path.
30363 ;;
30364 *)
30365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30366for as_dir in $PATH
30367do
30368 IFS=$as_save_IFS
30369 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030370 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30372 ac_cv_path_HDRDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030374 break 2
30375 fi
30376done
cristy8b350f62009-11-15 23:12:43 +000030377 done
cristy3ed852e2009-09-05 21:47:34 +000030378IFS=$as_save_IFS
30379
30380 test -z "$ac_cv_path_HDRDecodeDelegate" && ac_cv_path_HDRDecodeDelegate=""$HDRDecodeDelegateDefault""
30381 ;;
30382esac
30383fi
30384HDRDecodeDelegate=$ac_cv_path_HDRDecodeDelegate
30385if test -n "$HDRDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HDRDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030387$as_echo "$HDRDecodeDelegate" >&6; }
30388else
cristy8b350f62009-11-15 23:12:43 +000030389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030390$as_echo "no" >&6; }
30391fi
30392
30393
30394# Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
30395set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030397$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030398if test "${ac_cv_path_HPGLDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030399 $as_echo_n "(cached) " >&6
30400else
30401 case $HPGLDecodeDelegate in
30402 [\\/]* | ?:[\\/]*)
30403 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
30404 ;;
30405 *)
30406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30407for as_dir in $PATH
30408do
30409 IFS=$as_save_IFS
30410 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030411 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030412 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30413 ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030415 break 2
30416 fi
30417done
cristy8b350f62009-11-15 23:12:43 +000030418 done
cristy3ed852e2009-09-05 21:47:34 +000030419IFS=$as_save_IFS
30420
30421 test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
30422 ;;
30423esac
30424fi
30425HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
30426if test -n "$HPGLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030428$as_echo "$HPGLDecodeDelegate" >&6; }
30429else
cristy8b350f62009-11-15 23:12:43 +000030430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030431$as_echo "no" >&6; }
30432fi
30433
30434
30435# Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
30436set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030438$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030439if test "${ac_cv_path_HTMLDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030440 $as_echo_n "(cached) " >&6
30441else
30442 case $HTMLDecodeDelegate in
30443 [\\/]* | ?:[\\/]*)
30444 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
30445 ;;
30446 *)
30447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30448for as_dir in $PATH
30449do
30450 IFS=$as_save_IFS
30451 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030452 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030453 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30454 ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030456 break 2
30457 fi
30458done
cristy8b350f62009-11-15 23:12:43 +000030459 done
cristy3ed852e2009-09-05 21:47:34 +000030460IFS=$as_save_IFS
30461
30462 test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
30463 ;;
30464esac
30465fi
30466HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
30467if test -n "$HTMLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030469$as_echo "$HTMLDecodeDelegate" >&6; }
30470else
cristy8b350f62009-11-15 23:12:43 +000030471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030472$as_echo "no" >&6; }
30473fi
30474
30475
30476# Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
30477set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030479$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030480if test "${ac_cv_path_ILBMDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030481 $as_echo_n "(cached) " >&6
30482else
30483 case $ILBMDecodeDelegate in
30484 [\\/]* | ?:[\\/]*)
30485 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
30486 ;;
30487 *)
30488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30489for as_dir in $PATH
30490do
30491 IFS=$as_save_IFS
30492 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030493 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030494 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30495 ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030497 break 2
30498 fi
30499done
cristy8b350f62009-11-15 23:12:43 +000030500 done
cristy3ed852e2009-09-05 21:47:34 +000030501IFS=$as_save_IFS
30502
30503 test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
30504 ;;
30505esac
30506fi
30507ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
30508if test -n "$ILBMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030510$as_echo "$ILBMDecodeDelegate" >&6; }
30511else
cristy8b350f62009-11-15 23:12:43 +000030512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030513$as_echo "no" >&6; }
30514fi
30515
30516
30517# Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
30518set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030520$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030521if test "${ac_cv_path_ILBMEncodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030522 $as_echo_n "(cached) " >&6
30523else
30524 case $ILBMEncodeDelegate in
30525 [\\/]* | ?:[\\/]*)
30526 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
30527 ;;
30528 *)
30529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30530for as_dir in $PATH
30531do
30532 IFS=$as_save_IFS
30533 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030534 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30536 ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030538 break 2
30539 fi
30540done
cristy8b350f62009-11-15 23:12:43 +000030541 done
cristy3ed852e2009-09-05 21:47:34 +000030542IFS=$as_save_IFS
30543
30544 test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
30545 ;;
30546esac
30547fi
30548ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
30549if test -n "$ILBMEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030551$as_echo "$ILBMEncodeDelegate" >&6; }
30552else
cristy8b350f62009-11-15 23:12:43 +000030553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030554$as_echo "no" >&6; }
30555fi
30556
30557
30558# Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
30559set dummy "$LPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030561$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030562if test "${ac_cv_path_LPDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030563 $as_echo_n "(cached) " >&6
30564else
30565 case $LPDelegate in
30566 [\\/]* | ?:[\\/]*)
30567 ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
30568 ;;
30569 *)
30570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30571for as_dir in $PATH
30572do
30573 IFS=$as_save_IFS
30574 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030575 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30577 ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030579 break 2
30580 fi
30581done
cristy8b350f62009-11-15 23:12:43 +000030582 done
cristy3ed852e2009-09-05 21:47:34 +000030583IFS=$as_save_IFS
30584
30585 test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
30586 ;;
30587esac
30588fi
30589LPDelegate=$ac_cv_path_LPDelegate
30590if test -n "$LPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030592$as_echo "$LPDelegate" >&6; }
30593else
cristy8b350f62009-11-15 23:12:43 +000030594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030595$as_echo "no" >&6; }
30596fi
30597
30598
30599# Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
30600set dummy "$LPRDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030602$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030603if test "${ac_cv_path_LPRDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030604 $as_echo_n "(cached) " >&6
30605else
30606 case $LPRDelegate in
30607 [\\/]* | ?:[\\/]*)
30608 ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
30609 ;;
30610 *)
30611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30612for as_dir in $PATH
30613do
30614 IFS=$as_save_IFS
30615 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030616 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30618 ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030620 break 2
30621 fi
30622done
cristy8b350f62009-11-15 23:12:43 +000030623 done
cristy3ed852e2009-09-05 21:47:34 +000030624IFS=$as_save_IFS
30625
30626 test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
30627 ;;
30628esac
30629fi
30630LPRDelegate=$ac_cv_path_LPRDelegate
30631if test -n "$LPRDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030633$as_echo "$LPRDelegate" >&6; }
30634else
cristy8b350f62009-11-15 23:12:43 +000030635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030636$as_echo "no" >&6; }
30637fi
30638
30639
30640# Extract the first word of ""$LZWDecodeDelegateDefault"", so it can be a program name with args.
30641set dummy "$LZWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030643$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030644if test "${ac_cv_path_LZWDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030645 $as_echo_n "(cached) " >&6
30646else
30647 case $LZWDecodeDelegate in
30648 [\\/]* | ?:[\\/]*)
30649 ac_cv_path_LZWDecodeDelegate="$LZWDecodeDelegate" # Let the user override the test with a path.
30650 ;;
30651 *)
30652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30653for as_dir in $PATH
30654do
30655 IFS=$as_save_IFS
30656 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030657 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030658 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30659 ac_cv_path_LZWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030661 break 2
30662 fi
30663done
cristy8b350f62009-11-15 23:12:43 +000030664 done
cristy3ed852e2009-09-05 21:47:34 +000030665IFS=$as_save_IFS
30666
30667 test -z "$ac_cv_path_LZWDecodeDelegate" && ac_cv_path_LZWDecodeDelegate=""$LZWDecodeDelegateDefault""
30668 ;;
30669esac
30670fi
30671LZWDecodeDelegate=$ac_cv_path_LZWDecodeDelegate
30672if test -n "$LZWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030674$as_echo "$LZWDecodeDelegate" >&6; }
30675else
cristy8b350f62009-11-15 23:12:43 +000030676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030677$as_echo "no" >&6; }
30678fi
30679
30680
30681# Extract the first word of ""$LZWEncodeDelegateDefault"", so it can be a program name with args.
30682set dummy "$LZWEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030684$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030685if test "${ac_cv_path_LZWEncodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030686 $as_echo_n "(cached) " >&6
30687else
30688 case $LZWEncodeDelegate in
30689 [\\/]* | ?:[\\/]*)
30690 ac_cv_path_LZWEncodeDelegate="$LZWEncodeDelegate" # Let the user override the test with a path.
30691 ;;
30692 *)
30693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30694for as_dir in $PATH
30695do
30696 IFS=$as_save_IFS
30697 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030698 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030699 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30700 ac_cv_path_LZWEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030702 break 2
30703 fi
30704done
cristy8b350f62009-11-15 23:12:43 +000030705 done
cristy3ed852e2009-09-05 21:47:34 +000030706IFS=$as_save_IFS
30707
30708 test -z "$ac_cv_path_LZWEncodeDelegate" && ac_cv_path_LZWEncodeDelegate=""$LZWEncodeDelegateDefault""
30709 ;;
30710esac
30711fi
30712LZWEncodeDelegate=$ac_cv_path_LZWEncodeDelegate
30713if test -n "$LZWEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030715$as_echo "$LZWEncodeDelegate" >&6; }
30716else
cristy8b350f62009-11-15 23:12:43 +000030717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030718$as_echo "no" >&6; }
30719fi
30720
30721
30722# Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
30723set dummy "$LaunchDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030725$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030726if test "${ac_cv_path_LaunchDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030727 $as_echo_n "(cached) " >&6
30728else
30729 case $LaunchDelegate in
30730 [\\/]* | ?:[\\/]*)
30731 ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
30732 ;;
30733 *)
30734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30735for as_dir in $PATH
30736do
30737 IFS=$as_save_IFS
30738 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030739 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30741 ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030743 break 2
30744 fi
30745done
cristy8b350f62009-11-15 23:12:43 +000030746 done
cristy3ed852e2009-09-05 21:47:34 +000030747IFS=$as_save_IFS
30748
30749 test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
30750 ;;
30751esac
30752fi
30753LaunchDelegate=$ac_cv_path_LaunchDelegate
30754if test -n "$LaunchDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030756$as_echo "$LaunchDelegate" >&6; }
30757else
cristy8b350f62009-11-15 23:12:43 +000030758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030759$as_echo "no" >&6; }
30760fi
30761
30762
30763# Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
30764set dummy "$MANDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030766$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030767if test "${ac_cv_path_MANDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030768 $as_echo_n "(cached) " >&6
30769else
30770 case $MANDelegate in
30771 [\\/]* | ?:[\\/]*)
30772 ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
30773 ;;
30774 *)
30775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30776for as_dir in $PATH
30777do
30778 IFS=$as_save_IFS
30779 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030780 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030781 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30782 ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030784 break 2
30785 fi
30786done
cristy8b350f62009-11-15 23:12:43 +000030787 done
cristy3ed852e2009-09-05 21:47:34 +000030788IFS=$as_save_IFS
30789
30790 test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
30791 ;;
30792esac
30793fi
30794MANDelegate=$ac_cv_path_MANDelegate
30795if test -n "$MANDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030797$as_echo "$MANDelegate" >&6; }
30798else
cristy8b350f62009-11-15 23:12:43 +000030799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030800$as_echo "no" >&6; }
30801fi
30802
30803
30804# Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
30805set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030807$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030808if test "${ac_cv_path_MPEGDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030809 $as_echo_n "(cached) " >&6
30810else
30811 case $MPEGDecodeDelegate in
30812 [\\/]* | ?:[\\/]*)
30813 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
30814 ;;
30815 *)
30816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30817for as_dir in $PATH
30818do
30819 IFS=$as_save_IFS
30820 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030821 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30823 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030825 break 2
30826 fi
30827done
cristy8b350f62009-11-15 23:12:43 +000030828 done
cristy3ed852e2009-09-05 21:47:34 +000030829IFS=$as_save_IFS
30830
30831 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
30832 ;;
30833esac
30834fi
30835MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
30836if test -n "$MPEGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030838$as_echo "$MPEGDecodeDelegate" >&6; }
30839else
cristy8b350f62009-11-15 23:12:43 +000030840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030841$as_echo "no" >&6; }
30842fi
30843
30844
30845# Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
30846set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030848$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030849if test "${ac_cv_path_MPEGEncodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030850 $as_echo_n "(cached) " >&6
30851else
30852 case $MPEGEncodeDelegate in
30853 [\\/]* | ?:[\\/]*)
30854 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
30855 ;;
30856 *)
30857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30858for as_dir in $PATH
30859do
30860 IFS=$as_save_IFS
30861 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030862 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30864 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030866 break 2
30867 fi
30868done
cristy8b350f62009-11-15 23:12:43 +000030869 done
cristy3ed852e2009-09-05 21:47:34 +000030870IFS=$as_save_IFS
30871
30872 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
30873 ;;
30874esac
30875fi
30876MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
30877if test -n "$MPEGEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030879$as_echo "$MPEGEncodeDelegate" >&6; }
30880else
cristy8b350f62009-11-15 23:12:43 +000030881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030882$as_echo "no" >&6; }
30883fi
30884
30885
30886# Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
30887set dummy "$MVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030889$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030890if test "${ac_cv_path_MVDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030891 $as_echo_n "(cached) " >&6
30892else
30893 case $MVDelegate in
30894 [\\/]* | ?:[\\/]*)
30895 ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
30896 ;;
30897 *)
30898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30899for as_dir in $PATH
30900do
30901 IFS=$as_save_IFS
30902 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030903 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30905 ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030907 break 2
30908 fi
30909done
cristy8b350f62009-11-15 23:12:43 +000030910 done
cristy3ed852e2009-09-05 21:47:34 +000030911IFS=$as_save_IFS
30912
30913 test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
30914 ;;
30915esac
30916fi
30917MVDelegate=$ac_cv_path_MVDelegate
30918if test -n "$MVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030920$as_echo "$MVDelegate" >&6; }
30921else
cristy8b350f62009-11-15 23:12:43 +000030922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030923$as_echo "no" >&6; }
30924fi
30925
30926
30927# Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
30928set dummy "$PCLDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030930$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030931if test "${ac_cv_path_PCLDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030932 $as_echo_n "(cached) " >&6
30933else
30934 case $PCLDelegate in
30935 [\\/]* | ?:[\\/]*)
30936 ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
30937 ;;
30938 *)
30939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30940for as_dir in $PATH
30941do
30942 IFS=$as_save_IFS
30943 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030944 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30946 ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030948 break 2
30949 fi
30950done
cristy8b350f62009-11-15 23:12:43 +000030951 done
cristy3ed852e2009-09-05 21:47:34 +000030952IFS=$as_save_IFS
30953
30954 test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
30955 ;;
30956esac
30957fi
30958PCLDelegate=$ac_cv_path_PCLDelegate
30959if test -n "$PCLDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030961$as_echo "$PCLDelegate" >&6; }
30962else
cristy8b350f62009-11-15 23:12:43 +000030963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030964$as_echo "no" >&6; }
30965fi
30966
30967
30968# Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
30969set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030971$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030972if test "${ac_cv_path_PGPDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030973 $as_echo_n "(cached) " >&6
30974else
30975 case $PGPDecodeDelegate in
30976 [\\/]* | ?:[\\/]*)
30977 ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
30978 ;;
30979 *)
30980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30981for as_dir in $PATH
30982do
30983 IFS=$as_save_IFS
30984 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030985 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030986 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30987 ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030989 break 2
30990 fi
30991done
cristy8b350f62009-11-15 23:12:43 +000030992 done
cristy3ed852e2009-09-05 21:47:34 +000030993IFS=$as_save_IFS
30994
30995 test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
30996 ;;
30997esac
30998fi
30999PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
31000if test -n "$PGPDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031002$as_echo "$PGPDecodeDelegate" >&6; }
31003else
cristy8b350f62009-11-15 23:12:43 +000031004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031005$as_echo "no" >&6; }
31006fi
31007
31008
31009# Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
31010set dummy "$POVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031012$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031013if test "${ac_cv_path_POVDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031014 $as_echo_n "(cached) " >&6
31015else
31016 case $POVDelegate in
31017 [\\/]* | ?:[\\/]*)
31018 ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
31019 ;;
31020 *)
31021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31022for as_dir in $PATH
31023do
31024 IFS=$as_save_IFS
31025 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031026 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031027 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31028 ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031030 break 2
31031 fi
31032done
cristy8b350f62009-11-15 23:12:43 +000031033 done
cristy3ed852e2009-09-05 21:47:34 +000031034IFS=$as_save_IFS
31035
31036 test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
31037 ;;
31038esac
31039fi
31040POVDelegate=$ac_cv_path_POVDelegate
31041if test -n "$POVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031043$as_echo "$POVDelegate" >&6; }
31044else
cristy8b350f62009-11-15 23:12:43 +000031045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031046$as_echo "no" >&6; }
31047fi
31048
31049
31050for ac_prog in gsx gsc "$PSDelegateDefault"
31051do
31052 # Extract the first word of "$ac_prog", so it can be a program name with args.
31053set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031055$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031056if test "${ac_cv_path_PSDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031057 $as_echo_n "(cached) " >&6
31058else
31059 case $PSDelegate in
31060 [\\/]* | ?:[\\/]*)
31061 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
31062 ;;
31063 *)
31064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31065for as_dir in $PATH
31066do
31067 IFS=$as_save_IFS
31068 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031069 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31071 ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031073 break 2
31074 fi
31075done
cristy8b350f62009-11-15 23:12:43 +000031076 done
cristy3ed852e2009-09-05 21:47:34 +000031077IFS=$as_save_IFS
31078
31079 ;;
31080esac
31081fi
31082PSDelegate=$ac_cv_path_PSDelegate
31083if test -n "$PSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031085$as_echo "$PSDelegate" >&6; }
31086else
cristy8b350f62009-11-15 23:12:43 +000031087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031088$as_echo "no" >&6; }
31089fi
31090
31091
31092 test -n "$PSDelegate" && break
31093done
31094test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
31095
31096# Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
31097set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031099$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031100if test "${ac_cv_path_RLEEncodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031101 $as_echo_n "(cached) " >&6
31102else
31103 case $RLEEncodeDelegate in
31104 [\\/]* | ?:[\\/]*)
31105 ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
31106 ;;
31107 *)
31108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31109for as_dir in $PATH
31110do
31111 IFS=$as_save_IFS
31112 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031113 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31115 ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031117 break 2
31118 fi
31119done
cristy8b350f62009-11-15 23:12:43 +000031120 done
cristy3ed852e2009-09-05 21:47:34 +000031121IFS=$as_save_IFS
31122
31123 test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
31124 ;;
31125esac
31126fi
31127RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
31128if test -n "$RLEEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031130$as_echo "$RLEEncodeDelegate" >&6; }
31131else
cristy8b350f62009-11-15 23:12:43 +000031132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031133$as_echo "no" >&6; }
31134fi
31135
31136
31137# Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
31138set dummy "$RMDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031140$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031141if test "${ac_cv_path_RMDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031142 $as_echo_n "(cached) " >&6
31143else
31144 case $RMDelegate in
31145 [\\/]* | ?:[\\/]*)
31146 ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
31147 ;;
31148 *)
31149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31150for as_dir in $PATH
31151do
31152 IFS=$as_save_IFS
31153 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031154 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31156 ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031158 break 2
31159 fi
31160done
cristy8b350f62009-11-15 23:12:43 +000031161 done
cristy3ed852e2009-09-05 21:47:34 +000031162IFS=$as_save_IFS
31163
31164 test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
31165 ;;
31166esac
31167fi
31168RMDelegate=$ac_cv_path_RMDelegate
31169if test -n "$RMDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031171$as_echo "$RMDelegate" >&6; }
31172else
cristy8b350f62009-11-15 23:12:43 +000031173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031174$as_echo "no" >&6; }
31175fi
31176
31177
cristy4689cf02010-02-17 21:15:45 +000031178# Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args.
31179set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2
31180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31181$as_echo_n "checking for $ac_word... " >&6; }
31182if test "${ac_cv_path_RSVGDecodeDelegate+set}" = set; then :
31183 $as_echo_n "(cached) " >&6
31184else
31185 case $RSVGDecodeDelegate in
31186 [\\/]* | ?:[\\/]*)
31187 ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path.
31188 ;;
31189 *)
31190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31191for as_dir in $PATH
31192do
31193 IFS=$as_save_IFS
31194 test -z "$as_dir" && as_dir=.
31195 for ac_exec_ext in '' $ac_executable_extensions; do
31196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31197 ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
31198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31199 break 2
31200 fi
31201done
31202 done
31203IFS=$as_save_IFS
31204
31205 test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault""
31206 ;;
31207esac
31208fi
31209RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate
31210if test -n "$RSVGDecodeDelegate"; then
31211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5
31212$as_echo "$RSVGDecodeDelegate" >&6; }
31213else
31214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31215$as_echo "no" >&6; }
31216fi
31217
31218
cristy3ed852e2009-09-05 21:47:34 +000031219# Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
31220set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031222$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031223if test "${ac_cv_path_SCANDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031224 $as_echo_n "(cached) " >&6
31225else
31226 case $SCANDecodeDelegate in
31227 [\\/]* | ?:[\\/]*)
31228 ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
31229 ;;
31230 *)
31231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31232for as_dir in $PATH
31233do
31234 IFS=$as_save_IFS
31235 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031236 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31238 ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031240 break 2
31241 fi
31242done
cristy8b350f62009-11-15 23:12:43 +000031243 done
cristy3ed852e2009-09-05 21:47:34 +000031244IFS=$as_save_IFS
31245
31246 test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
31247 ;;
31248esac
31249fi
31250SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
31251if test -n "$SCANDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031253$as_echo "$SCANDecodeDelegate" >&6; }
31254else
cristy8b350f62009-11-15 23:12:43 +000031255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031256$as_echo "no" >&6; }
31257fi
31258
31259
31260# Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
31261set dummy "$TXTDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031263$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031264if test "${ac_cv_path_TXTDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031265 $as_echo_n "(cached) " >&6
31266else
31267 case $TXTDelegate in
31268 [\\/]* | ?:[\\/]*)
31269 ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
31270 ;;
31271 *)
31272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31273for as_dir in $PATH
31274do
31275 IFS=$as_save_IFS
31276 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031277 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31279 ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031281 break 2
31282 fi
31283done
cristy8b350f62009-11-15 23:12:43 +000031284 done
cristy3ed852e2009-09-05 21:47:34 +000031285IFS=$as_save_IFS
31286
31287 test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
31288 ;;
31289esac
31290fi
31291TXTDelegate=$ac_cv_path_TXTDelegate
31292if test -n "$TXTDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031294$as_echo "$TXTDelegate" >&6; }
31295else
cristy8b350f62009-11-15 23:12:43 +000031296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031297$as_echo "no" >&6; }
31298fi
31299
31300
31301# Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
31302set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031304$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031305if test "${ac_cv_path_WMFDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031306 $as_echo_n "(cached) " >&6
31307else
31308 case $WMFDecodeDelegate in
31309 [\\/]* | ?:[\\/]*)
31310 ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
31311 ;;
31312 *)
31313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31314for as_dir in $PATH
31315do
31316 IFS=$as_save_IFS
31317 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031318 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031319 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31320 ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031322 break 2
31323 fi
31324done
cristy8b350f62009-11-15 23:12:43 +000031325 done
cristy3ed852e2009-09-05 21:47:34 +000031326IFS=$as_save_IFS
31327
31328 test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
31329 ;;
31330esac
31331fi
31332WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
31333if test -n "$WMFDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031335$as_echo "$WMFDecodeDelegate" >&6; }
31336else
cristy8b350f62009-11-15 23:12:43 +000031337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031338$as_echo "no" >&6; }
31339fi
31340
31341
31342# Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
31343set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031345$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031346if test "${ac_cv_path_WWWDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031347 $as_echo_n "(cached) " >&6
31348else
31349 case $WWWDecodeDelegate in
31350 [\\/]* | ?:[\\/]*)
31351 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
31352 ;;
31353 *)
31354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31355for as_dir in $PATH
31356do
31357 IFS=$as_save_IFS
31358 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031359 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31361 ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031363 break 2
31364 fi
31365done
cristy8b350f62009-11-15 23:12:43 +000031366 done
cristy3ed852e2009-09-05 21:47:34 +000031367IFS=$as_save_IFS
31368
31369 test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
31370 ;;
31371esac
31372fi
31373WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
31374if test -n "$WWWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031376$as_echo "$WWWDecodeDelegate" >&6; }
31377else
cristy8b350f62009-11-15 23:12:43 +000031378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031379$as_echo "no" >&6; }
31380fi
31381
31382
31383# Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
31384set dummy "$XPSDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031386$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031387if test "${ac_cv_path_XPSDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031388 $as_echo_n "(cached) " >&6
31389else
31390 case $XPSDelegate in
31391 [\\/]* | ?:[\\/]*)
31392 ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
31393 ;;
31394 *)
31395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31396for as_dir in $PATH
31397do
31398 IFS=$as_save_IFS
31399 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031400 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31402 ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031404 break 2
31405 fi
31406done
cristy8b350f62009-11-15 23:12:43 +000031407 done
cristy3ed852e2009-09-05 21:47:34 +000031408IFS=$as_save_IFS
31409
31410 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
31411 ;;
31412esac
31413fi
31414XPSDelegate=$ac_cv_path_XPSDelegate
31415if test -n "$XPSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031417$as_echo "$XPSDelegate" >&6; }
31418else
cristy8b350f62009-11-15 23:12:43 +000031419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031420$as_echo "no" >&6; }
31421fi
31422
31423
31424# Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
31425set dummy "$ZipDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031427$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031428if test "${ac_cv_path_ZipDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031429 $as_echo_n "(cached) " >&6
31430else
31431 case $ZipDelegate in
31432 [\\/]* | ?:[\\/]*)
31433 ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
31434 ;;
31435 *)
31436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31437for as_dir in $PATH
31438do
31439 IFS=$as_save_IFS
31440 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031441 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31443 ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031445 break 2
31446 fi
31447done
cristy8b350f62009-11-15 23:12:43 +000031448 done
cristy3ed852e2009-09-05 21:47:34 +000031449IFS=$as_save_IFS
31450
31451 test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
31452 ;;
31453esac
31454fi
31455ZipDelegate=$ac_cv_path_ZipDelegate
31456if test -n "$ZipDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031458$as_echo "$ZipDelegate" >&6; }
31459else
cristy8b350f62009-11-15 23:12:43 +000031460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031461$as_echo "no" >&6; }
31462fi
31463
31464
31465
31466# Prefer lpr to lp; lp needs options tacked on.
31467if test "$LPRDelegate" != no; then
31468 PrintDelegate="$LPRDelegate"
31469else
31470 PrintDelegate="$LPDelegate -c -s"
31471fi
31472
31473
31474# Installed ImageMagick utiltity paths
31475ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
31476DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
31477MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
31478
31479# Set delegate booleans
31480have_ffmpeg='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_ffmpeg='yes'; fi
31481have_fig2dev='no' ; if test "$FIGDecodeDelegate" != "$FIGDecodeDelegateDefault" ; then have_fig2dev='yes'; fi
31482have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
31483have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
31484have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
31485have_mplayer='no'; if test "$AVIDecodeDelegate" != "$AVIDecodeDelegateDefault" ; then have_mplayer='yes'; fi
31486have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
31487have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
31488have_ra_pfm='no' ; if test "$HDRDecodeDelegate" != "$HDRDecodeDelegateDefault" ; then have_ra_pfm='yes'; fi
31489have_ralcgm='no' ; if test "$CGMDecodeDelegate" != "$CGMDecodeDelegateDefault" ; then have_ralcgm='yes'; fi
31490have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
31491
31492#
31493# Test for font directories
31494#
31495type_include_files=''
31496
cristy430a7312010-01-21 20:44:04 +000031497# Dejavu fonts.
31498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5
31499$as_echo_n "checking for Dejavu fonts directory... " >&6; }
31500dejavu_font_dir=''
31501if test "${with_dejavu_font_dir}" != 'default'; then
31502 dejavu_font_dir="${with_dejavu_font_dir}/"
31503else
31504 for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do
31505 if test -f "${font_dir}DejaVuSerif.ttf"; then
31506 dejavu_font_dir="${font_dir}"
31507 break 1
31508 fi
31509 done
31510fi
31511if test "${dejavu_font_dir}x" != 'x'; then
31512 type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />'
31513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dejavu_font_dir" >&5
31514$as_echo "$dejavu_font_dir" >&6; }
31515else
31516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
31517$as_echo "not found!" >&6; };
31518fi
31519
31520
cristy3ed852e2009-09-05 21:47:34 +000031521# Windows
31522windows_font_dir=''
31523if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then
31524 windows_font_dir="${with_windows_font_dir}/"
31525fi
cristy430a7312010-01-21 20:44:04 +000031526if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000031527 if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then
31528 windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/'
31529 fi
31530 if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then
31531 windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/'
31532 fi
31533 if test -f '/usr/share/fonts/msttcore/arial.ttf'; then
31534 windows_font_dir='/usr/share/fonts/msttcore/truetype/'
31535 fi
31536fi
cristy430a7312010-01-21 20:44:04 +000031537if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000031538 type_include_files="$type_include_files "'<include file="type-windows.xml" />'
31539fi
31540
31541
31542# Ghostscript
cristy8b350f62009-11-15 23:12:43 +000031543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
cristy3ed852e2009-09-05 21:47:34 +000031544$as_echo_n "checking for Ghostscript fonts directory... " >&6; }
31545ghostscript_font_dir=''
31546if test "${with_gs_font_dir}" != 'default'; then
31547 ghostscript_font_dir="${with_gs_font_dir}/"
31548else
31549 if test "${native_win32_build}" = 'yes'; then
31550 # Native Windows Build
31551 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
31552 if test -f "${font_dir}a010013l.pfb"; then
31553 ghostscript_font_dir="$font_dir"
31554 break 1
31555 fi
31556 done
31557 if test "${PSDelegate}" != 'gswin32c'; then
31558 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
31559 fi
31560 else
31561 # Linux / Mac OS X / Unix Build
31562 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
31563 if test -f "${font_dir}a010013l.pfb"; then
31564 ghostscript_font_dir="${font_dir}"
31565 break 1
31566 fi
31567 done
31568 if test "${ghostscript_font_dir}x" = 'x'; then
31569 if test "$PSDelegate" != 'gs'; then
31570 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
31571 fi
31572 fi
31573 fi
31574fi
31575if test "${ghostscript_font_dir}x" != 'x'; then
31576 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
cristy8b350f62009-11-15 23:12:43 +000031577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ghostscript_font_dir" >&5
cristy3ed852e2009-09-05 21:47:34 +000031578$as_echo "$ghostscript_font_dir" >&6; }
31579else
cristy8b350f62009-11-15 23:12:43 +000031580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
cristy3ed852e2009-09-05 21:47:34 +000031581$as_echo "not found!" >&6; };
31582fi
31583
31584case "${build_os}" in
31585 mingw* )
31586 PSDelegate=`$WinPathScript "$PSDelegate" 1`
31587 ;;
31588esac
31589
31590
31591
31592#
31593# Handle case where user doesn't want frozen paths
31594#
31595if test "$with_frozenpaths" != 'yes'; then
31596 # Re-set delegate definitions to default (no paths)
31597 AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
31598 AVIDecodeDelegate="$AVIDecodeDelegateDefault"
31599 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
31600 BZIPDelegate="$BZIPDelegateDefault"
31601 BrowseDelegate="$BrowseDelegateDefault"
31602 CGMDecodeDelegate="$CGMDecodeDelegateDefault"
31603 CatDelegate="$CatDelegateDefault"
31604 ConvertDelegate="$ConvertDelegateDefault"
31605 GVCDecodeDelegate="$GVCDecodeDelegateDefault"
31606 DVIDecodeDelegate="$DVIDecodeDelegateDefault"
31607 EchoDelegate="$EchoDelegateDefault"
31608 EditorDelegate="$EditorDelegateDefault"
31609 FIGDecodeDelegate="$FIGDecodeDelegateDefault"
31610 GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
31611 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
31612 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
31613 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
31614 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
31615 LPDelegate="$LPDelegateDefault"
31616 LZWDecodeDelegate="$LZWDecodeDelegateDefault"
31617 LZWEncodeDelegate="$LZWEncodeDelegateDefault"
31618 LaunchDelegate="$LaunchDelegateDefault"
31619 MANDelegate="$MANDelegateDefault"
31620 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
31621 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
31622 MVDelegate="$MVDelegateDefault"
31623 MogrifyDelegate="$MogrifyDelegateDefault"
31624 PCLDelegate="$PCLDelegateDefault"
31625 PGPDecodeDelegate="$PGPDecodeDelegateDefault"
31626 POVDelegate="$POVDelegateDefault"
31627 PSDelegate="$PSDelegateDefault"
31628 HDRDecodeDelegate="$HDRDecodeDelegateDefault"
31629 RLEEncodeDelegate="$RLEEncodeDelegateDefault"
31630 RMDelegate="$RMDelegateDefault"
cristy4689cf02010-02-17 21:15:45 +000031631 RSVGDecodeDelegate="$RSVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000031632 SCANDecodeDelegate="$SCANDecodeDelegateDefault"
31633 ShowImageDelegate="$ShowImageDelegateDefault"
31634 TXTDelegate="$TXTDelegateDefault"
31635 WMFDecodeDelegate="$WMFDecodeDelegateDefault"
31636 WWWDecodeDelegate="$WWWDecodeDelegateDefault"
31637 XPSDelegate="$XPSDelegateDefault"
31638 ZipDelegate="$ZipDelegateDefault"
31639fi
31640
31641# Delegate substitutions
31642
31643
31644
31645
31646
31647
31648
31649
31650
31651
31652
31653
31654
31655
31656
31657
31658
31659
31660
31661
31662
31663
31664
31665
31666
31667
31668
31669
31670
31671
31672
31673
31674
31675
31676
31677
31678
31679
31680
31681
31682
31683
31684#
31685# RPM support.
31686#
31687RPM=''
31688for ac_prog in gnutar gtar tar
31689do
31690 # Extract the first word of "$ac_prog", so it can be a program name with args.
31691set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031693$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031694if test "${ac_cv_prog_TAR+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031695 $as_echo_n "(cached) " >&6
31696else
31697 if test -n "$TAR"; then
31698 ac_cv_prog_TAR="$TAR" # Let the user override the test.
31699else
31700as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31701for as_dir in $PATH
31702do
31703 IFS=$as_save_IFS
31704 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031705 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31707 ac_cv_prog_TAR="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000031708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031709 break 2
31710 fi
31711done
cristy8b350f62009-11-15 23:12:43 +000031712 done
cristy3ed852e2009-09-05 21:47:34 +000031713IFS=$as_save_IFS
31714
31715fi
31716fi
31717TAR=$ac_cv_prog_TAR
31718if test -n "$TAR"; then
cristy8b350f62009-11-15 23:12:43 +000031719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
cristy3ed852e2009-09-05 21:47:34 +000031720$as_echo "$TAR" >&6; }
31721else
cristy8b350f62009-11-15 23:12:43 +000031722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031723$as_echo "no" >&6; }
31724fi
31725
31726
31727 test -n "$TAR" && break
31728done
31729
31730for ac_prog in perl
31731do
31732 # Extract the first word of "$ac_prog", so it can be a program name with args.
31733set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031735$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031736if test "${ac_cv_prog_PERL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031737 $as_echo_n "(cached) " >&6
31738else
31739 if test -n "$PERL"; then
31740 ac_cv_prog_PERL="$PERL" # Let the user override the test.
31741else
31742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31743for as_dir in $PATH
31744do
31745 IFS=$as_save_IFS
31746 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031747 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031748 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31749 ac_cv_prog_PERL="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000031750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031751 break 2
31752 fi
31753done
cristy8b350f62009-11-15 23:12:43 +000031754 done
cristy3ed852e2009-09-05 21:47:34 +000031755IFS=$as_save_IFS
31756
31757fi
31758fi
31759PERL=$ac_cv_prog_PERL
31760if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000031761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000031762$as_echo "$PERL" >&6; }
31763else
cristy8b350f62009-11-15 23:12:43 +000031764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031765$as_echo "no" >&6; }
31766fi
31767
31768
31769 test -n "$PERL" && break
31770done
31771
31772for ac_prog in rpmbuild rpm
31773do
31774 # Extract the first word of "$ac_prog", so it can be a program name with args.
31775set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031777$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031778if test "${ac_cv_prog_RPM+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031779 $as_echo_n "(cached) " >&6
31780else
31781 if test -n "$RPM"; then
31782 ac_cv_prog_RPM="$RPM" # Let the user override the test.
31783else
31784as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31785for as_dir in $PATH
31786do
31787 IFS=$as_save_IFS
31788 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031789 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31791 ac_cv_prog_RPM="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000031792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031793 break 2
31794 fi
31795done
cristy8b350f62009-11-15 23:12:43 +000031796 done
cristy3ed852e2009-09-05 21:47:34 +000031797IFS=$as_save_IFS
31798
31799fi
31800fi
31801RPM=$ac_cv_prog_RPM
31802if test -n "$RPM"; then
cristy8b350f62009-11-15 23:12:43 +000031803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
cristy3ed852e2009-09-05 21:47:34 +000031804$as_echo "$RPM" >&6; }
31805else
cristy8b350f62009-11-15 23:12:43 +000031806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031807$as_echo "no" >&6; }
31808fi
31809
31810
31811 test -n "$RPM" && break
31812done
31813
31814
31815ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
31816
31817
31818AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
31819
31820
31821AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
31822
31823
31824AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
31825
31826
31827 if test "x$RPM" != "x" ; then
31828 RPM_DELEGATE_TRUE=
31829 RPM_DELEGATE_FALSE='#'
31830else
31831 RPM_DELEGATE_TRUE='#'
31832 RPM_DELEGATE_FALSE=
31833fi
31834
31835
31836#
31837# 7ZIP support (http://p7zip.sourceforge.net/)
31838#
31839P7ZIP=''
31840for ac_prog in 7za
31841do
31842 # Extract the first word of "$ac_prog", so it can be a program name with args.
31843set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031845$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031846if test "${ac_cv_prog_P7ZIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031847 $as_echo_n "(cached) " >&6
31848else
31849 if test -n "$P7ZIP"; then
31850 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
31851else
31852as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31853for as_dir in $PATH
31854do
31855 IFS=$as_save_IFS
31856 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031857 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031858 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31859 ac_cv_prog_P7ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000031860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031861 break 2
31862 fi
31863done
cristy8b350f62009-11-15 23:12:43 +000031864 done
cristy3ed852e2009-09-05 21:47:34 +000031865IFS=$as_save_IFS
31866
31867fi
31868fi
31869P7ZIP=$ac_cv_prog_P7ZIP
31870if test -n "$P7ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000031871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000031872$as_echo "$P7ZIP" >&6; }
31873else
cristy8b350f62009-11-15 23:12:43 +000031874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031875$as_echo "no" >&6; }
31876fi
31877
31878
31879 test -n "$P7ZIP" && break
31880done
31881
31882
31883 if test "x$P7ZIP" != "x" ; then
31884 P7ZIP_DELEGATE_TRUE=
31885 P7ZIP_DELEGATE_FALSE='#'
31886else
31887 P7ZIP_DELEGATE_TRUE='#'
31888 P7ZIP_DELEGATE_FALSE=
31889fi
31890
31891
31892#
31893# ZIP support (http://www.info-zip.org/Zip.html)
31894#
31895ZIP=''
31896for ac_prog in zip
31897do
31898 # Extract the first word of "$ac_prog", so it can be a program name with args.
31899set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031901$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031902if test "${ac_cv_prog_ZIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031903 $as_echo_n "(cached) " >&6
31904else
31905 if test -n "$ZIP"; then
31906 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
31907else
31908as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31909for as_dir in $PATH
31910do
31911 IFS=$as_save_IFS
31912 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031913 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031914 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31915 ac_cv_prog_ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000031916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031917 break 2
31918 fi
31919done
cristy8b350f62009-11-15 23:12:43 +000031920 done
cristy3ed852e2009-09-05 21:47:34 +000031921IFS=$as_save_IFS
31922
31923fi
31924fi
31925ZIP=$ac_cv_prog_ZIP
31926if test -n "$ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000031927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000031928$as_echo "$ZIP" >&6; }
31929else
cristy8b350f62009-11-15 23:12:43 +000031930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031931$as_echo "no" >&6; }
31932fi
31933
31934
31935 test -n "$ZIP" && break
31936done
31937
31938
31939 if test "x$ZIP" != "x" ; then
31940 ZIP_DELEGATE_TRUE=
31941 ZIP_DELEGATE_FALSE='#'
31942else
31943 ZIP_DELEGATE_TRUE='#'
31944 ZIP_DELEGATE_FALSE=
31945fi
31946
31947
31948#
31949# GhostPCL related configuration.
31950#
31951PCLColorDevice=ppmraw
31952PCLCMYKDevice=bmpsep8
31953PCLMonoDevice=pbmraw
31954if test -z "$PCLVersion"; then
31955 PCLVersion='unknown'
31956fi
31957if test $have_pcl = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000031958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000031959$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000031960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000031961$as_echo_n "checking for PCL... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000031963$as_echo "" >&6; }
31964 # PCLColorDevice
cristy8b350f62009-11-15 23:12:43 +000031965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031966$as_echo_n "checking for pcl color device... " >&6; }
31967 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31968 :
31969 else
31970 PCLColorDevice=ppmraw
31971 fi
cristy8b350f62009-11-15 23:12:43 +000031972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000031973$as_echo "$PCLColorDevice" >&6; }
31974
31975 # PCLCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000031976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031977$as_echo_n "checking for pcl CMYK device... " >&6; }
31978 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31979 :
31980 else
31981 PCLCMYKDevice=$PCLColorDevice
31982 fi
cristy8b350f62009-11-15 23:12:43 +000031983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000031984$as_echo "$PCLCMYKDevice" >&6; }
31985
31986 # PCLMonoDevice
cristy8b350f62009-11-15 23:12:43 +000031987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031988$as_echo_n "checking for pcl mono device... " >&6; }
31989 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31990 :
31991 else
31992 PCLMonoDevice=$PCLColorDevice
31993 fi
cristy8b350f62009-11-15 23:12:43 +000031994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000031995$as_echo "$PCLMonoDevice" >&6; }
31996fi
31997
31998
31999
32000
32001
32002
32003#
32004# GhostXPS related configuration.
32005#
32006XPSColorDevice=ppmraw
32007XPSCMYKDevice=bmpsep8
32008XPSMonoDevice=pbmraw
32009if test -z "$XPSVersion"; then
32010 XPSVersion='unknown'
32011fi
32012if test $have_xps = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000032013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000032014$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000032016$as_echo_n "checking for XPS... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000032018$as_echo "" >&6; }
32019 # XPSColorDevice
cristy8b350f62009-11-15 23:12:43 +000032020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032021$as_echo_n "checking for xps color device... " >&6; }
32022 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32023 :
32024 else
32025 XPSColorDevice=ppmraw
32026 fi
cristy8b350f62009-11-15 23:12:43 +000032027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032028$as_echo "$XPSColorDevice" >&6; }
32029
32030 # XPSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000032031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032032$as_echo_n "checking for xps CMYK device... " >&6; }
32033 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32034 :
32035 else
32036 XPSCMYKDevice=$XPSColorDevice
32037 fi
cristy8b350f62009-11-15 23:12:43 +000032038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032039$as_echo "$XPSCMYKDevice" >&6; }
32040
32041 # XPSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000032042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032043$as_echo_n "checking for xps mono device... " >&6; }
32044 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32045 :
32046 else
32047 XPSMonoDevice=$XPSColorDevice
32048 fi
cristy8b350f62009-11-15 23:12:43 +000032049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032050$as_echo "$XPSMonoDevice" >&6; }
32051fi
32052
32053
32054
32055
32056
32057
32058#
32059# Ghostscript related configuration.
32060#
32061if test "$have_png" = 'yes'; then
32062 GSAlphaDevice=pngalpha
32063else
32064 GSAlphaDevice=pnmraw
32065fi
32066GSColorDevice=pnmraw
32067GSCMYKDevice=pam
32068GSMonoDevice=pbmraw
32069GSPDFDevice=pdfwrite
32070GSPSDevice=pswrite
32071GSEPSDevice=epswrite
32072GSVersion='unknown'
32073if test $have_gs = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000032074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000032075$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000032077$as_echo_n "checking for Ghostscript... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000032079$as_echo "" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
cristy3ed852e2009-09-05 21:47:34 +000032081$as_echo_n "checking for Ghostscript version... " >&6; }
32082 if GSVersion=`$PSDelegate --version`; then
32083 :
32084 else
32085 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
32086 fi
cristy8b350f62009-11-15 23:12:43 +000032087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSVersion" >&5
cristy3ed852e2009-09-05 21:47:34 +000032088$as_echo "$GSVersion" >&6; }
32089
32090 # GSAlphaDevice
cristy8b350f62009-11-15 23:12:43 +000032091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032092$as_echo_n "checking for gs alpha device... " >&6; }
32093 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32094 :
32095 else
32096 GSAlphaDevice=pnmraw
32097 fi
cristy8b350f62009-11-15 23:12:43 +000032098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSAlphaDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032099$as_echo "$GSAlphaDevice" >&6; }
32100
32101 # GSColorDevice
cristy8b350f62009-11-15 23:12:43 +000032102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032103$as_echo_n "checking for gs color device... " >&6; }
32104 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32105 :
32106 else
32107 GSColorDevice=pnmraw
32108 fi
cristy8b350f62009-11-15 23:12:43 +000032109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032110$as_echo "$GSColorDevice" >&6; }
32111
32112 # GSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000032113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032114$as_echo_n "checking for gs CMYK device... " >&6; }
32115 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32116 :
32117 else
32118 GSCMYKDevice=bmpsep8
32119 fi
cristy8b350f62009-11-15 23:12:43 +000032120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032121$as_echo "$GSCMYKDevice" >&6; }
32122
32123 # GSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000032124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032125$as_echo_n "checking for gs mono device... " >&6; }
32126 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32127 :
32128 else
32129 GSMonoDevice=$GSColorDevice
32130 fi
cristy8b350f62009-11-15 23:12:43 +000032131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032132$as_echo "$GSMonoDevice" >&6; }
32133
32134 # GSPDFDevice
cristy8b350f62009-11-15 23:12:43 +000032135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032136$as_echo_n "checking for gs PDF writing device... " >&6; }
32137 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32138 :
32139 else
32140 GSPDFDevice=nodevice
32141 fi
cristy8b350f62009-11-15 23:12:43 +000032142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPDFDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032143$as_echo "$GSPDFDevice" >&6; }
32144
32145 # GSPSDevice
cristy8b350f62009-11-15 23:12:43 +000032146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032147$as_echo_n "checking for gs PS writing device... " >&6; }
32148 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32149 :
32150 else
32151 GSPSDevice=nodevice
32152 fi
cristy8b350f62009-11-15 23:12:43 +000032153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPSDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032154$as_echo "$GSPSDevice" >&6; }
32155
32156 # GSEPSDevice
cristy8b350f62009-11-15 23:12:43 +000032157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032158$as_echo_n "checking for gs EPS writing device... " >&6; }
32159 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32160 :
32161 else
32162 GSEPSDevice=nodevice
32163 fi
cristy8b350f62009-11-15 23:12:43 +000032164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSEPSDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032165$as_echo "$GSEPSDevice" >&6; }
32166fi
32167
32168
32169
32170
32171
32172
32173
32174
32175
32176
32177#
32178# PerlMagick-related configuration
32179#
32180
32181# Look for PERL if PerlMagick requested
32182# If name/path of desired PERL interpreter is specified, look for that one first
32183have_perl='no'
32184if test "$with_perl" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000032185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000032186$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000032188$as_echo_n "checking for Perl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000032190$as_echo "" >&6; }
32191 if test "$with_perl" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000032192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000032193$as_echo_n "checking for perl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032194if test "${ac_cv_path_PERL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032195 $as_echo_n "(cached) " >&6
32196else
32197 ac_cv_path_PERL="$with_perl"
32198fi
cristy8b350f62009-11-15 23:12:43 +000032199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000032200$as_echo "$ac_cv_path_PERL" >&6; };
32201 PERL=$ac_cv_path_PERL
32202 have_perl="$ac_cv_path_PERL"
32203 else
32204 for ac_prog in perl perl5
32205do
32206 # Extract the first word of "$ac_prog", so it can be a program name with args.
32207set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032209$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032210if test "${ac_cv_path_PERL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032211 $as_echo_n "(cached) " >&6
32212else
32213 case $PERL in
32214 [\\/]* | ?:[\\/]*)
32215 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
32216 ;;
32217 *)
32218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32219for as_dir in $PATH
32220do
32221 IFS=$as_save_IFS
32222 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032223 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32225 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032227 break 2
32228 fi
32229done
cristy8b350f62009-11-15 23:12:43 +000032230 done
cristy3ed852e2009-09-05 21:47:34 +000032231IFS=$as_save_IFS
32232
32233 ;;
32234esac
32235fi
32236PERL=$ac_cv_path_PERL
32237if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000032238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000032239$as_echo "$PERL" >&6; }
32240else
cristy8b350f62009-11-15 23:12:43 +000032241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032242$as_echo "no" >&6; }
32243fi
32244
32245
32246 test -n "$PERL" && break
32247done
32248 if test "$ac_cv_path_PERL"; then
32249 have_perl="$ac_cv_path_PERL"
32250 fi
32251 fi
32252fi
32253
cristy949301e2010-01-06 01:38:40 +000032254if test "$with_perl" != 'yes' ; then
32255 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
32256fi
32257
32258PERL_SUPPORTS_DESTDIR='no'
32259
cristy3ed852e2009-09-05 21:47:34 +000032260with_perl_static='no'
32261with_perl_dynamic='no'
32262if test "$have_perl" != 'no'; then
32263 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
32264 with_perl_static='yes'
32265 fi
32266 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
32267 with_perl_dynamic='yes'
32268 fi
32269 # Is PERL's MakeMaker new enough to support DESTDIR?
cristy964cb7f2010-04-25 23:18:00 +000032270
32271
32272
32273
32274 if test -n "$PERL"; then :
32275
32276 ax_perl_version="5.8.1"
32277
32278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5
32279$as_echo_n "checking for perl version... " >&6; }
32280
32281 perl_version=`$PERL --version 2>&1 | $GREP "This is perl" | $SED -e 's/.* v\([0-9]*\.[0-9]*\.[0-9]*\) .*/\1/'`
32282
32283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5
32284$as_echo "$perl_version" >&6; }
32285
32286 PERL_VERSION=$perl_version
32287
32288
32289
32290
32291
32292 # Used to indicate true or false condition
32293 ax_compare_version=false
32294
32295 # Convert the two version strings to be compared into a format that
32296 # allows a simple string comparison. The end result is that a version
32297 # string of the form 1.12.5-r617 will be converted to the form
32298 # 0001001200050617. In other words, each number is zero padded to four
32299 # digits, and non digits are removed.
32300
32301 ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
32302 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
32303 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
32304 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
32305 -e 's/[^0-9]//g'`
32306
32307
32308 ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
32309 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
32310 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
32311 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
32312 -e 's/[^0-9]//g'`
32313
32314
32315 ax_compare_version=`echo "x$ax_compare_version_A
32316x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
32317
32318
32319
32320 if test "$ax_compare_version" = "true" ; then
32321
32322 :
32323 PERL_SUPPORTS_DESTDIR='yes'
32324
32325 else
32326 :
32327 PERL_SUPPORTS_DESTDIR='no'
32328
cristy3ed852e2009-09-05 21:47:34 +000032329 fi
cristy3ed852e2009-09-05 21:47:34 +000032330
cristy964cb7f2010-04-25 23:18:00 +000032331
cristy3ed852e2009-09-05 21:47:34 +000032332else
cristy3ed852e2009-09-05 21:47:34 +000032333
cristy964cb7f2010-04-25 23:18:00 +000032334 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5
32335$as_echo "$as_me: WARNING: could not find the perl interpreter" >&2;}
32336 PERL_SUPPORTS_DESTDIR='no'
cristy3ed852e2009-09-05 21:47:34 +000032337
32338fi
32339
cristy3ed852e2009-09-05 21:47:34 +000032340fi
32341 if test "$have_perl" != 'no'; then
32342 WITH_PERL_TRUE=
32343 WITH_PERL_FALSE='#'
32344else
32345 WITH_PERL_TRUE='#'
32346 WITH_PERL_FALSE=
32347fi
32348
32349 if test $with_perl_static = 'yes'; then
32350 WITH_PERL_STATIC_TRUE=
32351 WITH_PERL_STATIC_FALSE='#'
32352else
32353 WITH_PERL_STATIC_TRUE='#'
32354 WITH_PERL_STATIC_FALSE=
32355fi
32356
32357 if test $with_perl_dynamic = 'yes'; then
32358 WITH_PERL_DYNAMIC_TRUE=
32359 WITH_PERL_DYNAMIC_FALSE='#'
32360else
32361 WITH_PERL_DYNAMIC_TRUE='#'
32362 WITH_PERL_DYNAMIC_FALSE=
32363fi
32364
32365
32366
32367# Determine path to pick up MagickCore library from for use with building PerlMagick
32368MAGICKCORE_PATH="${LIB_DIR}"
32369if test $with_perl_static = 'yes'; then
32370 # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
32371 libtool_objdir=$objdir
32372
32373 # Linker search path to library, followed by -lMagickCore
32374 MAGICKCORE_PATH="${builddir}/magick/${libtool_objdir}"
32375fi
32376
32377
32378# Create a simple string containing format names for all delegate libraries
32379DELEGATES=''
32380if test "$have_autotrace" = 'yes'; then DELEGATES="$DELEGATES autotrace"; fi
32381if test "$have_bzlib" = 'yes'; then DELEGATES="$DELEGATES bzlib"; fi
32382if test "$have_djvu" = 'yes'; then DELEGATES="$DELEGATES djvu"; fi
32383if test "$have_dps" = 'yes'; then DELEGATES="$DELEGATES dps"; fi
32384if test "$have_fftw" = 'yes'; then DELEGATES="$DELEGATES fftw"; fi
32385if test "$have_fpx" = 'yes'; then DELEGATES="$DELEGATES fpx"; fi
32386if test "$have_fontconfig" = 'yes'; then DELEGATES="$DELEGATES fontconfig"; fi
32387if test "$have_freetype" = 'yes'; then DELEGATES="$DELEGATES freetype"; fi
32388if test "$have_gslib" = 'yes'; then DELEGATES="$DELEGATES gs"; fi
32389if test "$have_gvc" = 'yes'; then DELEGATES="$DELEGATES gvc"; fi
32390if test "$have_jbig" = 'yes'; then DELEGATES="$DELEGATES jbig"; fi
32391if test "$have_jpeg" = 'yes'; then
32392 DELEGATES="$DELEGATES jpeg";
32393 if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES jng"; fi
32394fi
32395if test "$have_jp2" = 'yes'; then DELEGATES="$DELEGATES jp2"; fi
32396if test "$have_lcms" = 'yes'; then DELEGATES="$DELEGATES lcms"; fi
32397if test "$have_lqr" = 'yes'; then DELEGATES="$DELEGATES lqr"; fi
32398if test "$have_ffmpeg" = 'yes'; then DELEGATES="$DELEGATES mpeg"; fi
32399if test "$have_openexr" = 'yes'; then DELEGATES="$DELEGATES openexr"; fi
32400if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES png"; fi
32401if test "$have_rsvg" = 'yes'; then DELEGATES="$DELEGATES rsvg"; fi
32402if test "$have_tiff" = 'yes'; then DELEGATES="$DELEGATES tiff"; fi
32403if test "$have_x" = 'yes'; then DELEGATES="$DELEGATES x11"; fi
32404if test "$have_xml" = 'yes'; then DELEGATES="$DELEGATES xml"; fi
32405if test "$have_wmf" = 'yes'; then DELEGATES="$DELEGATES wmf"; fi
32406if test "$have_zlib" = 'yes'; then DELEGATES="$DELEGATES zlib"; fi
32407
32408
32409
32410#
32411# Handle special compiler flags
32412#
32413
32414# Add '-p' if prof source profiling support enabled
32415if test "$enable_prof" = 'yes'; then
32416 CFLAGS="-p $CFLAGS"
32417 CXXFLAGS="-p $CXXFLAGS"
32418 LDFLAGS="-p $LDFLAGS"
32419fi
32420
32421# Add '-pg' if gprof source profiling support enabled
32422if test "$enable_gprof" = 'yes'; then
32423 CFLAGS="-pg $CFLAGS"
32424 CXXFLAGS="-pg $CXXFLAGS"
32425 LDFLAGS="-pg $LDFLAGS"
32426fi
32427
32428# Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
32429# This is a gcc-specific feature
32430if test "$enable_gcov" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000032431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000032432$as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032433if test "${ac_cv_lib_gcov__gcov_init+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032434 $as_echo_n "(cached) " >&6
32435else
32436 ac_check_lib_save_LIBS=$LIBS
32437LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000032438cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032439/* end confdefs.h. */
32440
32441/* Override any GCC internal prototype to avoid an error.
32442 Use char because int might match the return type of a GCC
32443 builtin and then its argument prototype would still apply. */
32444#ifdef __cplusplus
32445extern "C"
32446#endif
32447char _gcov_init ();
32448int
32449main ()
32450{
32451return _gcov_init ();
32452 ;
32453 return 0;
32454}
32455_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032456if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000032457 ac_cv_lib_gcov__gcov_init=yes
32458else
cristy8b350f62009-11-15 23:12:43 +000032459 ac_cv_lib_gcov__gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000032460fi
cristy8b350f62009-11-15 23:12:43 +000032461rm -f core conftest.err conftest.$ac_objext \
32462 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032463LIBS=$ac_check_lib_save_LIBS
32464fi
cristy8b350f62009-11-15 23:12:43 +000032465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000032466$as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032467if test "x$ac_cv_lib_gcov__gcov_init" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000032468 cat >>confdefs.h <<_ACEOF
32469#define HAVE_LIBGCOV 1
32470_ACEOF
32471
32472 LIBS="-lgcov $LIBS"
32473
32474fi
32475
cristy8b350f62009-11-15 23:12:43 +000032476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000032477$as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032478if test "${ac_cv_lib_gcov___gcov_init+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032479 $as_echo_n "(cached) " >&6
32480else
32481 ac_check_lib_save_LIBS=$LIBS
32482LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000032483cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032484/* end confdefs.h. */
32485
32486/* Override any GCC internal prototype to avoid an error.
32487 Use char because int might match the return type of a GCC
32488 builtin and then its argument prototype would still apply. */
32489#ifdef __cplusplus
32490extern "C"
32491#endif
32492char __gcov_init ();
32493int
32494main ()
32495{
32496return __gcov_init ();
32497 ;
32498 return 0;
32499}
32500_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032501if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000032502 ac_cv_lib_gcov___gcov_init=yes
32503else
cristy8b350f62009-11-15 23:12:43 +000032504 ac_cv_lib_gcov___gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000032505fi
cristy8b350f62009-11-15 23:12:43 +000032506rm -f core conftest.err conftest.$ac_objext \
32507 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032508LIBS=$ac_check_lib_save_LIBS
32509fi
cristy8b350f62009-11-15 23:12:43 +000032510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000032511$as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032512if test "x$ac_cv_lib_gcov___gcov_init" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000032513 cat >>confdefs.h <<_ACEOF
32514#define HAVE_LIBGCOV 1
32515_ACEOF
32516
32517 LIBS="-lgcov $LIBS"
32518
32519fi
32520
32521 case "$target_os" in
32522 darwin*)
32523 OSX_GCOV_LDFLAG="-Wl,-single_module"
32524 ;;
32525 *)
32526 OSX_GCOV_LDFLAG=""
32527 ;;
32528 esac
32529
32530 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
32531 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
32532 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
32533fi
32534
32535#
32536# Build library dependency list for libMagickCore
32537#
32538
32539MAGICK_LIBLTDL='' # Libltdl for build
32540MAGICK_API_LIBLTDL='' # libltdl for dependent application (API) build
32541MAGICK_LTDLDEPS='' # extra libltdl dependencies
32542if test "$with_ltdl" != 'no'
32543then
32544 if test \( "$with_included_ltdl" = 'no' -o "$enable_ltdl_convenience" = 'no' \) -o "$enable_ltdl_install" = 'yes'; then
32545 MAGICK_API_LIBLTDL='-lltdl'
32546 fi
32547 MAGICK_LIBLTDL=${LIBLTDL}
32548 MAGICK_LTDLDEPS=${LTDLDEPS}
32549fi
32550
32551
32552
32553if test "$with_modules" != 'no'; then
cristy2e8b51d2009-10-17 18:26:15 +000032554 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 +000032555else
cristy2e8b51d2009-10-17 18:26:15 +000032556 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 +000032557fi
32558
32559
32560#
32561# Remove extraneous spaces from output variables (asthetic)
32562#
32563X_CFLAGS=`echo $X_CFLAGS | sed -e 's/ */ /g'`
32564X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/ */ /g'`
32565X_LIBS=`echo $X_LIBS | sed -e 's/ */ /g'`
32566X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/ */ /g'`
32567
32568CC=`echo $CC | sed -e 's/ */ /g'`
32569CFLAGS=`echo $CFLAGS | sed -e 's/ */ /g'`
32570CPPFLAGS=`echo $CPPFLAGS | sed -e 's/ */ /g'`
32571CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ */ /g'`
32572DELEGATES=`echo $DELEGATES | sed -e 's/^ //g'`
32573DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/ */ /g'`
32574LDFLAGS=`echo $LDFLAGS | sed -e 's/ */ /g'`
32575TESTED_LIBS=`echo $LIBS | sed -e 's/ */ /g'`
32576MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'`
32577#LIBS=`echo $LIBS | sed -e 's/ */ /g'`
32578
32579# Pass only user-provided LIBS as "global" libraries
32580LIBS=$USER_LIBS
32581
32582#AC_SUBST(CPPFLAGS)
32583
32584#AC_SUBST(LDFLAGS)
32585#AC_SUBST(X_PRE_LIBS)
32586#AC_SUBST(X_LIBS)
32587#AC_SUBST(X_EXTRA_LIBS)
32588
32589MAGICK_CFLAGS=$CFLAGS
32590MAGICK_CXXFLAGS="$CXXFLAGS"
32591MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'`
32592MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'`
32593MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
32594MAGICK_LIBS="-lMagickCore $MAGICK_DEP_LIBS $MAGICK_API_LIBLTDL"
32595
32596
32597
32598
32599
32600
32601
32602
32603# Set configured scripts to executable.
32604ac_config_commands="$ac_config_commands default"
32605
32606ac_config_commands="$ac_config_commands MagickCore-config.in"
32607
32608ac_config_commands="$ac_config_commands Magick-config.in"
32609
32610ac_config_commands="$ac_config_commands MagickWand-config.in"
32611
32612ac_config_commands="$ac_config_commands Wand-config.in"
32613
32614ac_config_commands="$ac_config_commands Magick++-config.in"
32615
32616ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
32617
32618
cristy8b350f62009-11-15 23:12:43 +000032619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000032620$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Update ImageMagick configuration" >&5
cristy3ed852e2009-09-05 21:47:34 +000032622$as_echo "Update ImageMagick configuration" >&6; }
32623cat >confcache <<\_ACEOF
32624# This file is a shell script that caches the results of configure
32625# tests run on this system so they can be shared between configure
32626# scripts and configure runs, see configure's option --config-cache.
32627# It is not useful on other systems. If it contains results you don't
32628# want to keep, you may remove or edit it.
32629#
32630# config.status only pays attention to the cache file if you give it
32631# the --recheck option to rerun configure.
32632#
32633# `ac_cv_env_foo' variables (set or unset) will be overridden when
32634# loading this file, other *unset* `ac_cv_foo' will be assigned the
32635# following values.
32636
32637_ACEOF
32638
32639# The following way of writing the cache mishandles newlines in values,
32640# but we know of no workaround that is simple, portable, and efficient.
32641# So, we kill variables containing newlines.
32642# Ultrix sh set writes to stderr and can't be redirected directly,
32643# and sets the high bit in the cache file unless we assign to the vars.
32644(
32645 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
32646 eval ac_val=\$$ac_var
32647 case $ac_val in #(
32648 *${as_nl}*)
32649 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +000032650 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +000032651$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
32652 esac
32653 case $ac_var in #(
32654 _ | IFS | as_nl) ;; #(
32655 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +000032656 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +000032657 esac ;;
32658 esac
32659 done
32660
32661 (set) 2>&1 |
32662 case $as_nl`(ac_space=' '; set) 2>&1` in #(
32663 *${as_nl}ac_space=\ *)
cristy8b350f62009-11-15 23:12:43 +000032664 # `set' does not quote correctly, so add quotes: double-quote
32665 # substitution turns \\\\ into \\, and sed turns \\ into \.
cristy3ed852e2009-09-05 21:47:34 +000032666 sed -n \
32667 "s/'/'\\\\''/g;
32668 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
32669 ;; #(
32670 *)
32671 # `set' quotes correctly as required by POSIX, so do not add quotes.
32672 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
32673 ;;
32674 esac |
32675 sort
32676) |
32677 sed '
32678 /^ac_cv_env_/b end
32679 t clear
32680 :clear
32681 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
32682 t end
32683 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
32684 :end' >>confcache
32685if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
32686 if test -w "$cache_file"; then
32687 test "x$cache_file" != "x/dev/null" &&
cristy8b350f62009-11-15 23:12:43 +000032688 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000032689$as_echo "$as_me: updating cache $cache_file" >&6;}
32690 cat confcache >$cache_file
32691 else
cristy8b350f62009-11-15 23:12:43 +000032692 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000032693$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
32694 fi
32695fi
32696rm -f confcache
32697
32698test "x$prefix" = xNONE && prefix=$ac_default_prefix
32699# Let make expand exec_prefix.
32700test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
32701
32702DEFS=-DHAVE_CONFIG_H
32703
32704ac_libobjs=
32705ac_ltlibobjs=
32706for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
32707 # 1. Remove the extension, and $U if already installed.
32708 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
32709 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
32710 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
32711 # will be set to the directory where LIBOBJS objects are built.
cristy8b350f62009-11-15 23:12:43 +000032712 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
32713 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
cristy3ed852e2009-09-05 21:47:34 +000032714done
32715LIBOBJS=$ac_libobjs
32716
32717LTLIBOBJS=$ac_ltlibobjs
32718
32719
32720 if test -n "$EXEEXT"; then
32721 am__EXEEXT_TRUE=
32722 am__EXEEXT_FALSE='#'
32723else
32724 am__EXEEXT_TRUE='#'
32725 am__EXEEXT_FALSE=
32726fi
32727
32728if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032729 as_fn_error "conditional \"AMDEP\" was never defined.
32730Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032731fi
32732if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032733 as_fn_error "conditional \"am__fastdepCC\" was never defined.
32734Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032735fi
cristya0b81c32010-01-22 02:54:33 +000032736if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
32737 as_fn_error "conditional \"am__fastdepCC\" was never defined.
32738Usually this means the macro was only invoked conditionally." "$LINENO" 5
32739fi
cristy3ed852e2009-09-05 21:47:34 +000032740if 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 "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032745 as_fn_error "conditional \"WINGDI32_DELEGATE\" was never defined.
32746Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032747fi
32748if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032749 as_fn_error "conditional \"WIN32_NATIVE_BUILD\" was never defined.
32750Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032751fi
32752if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032753 as_fn_error "conditional \"CYGWIN_BUILD\" was never defined.
32754Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032755fi
32756if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032757 as_fn_error "conditional \"USING_CL\" was never defined.
32758Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032759fi
cristy18304f92009-11-22 15:48:26 +000032760if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
32761 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
32762Usually this means the macro was only invoked conditionally." "$LINENO" 5
32763fi
cristy3ed852e2009-09-05 21:47:34 +000032764if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032765 as_fn_error "conditional \"INSTALL_LTDL\" was never defined.
32766Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032767fi
32768if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032769 as_fn_error "conditional \"CONVENIENCE_LTDL\" was never defined.
32770Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032771fi
32772LT_CONFIG_H=config/config.h
32773
32774 _ltdl_libobjs=
32775 _ltdl_ltlibobjs=
32776 if test -n "$_LT_LIBOBJS"; then
32777 # Remove the extension.
32778 _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
32779 for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
32780 _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
32781 _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
32782 done
32783 fi
32784 ltdl_LIBOBJS=$_ltdl_libobjs
32785
32786 ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
32787
32788
cristyfa112112010-01-04 17:48:07 +000032789if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then
32790 as_fn_error "conditional \"WITH_SHARED_LIBS\" was never defined.
32791Usually this means the macro was only invoked conditionally." "$LINENO" 5
32792fi
cristy3ed852e2009-09-05 21:47:34 +000032793if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032794 as_fn_error "conditional \"WITH_MODULES\" was never defined.
32795Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032796fi
32797if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032798 as_fn_error "conditional \"WITH_LTDL\" was never defined.
32799Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032800fi
32801if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032802 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
32803Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032804fi
32805
32806if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032807 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
32808Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032809fi
32810if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032811 as_fn_error "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
32812Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032813fi
32814if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032815 as_fn_error "conditional \"HasUMEM\" was never defined.
32816Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032817fi
32818if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032819 as_fn_error "conditional \"BZLIB_DELEGATE\" was never defined.
32820Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032821fi
32822if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032823 as_fn_error "conditional \"X11_DELEGATE\" was never defined.
32824Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032825fi
32826if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032827 as_fn_error "conditional \"ZLIB_DELEGATE\" was never defined.
32828Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032829fi
32830if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032831 as_fn_error "conditional \"AUTOTRACE_DELEGATE\" was never defined.
32832Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032833fi
32834if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032835 as_fn_error "conditional \"DPS_DELEGATE\" was never defined.
32836Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032837fi
32838if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032839 as_fn_error "conditional \"DJVU_DELEGATE\" was never defined.
32840Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032841fi
32842if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032843 as_fn_error "conditional \"FFTW_DELEGATE\" was never defined.
32844Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032845fi
32846if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032847 as_fn_error "conditional \"FPX_DELEGATE\" was never defined.
32848Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032849fi
32850if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032851 as_fn_error "conditional \"FONTCONFIG_DELEGATE\" was never defined.
32852Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032853fi
32854if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032855 as_fn_error "conditional \"FREETYPE_DELEGATE\" was never defined.
32856Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032857fi
32858if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032859 as_fn_error "conditional \"GS_DELEGATE\" was never defined.
32860Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032861fi
32862if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032863 as_fn_error "conditional \"GVC_DELEGATE\" was never defined.
32864Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032865fi
32866if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032867 as_fn_error "conditional \"JBIG_DELEGATE\" was never defined.
32868Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032869fi
32870if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032871 as_fn_error "conditional \"JPEG_DELEGATE\" was never defined.
32872Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032873fi
32874if test -z "${JP2_DELEGATE_TRUE}" && test -z "${JP2_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032875 as_fn_error "conditional \"JP2_DELEGATE\" was never defined.
32876Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032877fi
32878if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032879 as_fn_error "conditional \"LCMS_DELEGATE\" was never defined.
32880Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032881fi
32882if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032883 as_fn_error "conditional \"LQR_DELEGATE\" was never defined.
32884Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032885fi
32886if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032887 as_fn_error "conditional \"OPENEXR_DELEGATE\" was never defined.
32888Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032889fi
32890if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032891 as_fn_error "conditional \"PNG_DELEGATE\" was never defined.
32892Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032893fi
32894if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032895 as_fn_error "conditional \"RSVG_DELEGATE\" was never defined.
32896Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032897fi
32898if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032899 as_fn_error "conditional \"CAIRO_DELEGATE\" was never defined.
32900Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032901fi
32902if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032903 as_fn_error "conditional \"TIFF_DELEGATE\" was never defined.
32904Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032905fi
32906if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032907 as_fn_error "conditional \"WMF_DELEGATE\" was never defined.
32908Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032909fi
32910if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032911 as_fn_error "conditional \"XML_DELEGATE\" was never defined.
32912Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032913fi
32914if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032915 as_fn_error "conditional \"RPM_DELEGATE\" was never defined.
32916Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032917fi
32918if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032919 as_fn_error "conditional \"P7ZIP_DELEGATE\" was never defined.
32920Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032921fi
32922if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032923 as_fn_error "conditional \"ZIP_DELEGATE\" was never defined.
32924Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032925fi
32926if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032927 as_fn_error "conditional \"WITH_PERL\" was never defined.
32928Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032929fi
32930if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032931 as_fn_error "conditional \"WITH_PERL_STATIC\" was never defined.
32932Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032933fi
32934if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032935 as_fn_error "conditional \"WITH_PERL_DYNAMIC\" was never defined.
32936Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032937fi
32938
32939: ${CONFIG_STATUS=./config.status}
32940ac_write_fail=0
32941ac_clean_files_save=$ac_clean_files
32942ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cristy8b350f62009-11-15 23:12:43 +000032943{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
cristy3ed852e2009-09-05 21:47:34 +000032944$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
cristy8b350f62009-11-15 23:12:43 +000032945as_write_fail=0
32946cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000032947#! $SHELL
32948# Generated by $as_me.
32949# Run this file to recreate the current configuration.
32950# Compiler output produced by configure, useful for debugging
32951# configure, is in config.log if it exists.
32952
32953debug=false
32954ac_cs_recheck=false
32955ac_cs_silent=false
cristy3ed852e2009-09-05 21:47:34 +000032956
cristy8b350f62009-11-15 23:12:43 +000032957SHELL=\${CONFIG_SHELL-$SHELL}
32958export SHELL
32959_ASEOF
32960cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
32961## -------------------- ##
32962## M4sh Initialization. ##
32963## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000032964
32965# Be more Bourne compatible
32966DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000032967if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000032968 emulate sh
32969 NULLCMD=:
32970 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
32971 # is contrary to our usage. Disable this feature.
32972 alias -g '${1+"$@"}'='"$@"'
32973 setopt NO_GLOB_SUBST
32974else
cristy8b350f62009-11-15 23:12:43 +000032975 case `(set -o) 2>/dev/null` in #(
32976 *posix*) :
32977 set -o posix ;; #(
32978 *) :
32979 ;;
cristy3ed852e2009-09-05 21:47:34 +000032980esac
cristy3ed852e2009-09-05 21:47:34 +000032981fi
32982
32983
cristy3ed852e2009-09-05 21:47:34 +000032984as_nl='
32985'
32986export as_nl
32987# Printing a long string crashes Solaris 7 /usr/bin/printf.
32988as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
32989as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
32990as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000032991# Prefer a ksh shell builtin over an external printf program on Solaris,
32992# but without wasting forks for bash or zsh.
32993if test -z "$BASH_VERSION$ZSH_VERSION" \
32994 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
32995 as_echo='print -r --'
32996 as_echo_n='print -rn --'
32997elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000032998 as_echo='printf %s\n'
32999 as_echo_n='printf %s'
33000else
33001 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
33002 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
33003 as_echo_n='/usr/ucb/echo -n'
33004 else
33005 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
33006 as_echo_n_body='eval
33007 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000033008 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000033009 *"$as_nl"*)
33010 expr "X$arg" : "X\\(.*\\)$as_nl";
33011 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
33012 esac;
33013 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
33014 '
33015 export as_echo_n_body
33016 as_echo_n='sh -c $as_echo_n_body as_echo'
33017 fi
33018 export as_echo_body
33019 as_echo='sh -c $as_echo_body as_echo'
33020fi
33021
33022# The user is always right.
33023if test "${PATH_SEPARATOR+set}" != set; then
33024 PATH_SEPARATOR=:
33025 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
33026 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
33027 PATH_SEPARATOR=';'
33028 }
33029fi
33030
cristy3ed852e2009-09-05 21:47:34 +000033031
33032# IFS
33033# We need space, tab and new line, in precisely that order. Quoting is
33034# there to prevent editors from complaining about space-tab.
33035# (If _AS_PATH_WALK were called with IFS unset, it would disable word
33036# splitting by setting IFS to empty value.)
33037IFS=" "" $as_nl"
33038
33039# Find who we are. Look in the path if we contain no directory separator.
cristy8b350f62009-11-15 23:12:43 +000033040case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000033041 *[\\/]* ) as_myself=$0 ;;
33042 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33043for as_dir in $PATH
33044do
33045 IFS=$as_save_IFS
33046 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033047 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
33048 done
cristy3ed852e2009-09-05 21:47:34 +000033049IFS=$as_save_IFS
33050
33051 ;;
33052esac
33053# We did not find ourselves, most probably we were run as `sh COMMAND'
33054# in which case we are not to be found in the path.
33055if test "x$as_myself" = x; then
33056 as_myself=$0
33057fi
33058if test ! -f "$as_myself"; then
33059 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +000033060 exit 1
cristy3ed852e2009-09-05 21:47:34 +000033061fi
33062
cristy8b350f62009-11-15 23:12:43 +000033063# Unset variables that we do not need and which cause bugs (e.g. in
33064# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
33065# suppresses any "Segmentation fault" message there. '((' could
33066# trigger a bug in pdksh 5.2.14.
33067for as_var in BASH_ENV ENV MAIL MAILPATH
33068do eval test x\${$as_var+set} = xset \
33069 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +000033070done
33071PS1='$ '
33072PS2='> '
33073PS4='+ '
33074
33075# NLS nuisances.
33076LC_ALL=C
33077export LC_ALL
33078LANGUAGE=C
33079export LANGUAGE
33080
cristy8b350f62009-11-15 23:12:43 +000033081# CDPATH.
33082(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
33083
33084
33085# as_fn_error ERROR [LINENO LOG_FD]
33086# ---------------------------------
33087# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
33088# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
33089# script with status $?, using 1 if that was 0.
33090as_fn_error ()
33091{
33092 as_status=$?; test $as_status -eq 0 && as_status=1
33093 if test "$3"; then
33094 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
33095 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
33096 fi
33097 $as_echo "$as_me: error: $1" >&2
33098 as_fn_exit $as_status
33099} # as_fn_error
33100
33101
33102# as_fn_set_status STATUS
33103# -----------------------
33104# Set $? to STATUS, without forking.
33105as_fn_set_status ()
33106{
33107 return $1
33108} # as_fn_set_status
33109
33110# as_fn_exit STATUS
33111# -----------------
33112# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
33113as_fn_exit ()
33114{
33115 set +e
33116 as_fn_set_status $1
33117 exit $1
33118} # as_fn_exit
33119
33120# as_fn_unset VAR
33121# ---------------
33122# Portably unset VAR.
33123as_fn_unset ()
33124{
33125 { eval $1=; unset $1;}
33126}
33127as_unset=as_fn_unset
33128# as_fn_append VAR VALUE
33129# ----------------------
33130# Append the text in VALUE to the end of the definition contained in VAR. Take
33131# advantage of any shell optimizations that allow amortized linear growth over
33132# repeated appends, instead of the typical quadratic growth present in naive
33133# implementations.
33134if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
33135 eval 'as_fn_append ()
33136 {
33137 eval $1+=\$2
33138 }'
33139else
33140 as_fn_append ()
33141 {
33142 eval $1=\$$1\$2
33143 }
33144fi # as_fn_append
33145
33146# as_fn_arith ARG...
33147# ------------------
33148# Perform arithmetic evaluation on the ARGs, and store the result in the
33149# global $as_val. Take advantage of shells that can avoid forks. The arguments
33150# must be portable across $(()) and expr.
33151if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
33152 eval 'as_fn_arith ()
33153 {
33154 as_val=$(( $* ))
33155 }'
33156else
33157 as_fn_arith ()
33158 {
33159 as_val=`expr "$@" || test $? -eq 1`
33160 }
33161fi # as_fn_arith
33162
33163
cristy3ed852e2009-09-05 21:47:34 +000033164if expr a : '\(a\)' >/dev/null 2>&1 &&
33165 test "X`expr 00001 : '.*\(...\)'`" = X001; then
33166 as_expr=expr
33167else
33168 as_expr=false
33169fi
33170
33171if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
33172 as_basename=basename
33173else
33174 as_basename=false
33175fi
33176
cristy8b350f62009-11-15 23:12:43 +000033177if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
33178 as_dirname=dirname
33179else
33180 as_dirname=false
33181fi
cristy3ed852e2009-09-05 21:47:34 +000033182
cristy3ed852e2009-09-05 21:47:34 +000033183as_me=`$as_basename -- "$0" ||
33184$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
33185 X"$0" : 'X\(//\)$' \| \
33186 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
33187$as_echo X/"$0" |
33188 sed '/^.*\/\([^/][^/]*\)\/*$/{
33189 s//\1/
33190 q
33191 }
33192 /^X\/\(\/\/\)$/{
33193 s//\1/
33194 q
33195 }
33196 /^X\/\(\/\).*/{
33197 s//\1/
33198 q
33199 }
33200 s/.*/./; q'`
33201
cristy8b350f62009-11-15 23:12:43 +000033202# Avoid depending upon Character Ranges.
33203as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33204as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
33205as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33206as_cr_digits='0123456789'
33207as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +000033208
33209ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +000033210case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +000033211-n*)
cristy8b350f62009-11-15 23:12:43 +000033212 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +000033213 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +000033214 xy) ECHO_C='\c';;
33215 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
33216 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +000033217 esac;;
33218*)
33219 ECHO_N='-n';;
33220esac
cristy3ed852e2009-09-05 21:47:34 +000033221
33222rm -f conf$$ conf$$.exe conf$$.file
33223if test -d conf$$.dir; then
33224 rm -f conf$$.dir/conf$$.file
33225else
33226 rm -f conf$$.dir
33227 mkdir conf$$.dir 2>/dev/null
33228fi
33229if (echo >conf$$.file) 2>/dev/null; then
33230 if ln -s conf$$.file conf$$ 2>/dev/null; then
33231 as_ln_s='ln -s'
33232 # ... but there are two gotchas:
33233 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
33234 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
33235 # In both cases, we have to default to `cp -p'.
33236 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
33237 as_ln_s='cp -p'
33238 elif ln conf$$.file conf$$ 2>/dev/null; then
33239 as_ln_s=ln
33240 else
33241 as_ln_s='cp -p'
33242 fi
33243else
33244 as_ln_s='cp -p'
33245fi
33246rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
33247rmdir conf$$.dir 2>/dev/null
33248
cristy8b350f62009-11-15 23:12:43 +000033249
33250# as_fn_mkdir_p
33251# -------------
33252# Create "$as_dir" as a directory, including parents if necessary.
33253as_fn_mkdir_p ()
33254{
33255
33256 case $as_dir in #(
33257 -*) as_dir=./$as_dir;;
33258 esac
33259 test -d "$as_dir" || eval $as_mkdir_p || {
33260 as_dirs=
33261 while :; do
33262 case $as_dir in #(
33263 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
33264 *) as_qdir=$as_dir;;
33265 esac
33266 as_dirs="'$as_qdir' $as_dirs"
33267 as_dir=`$as_dirname -- "$as_dir" ||
33268$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33269 X"$as_dir" : 'X\(//\)[^/]' \| \
33270 X"$as_dir" : 'X\(//\)$' \| \
33271 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
33272$as_echo X"$as_dir" |
33273 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33274 s//\1/
33275 q
33276 }
33277 /^X\(\/\/\)[^/].*/{
33278 s//\1/
33279 q
33280 }
33281 /^X\(\/\/\)$/{
33282 s//\1/
33283 q
33284 }
33285 /^X\(\/\).*/{
33286 s//\1/
33287 q
33288 }
33289 s/.*/./; q'`
33290 test -d "$as_dir" && break
33291 done
33292 test -z "$as_dirs" || eval "mkdir $as_dirs"
33293 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
33294
33295
33296} # as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000033297if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000033298 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +000033299else
33300 test -d ./-p && rmdir ./-p
33301 as_mkdir_p=false
33302fi
33303
33304if test -x / >/dev/null 2>&1; then
33305 as_test_x='test -x'
33306else
33307 if ls -dL / >/dev/null 2>&1; then
33308 as_ls_L_option=L
33309 else
33310 as_ls_L_option=
33311 fi
33312 as_test_x='
33313 eval sh -c '\''
33314 if test -d "$1"; then
33315 test -d "$1/.";
33316 else
cristy8b350f62009-11-15 23:12:43 +000033317 case $1 in #(
cristy3ed852e2009-09-05 21:47:34 +000033318 -*)set "./$1";;
33319 esac;
cristy8b350f62009-11-15 23:12:43 +000033320 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
cristy3ed852e2009-09-05 21:47:34 +000033321 ???[sx]*):;;*)false;;esac;fi
33322 '\'' sh
33323 '
33324fi
33325as_executable_p=$as_test_x
33326
33327# Sed expression to map a string onto a valid CPP name.
33328as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
33329
33330# Sed expression to map a string onto a valid variable name.
33331as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
33332
33333
33334exec 6>&1
cristy8b350f62009-11-15 23:12:43 +000033335## ----------------------------------- ##
33336## Main body of $CONFIG_STATUS script. ##
33337## ----------------------------------- ##
33338_ASEOF
33339test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000033340
cristy8b350f62009-11-15 23:12:43 +000033341cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33342# Save the log message, to keep $0 and so on meaningful, and to
cristy3ed852e2009-09-05 21:47:34 +000033343# report actual input values of CONFIG_FILES etc. instead of their
33344# values after options handling.
33345ac_log="
cristy664b8d72010-05-17 13:53:36 +000033346This file was extended by ImageMagick $as_me 6.6.2, which was
cristycd4c5312009-11-22 01:19:08 +000033347generated by GNU Autoconf 2.65. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +000033348
33349 CONFIG_FILES = $CONFIG_FILES
33350 CONFIG_HEADERS = $CONFIG_HEADERS
33351 CONFIG_LINKS = $CONFIG_LINKS
33352 CONFIG_COMMANDS = $CONFIG_COMMANDS
33353 $ $0 $@
33354
33355on `(hostname || uname -n) 2>/dev/null | sed 1q`
33356"
33357
33358_ACEOF
33359
33360case $ac_config_files in *"
33361"*) set x $ac_config_files; shift; ac_config_files=$*;;
33362esac
33363
33364case $ac_config_headers in *"
33365"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
33366esac
33367
33368
33369cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33370# Files that config.status was made for.
33371config_files="$ac_config_files"
33372config_headers="$ac_config_headers"
33373config_commands="$ac_config_commands"
33374
33375_ACEOF
33376
33377cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33378ac_cs_usage="\
cristy8b350f62009-11-15 23:12:43 +000033379\`$as_me' instantiates files and other configuration actions
33380from templates according to the current configuration. Unless the files
33381and actions are specified as TAGs, all are instantiated by default.
cristy3ed852e2009-09-05 21:47:34 +000033382
cristy8b350f62009-11-15 23:12:43 +000033383Usage: $0 [OPTION]... [TAG]...
cristy3ed852e2009-09-05 21:47:34 +000033384
33385 -h, --help print this help, then exit
33386 -V, --version print version number and configuration settings, then exit
cristycd4c5312009-11-22 01:19:08 +000033387 --config print configuration, then exit
cristy3ed852e2009-09-05 21:47:34 +000033388 -q, --quiet, --silent
33389 do not print progress messages
33390 -d, --debug don't remove temporary files
33391 --recheck update $as_me by reconfiguring in the same conditions
33392 --file=FILE[:TEMPLATE]
33393 instantiate the configuration file FILE
33394 --header=FILE[:TEMPLATE]
33395 instantiate the configuration header FILE
33396
33397Configuration files:
33398$config_files
33399
33400Configuration headers:
33401$config_headers
33402
33403Configuration commands:
33404$config_commands
33405
cristy8b350f62009-11-15 23:12:43 +000033406Report bugs to <http://www.imagemagick.org>."
cristy3ed852e2009-09-05 21:47:34 +000033407
33408_ACEOF
33409cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristycd4c5312009-11-22 01:19:08 +000033410ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
cristy3ed852e2009-09-05 21:47:34 +000033411ac_cs_version="\\
cristy664b8d72010-05-17 13:53:36 +000033412ImageMagick config.status 6.6.2
cristycd4c5312009-11-22 01:19:08 +000033413configured by $0, generated by GNU Autoconf 2.65,
33414 with options \\"\$ac_cs_config\\"
cristy3ed852e2009-09-05 21:47:34 +000033415
cristy8b350f62009-11-15 23:12:43 +000033416Copyright (C) 2009 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +000033417This config.status script is free software; the Free Software Foundation
33418gives unlimited permission to copy, distribute and modify it."
33419
33420ac_pwd='$ac_pwd'
33421srcdir='$srcdir'
33422INSTALL='$INSTALL'
33423MKDIR_P='$MKDIR_P'
33424AWK='$AWK'
33425test -n "\$AWK" || AWK=awk
33426_ACEOF
33427
33428cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33429# The default lists apply if the user does not specify any file.
33430ac_need_defaults=:
33431while test $# != 0
33432do
33433 case $1 in
33434 --*=*)
33435 ac_option=`expr "X$1" : 'X\([^=]*\)='`
33436 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
33437 ac_shift=:
33438 ;;
33439 *)
33440 ac_option=$1
33441 ac_optarg=$2
33442 ac_shift=shift
33443 ;;
33444 esac
33445
33446 case $ac_option in
33447 # Handling of the options.
33448 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
33449 ac_cs_recheck=: ;;
33450 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
33451 $as_echo "$ac_cs_version"; exit ;;
cristycd4c5312009-11-22 01:19:08 +000033452 --config | --confi | --conf | --con | --co | --c )
33453 $as_echo "$ac_cs_config"; exit ;;
cristy3ed852e2009-09-05 21:47:34 +000033454 --debug | --debu | --deb | --de | --d | -d )
33455 debug=: ;;
33456 --file | --fil | --fi | --f )
33457 $ac_shift
33458 case $ac_optarg in
33459 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33460 esac
cristy8b350f62009-11-15 23:12:43 +000033461 as_fn_append CONFIG_FILES " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000033462 ac_need_defaults=false;;
33463 --header | --heade | --head | --hea )
33464 $ac_shift
33465 case $ac_optarg in
33466 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33467 esac
cristy8b350f62009-11-15 23:12:43 +000033468 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000033469 ac_need_defaults=false;;
33470 --he | --h)
33471 # Conflict between --help and --header
cristy8b350f62009-11-15 23:12:43 +000033472 as_fn_error "ambiguous option: \`$1'
33473Try \`$0 --help' for more information.";;
cristy3ed852e2009-09-05 21:47:34 +000033474 --help | --hel | -h )
33475 $as_echo "$ac_cs_usage"; exit ;;
33476 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
33477 | -silent | --silent | --silen | --sile | --sil | --si | --s)
33478 ac_cs_silent=: ;;
33479
33480 # This is an error.
cristy8b350f62009-11-15 23:12:43 +000033481 -*) as_fn_error "unrecognized option: \`$1'
33482Try \`$0 --help' for more information." ;;
cristy3ed852e2009-09-05 21:47:34 +000033483
cristy8b350f62009-11-15 23:12:43 +000033484 *) as_fn_append ac_config_targets " $1"
cristy3ed852e2009-09-05 21:47:34 +000033485 ac_need_defaults=false ;;
33486
33487 esac
33488 shift
33489done
33490
33491ac_configure_extra_args=
33492
33493if $ac_cs_silent; then
33494 exec 6>/dev/null
33495 ac_configure_extra_args="$ac_configure_extra_args --silent"
33496fi
33497
33498_ACEOF
33499cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33500if \$ac_cs_recheck; then
33501 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
33502 shift
33503 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
33504 CONFIG_SHELL='$SHELL'
33505 export CONFIG_SHELL
33506 exec "\$@"
33507fi
33508
33509_ACEOF
33510cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33511exec 5>>config.log
33512{
33513 echo
33514 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
33515## Running $as_me. ##
33516_ASBOX
33517 $as_echo "$ac_log"
33518} >&5
33519
33520_ACEOF
33521cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33522#
33523# INIT-COMMANDS
33524#
33525PACKAGE="$PACKAGE"
33526AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
33527
33528
33529# The HP-UX ksh and POSIX shell print the target directory to stdout
33530# if CDPATH is set.
33531(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
33532
33533sed_quote_subst='$sed_quote_subst'
33534double_quote_subst='$double_quote_subst'
33535delay_variable_subst='$delay_variable_subst'
cristy18304f92009-11-22 15:48:26 +000033536SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
33537Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
33538GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
33539EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
33540FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
33541LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
33542macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
33543macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
33544AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
33545DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
33546OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
33547enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
33548enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
33549pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
33550enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
33551host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
33552host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
33553host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
33554build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
33555build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
33556build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
33557NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
33558LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
33559max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
33560ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
33561exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
33562lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
33563lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
33564lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
33565reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
33566reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33567deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
33568file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
33569AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
33570AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
33571STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
33572RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
33573old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33574old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33575old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33576CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
33577CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
33578compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
33579GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
33580lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
33581lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
33582lt_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"`'
33583lt_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"`'
33584objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
33585SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
33586ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
33587MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
33588lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
33589lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
33590lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
33591lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
33592lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
33593need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
33594DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
33595NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
33596LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
33597OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
33598OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
33599libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
33600shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33601extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33602archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
33603enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
33604export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
33605whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
33606compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
33607old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33608old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33609archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33610archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33611module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33612module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33613with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
33614allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
33615no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
33616hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
33617hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
33618hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
33619hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
33620hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
33621hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
33622hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
33623hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
33624inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
33625link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
33626fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
33627always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
33628export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33629exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
33630include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
33631prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33632file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
33633variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
33634need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
33635need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
33636version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
33637runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
33638shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
33639shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
33640libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
33641library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
33642soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
33643postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33644postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33645finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33646finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
33647hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
33648sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
33649sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
33650hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
33651enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
33652enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
33653enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
33654old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
33655striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
33656compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
33657predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
33658postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
33659predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
33660postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
33661compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
33662LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33663old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33664compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33665GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33666lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33667lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33668lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33669lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33670lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33671archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33672enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33673export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33674whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33675compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33676old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33677old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33678archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33679archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33680module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33681module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33682with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33683allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33684no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33685hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33686hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33687hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33688hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33689hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33690hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33691hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33692hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33693inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33694link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33695fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33696always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33697export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33698exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33699include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33700prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33701file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33702hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33703compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33704predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33705postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33706predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33707postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33708compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
cristy3ed852e2009-09-05 21:47:34 +000033709
33710LTCC='$LTCC'
33711LTCFLAGS='$LTCFLAGS'
33712compiler='$compiler_DEFAULT'
33713
33714# Quote evaled strings.
33715for var in SED \
33716GREP \
33717EGREP \
33718FGREP \
33719LD \
33720NM \
33721LN_S \
33722lt_SP2NL \
33723lt_NL2SP \
33724reload_flag \
33725deplibs_check_method \
33726file_magic_cmd \
33727AR \
33728AR_FLAGS \
33729STRIP \
33730RANLIB \
33731CC \
33732CFLAGS \
33733compiler \
33734lt_cv_sys_global_symbol_pipe \
33735lt_cv_sys_global_symbol_to_cdecl \
33736lt_cv_sys_global_symbol_to_c_name_address \
33737lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
cristy18304f92009-11-22 15:48:26 +000033738SHELL \
33739ECHO \
cristy3ed852e2009-09-05 21:47:34 +000033740lt_prog_compiler_no_builtin_flag \
33741lt_prog_compiler_wl \
33742lt_prog_compiler_pic \
33743lt_prog_compiler_static \
33744lt_cv_prog_compiler_c_o \
33745need_locks \
33746DSYMUTIL \
33747NMEDIT \
33748LIPO \
33749OTOOL \
33750OTOOL64 \
33751shrext_cmds \
33752export_dynamic_flag_spec \
33753whole_archive_flag_spec \
33754compiler_needs_object \
33755with_gnu_ld \
33756allow_undefined_flag \
33757no_undefined_flag \
33758hardcode_libdir_flag_spec \
33759hardcode_libdir_flag_spec_ld \
33760hardcode_libdir_separator \
33761fix_srcfile_path \
33762exclude_expsyms \
33763include_expsyms \
33764file_list_spec \
33765variables_saved_for_relink \
33766libname_spec \
33767library_names_spec \
33768soname_spec \
33769finish_eval \
33770old_striplib \
33771striplib \
33772compiler_lib_search_dirs \
33773predep_objects \
33774postdep_objects \
33775predeps \
33776postdeps \
33777compiler_lib_search_path \
33778LD_CXX \
33779compiler_CXX \
33780lt_prog_compiler_no_builtin_flag_CXX \
33781lt_prog_compiler_wl_CXX \
33782lt_prog_compiler_pic_CXX \
33783lt_prog_compiler_static_CXX \
33784lt_cv_prog_compiler_c_o_CXX \
33785export_dynamic_flag_spec_CXX \
33786whole_archive_flag_spec_CXX \
33787compiler_needs_object_CXX \
33788with_gnu_ld_CXX \
33789allow_undefined_flag_CXX \
33790no_undefined_flag_CXX \
33791hardcode_libdir_flag_spec_CXX \
33792hardcode_libdir_flag_spec_ld_CXX \
33793hardcode_libdir_separator_CXX \
33794fix_srcfile_path_CXX \
33795exclude_expsyms_CXX \
33796include_expsyms_CXX \
33797file_list_spec_CXX \
33798compiler_lib_search_dirs_CXX \
33799predep_objects_CXX \
33800postdep_objects_CXX \
33801predeps_CXX \
33802postdeps_CXX \
33803compiler_lib_search_path_CXX; do
cristy18304f92009-11-22 15:48:26 +000033804 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
cristy3ed852e2009-09-05 21:47:34 +000033805 *[\\\\\\\`\\"\\\$]*)
cristy18304f92009-11-22 15:48:26 +000033806 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
cristy3ed852e2009-09-05 21:47:34 +000033807 ;;
33808 *)
33809 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
33810 ;;
33811 esac
33812done
33813
33814# Double-quote double-evaled strings.
33815for var in reload_cmds \
33816old_postinstall_cmds \
33817old_postuninstall_cmds \
33818old_archive_cmds \
33819extract_expsyms_cmds \
33820old_archive_from_new_cmds \
33821old_archive_from_expsyms_cmds \
33822archive_cmds \
33823archive_expsym_cmds \
33824module_cmds \
33825module_expsym_cmds \
33826export_symbols_cmds \
33827prelink_cmds \
33828postinstall_cmds \
33829postuninstall_cmds \
33830finish_cmds \
33831sys_lib_search_path_spec \
33832sys_lib_dlsearch_path_spec \
33833old_archive_cmds_CXX \
33834old_archive_from_new_cmds_CXX \
33835old_archive_from_expsyms_cmds_CXX \
33836archive_cmds_CXX \
33837archive_expsym_cmds_CXX \
33838module_cmds_CXX \
33839module_expsym_cmds_CXX \
33840export_symbols_cmds_CXX \
33841prelink_cmds_CXX; do
cristy18304f92009-11-22 15:48:26 +000033842 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
cristy3ed852e2009-09-05 21:47:34 +000033843 *[\\\\\\\`\\"\\\$]*)
cristy18304f92009-11-22 15:48:26 +000033844 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 +000033845 ;;
33846 *)
33847 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
33848 ;;
33849 esac
33850done
33851
cristy18304f92009-11-22 15:48:26 +000033852# Fix-up fallback echo if it was mangled by the above quoting rules.
33853case \$lt_ECHO in
33854*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
33855 ;;
33856esac
33857
cristy3ed852e2009-09-05 21:47:34 +000033858ac_aux_dir='$ac_aux_dir'
33859xsi_shell='$xsi_shell'
33860lt_shell_append='$lt_shell_append'
33861
33862# See if we are running on zsh, and set the options which allow our
33863# commands through without removal of \ escapes INIT.
33864if test -n "\${ZSH_VERSION+set}" ; then
33865 setopt NO_GLOB_SUBST
33866fi
33867
33868
33869 PACKAGE='$PACKAGE'
33870 VERSION='$VERSION'
33871 TIMESTAMP='$TIMESTAMP'
33872 RM='$RM'
33873 ofile='$ofile'
33874
33875
33876
33877
33878
33879
33880_ACEOF
33881
33882cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33883
33884# Handling of arguments.
33885for ac_config_target in $ac_config_targets
33886do
33887 case $ac_config_target in
33888 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
33889 "magick/magick-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS magick/magick-config.h" ;;
33890 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
33891 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
33892 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
33893 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
33894 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
cristy430a7312010-01-21 20:44:04 +000033895 "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;;
cristy3ed852e2009-09-05 21:47:34 +000033896 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
33897 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
33898 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
33899 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
33900 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
33901 "magick/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES magick/ImageMagick.pc" ;;
33902 "Magick++/lib/ImageMagick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/ImageMagick++.pc" ;;
33903 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
33904 "magick/Magick-config") CONFIG_FILES="$CONFIG_FILES magick/Magick-config" ;;
33905 "magick/MagickCore-config") CONFIG_FILES="$CONFIG_FILES magick/MagickCore-config" ;;
33906 "magick/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES magick/MagickCore.pc" ;;
33907 "magick/version.h") CONFIG_FILES="$CONFIG_FILES magick/version.h" ;;
33908 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
33909 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
33910 "PerlMagick/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/Magick.pm" ;;
33911 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
33912 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
33913 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
33914 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
33915 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
33916 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
33917 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
33918 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
33919 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
33920 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
33921 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
33922 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
33923 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
33924 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
33925 "wand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES wand/MagickWand-config" ;;
33926 "wand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES wand/MagickWand.pc" ;;
33927 "wand/Wand-config") CONFIG_FILES="$CONFIG_FILES wand/Wand-config" ;;
33928 "wand/Wand.pc") CONFIG_FILES="$CONFIG_FILES wand/Wand.pc" ;;
33929 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
33930 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
33931 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
33932 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
33933 "Magick-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick-config.in" ;;
33934 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
33935 "Wand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Wand-config.in" ;;
33936 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
33937 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
33938
cristy8b350f62009-11-15 23:12:43 +000033939 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000033940 esac
33941done
33942
33943
33944# If the user did not use the arguments to specify the items to instantiate,
33945# then the envvar interface is used. Set only those that are not.
33946# We use the long form for the default assignment because of an extremely
33947# bizarre bug on SunOS 4.1.3.
33948if $ac_need_defaults; then
33949 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
33950 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
33951 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
33952fi
33953
33954# Have a temporary directory for convenience. Make it in the build tree
33955# simply because there is no reason against having it here, and in addition,
33956# creating and moving files from /tmp can sometimes cause problems.
33957# Hook for its removal unless debugging.
33958# Note that there is a small window in which the directory will not be cleaned:
33959# after its creation but before its name has been assigned to `$tmp'.
33960$debug ||
33961{
33962 tmp=
33963 trap 'exit_status=$?
33964 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
33965' 0
cristy8b350f62009-11-15 23:12:43 +000033966 trap 'as_fn_exit 1' 1 2 13 15
cristy3ed852e2009-09-05 21:47:34 +000033967}
33968# Create a (secure) tmp directory for tmp files.
33969
33970{
33971 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
33972 test -n "$tmp" && test -d "$tmp"
33973} ||
33974{
33975 tmp=./conf$$-$RANDOM
33976 (umask 077 && mkdir "$tmp")
cristy8b350f62009-11-15 23:12:43 +000033977} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033978
33979# Set up the scripts for CONFIG_FILES section.
33980# No need to generate them if there are no CONFIG_FILES.
33981# This happens for instance with `./config.status config.h'.
33982if test -n "$CONFIG_FILES"; then
33983
33984
cristy8b350f62009-11-15 23:12:43 +000033985ac_cr=`echo X | tr X '\015'`
33986# On cygwin, bash can eat \r inside `` if the user requested igncr.
33987# But we know of no other shell where ac_cr would be empty at this
33988# point, so we can use a bashism as a fallback.
33989if test "x$ac_cr" = x; then
33990 eval ac_cr=\$\'\\r\'
33991fi
cristy3ed852e2009-09-05 21:47:34 +000033992ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
33993if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
cristy8b350f62009-11-15 23:12:43 +000033994 ac_cs_awk_cr='\r'
cristy3ed852e2009-09-05 21:47:34 +000033995else
33996 ac_cs_awk_cr=$ac_cr
33997fi
33998
33999echo 'BEGIN {' >"$tmp/subs1.awk" &&
34000_ACEOF
34001
34002
34003{
34004 echo "cat >conf$$subs.awk <<_ACEOF" &&
34005 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
34006 echo "_ACEOF"
34007} >conf$$subs.sh ||
cristy8b350f62009-11-15 23:12:43 +000034008 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034009ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
34010ac_delim='%!_!# '
34011for ac_last_try in false false false false false :; do
34012 . ./conf$$subs.sh ||
cristy8b350f62009-11-15 23:12:43 +000034013 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034014
34015 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
34016 if test $ac_delim_n = $ac_delim_num; then
34017 break
34018 elif $ac_last_try; then
cristy8b350f62009-11-15 23:12:43 +000034019 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034020 else
34021 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34022 fi
34023done
34024rm -f conf$$subs.sh
34025
34026cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34027cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
34028_ACEOF
34029sed -n '
34030h
34031s/^/S["/; s/!.*/"]=/
34032p
34033g
34034s/^[^!]*!//
34035:repl
34036t repl
34037s/'"$ac_delim"'$//
34038t delim
34039:nl
34040h
cristycd4c5312009-11-22 01:19:08 +000034041s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000034042t more1
34043s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
34044p
34045n
34046b repl
34047:more1
34048s/["\\]/\\&/g; s/^/"/; s/$/"\\/
34049p
34050g
34051s/.\{148\}//
34052t nl
34053:delim
34054h
cristycd4c5312009-11-22 01:19:08 +000034055s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000034056t more2
34057s/["\\]/\\&/g; s/^/"/; s/$/"/
34058p
34059b
34060:more2
34061s/["\\]/\\&/g; s/^/"/; s/$/"\\/
34062p
34063g
34064s/.\{148\}//
34065t delim
34066' <conf$$subs.awk | sed '
34067/^[^""]/{
34068 N
34069 s/\n//
34070}
34071' >>$CONFIG_STATUS || ac_write_fail=1
34072rm -f conf$$subs.awk
34073cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34074_ACAWK
34075cat >>"\$tmp/subs1.awk" <<_ACAWK &&
34076 for (key in S) S_is_set[key] = 1
34077 FS = ""
34078
34079}
34080{
34081 line = $ 0
34082 nfields = split(line, field, "@")
34083 substed = 0
34084 len = length(field[1])
34085 for (i = 2; i < nfields; i++) {
34086 key = field[i]
34087 keylen = length(key)
34088 if (S_is_set[key]) {
34089 value = S[key]
34090 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
34091 len += length(value) + length(field[++i])
34092 substed = 1
34093 } else
34094 len += 1 + keylen
34095 }
34096
34097 print line
34098}
34099
34100_ACAWK
34101_ACEOF
34102cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34103if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
34104 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
34105else
34106 cat
34107fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
cristy8b350f62009-11-15 23:12:43 +000034108 || as_fn_error "could not setup config files machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034109_ACEOF
34110
34111# VPATH may cause trouble with some makes, so we remove $(srcdir),
34112# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
34113# trailing colons and then remove the whole line if VPATH becomes empty
34114# (actually we leave an empty line to preserve line numbers).
34115if test "x$srcdir" = x.; then
34116 ac_vpsub='/^[ ]*VPATH[ ]*=/{
34117s/:*\$(srcdir):*/:/
34118s/:*\${srcdir}:*/:/
34119s/:*@srcdir@:*/:/
34120s/^\([^=]*=[ ]*\):*/\1/
34121s/:*$//
34122s/^[^=]*=[ ]*$//
34123}'
34124fi
34125
34126cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34127fi # test -n "$CONFIG_FILES"
34128
34129# Set up the scripts for CONFIG_HEADERS section.
34130# No need to generate them if there are no CONFIG_HEADERS.
34131# This happens for instance with `./config.status Makefile'.
34132if test -n "$CONFIG_HEADERS"; then
34133cat >"$tmp/defines.awk" <<\_ACAWK ||
34134BEGIN {
34135_ACEOF
34136
34137# Transform confdefs.h into an awk script `defines.awk', embedded as
34138# here-document in config.status, that substitutes the proper values into
34139# config.h.in to produce config.h.
34140
34141# Create a delimiter string that does not exist in confdefs.h, to ease
34142# handling of long lines.
34143ac_delim='%!_!# '
34144for ac_last_try in false false :; do
34145 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
34146 if test -z "$ac_t"; then
34147 break
34148 elif $ac_last_try; then
cristy8b350f62009-11-15 23:12:43 +000034149 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034150 else
34151 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34152 fi
34153done
34154
34155# For the awk script, D is an array of macro values keyed by name,
34156# likewise P contains macro parameters if any. Preserve backslash
34157# newline sequences.
34158
34159ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
34160sed -n '
34161s/.\{148\}/&'"$ac_delim"'/g
34162t rset
34163:rset
34164s/^[ ]*#[ ]*define[ ][ ]*/ /
34165t def
34166d
34167:def
34168s/\\$//
34169t bsnl
34170s/["\\]/\\&/g
34171s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
34172D["\1"]=" \3"/p
34173s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
34174d
34175:bsnl
34176s/["\\]/\\&/g
34177s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
34178D["\1"]=" \3\\\\\\n"\\/p
34179t cont
34180s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
34181t cont
34182d
34183:cont
34184n
34185s/.\{148\}/&'"$ac_delim"'/g
34186t clear
34187:clear
34188s/\\$//
34189t bsnlc
34190s/["\\]/\\&/g; s/^/"/; s/$/"/p
34191d
34192:bsnlc
34193s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
34194b cont
34195' <confdefs.h | sed '
34196s/'"$ac_delim"'/"\\\
34197"/g' >>$CONFIG_STATUS || ac_write_fail=1
34198
34199cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34200 for (key in D) D_is_set[key] = 1
34201 FS = ""
34202}
34203/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
34204 line = \$ 0
34205 split(line, arg, " ")
34206 if (arg[1] == "#") {
34207 defundef = arg[2]
34208 mac1 = arg[3]
34209 } else {
34210 defundef = substr(arg[1], 2)
34211 mac1 = arg[2]
34212 }
34213 split(mac1, mac2, "(") #)
34214 macro = mac2[1]
34215 prefix = substr(line, 1, index(line, defundef) - 1)
34216 if (D_is_set[macro]) {
34217 # Preserve the white space surrounding the "#".
34218 print prefix "define", macro P[macro] D[macro]
34219 next
34220 } else {
34221 # Replace #undef with comments. This is necessary, for example,
34222 # in the case of _POSIX_SOURCE, which is predefined and required
34223 # on some systems where configure will not decide to define it.
34224 if (defundef == "undef") {
34225 print "/*", prefix defundef, macro, "*/"
34226 next
34227 }
34228 }
34229}
34230{ print }
34231_ACAWK
34232_ACEOF
34233cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cristy8b350f62009-11-15 23:12:43 +000034234 as_fn_error "could not setup config headers machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034235fi # test -n "$CONFIG_HEADERS"
34236
34237
34238eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
34239shift
34240for ac_tag
34241do
34242 case $ac_tag in
34243 :[FHLC]) ac_mode=$ac_tag; continue;;
34244 esac
34245 case $ac_mode$ac_tag in
34246 :[FHL]*:*);;
cristy8b350f62009-11-15 23:12:43 +000034247 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000034248 :[FH]-) ac_tag=-:-;;
34249 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
34250 esac
34251 ac_save_IFS=$IFS
34252 IFS=:
34253 set x $ac_tag
34254 IFS=$ac_save_IFS
34255 shift
34256 ac_file=$1
34257 shift
34258
34259 case $ac_mode in
34260 :L) ac_source=$1;;
34261 :[FH])
34262 ac_file_inputs=
34263 for ac_f
34264 do
34265 case $ac_f in
34266 -) ac_f="$tmp/stdin";;
34267 *) # Look for the file first in the build tree, then in the source tree
34268 # (if the path is not absolute). The absolute path cannot be DOS-style,
34269 # because $ac_f cannot contain `:'.
34270 test -f "$ac_f" ||
34271 case $ac_f in
34272 [\\/$]*) false;;
34273 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
34274 esac ||
cristy8b350f62009-11-15 23:12:43 +000034275 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000034276 esac
34277 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
cristy8b350f62009-11-15 23:12:43 +000034278 as_fn_append ac_file_inputs " '$ac_f'"
cristy3ed852e2009-09-05 21:47:34 +000034279 done
34280
34281 # Let's still pretend it is `configure' which instantiates (i.e., don't
34282 # use $as_me), people would be surprised to read:
34283 # /* config.h. Generated by config.status. */
34284 configure_input='Generated from '`
34285 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
34286 `' by configure.'
34287 if test x"$ac_file" != x-; then
34288 configure_input="$ac_file. $configure_input"
cristy8b350f62009-11-15 23:12:43 +000034289 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000034290$as_echo "$as_me: creating $ac_file" >&6;}
34291 fi
34292 # Neutralize special characters interpreted by sed in replacement strings.
34293 case $configure_input in #(
34294 *\&* | *\|* | *\\* )
34295 ac_sed_conf_input=`$as_echo "$configure_input" |
34296 sed 's/[\\\\&|]/\\\\&/g'`;; #(
34297 *) ac_sed_conf_input=$configure_input;;
34298 esac
34299
34300 case $ac_tag in
34301 *:-:* | *:-) cat >"$tmp/stdin" \
cristy8b350f62009-11-15 23:12:43 +000034302 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000034303 esac
34304 ;;
34305 esac
34306
34307 ac_dir=`$as_dirname -- "$ac_file" ||
34308$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34309 X"$ac_file" : 'X\(//\)[^/]' \| \
34310 X"$ac_file" : 'X\(//\)$' \| \
34311 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
34312$as_echo X"$ac_file" |
34313 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34314 s//\1/
34315 q
34316 }
34317 /^X\(\/\/\)[^/].*/{
34318 s//\1/
34319 q
34320 }
34321 /^X\(\/\/\)$/{
34322 s//\1/
34323 q
34324 }
34325 /^X\(\/\).*/{
34326 s//\1/
34327 q
34328 }
34329 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000034330 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000034331 ac_builddir=.
34332
34333case "$ac_dir" in
34334.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
34335*)
34336 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
34337 # A ".." for each directory in $ac_dir_suffix.
34338 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
34339 case $ac_top_builddir_sub in
34340 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
34341 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
34342 esac ;;
34343esac
34344ac_abs_top_builddir=$ac_pwd
34345ac_abs_builddir=$ac_pwd$ac_dir_suffix
34346# for backward compatibility:
34347ac_top_builddir=$ac_top_build_prefix
34348
34349case $srcdir in
34350 .) # We are building in place.
34351 ac_srcdir=.
34352 ac_top_srcdir=$ac_top_builddir_sub
34353 ac_abs_top_srcdir=$ac_pwd ;;
34354 [\\/]* | ?:[\\/]* ) # Absolute name.
34355 ac_srcdir=$srcdir$ac_dir_suffix;
34356 ac_top_srcdir=$srcdir
34357 ac_abs_top_srcdir=$srcdir ;;
34358 *) # Relative name.
34359 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
34360 ac_top_srcdir=$ac_top_build_prefix$srcdir
34361 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
34362esac
34363ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
34364
34365
34366 case $ac_mode in
34367 :F)
34368 #
34369 # CONFIG_FILE
34370 #
34371
34372 case $INSTALL in
34373 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
34374 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
34375 esac
34376 ac_MKDIR_P=$MKDIR_P
34377 case $MKDIR_P in
34378 [\\/$]* | ?:[\\/]* ) ;;
34379 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
34380 esac
34381_ACEOF
34382
34383cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34384# If the template does not know about datarootdir, expand it.
34385# FIXME: This hack should be removed a few years after 2.60.
34386ac_datarootdir_hack=; ac_datarootdir_seen=
cristy3ed852e2009-09-05 21:47:34 +000034387ac_sed_dataroot='
34388/datarootdir/ {
34389 p
34390 q
34391}
34392/@datadir@/p
34393/@docdir@/p
34394/@infodir@/p
34395/@localedir@/p
cristy8b350f62009-11-15 23:12:43 +000034396/@mandir@/p'
cristy3ed852e2009-09-05 21:47:34 +000034397case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
34398*datarootdir*) ac_datarootdir_seen=yes;;
34399*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
cristy8b350f62009-11-15 23:12:43 +000034400 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
cristy3ed852e2009-09-05 21:47:34 +000034401$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
34402_ACEOF
34403cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34404 ac_datarootdir_hack='
34405 s&@datadir@&$datadir&g
34406 s&@docdir@&$docdir&g
34407 s&@infodir@&$infodir&g
34408 s&@localedir@&$localedir&g
34409 s&@mandir@&$mandir&g
cristy8b350f62009-11-15 23:12:43 +000034410 s&\\\${datarootdir}&$datarootdir&g' ;;
cristy3ed852e2009-09-05 21:47:34 +000034411esac
34412_ACEOF
34413
34414# Neutralize VPATH when `$srcdir' = `.'.
34415# Shell code in configure.ac might set extrasub.
34416# FIXME: do we really want to maintain this feature?
34417cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34418ac_sed_extra="$ac_vpsub
34419$extrasub
34420_ACEOF
34421cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34422:t
34423/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34424s|@configure_input@|$ac_sed_conf_input|;t t
34425s&@top_builddir@&$ac_top_builddir_sub&;t t
34426s&@top_build_prefix@&$ac_top_build_prefix&;t t
34427s&@srcdir@&$ac_srcdir&;t t
34428s&@abs_srcdir@&$ac_abs_srcdir&;t t
34429s&@top_srcdir@&$ac_top_srcdir&;t t
34430s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
34431s&@builddir@&$ac_builddir&;t t
34432s&@abs_builddir@&$ac_abs_builddir&;t t
34433s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
34434s&@INSTALL@&$ac_INSTALL&;t t
34435s&@MKDIR_P@&$ac_MKDIR_P&;t t
34436$ac_datarootdir_hack
34437"
34438eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
cristy8b350f62009-11-15 23:12:43 +000034439 || as_fn_error "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034440
34441test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
34442 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
34443 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
cristy8b350f62009-11-15 23:12:43 +000034444 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy3ed852e2009-09-05 21:47:34 +000034445which seems to be undefined. Please make sure it is defined." >&5
34446$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34447which seems to be undefined. Please make sure it is defined." >&2;}
34448
34449 rm -f "$tmp/stdin"
34450 case $ac_file in
34451 -) cat "$tmp/out" && rm -f "$tmp/out";;
34452 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
34453 esac \
cristy8b350f62009-11-15 23:12:43 +000034454 || as_fn_error "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034455 ;;
34456 :H)
34457 #
34458 # CONFIG_HEADER
34459 #
34460 if test x"$ac_file" != x-; then
34461 {
34462 $as_echo "/* $configure_input */" \
34463 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
34464 } >"$tmp/config.h" \
cristy8b350f62009-11-15 23:12:43 +000034465 || as_fn_error "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034466 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
cristy8b350f62009-11-15 23:12:43 +000034467 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000034468$as_echo "$as_me: $ac_file is unchanged" >&6;}
34469 else
34470 rm -f "$ac_file"
34471 mv "$tmp/config.h" "$ac_file" \
cristy8b350f62009-11-15 23:12:43 +000034472 || as_fn_error "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034473 fi
34474 else
34475 $as_echo "/* $configure_input */" \
34476 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
cristy8b350f62009-11-15 23:12:43 +000034477 || as_fn_error "could not create -" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034478 fi
34479# Compute "$ac_file"'s index in $config_headers.
34480_am_arg="$ac_file"
34481_am_stamp_count=1
34482for _am_header in $config_headers :; do
34483 case $_am_header in
34484 $_am_arg | $_am_arg:* )
34485 break ;;
34486 * )
34487 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
34488 esac
34489done
34490echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
34491$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34492 X"$_am_arg" : 'X\(//\)[^/]' \| \
34493 X"$_am_arg" : 'X\(//\)$' \| \
34494 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
34495$as_echo X"$_am_arg" |
34496 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34497 s//\1/
34498 q
34499 }
34500 /^X\(\/\/\)[^/].*/{
34501 s//\1/
34502 q
34503 }
34504 /^X\(\/\/\)$/{
34505 s//\1/
34506 q
34507 }
34508 /^X\(\/\).*/{
34509 s//\1/
34510 q
34511 }
34512 s/.*/./; q'`/stamp-h$_am_stamp_count
34513 ;;
34514
cristy8b350f62009-11-15 23:12:43 +000034515 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
cristy3ed852e2009-09-05 21:47:34 +000034516$as_echo "$as_me: executing $ac_file commands" >&6;}
34517 ;;
34518 esac
34519
34520
34521 case $ac_file$ac_mode in
34522 "magick/magick-config.h":C) ac_prefix_conf_OUT=`echo magick/magick-config.h`
34523ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
34524ac_prefix_conf_PKG=`echo MagickCore`
34525ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
34526ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
34527ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
34528if test ".$ac_prefix_conf_INP" = "."; then
34529 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
34530 case "$ac_file" in
34531 *.h) ac_prefix_conf_INP=$ac_file ;;
34532 *)
34533 esac
34534 test ".$ac_prefix_conf_INP" != "." && break
34535 done
34536fi
34537if test ".$ac_prefix_conf_INP" = "."; then
34538 case "$ac_prefix_conf_OUT" in
34539 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
34540 ;;
34541 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
34542 ;;
34543 *) ac_prefix_conf_INP=config.h
34544 ;;
34545 esac
34546fi
34547if test -z "$ac_prefix_conf_PKG" ; then
cristy8b350f62009-11-15 23:12:43 +000034548 as_fn_error "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034549else
34550 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
34551 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
34552 fi fi
cristy8b350f62009-11-15 23:12:43 +000034553 { $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 +000034554$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
34555 if test -f $ac_prefix_conf_INP ; then
34556 echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
34557 echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
cristy964cb7f2010-04-25 23:18:00 +000034558 echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix
34559 echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix
cristy3ed852e2009-09-05 21:47:34 +000034560 echo "#endif/" >>conftest.prefix
cristy964cb7f2010-04-25 23:18:00 +000034561 echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix
34562 echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix
cristy3ed852e2009-09-05 21:47:34 +000034563 echo "#endif/" >> conftest.prefix
34564 # now executing _script on _DEF input to create _OUT output file
34565 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
34566 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
34567 echo ' ' >>$tmp/pconfig.h
34568 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
34569
34570 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
34571 echo ' ' >>$tmp/pconfig.h
34572 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
34573 echo "#endif" >>$tmp/pconfig.h
34574 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000034575 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000034576$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
34577 else
34578 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
34579$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34580 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
34581 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
34582 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
34583$as_echo X"$ac_prefix_conf_OUT" |
34584 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34585 s//\1/
34586 q
34587 }
34588 /^X\(\/\/\)[^/].*/{
34589 s//\1/
34590 q
34591 }
34592 /^X\(\/\/\)$/{
34593 s//\1/
34594 q
34595 }
34596 /^X\(\/\).*/{
34597 s//\1/
34598 q
34599 }
34600 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000034601 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000034602 rm -f "$ac_prefix_conf_OUT"
34603 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
34604 fi
34605 cp conftest.prefix _configs.sed
34606 else
cristy8b350f62009-11-15 23:12:43 +000034607 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 +000034608 fi
34609 rm -f conftest.*
34610fi
34611 ;;
34612 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
34613 # Autoconf 2.62 quotes --file arguments for eval, but not when files
34614 # are listed without --file. Let's play safe and only enable the eval
34615 # if we detect the quoting.
34616 case $CONFIG_FILES in
34617 *\'*) eval set x "$CONFIG_FILES" ;;
34618 *) set x $CONFIG_FILES ;;
34619 esac
34620 shift
34621 for mf
34622 do
34623 # Strip MF so we end up with the name of the file.
34624 mf=`echo "$mf" | sed -e 's/:.*$//'`
34625 # Check whether this is an Automake generated Makefile or not.
34626 # We used to match only the files named `Makefile.in', but
34627 # some people rename them; so instead we look at the file content.
34628 # Grep'ing the first line is not enough: some people post-process
34629 # each Makefile.in and add a new line on top of each file to say so.
34630 # Grep'ing the whole file is not good either: AIX grep has a line
34631 # limit of 2048, but all sed's we know have understand at least 4000.
34632 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
34633 dirpart=`$as_dirname -- "$mf" ||
34634$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34635 X"$mf" : 'X\(//\)[^/]' \| \
34636 X"$mf" : 'X\(//\)$' \| \
34637 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
34638$as_echo X"$mf" |
34639 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34640 s//\1/
34641 q
34642 }
34643 /^X\(\/\/\)[^/].*/{
34644 s//\1/
34645 q
34646 }
34647 /^X\(\/\/\)$/{
34648 s//\1/
34649 q
34650 }
34651 /^X\(\/\).*/{
34652 s//\1/
34653 q
34654 }
34655 s/.*/./; q'`
34656 else
34657 continue
34658 fi
34659 # Extract the definition of DEPDIR, am__include, and am__quote
34660 # from the Makefile without running `make'.
34661 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
34662 test -z "$DEPDIR" && continue
34663 am__include=`sed -n 's/^am__include = //p' < "$mf"`
34664 test -z "am__include" && continue
34665 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
34666 # When using ansi2knr, U may be empty or an underscore; expand it
34667 U=`sed -n 's/^U = //p' < "$mf"`
34668 # Find all dependency output files, they are included files with
34669 # $(DEPDIR) in their names. We invoke sed twice because it is the
34670 # simplest approach to changing $(DEPDIR) to its actual value in the
34671 # expansion.
34672 for file in `sed -n "
34673 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
34674 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
34675 # Make sure the directory exists.
34676 test -f "$dirpart/$file" && continue
34677 fdir=`$as_dirname -- "$file" ||
34678$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34679 X"$file" : 'X\(//\)[^/]' \| \
34680 X"$file" : 'X\(//\)$' \| \
34681 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
34682$as_echo X"$file" |
34683 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34684 s//\1/
34685 q
34686 }
34687 /^X\(\/\/\)[^/].*/{
34688 s//\1/
34689 q
34690 }
34691 /^X\(\/\/\)$/{
34692 s//\1/
34693 q
34694 }
34695 /^X\(\/\).*/{
34696 s//\1/
34697 q
34698 }
34699 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000034700 as_dir=$dirpart/$fdir; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000034701 # echo "creating $dirpart/$file"
34702 echo '# dummy' > "$dirpart/$file"
34703 done
34704 done
34705}
34706 ;;
34707 "libtool":C)
34708
34709 # See if we are running on zsh, and set the options which allow our
34710 # commands through without removal of \ escapes.
34711 if test -n "${ZSH_VERSION+set}" ; then
34712 setopt NO_GLOB_SUBST
34713 fi
34714
34715 cfgfile="${ofile}T"
34716 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
34717 $RM "$cfgfile"
34718
34719 cat <<_LT_EOF >> "$cfgfile"
34720#! $SHELL
34721
34722# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
34723# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
34724# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
34725# NOTE: Changes made to this file will be lost: look at ltmain.sh.
34726#
34727# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
cristy18304f92009-11-22 15:48:26 +000034728# 2006, 2007, 2008 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +000034729# Written by Gordon Matzigkeit, 1996
34730#
34731# This file is part of GNU Libtool.
34732#
34733# GNU Libtool is free software; you can redistribute it and/or
34734# modify it under the terms of the GNU General Public License as
34735# published by the Free Software Foundation; either version 2 of
34736# the License, or (at your option) any later version.
34737#
34738# As a special exception to the GNU General Public License,
34739# if you distribute this file as part of a program or library that
34740# is built using GNU Libtool, you may include this file under the
34741# same distribution terms that you use for the rest of that program.
34742#
34743# GNU Libtool is distributed in the hope that it will be useful,
34744# but WITHOUT ANY WARRANTY; without even the implied warranty of
34745# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
34746# GNU General Public License for more details.
34747#
34748# You should have received a copy of the GNU General Public License
34749# along with GNU Libtool; see the file COPYING. If not, a copy
34750# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
34751# obtained by writing to the Free Software Foundation, Inc.,
34752# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
34753
34754
34755# The names of the tagged configurations supported by this script.
34756available_tags="CXX "
34757
34758# ### BEGIN LIBTOOL CONFIG
34759
34760# A sed program that does not truncate output.
34761SED=$lt_SED
34762
34763# Sed that helps us avoid accidentally triggering echo(1) options like -n.
34764Xsed="\$SED -e 1s/^X//"
34765
34766# A grep program that handles long lines.
34767GREP=$lt_GREP
34768
34769# An ERE matcher.
34770EGREP=$lt_EGREP
34771
34772# A literal string matcher.
34773FGREP=$lt_FGREP
34774
34775# Which release of libtool.m4 was used?
34776macro_version=$macro_version
34777macro_revision=$macro_revision
34778
34779# Assembler program.
cristy18304f92009-11-22 15:48:26 +000034780AS=$AS
cristy3ed852e2009-09-05 21:47:34 +000034781
34782# DLL creation program.
cristy18304f92009-11-22 15:48:26 +000034783DLLTOOL=$DLLTOOL
cristy3ed852e2009-09-05 21:47:34 +000034784
34785# Object dumper program.
cristy18304f92009-11-22 15:48:26 +000034786OBJDUMP=$OBJDUMP
cristy3ed852e2009-09-05 21:47:34 +000034787
34788# Whether or not to build shared libraries.
34789build_libtool_libs=$enable_shared
34790
34791# Whether or not to build static libraries.
34792build_old_libs=$enable_static
34793
34794# What type of objects to build.
34795pic_mode=$pic_mode
34796
34797# Whether or not to optimize for fast installation.
34798fast_install=$enable_fast_install
34799
34800# The host system.
34801host_alias=$host_alias
34802host=$host
34803host_os=$host_os
34804
34805# The build system.
34806build_alias=$build_alias
34807build=$build
34808build_os=$build_os
34809
34810# A BSD- or MS-compatible name lister.
34811NM=$lt_NM
34812
34813# Whether we need soft or hard links.
34814LN_S=$lt_LN_S
34815
34816# What is the maximum length of a command?
34817max_cmd_len=$max_cmd_len
34818
34819# Object file suffix (normally "o").
34820objext=$ac_objext
34821
34822# Executable file suffix (normally "").
34823exeext=$exeext
34824
34825# whether the shell understands "unset".
34826lt_unset=$lt_unset
34827
34828# turn spaces into newlines.
34829SP2NL=$lt_lt_SP2NL
34830
34831# turn newlines into spaces.
34832NL2SP=$lt_lt_NL2SP
34833
cristy18304f92009-11-22 15:48:26 +000034834# How to create reloadable object files.
34835reload_flag=$lt_reload_flag
34836reload_cmds=$lt_reload_cmds
34837
cristy3ed852e2009-09-05 21:47:34 +000034838# Method to check whether dependent libraries are shared objects.
34839deplibs_check_method=$lt_deplibs_check_method
34840
34841# Command to use when deplibs_check_method == "file_magic".
34842file_magic_cmd=$lt_file_magic_cmd
34843
34844# The archiver.
34845AR=$lt_AR
34846AR_FLAGS=$lt_AR_FLAGS
34847
34848# A symbol stripping program.
34849STRIP=$lt_STRIP
34850
34851# Commands used to install an old-style archive.
34852RANLIB=$lt_RANLIB
34853old_postinstall_cmds=$lt_old_postinstall_cmds
34854old_postuninstall_cmds=$lt_old_postuninstall_cmds
34855
34856# A C compiler.
34857LTCC=$lt_CC
34858
34859# LTCC compiler flags.
34860LTCFLAGS=$lt_CFLAGS
34861
34862# Take the output of nm and produce a listing of raw symbols and C names.
34863global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
34864
34865# Transform the output of nm in a proper C declaration.
34866global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
34867
34868# Transform the output of nm in a C name address pair.
34869global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
34870
34871# Transform the output of nm in a C name address pair when lib prefix is needed.
34872global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
34873
34874# The name of the directory that contains temporary libtool files.
34875objdir=$objdir
34876
cristy18304f92009-11-22 15:48:26 +000034877# Shell to use when invoking shell scripts.
34878SHELL=$lt_SHELL
34879
34880# An echo program that does not interpret backslashes.
34881ECHO=$lt_ECHO
34882
cristy3ed852e2009-09-05 21:47:34 +000034883# Used to examine libraries when file_magic_cmd begins with "file".
34884MAGIC_CMD=$MAGIC_CMD
34885
34886# Must we lock files when doing compilation?
34887need_locks=$lt_need_locks
34888
34889# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
34890DSYMUTIL=$lt_DSYMUTIL
34891
34892# Tool to change global to local symbols on Mac OS X.
34893NMEDIT=$lt_NMEDIT
34894
34895# Tool to manipulate fat objects and archives on Mac OS X.
34896LIPO=$lt_LIPO
34897
34898# ldd/readelf like tool for Mach-O binaries on Mac OS X.
34899OTOOL=$lt_OTOOL
34900
34901# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
34902OTOOL64=$lt_OTOOL64
34903
34904# Old archive suffix (normally "a").
34905libext=$libext
34906
34907# Shared library suffix (normally ".so").
34908shrext_cmds=$lt_shrext_cmds
34909
34910# The commands to extract the exported symbol list from a shared archive.
34911extract_expsyms_cmds=$lt_extract_expsyms_cmds
34912
34913# Variables whose values should be saved in libtool wrapper scripts and
34914# restored at link time.
34915variables_saved_for_relink=$lt_variables_saved_for_relink
34916
34917# Do we need the "lib" prefix for modules?
34918need_lib_prefix=$need_lib_prefix
34919
34920# Do we need a version for libraries?
34921need_version=$need_version
34922
34923# Library versioning type.
34924version_type=$version_type
34925
34926# Shared library runtime path variable.
34927runpath_var=$runpath_var
34928
34929# Shared library path variable.
34930shlibpath_var=$shlibpath_var
34931
34932# Is shlibpath searched before the hard-coded library search path?
34933shlibpath_overrides_runpath=$shlibpath_overrides_runpath
34934
34935# Format of library name prefix.
34936libname_spec=$lt_libname_spec
34937
34938# List of archive names. First name is the real one, the rest are links.
34939# The last name is the one that the linker finds with -lNAME
34940library_names_spec=$lt_library_names_spec
34941
34942# The coded name of the library, if different from the real name.
34943soname_spec=$lt_soname_spec
34944
34945# Command to use after installation of a shared archive.
34946postinstall_cmds=$lt_postinstall_cmds
34947
34948# Command to use after uninstallation of a shared archive.
34949postuninstall_cmds=$lt_postuninstall_cmds
34950
34951# Commands used to finish a libtool library installation in a directory.
34952finish_cmds=$lt_finish_cmds
34953
34954# As "finish_cmds", except a single script fragment to be evaled but
34955# not shown.
34956finish_eval=$lt_finish_eval
34957
34958# Whether we should hardcode library paths into libraries.
34959hardcode_into_libs=$hardcode_into_libs
34960
34961# Compile-time system search path for libraries.
34962sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
34963
34964# Run-time system search path for libraries.
34965sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
34966
34967# Whether dlopen is supported.
34968dlopen_support=$enable_dlopen
34969
34970# Whether dlopen of programs is supported.
34971dlopen_self=$enable_dlopen_self
34972
34973# Whether dlopen of statically linked programs is supported.
34974dlopen_self_static=$enable_dlopen_self_static
34975
34976# Commands to strip libraries.
34977old_striplib=$lt_old_striplib
34978striplib=$lt_striplib
34979
34980
34981# The linker used to build libraries.
34982LD=$lt_LD
34983
34984# Commands used to build an old-style archive.
34985old_archive_cmds=$lt_old_archive_cmds
34986
34987# A language specific compiler.
34988CC=$lt_compiler
34989
34990# Is the compiler the GNU compiler?
34991with_gcc=$GCC
34992
34993# Compiler flag to turn off builtin functions.
34994no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
34995
34996# How to pass a linker flag through the compiler.
34997wl=$lt_lt_prog_compiler_wl
34998
34999# Additional compiler flags for building library objects.
35000pic_flag=$lt_lt_prog_compiler_pic
35001
35002# Compiler flag to prevent dynamic linking.
35003link_static_flag=$lt_lt_prog_compiler_static
35004
35005# Does compiler simultaneously support -c and -o options?
35006compiler_c_o=$lt_lt_cv_prog_compiler_c_o
35007
35008# Whether or not to add -lc for building shared libraries.
35009build_libtool_need_lc=$archive_cmds_need_lc
35010
35011# Whether or not to disallow shared libs when runtime libs are static.
35012allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
35013
35014# Compiler flag to allow reflexive dlopens.
35015export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
35016
35017# Compiler flag to generate shared objects directly from archives.
35018whole_archive_flag_spec=$lt_whole_archive_flag_spec
35019
35020# Whether the compiler copes with passing no objects directly.
35021compiler_needs_object=$lt_compiler_needs_object
35022
35023# Create an old-style archive from a shared archive.
35024old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
35025
35026# Create a temporary old-style archive to link instead of a shared archive.
35027old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
35028
35029# Commands used to build a shared archive.
35030archive_cmds=$lt_archive_cmds
35031archive_expsym_cmds=$lt_archive_expsym_cmds
35032
35033# Commands used to build a loadable module if different from building
35034# a shared archive.
35035module_cmds=$lt_module_cmds
35036module_expsym_cmds=$lt_module_expsym_cmds
35037
35038# Whether we are building with GNU ld or not.
35039with_gnu_ld=$lt_with_gnu_ld
35040
35041# Flag that allows shared libraries with undefined symbols to be built.
35042allow_undefined_flag=$lt_allow_undefined_flag
35043
35044# Flag that enforces no undefined symbols.
35045no_undefined_flag=$lt_no_undefined_flag
35046
35047# Flag to hardcode \$libdir into a binary during linking.
35048# This must work even if \$libdir does not exist
35049hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
35050
35051# If ld is used when linking, flag to hardcode \$libdir into a binary
35052# during linking. This must work even if \$libdir does not exist.
35053hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
35054
35055# Whether we need a single "-rpath" flag with a separated argument.
35056hardcode_libdir_separator=$lt_hardcode_libdir_separator
35057
35058# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
35059# DIR into the resulting binary.
35060hardcode_direct=$hardcode_direct
35061
35062# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
35063# DIR into the resulting binary and the resulting library dependency is
35064# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
35065# library is relocated.
35066hardcode_direct_absolute=$hardcode_direct_absolute
35067
35068# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
35069# into the resulting binary.
35070hardcode_minus_L=$hardcode_minus_L
35071
35072# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
35073# into the resulting binary.
35074hardcode_shlibpath_var=$hardcode_shlibpath_var
35075
35076# Set to "yes" if building a shared library automatically hardcodes DIR
35077# into the library and all subsequent libraries and executables linked
35078# against it.
35079hardcode_automatic=$hardcode_automatic
35080
35081# Set to yes if linker adds runtime paths of dependent libraries
35082# to runtime path list.
35083inherit_rpath=$inherit_rpath
35084
35085# Whether libtool must link a program against all its dependency libraries.
35086link_all_deplibs=$link_all_deplibs
35087
35088# Fix the shell variable \$srcfile for the compiler.
35089fix_srcfile_path=$lt_fix_srcfile_path
35090
35091# Set to "yes" if exported symbols are required.
35092always_export_symbols=$always_export_symbols
35093
35094# The commands to list exported symbols.
35095export_symbols_cmds=$lt_export_symbols_cmds
35096
35097# Symbols that should not be listed in the preloaded symbols.
35098exclude_expsyms=$lt_exclude_expsyms
35099
35100# Symbols that must always be exported.
35101include_expsyms=$lt_include_expsyms
35102
35103# Commands necessary for linking programs (against libraries) with templates.
35104prelink_cmds=$lt_prelink_cmds
35105
35106# Specify filename containing input files.
35107file_list_spec=$lt_file_list_spec
35108
35109# How to hardcode a shared library path into an executable.
35110hardcode_action=$hardcode_action
35111
35112# The directories searched by this compiler when creating a shared library.
35113compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
35114
35115# Dependencies to place before and after the objects being linked to
35116# create a shared library.
35117predep_objects=$lt_predep_objects
35118postdep_objects=$lt_postdep_objects
35119predeps=$lt_predeps
35120postdeps=$lt_postdeps
35121
35122# The library search path used internally by the compiler when linking
35123# a shared library.
35124compiler_lib_search_path=$lt_compiler_lib_search_path
35125
35126# ### END LIBTOOL CONFIG
35127
35128_LT_EOF
35129
35130 case $host_os in
35131 aix3*)
35132 cat <<\_LT_EOF >> "$cfgfile"
35133# AIX sometimes has problems with the GCC collect2 program. For some
35134# reason, if we set the COLLECT_NAMES environment variable, the problems
35135# vanish in a puff of smoke.
35136if test "X${COLLECT_NAMES+set}" != Xset; then
35137 COLLECT_NAMES=
35138 export COLLECT_NAMES
35139fi
35140_LT_EOF
35141 ;;
35142 esac
35143
35144
35145ltmain="$ac_aux_dir/ltmain.sh"
35146
35147
35148 # We use sed instead of cat because bash on DJGPP gets confused if
35149 # if finds mixed CR/LF and LF-only lines. Since sed operates in
35150 # text mode, it properly converts lines to CR/LF. This bash problem
35151 # is reportedly fixed, but why not run on old versions too?
35152 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
35153 || (rm -f "$cfgfile"; exit 1)
35154
35155 case $xsi_shell in
35156 yes)
35157 cat << \_LT_EOF >> "$cfgfile"
35158
35159# func_dirname file append nondir_replacement
35160# Compute the dirname of FILE. If nonempty, add APPEND to the result,
35161# otherwise set result to NONDIR_REPLACEMENT.
35162func_dirname ()
35163{
35164 case ${1} in
35165 */*) func_dirname_result="${1%/*}${2}" ;;
35166 * ) func_dirname_result="${3}" ;;
35167 esac
35168}
35169
35170# func_basename file
35171func_basename ()
35172{
35173 func_basename_result="${1##*/}"
35174}
35175
35176# func_dirname_and_basename file append nondir_replacement
35177# perform func_basename and func_dirname in a single function
35178# call:
35179# dirname: Compute the dirname of FILE. If nonempty,
35180# add APPEND to the result, otherwise set result
35181# to NONDIR_REPLACEMENT.
35182# value returned in "$func_dirname_result"
35183# basename: Compute filename of FILE.
35184# value retuned in "$func_basename_result"
35185# Implementation must be kept synchronized with func_dirname
35186# and func_basename. For efficiency, we do not delegate to
35187# those functions but instead duplicate the functionality here.
35188func_dirname_and_basename ()
35189{
35190 case ${1} in
35191 */*) func_dirname_result="${1%/*}${2}" ;;
35192 * ) func_dirname_result="${3}" ;;
35193 esac
35194 func_basename_result="${1##*/}"
35195}
35196
35197# func_stripname prefix suffix name
35198# strip PREFIX and SUFFIX off of NAME.
35199# PREFIX and SUFFIX must not contain globbing or regex special
35200# characters, hashes, percent signs, but SUFFIX may contain a leading
35201# dot (in which case that matches only a dot).
35202func_stripname ()
35203{
35204 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
35205 # positional parameters, so assign one to ordinary parameter first.
35206 func_stripname_result=${3}
35207 func_stripname_result=${func_stripname_result#"${1}"}
35208 func_stripname_result=${func_stripname_result%"${2}"}
35209}
35210
35211# func_opt_split
35212func_opt_split ()
35213{
35214 func_opt_split_opt=${1%%=*}
35215 func_opt_split_arg=${1#*=}
35216}
35217
35218# func_lo2o object
35219func_lo2o ()
35220{
35221 case ${1} in
35222 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
35223 *) func_lo2o_result=${1} ;;
35224 esac
35225}
35226
35227# func_xform libobj-or-source
35228func_xform ()
35229{
35230 func_xform_result=${1%.*}.lo
35231}
35232
35233# func_arith arithmetic-term...
35234func_arith ()
35235{
35236 func_arith_result=$(( $* ))
35237}
35238
35239# func_len string
35240# STRING may not start with a hyphen.
35241func_len ()
35242{
35243 func_len_result=${#1}
35244}
35245
35246_LT_EOF
35247 ;;
35248 *) # Bourne compatible functions.
35249 cat << \_LT_EOF >> "$cfgfile"
35250
35251# func_dirname file append nondir_replacement
35252# Compute the dirname of FILE. If nonempty, add APPEND to the result,
35253# otherwise set result to NONDIR_REPLACEMENT.
35254func_dirname ()
35255{
35256 # Extract subdirectory from the argument.
cristy18304f92009-11-22 15:48:26 +000035257 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
cristy3ed852e2009-09-05 21:47:34 +000035258 if test "X$func_dirname_result" = "X${1}"; then
35259 func_dirname_result="${3}"
35260 else
35261 func_dirname_result="$func_dirname_result${2}"
35262 fi
35263}
35264
35265# func_basename file
35266func_basename ()
35267{
cristy18304f92009-11-22 15:48:26 +000035268 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
cristy3ed852e2009-09-05 21:47:34 +000035269}
35270
35271
35272# func_stripname prefix suffix name
35273# strip PREFIX and SUFFIX off of NAME.
35274# PREFIX and SUFFIX must not contain globbing or regex special
35275# characters, hashes, percent signs, but SUFFIX may contain a leading
35276# dot (in which case that matches only a dot).
35277# func_strip_suffix prefix name
35278func_stripname ()
35279{
35280 case ${2} in
cristy18304f92009-11-22 15:48:26 +000035281 .*) func_stripname_result=`$ECHO "X${3}" \
35282 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
35283 *) func_stripname_result=`$ECHO "X${3}" \
35284 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
cristy3ed852e2009-09-05 21:47:34 +000035285 esac
35286}
35287
35288# sed scripts:
35289my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
35290my_sed_long_arg='1s/^-[^=]*=//'
35291
35292# func_opt_split
35293func_opt_split ()
35294{
cristy18304f92009-11-22 15:48:26 +000035295 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
35296 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
cristy3ed852e2009-09-05 21:47:34 +000035297}
35298
35299# func_lo2o object
35300func_lo2o ()
35301{
cristy18304f92009-11-22 15:48:26 +000035302 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
cristy3ed852e2009-09-05 21:47:34 +000035303}
35304
35305# func_xform libobj-or-source
35306func_xform ()
35307{
cristy18304f92009-11-22 15:48:26 +000035308 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
cristy3ed852e2009-09-05 21:47:34 +000035309}
35310
35311# func_arith arithmetic-term...
35312func_arith ()
35313{
35314 func_arith_result=`expr "$@"`
35315}
35316
35317# func_len string
35318# STRING may not start with a hyphen.
35319func_len ()
35320{
35321 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
35322}
35323
35324_LT_EOF
35325esac
35326
35327case $lt_shell_append in
35328 yes)
35329 cat << \_LT_EOF >> "$cfgfile"
35330
35331# func_append var value
35332# Append VALUE to the end of shell variable VAR.
35333func_append ()
35334{
35335 eval "$1+=\$2"
35336}
35337_LT_EOF
35338 ;;
35339 *)
35340 cat << \_LT_EOF >> "$cfgfile"
35341
35342# func_append var value
35343# Append VALUE to the end of shell variable VAR.
35344func_append ()
35345{
35346 eval "$1=\$$1\$2"
35347}
35348
35349_LT_EOF
35350 ;;
35351 esac
35352
35353
35354 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
35355 || (rm -f "$cfgfile"; exit 1)
35356
35357 mv -f "$cfgfile" "$ofile" ||
35358 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
35359 chmod +x "$ofile"
35360
35361
35362 cat <<_LT_EOF >> "$ofile"
35363
35364# ### BEGIN LIBTOOL TAG CONFIG: CXX
35365
35366# The linker used to build libraries.
35367LD=$lt_LD_CXX
35368
35369# Commands used to build an old-style archive.
35370old_archive_cmds=$lt_old_archive_cmds_CXX
35371
35372# A language specific compiler.
35373CC=$lt_compiler_CXX
35374
35375# Is the compiler the GNU compiler?
35376with_gcc=$GCC_CXX
35377
35378# Compiler flag to turn off builtin functions.
35379no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
35380
35381# How to pass a linker flag through the compiler.
35382wl=$lt_lt_prog_compiler_wl_CXX
35383
35384# Additional compiler flags for building library objects.
35385pic_flag=$lt_lt_prog_compiler_pic_CXX
35386
35387# Compiler flag to prevent dynamic linking.
35388link_static_flag=$lt_lt_prog_compiler_static_CXX
35389
35390# Does compiler simultaneously support -c and -o options?
35391compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
35392
35393# Whether or not to add -lc for building shared libraries.
35394build_libtool_need_lc=$archive_cmds_need_lc_CXX
35395
35396# Whether or not to disallow shared libs when runtime libs are static.
35397allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
35398
35399# Compiler flag to allow reflexive dlopens.
35400export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
35401
35402# Compiler flag to generate shared objects directly from archives.
35403whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
35404
35405# Whether the compiler copes with passing no objects directly.
35406compiler_needs_object=$lt_compiler_needs_object_CXX
35407
35408# Create an old-style archive from a shared archive.
35409old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
35410
35411# Create a temporary old-style archive to link instead of a shared archive.
35412old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
35413
35414# Commands used to build a shared archive.
35415archive_cmds=$lt_archive_cmds_CXX
35416archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
35417
35418# Commands used to build a loadable module if different from building
35419# a shared archive.
35420module_cmds=$lt_module_cmds_CXX
35421module_expsym_cmds=$lt_module_expsym_cmds_CXX
35422
35423# Whether we are building with GNU ld or not.
35424with_gnu_ld=$lt_with_gnu_ld_CXX
35425
35426# Flag that allows shared libraries with undefined symbols to be built.
35427allow_undefined_flag=$lt_allow_undefined_flag_CXX
35428
35429# Flag that enforces no undefined symbols.
35430no_undefined_flag=$lt_no_undefined_flag_CXX
35431
35432# Flag to hardcode \$libdir into a binary during linking.
35433# This must work even if \$libdir does not exist
35434hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
35435
35436# If ld is used when linking, flag to hardcode \$libdir into a binary
35437# during linking. This must work even if \$libdir does not exist.
35438hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
35439
35440# Whether we need a single "-rpath" flag with a separated argument.
35441hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
35442
35443# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
35444# DIR into the resulting binary.
35445hardcode_direct=$hardcode_direct_CXX
35446
35447# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
35448# DIR into the resulting binary and the resulting library dependency is
35449# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
35450# library is relocated.
35451hardcode_direct_absolute=$hardcode_direct_absolute_CXX
35452
35453# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
35454# into the resulting binary.
35455hardcode_minus_L=$hardcode_minus_L_CXX
35456
35457# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
35458# into the resulting binary.
35459hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
35460
35461# Set to "yes" if building a shared library automatically hardcodes DIR
35462# into the library and all subsequent libraries and executables linked
35463# against it.
35464hardcode_automatic=$hardcode_automatic_CXX
35465
35466# Set to yes if linker adds runtime paths of dependent libraries
35467# to runtime path list.
35468inherit_rpath=$inherit_rpath_CXX
35469
35470# Whether libtool must link a program against all its dependency libraries.
35471link_all_deplibs=$link_all_deplibs_CXX
35472
35473# Fix the shell variable \$srcfile for the compiler.
35474fix_srcfile_path=$lt_fix_srcfile_path_CXX
35475
35476# Set to "yes" if exported symbols are required.
35477always_export_symbols=$always_export_symbols_CXX
35478
35479# The commands to list exported symbols.
35480export_symbols_cmds=$lt_export_symbols_cmds_CXX
35481
35482# Symbols that should not be listed in the preloaded symbols.
35483exclude_expsyms=$lt_exclude_expsyms_CXX
35484
35485# Symbols that must always be exported.
35486include_expsyms=$lt_include_expsyms_CXX
35487
35488# Commands necessary for linking programs (against libraries) with templates.
35489prelink_cmds=$lt_prelink_cmds_CXX
35490
35491# Specify filename containing input files.
35492file_list_spec=$lt_file_list_spec_CXX
35493
35494# How to hardcode a shared library path into an executable.
35495hardcode_action=$hardcode_action_CXX
35496
35497# The directories searched by this compiler when creating a shared library.
35498compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
35499
35500# Dependencies to place before and after the objects being linked to
35501# create a shared library.
35502predep_objects=$lt_predep_objects_CXX
35503postdep_objects=$lt_postdep_objects_CXX
35504predeps=$lt_predeps_CXX
35505postdeps=$lt_postdeps_CXX
35506
35507# The library search path used internally by the compiler when linking
35508# a shared library.
35509compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
35510
35511# ### END LIBTOOL TAG CONFIG: CXX
35512_LT_EOF
35513
35514 ;;
35515 "MagickCore-config.in":C) chmod +x magick/MagickCore-config ;;
35516 "Magick-config.in":C) chmod +x magick/Magick-config ;;
35517 "MagickWand-config.in":C) chmod +x wand/MagickWand-config ;;
35518 "Wand-config.in":C) chmod +x wand/Wand-config ;;
35519 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
35520 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
35521
35522 esac
35523done # for ac_tag
35524
35525
cristy8b350f62009-11-15 23:12:43 +000035526as_fn_exit 0
cristy3ed852e2009-09-05 21:47:34 +000035527_ACEOF
cristy3ed852e2009-09-05 21:47:34 +000035528ac_clean_files=$ac_clean_files_save
35529
35530test $ac_write_fail = 0 ||
cristy8b350f62009-11-15 23:12:43 +000035531 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000035532
35533
35534# configure is writing to config.log, and then calls config.status.
35535# config.status does its own redirection, appending to config.log.
35536# Unfortunately, on DOS this fails, as config.log is still kept open
35537# by configure, so config.status won't be able to write to it; its
35538# output is simply discarded. So we exec the FD to /dev/null,
35539# effectively closing config.log, so it can be properly (re)opened and
35540# appended to by config.status. When coming back to configure, we
35541# need to make the FD available again.
35542if test "$no_create" != yes; then
35543 ac_cs_success=:
35544 ac_config_status_args=
35545 test "$silent" = yes &&
35546 ac_config_status_args="$ac_config_status_args --quiet"
35547 exec 5>/dev/null
35548 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
35549 exec 5>>config.log
35550 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35551 # would make configure fail if this is the last instruction.
cristy8b350f62009-11-15 23:12:43 +000035552 $ac_cs_success || as_fn_exit $?
cristy3ed852e2009-09-05 21:47:34 +000035553fi
35554if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
cristy8b350f62009-11-15 23:12:43 +000035555 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
cristy3ed852e2009-09-05 21:47:34 +000035556$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
35557fi
35558
35559
35560rm -f magick-version
35561
cristy430a7312010-01-21 20:44:04 +000035562result_dejavu_font_dir='none'
35563if test "${dejavu_font_dir}x" != 'x'; then
35564 result_dejavu_font_dir=$dejavu_font_dir
35565fi
35566
cristy3ed852e2009-09-05 21:47:34 +000035567result_ghostscript_font_dir='none'
35568if test "${ghostscript_font_dir}x" != 'x'; then
35569 result_ghostscript_font_dir=$ghostscript_font_dir
35570fi
35571
35572result_windows_font_dir='none'
35573if test "${windows_font_dir}x" != 'x'; then
35574 result_windows_font_dir=${windows_font_dir}
35575fi
35576
cristy8b350f62009-11-15 23:12:43 +000035577{ $as_echo "$as_me:${as_lineno-$LINENO}: result:
cristy3ed852e2009-09-05 21:47:34 +000035578ImageMagick is configured as follows. Please verify that this configuration
35579matches your expectations.
35580
35581Host system type: $host
35582Build system type: $build
35583
35584 Option Value
35585-------------------------------------------------------------------------------
35586Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
35587Static libraries --enable-static=$enable_static $libtool_build_static_libs
35588Module support --with-modules=$with_modules $with_modules
35589GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
35590Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
35591High Dynamic Range Imagery
35592 --enable-hdri=$enable_hdri $enable_hdri
35593
35594Delegate Configuration:
35595BZLIB --with-bzlib=$with_bzlib $have_bzlib
35596Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000035597Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000035598DJVU --with-djvu=$with_djvu $have_djvu
35599DPS --with-dps=$with_dps $have_dps
35600FFTW --with-fftw=$with_fftw $have_fftw
35601FlashPIX --with-fpx=$with_fpx $have_fpx
35602FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
35603FreeType --with-freetype=$with_freetype $have_freetype
35604GhostPCL None $PCLDelegate ($PCLVersion)
35605GhostXPS None $XPSDelegate ($XPSVersion)
35606Ghostscript None $PSDelegate ($GSVersion)
35607Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
35608Ghostscript lib --with-gslib=$with_gslib $have_gslib
35609Graphviz --with-gvc=$with_gvc $have_gvc
35610JBIG --with-jbig=$with_jbig $have_jbig
35611JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
35612JPEG-2000 --with-jp2=$with_jp2 $have_jp2
35613LCMS --with-lcms=$with_lcms $have_lcms
35614LQR --with-lqr=$with_lqr $have_lqr
35615Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
35616OpenEXR --with-openexr=$with_openexr $have_openexr
35617PERL --with-perl=$with_perl $have_perl
35618PNG --with-png=$with_png $have_png
35619RSVG --with-rsvg=$with_rsvg $have_rsvg
35620TIFF --with-tiff=$with_tiff $have_tiff
35621Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
35622WMF --with-wmf=$with_wmf $have_wmf
35623X11 --with-x=$with_x $have_x
35624XML --with-xml=$with_xml $have_xml
35625ZLIB --with-zlib=$with_zlib $have_zlib
35626
35627X11 Configuration:
35628 X_CFLAGS = $X_CFLAGS
35629 X_PRE_LIBS = $X_PRE_LIBS
35630 X_LIBS = $X_LIBS
35631 X_EXTRA_LIBS = $X_EXTRA_LIBS
35632
35633Options used to compile and link:
35634 PREFIX = $PREFIX_DIR
35635 EXEC-PREFIX = $EXEC_PREFIX_DIR
35636 VERSION = $PACKAGE_VERSION
35637 CC = $CC
35638 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000035639 CPPFLAGS = $MAGICK_CPPFLAGS
35640 PCFLAGS = $MAGICK_PCFLAGS
35641 DEFS = $DEFS
35642 LDFLAGS = $LDFLAGS
35643 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
35644 LIBS = $MAGICK_LIBS
35645 CXX = $CXX
35646 CXXFLAGS = $CXXFLAGS
35647" >&5
35648$as_echo "
35649ImageMagick is configured as follows. Please verify that this configuration
35650matches your expectations.
35651
35652Host system type: $host
35653Build system type: $build
35654
35655 Option Value
35656-------------------------------------------------------------------------------
35657Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
35658Static libraries --enable-static=$enable_static $libtool_build_static_libs
35659Module support --with-modules=$with_modules $with_modules
35660GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
35661Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
35662High Dynamic Range Imagery
35663 --enable-hdri=$enable_hdri $enable_hdri
35664
35665Delegate Configuration:
35666BZLIB --with-bzlib=$with_bzlib $have_bzlib
35667Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000035668Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000035669DJVU --with-djvu=$with_djvu $have_djvu
35670DPS --with-dps=$with_dps $have_dps
35671FFTW --with-fftw=$with_fftw $have_fftw
35672FlashPIX --with-fpx=$with_fpx $have_fpx
35673FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
35674FreeType --with-freetype=$with_freetype $have_freetype
35675GhostPCL None $PCLDelegate ($PCLVersion)
35676GhostXPS None $XPSDelegate ($XPSVersion)
35677Ghostscript None $PSDelegate ($GSVersion)
35678Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
35679Ghostscript lib --with-gslib=$with_gslib $have_gslib
35680Graphviz --with-gvc=$with_gvc $have_gvc
35681JBIG --with-jbig=$with_jbig $have_jbig
35682JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
35683JPEG-2000 --with-jp2=$with_jp2 $have_jp2
35684LCMS --with-lcms=$with_lcms $have_lcms
35685LQR --with-lqr=$with_lqr $have_lqr
35686Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
35687OpenEXR --with-openexr=$with_openexr $have_openexr
35688PERL --with-perl=$with_perl $have_perl
35689PNG --with-png=$with_png $have_png
35690RSVG --with-rsvg=$with_rsvg $have_rsvg
35691TIFF --with-tiff=$with_tiff $have_tiff
35692Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
35693WMF --with-wmf=$with_wmf $have_wmf
35694X11 --with-x=$with_x $have_x
35695XML --with-xml=$with_xml $have_xml
35696ZLIB --with-zlib=$with_zlib $have_zlib
35697
35698X11 Configuration:
35699 X_CFLAGS = $X_CFLAGS
35700 X_PRE_LIBS = $X_PRE_LIBS
35701 X_LIBS = $X_LIBS
35702 X_EXTRA_LIBS = $X_EXTRA_LIBS
35703
35704Options used to compile and link:
35705 PREFIX = $PREFIX_DIR
35706 EXEC-PREFIX = $EXEC_PREFIX_DIR
35707 VERSION = $PACKAGE_VERSION
35708 CC = $CC
35709 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000035710 CPPFLAGS = $MAGICK_CPPFLAGS
35711 PCFLAGS = $MAGICK_PCFLAGS
35712 DEFS = $DEFS
35713 LDFLAGS = $LDFLAGS
35714 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
35715 LIBS = $MAGICK_LIBS
35716 CXX = $CXX
35717 CXXFLAGS = $CXXFLAGS
35718" >&6; }