blob: 809f7276a67af0a8e56b6caf3609a8f9e9a7c158 [file] [log] [blame]
cristy3ed852e2009-09-05 21:47:34 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
cristy14fefe52012-05-21 00:59:18 +00003# Generated by GNU Autoconf 2.69 for ImageMagick 7.0.0-0.
cristy3ed852e2009-09-05 21:47:34 +00004#
5# Report bugs to <http://www.imagemagick.org>.
6#
cristycd4c5312009-11-22 01:19:08 +00007#
cristy14fefe52012-05-21 00:59:18 +00008# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
cristycd4c5312009-11-22 01:19:08 +00009#
cristy8b350f62009-11-15 23:12:43 +000010#
cristy3ed852e2009-09-05 21:47:34 +000011# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
cristy8b350f62009-11-15 23:12:43 +000013## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000016
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000019if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000020 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26else
cristy8b350f62009-11-15 23:12:43 +000027 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
cristy3ed852e2009-09-05 21:47:34 +000032esac
cristy3ed852e2009-09-05 21:47:34 +000033fi
34
35
cristy3ed852e2009-09-05 21:47:34 +000036as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000043# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000050 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000060 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000061 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81fi
82
cristy3ed852e2009-09-05 21:47:34 +000083
84# IFS
85# We need space, tab and new line, in precisely that order. Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" "" $as_nl"
90
91# Find who we are. Look in the path if we contain no directory separator.
cristyda16f162011-02-19 23:52:17 +000092as_myself=
cristy8b350f62009-11-15 23:12:43 +000093case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000094 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +0000100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
cristy3ed852e2009-09-05 21:47:34 +0000102IFS=$as_save_IFS
103
104 ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109 as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +0000113 exit 1
cristy3ed852e2009-09-05 21:47:34 +0000114fi
115
cristy8b350f62009-11-15 23:12:43 +0000116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there. '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +0000123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
cristy8b350f62009-11-15 23:12:43 +0000134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
cristy14fefe52012-05-21 00:59:18 +0000137# Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
cristy8b350f62009-11-15 23:12:43 +0000162if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176esac
177fi
178"
179 as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193 exitcode=1; echo positional parameters were not saved.
194fi
cristy14fefe52012-05-21 00:59:18 +0000195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
cristy8b350f62009-11-15 23:12:43 +0000197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
cristy0c60a692010-11-04 01:09:47 +0000201test \$(( 1 + 1 )) = 2 || exit 1
202
203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 PATH=/empty FPATH=/empty; export PATH FPATH
208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
cristy8b350f62009-11-15 23:12:43 +0000210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212else
213 as_have_required=no
214fi
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
226 /*)
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
235fi
236fi
237 done;;
238 esac
239 as_found=false
240done
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
245IFS=$as_save_IFS
246
247
248 if test "x$CONFIG_SHELL" != x; then :
cristy14fefe52012-05-21 00:59:18 +0000249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
cristy8b350f62009-11-15 23:12:43 +0000268fi
269
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276 else
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and
278$0: http://www.imagemagick.org about your system, including
279$0: any error possibly output before this message. Then
280$0: install a modern shell, or manually run the script
281$0: under such a shell if you do have one."
282 fi
283 exit 1
284fi
285fi
286fi
287SHELL=${CONFIG_SHELL-/bin/sh}
288export SHELL
289# Unset more variables known to interfere with behavior of common tools.
290CLICOLOR_FORCE= GREP_OPTIONS=
291unset CLICOLOR_FORCE GREP_OPTIONS
292
293## --------------------- ##
294## M4sh Shell Functions. ##
295## --------------------- ##
296# as_fn_unset VAR
297# ---------------
298# Portably unset VAR.
299as_fn_unset ()
300{
301 { eval $1=; unset $1;}
302}
303as_unset=as_fn_unset
304
305# as_fn_set_status STATUS
306# -----------------------
307# Set $? to STATUS, without forking.
308as_fn_set_status ()
309{
310 return $1
311} # as_fn_set_status
312
313# as_fn_exit STATUS
314# -----------------
315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316as_fn_exit ()
317{
318 set +e
319 as_fn_set_status $1
320 exit $1
321} # as_fn_exit
322
323# as_fn_mkdir_p
324# -------------
325# Create "$as_dir" as a directory, including parents if necessary.
326as_fn_mkdir_p ()
327{
328
329 case $as_dir in #(
330 -*) as_dir=./$as_dir;;
331 esac
332 test -d "$as_dir" || eval $as_mkdir_p || {
333 as_dirs=
334 while :; do
335 case $as_dir in #(
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337 *) as_qdir=$as_dir;;
338 esac
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345$as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347 s//\1/
348 q
349 }
350 /^X\(\/\/\)[^/].*/{
351 s//\1/
352 q
353 }
354 /^X\(\/\/\)$/{
355 s//\1/
356 q
357 }
358 /^X\(\/\).*/{
359 s//\1/
360 q
361 }
362 s/.*/./; q'`
363 test -d "$as_dir" && break
364 done
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
cristy98dddb52010-11-04 00:30:15 +0000366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cristy8b350f62009-11-15 23:12:43 +0000367
368
369} # as_fn_mkdir_p
cristy14fefe52012-05-21 00:59:18 +0000370
371# as_fn_executable_p FILE
372# -----------------------
373# Test if FILE is an executable regular file.
374as_fn_executable_p ()
375{
376 test -f "$1" && test -x "$1"
377} # as_fn_executable_p
cristy8b350f62009-11-15 23:12:43 +0000378# as_fn_append VAR VALUE
379# ----------------------
380# Append the text in VALUE to the end of the definition contained in VAR. Take
381# advantage of any shell optimizations that allow amortized linear growth over
382# repeated appends, instead of the typical quadratic growth present in naive
383# implementations.
384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
386 {
387 eval $1+=\$2
388 }'
389else
390 as_fn_append ()
391 {
392 eval $1=\$$1\$2
393 }
394fi # as_fn_append
395
396# as_fn_arith ARG...
397# ------------------
398# Perform arithmetic evaluation on the ARGs, and store the result in the
399# global $as_val. Take advantage of shells that can avoid forks. The arguments
400# must be portable across $(()) and expr.
401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402 eval 'as_fn_arith ()
403 {
404 as_val=$(( $* ))
405 }'
406else
407 as_fn_arith ()
408 {
409 as_val=`expr "$@" || test $? -eq 1`
410 }
411fi # as_fn_arith
412
413
cristy98dddb52010-11-04 00:30:15 +0000414# as_fn_error STATUS ERROR [LINENO LOG_FD]
415# ----------------------------------------
cristy8b350f62009-11-15 23:12:43 +0000416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cristy98dddb52010-11-04 00:30:15 +0000418# script with STATUS, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +0000419as_fn_error ()
420{
cristy98dddb52010-11-04 00:30:15 +0000421 as_status=$1; test $as_status -eq 0 && as_status=1
422 if test "$4"; then
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cristy8b350f62009-11-15 23:12:43 +0000425 fi
cristy98dddb52010-11-04 00:30:15 +0000426 $as_echo "$as_me: error: $2" >&2
cristy8b350f62009-11-15 23:12:43 +0000427 as_fn_exit $as_status
428} # as_fn_error
429
cristy3ed852e2009-09-05 21:47:34 +0000430if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
432 as_expr=expr
433else
434 as_expr=false
435fi
436
437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438 as_basename=basename
439else
440 as_basename=false
441fi
442
cristy8b350f62009-11-15 23:12:43 +0000443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444 as_dirname=dirname
445else
446 as_dirname=false
447fi
cristy3ed852e2009-09-05 21:47:34 +0000448
cristy3ed852e2009-09-05 21:47:34 +0000449as_me=`$as_basename -- "$0" ||
450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453$as_echo X/"$0" |
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
455 s//\1/
456 q
457 }
458 /^X\/\(\/\/\)$/{
459 s//\1/
460 q
461 }
462 /^X\/\(\/\).*/{
463 s//\1/
464 q
465 }
466 s/.*/./; q'`
467
cristy8b350f62009-11-15 23:12:43 +0000468# Avoid depending upon Character Ranges.
469as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472as_cr_digits='0123456789'
473as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +0000474
475
cristy8b350f62009-11-15 23:12:43 +0000476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
cristy3ed852e2009-09-05 21:47:34 +0000481 sed -n '
482 p
483 /[$]LINENO/=
484 ' <$as_myself |
485 sed '
486 s/[$]LINENO.*/&-/
487 t lineno
488 b
489 :lineno
490 N
491 :loop
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 t loop
494 s/-\n.*//
495 ' >$as_me.lineno &&
496 chmod +x "$as_me.lineno" ||
cristy8b350f62009-11-15 23:12:43 +0000497 { $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 +0000498
cristy14fefe52012-05-21 00:59:18 +0000499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
cristy3ed852e2009-09-05 21:47:34 +0000503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
506 . "./$as_me.lineno"
507 # Exit status is that of the last command.
508 exit
509}
510
cristy3ed852e2009-09-05 21:47:34 +0000511ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +0000512case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +0000513-n*)
cristy8b350f62009-11-15 23:12:43 +0000514 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +0000515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +0000516 xy) ECHO_C='\c';;
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
518 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +0000519 esac;;
520*)
521 ECHO_N='-n';;
522esac
cristy3ed852e2009-09-05 21:47:34 +0000523
524rm -f conf$$ conf$$.exe conf$$.file
525if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
527else
528 rm -f conf$$.dir
529 mkdir conf$$.dir 2>/dev/null
530fi
531if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s='ln -s'
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
cristy14fefe52012-05-21 00:59:18 +0000537 # In both cases, we have to default to `cp -pR'.
cristy3ed852e2009-09-05 21:47:34 +0000538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
cristy14fefe52012-05-21 00:59:18 +0000539 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +0000540 elif ln conf$$.file conf$$ 2>/dev/null; then
541 as_ln_s=ln
542 else
cristy14fefe52012-05-21 00:59:18 +0000543 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +0000544 fi
545else
cristy14fefe52012-05-21 00:59:18 +0000546 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +0000547fi
548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549rmdir conf$$.dir 2>/dev/null
550
551if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +0000552 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +0000553else
554 test -d ./-p && rmdir ./-p
555 as_mkdir_p=false
556fi
557
cristy14fefe52012-05-21 00:59:18 +0000558as_test_x='test -x'
559as_executable_p=as_fn_executable_p
cristy3ed852e2009-09-05 21:47:34 +0000560
561# Sed expression to map a string onto a valid CPP name.
562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564# Sed expression to map a string onto a valid variable name.
565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
cristy73bd4a52010-10-05 11:24:23 +0000567SHELL=${CONFIG_SHELL-/bin/sh}
568
cristy73bd4a52010-10-05 11:24:23 +0000569lt_ltdl_dir='ltdl'
570
571lt_dlopen_dir="$lt_ltdl_dir"; lt_libobj_prefix="$lt_ltdl_dir/"
572
cristy0c60a692010-11-04 01:09:47 +0000573
cristycd4c5312009-11-22 01:19:08 +0000574test -n "$DJDIR" || exec 7<&0 </dev/null
575exec 6>&1
cristy3ed852e2009-09-05 21:47:34 +0000576
577# Name of the host.
cristy98dddb52010-11-04 00:30:15 +0000578# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
cristy3ed852e2009-09-05 21:47:34 +0000579# so uname gets run too.
580ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
581
582#
583# Initializations.
584#
585ac_default_prefix=/usr/local
586ac_clean_files=
587ac_config_libobj_dir=.
588LIBOBJS=
589cross_compiling=no
590subdirs=
591MFLAGS=
592MAKEFLAGS=
cristy3ed852e2009-09-05 21:47:34 +0000593
594# Identity of this package.
595PACKAGE_NAME='ImageMagick'
cristy09b53e12011-10-14 12:47:22 +0000596PACKAGE_TARNAME='ImageMagick'
cristy29eb34e2011-10-16 00:46:08 +0000597PACKAGE_VERSION='7.0.0-0'
598PACKAGE_STRING='ImageMagick 7.0.0-0'
cristy3ed852e2009-09-05 21:47:34 +0000599PACKAGE_BUGREPORT='http://www.imagemagick.org'
cristy8b350f62009-11-15 23:12:43 +0000600PACKAGE_URL=''
cristy3ed852e2009-09-05 21:47:34 +0000601
cristy4c08aed2011-07-01 19:47:50 +0000602ac_unique_file="MagickCore/MagickCore.h"
cristy3ed852e2009-09-05 21:47:34 +0000603ac_config_libobj_dir=ltdl
604# Factoring default headers for most tests.
605ac_includes_default="\
606#include <stdio.h>
607#ifdef HAVE_SYS_TYPES_H
608# include <sys/types.h>
609#endif
610#ifdef HAVE_SYS_STAT_H
611# include <sys/stat.h>
612#endif
613#ifdef STDC_HEADERS
614# include <stdlib.h>
615# include <stddef.h>
616#else
617# ifdef HAVE_STDLIB_H
618# include <stdlib.h>
619# endif
620#endif
621#ifdef HAVE_STRING_H
622# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
623# include <memory.h>
624# endif
625# include <string.h>
626#endif
627#ifdef HAVE_STRINGS_H
628# include <strings.h>
629#endif
630#ifdef HAVE_INTTYPES_H
631# include <inttypes.h>
632#endif
633#ifdef HAVE_STDINT_H
634# include <stdint.h>
635#endif
636#ifdef HAVE_UNISTD_H
637# include <unistd.h>
638#endif"
639
cristycd4c5312009-11-22 01:19:08 +0000640ac_header_list=
cristy73bd4a52010-10-05 11:24:23 +0000641ac_subst_vars='ltdl_LTLIBOBJS
642ltdl_LIBOBJS
643am__EXEEXT_FALSE
644am__EXEEXT_TRUE
645LTLIBOBJS
cristyfd9dcd42010-08-08 18:07:02 +0000646MAGICK_FEATURES
cristy3ed852e2009-09-05 21:47:34 +0000647MAGICK_LIBS
648MAGICK_LDFLAGS
649MAGICK_PCFLAGS
650MAGICK_CPPFLAGS
651MAGICK_CXXFLAGS
652MAGICK_CFLAGS
653MAGICK_DEP_LIBS
654MAGICK_LTDLDEPS
655MAGICK_LIBLTDL
656OSX_GCOV_LDFLAG
657DELEGATES
658MAGICKCORE_PATH
659PERL_SUPPORTS_DESTDIR
cristy73bd4a52010-10-05 11:24:23 +0000660WITH_PERL_DYNAMIC_FALSE
661WITH_PERL_DYNAMIC_TRUE
662WITH_PERL_STATIC_FALSE
663WITH_PERL_STATIC_TRUE
664WITH_PERL_FALSE
665WITH_PERL_TRUE
666PERL_VERSION
cristy3ed852e2009-09-05 21:47:34 +0000667GSVersion
668GSPSDevice
669GSPDFDevice
670GSMonoDevice
671GSEPSDevice
672GSColorDevice
673GSCMYKDevice
674GSAlphaDevice
675XPSVersion
676XPSCMYKDevice
677XPSColorDevice
678XPSMonoDevice
679PCLVersion
680PCLCMYKDevice
681PCLColorDevice
682PCLMonoDevice
cristy73bd4a52010-10-05 11:24:23 +0000683ZIP_DELEGATE_FALSE
684ZIP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000685ZIP
cristy73bd4a52010-10-05 11:24:23 +0000686P7ZIP_DELEGATE_FALSE
687P7ZIP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000688P7ZIP
cristy73bd4a52010-10-05 11:24:23 +0000689RPM_DELEGATE_FALSE
690RPM_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000691RPM
692PERL
693TAR
694ShowImageDelegate
695type_include_files
696ghostscript_font_dir
697windows_font_dir
cristy430a7312010-01-21 20:44:04 +0000698dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +0000699PrintDelegate
700ZipDelegate
701XPSDelegate
702WWWDecodeDelegate
703WMFDecodeDelegate
cristy5ac9ac82010-07-29 13:24:24 +0000704UniconvertorDelegate
cristy3ed852e2009-09-05 21:47:34 +0000705TXTDelegate
706SCANDecodeDelegate
cristy4689cf02010-02-17 21:15:45 +0000707RSVGDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000708RMDelegate
709RLEEncodeDelegate
710PSDelegate
711POVDelegate
712PGPDecodeDelegate
713PCLDelegate
714MVDelegate
cristy935c86e2010-06-05 23:50:07 +0000715MrSIDDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000716MPEGEncodeDelegate
717MPEGDecodeDelegate
718MANDelegate
719LaunchDelegate
720LZWEncodeDelegate
721LZWDecodeDelegate
722LPRDelegate
723LPDelegate
724ILBMEncodeDelegate
725ILBMDecodeDelegate
726HTMLDecodeDelegate
727HPGLDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000728GnuplotDecodeDelegate
729MogrifyDelegate
730DisplayDelegate
731ConvertDelegate
732FIGDecodeDelegate
733EditorDelegate
734EchoDelegate
735DVIDecodeDelegate
736GVCDecodeDelegate
737DNGDecodeDelegate
738CatDelegate
739CGMDecodeDelegate
740BrowseDelegate
741BZIPDelegate
742BlenderDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000743AutotraceDecodeDelegate
cristy670aa3c2011-11-03 00:54:00 +0000744SHAREARCH_PATH
cristy3ed852e2009-09-05 21:47:34 +0000745SHARE_PATH
cristy4f820712011-04-01 12:35:43 +0000746CONFIGURE_PATH
cristy3ed852e2009-09-05 21:47:34 +0000747DOCUMENTATION_PATH
748FILTER_PATH
749CODER_PATH
cristy3ed852e2009-09-05 21:47:34 +0000750LIBRARY_PATH
751EXECUTABLE_PATH
cristy2a11bef2011-10-28 18:33:11 +0000752INCLUDE_PATH
cristy3ed852e2009-09-05 21:47:34 +0000753PERLMAINCC
754XML_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000755XML_DELEGATE_FALSE
756XML_DELEGATE_TRUE
cristy81beccd2011-10-03 18:17:24 +0000757xml2_config
cristy03f7cf92011-12-15 01:40:41 +0000758WMF_LIBS_DEPS
cristy3ed852e2009-09-05 21:47:34 +0000759WMF_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000760WMF_DELEGATE_FALSE
761WMF_DELEGATE_TRUE
cristyb1860752011-03-14 00:27:46 +0000762WEBP_LIBS
763WEBP_DELEGATE_FALSE
764WEBP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000765TIFF_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000766TIFF_DELEGATE_FALSE
767TIFF_DELEGATE_TRUE
768CAIRO_DELEGATE_FALSE
769CAIRO_DELEGATE_TRUE
770RSVG_DELEGATE_FALSE
771RSVG_DELEGATE_TRUE
772CAIRO_SVG_LIBS
773CAIRO_SVG_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000774RSVG_LIBS
775RSVG_CFLAGS
cristy81beccd2011-10-03 18:17:24 +0000776PNG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000777PNG_DELEGATE_FALSE
778PNG_DELEGATE_TRUE
cristya054b762012-03-26 23:16:00 +0000779PANGOCAIRO_DELEGATE_FALSE
780PANGOCAIRO_DELEGATE_TRUE
cristy41cbe8a2011-10-27 01:35:18 +0000781PANGO_DELEGATE_FALSE
782PANGO_DELEGATE_TRUE
783PANGO_LIBS
784PANGO_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000785OPENEXR_DELEGATE_FALSE
786OPENEXR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000787OPENEXR_LIBS
788OPENEXR_CFLAGS
cristyfbb0ef02010-12-19 02:32:11 +0000789LZMA_DELEGATE_FALSE
790LZMA_DELEGATE_TRUE
cristyb94e5002011-11-14 13:20:10 +0000791LZMA_LIBS
792LZMA_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000793LQR_DELEGATE_FALSE
794LQR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000795LQR_LIBS
796LQR_CFLAGS
797LCMS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000798LCMS_DELEGATE_FALSE
799LCMS_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000800JP2_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000801JP2_DELEGATE_FALSE
802JP2_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000803JPEG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000804JPEG_DELEGATE_FALSE
805JPEG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000806JBIG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000807JBIG_DELEGATE_FALSE
808JBIG_DELEGATE_TRUE
809GVC_DELEGATE_FALSE
810GVC_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000811GVC_LIBS
812GVC_CFLAGS
813GS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000814GS_DELEGATE_FALSE
815GS_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000816FREETYPE_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000817FREETYPE_DELEGATE_FALSE
818FREETYPE_DELEGATE_TRUE
cristy81beccd2011-10-03 18:17:24 +0000819freetype_config
cristy73bd4a52010-10-05 11:24:23 +0000820FONTCONFIG_DELEGATE_FALSE
821FONTCONFIG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000822FONTCONFIG_LIBS
823FONTCONFIG_CFLAGS
824FPX_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000825FPX_DELEGATE_FALSE
826FPX_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000827FFTW_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000828FFTW_DELEGATE_FALSE
829FFTW_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000830DJVU_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000831DJVU_DELEGATE_FALSE
832DJVU_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000833DPS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000834DPS_DELEGATE_FALSE
835DPS_DELEGATE_TRUE
836AUTOTRACE_DELEGATE_FALSE
837AUTOTRACE_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000838AUTOTRACE_LIBS
839AUTOTRACE_CFLAGS
840LIB_DL
841ZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000842ZLIB_DELEGATE_FALSE
843ZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000844XEXT_LIBS
845X11_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000846X11_DELEGATE_FALSE
847X11_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000848X_EXTRA_LIBS
849X_LIBS
850X_PRE_LIBS
851X_CFLAGS
cristyc7083c12009-10-14 03:16:55 +0000852XMKMF
cristy3ed852e2009-09-05 21:47:34 +0000853BZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000854BZLIB_DELEGATE_FALSE
855BZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000856CCMALLOCDelegate
857UMEM_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000858HasUMEM_FALSE
859HasUMEM_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000860THREAD_LIBS
861GOMP_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000862WITH_MAGICK_PLUS_PLUS_FALSE
863WITH_MAGICK_PLUS_PLUS_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000864OPENMP_CXXFLAGS
cristy161b9262010-03-20 19:34:32 +0000865MATH_LIBS
cristy3ed852e2009-09-05 21:47:34 +0000866POW_LIB
867LIBOBJS
cristy6d5e20f2011-04-25 13:48:54 +0000868UINTPTR_F
cristy3ed852e2009-09-05 21:47:34 +0000869UINTPTR_T
cristy6d5e20f2011-04-25 13:48:54 +0000870UINTMAX_F
cristy3ed852e2009-09-05 21:47:34 +0000871UINTMAX_T
cristy6d5e20f2011-04-25 13:48:54 +0000872UINT64_F
cristy3ed852e2009-09-05 21:47:34 +0000873UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +0000874INT64_F
cristy3ed852e2009-09-05 21:47:34 +0000875INT64_T
cristy6d5e20f2011-04-25 13:48:54 +0000876UINT32_F
cristy3ed852e2009-09-05 21:47:34 +0000877UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +0000878INT32_F
cristy3ed852e2009-09-05 21:47:34 +0000879INT32_T
880UINT16_T
881INT16_T
882UINT8_T
883INT8_T
884LIBRARY_EXTRA_CPPFLAGS
885MODULE_EXTRA_CPPFLAGS
886LIBSTDCLDFLAGS
887PERL_MAKE_OPTIONS
888QUANTUM_DEPTH
cristy71d8c202012-03-20 17:05:01 +0000889LEGACY_SUPPORT_FALSE
890LEGACY_SUPPORT_TRUE
cristy73bd4a52010-10-05 11:24:23 +0000891MAINT
892MAINTAINER_MODE_FALSE
893MAINTAINER_MODE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000894MAGICK_HDRI
895DLLDFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000896WITH_LTDL_FALSE
897WITH_LTDL_TRUE
898WITH_MODULES_FALSE
899WITH_MODULES_TRUE
900WITH_SHARED_LIBS_FALSE
901WITH_SHARED_LIBS_TRUE
902LTDLOPEN
903LT_CONFIG_H
904CONVENIENCE_LTDL_FALSE
905CONVENIENCE_LTDL_TRUE
906INSTALL_LTDL_FALSE
907INSTALL_LTDL_TRUE
908ARGZ_H
909sys_symbol_underscore
910LIBADD_DL
911LT_DLPREOPEN
912LIBADD_DLD_LINK
913LIBADD_SHL_LOAD
914LIBADD_DLOPEN
915LT_DLLOADERS
916INCLTDL
917LTDLINCL
918LTDLDEPS
919LIBLTDL
cristy3ed852e2009-09-05 21:47:34 +0000920LIBTOOL_DEPS
cristy73bd4a52010-10-05 11:24:23 +0000921CXXCPP
922OTOOL64
923OTOOL
924LIPO
925NMEDIT
926DSYMUTIL
cristyda16f162011-02-19 23:52:17 +0000927MANIFEST_TOOL
cristy73bd4a52010-10-05 11:24:23 +0000928RANLIB
cristyda16f162011-02-19 23:52:17 +0000929ac_ct_AR
cristy73bd4a52010-10-05 11:24:23 +0000930AR
931NM
932ac_ct_DUMPBIN
933DUMPBIN
934LIBTOOL
935OBJDUMP
936DLLTOOL
937AS
cristy3ed852e2009-09-05 21:47:34 +0000938LFS_CPPFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000939CL_LIBS
cristy736173a2009-09-20 21:18:22 +0000940CL_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000941OPENMP_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000942PTHREAD_CFLAGS
943PTHREAD_LIBS
944PTHREAD_CC
945ax_pthread_config
cristy670aa3c2011-11-03 00:54:00 +0000946SHAREARCH_DIR
947INCLUDEARCH_DIR
cristy3ed852e2009-09-05 21:47:34 +0000948WinPathScript
cristy73bd4a52010-10-05 11:24:23 +0000949USING_CL_FALSE
950USING_CL_TRUE
951CYGWIN_BUILD_FALSE
952CYGWIN_BUILD_TRUE
953WIN32_NATIVE_BUILD_FALSE
954WIN32_NATIVE_BUILD_TRUE
955WINGDI32_DELEGATE_FALSE
956WINGDI32_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000957GDI32_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000958PKG_CONFIG
cristy37110d62012-03-01 18:38:20 +0000959PRTDIAG
cristy3ed852e2009-09-05 21:47:34 +0000960LN_S
cristy3ed852e2009-09-05 21:47:34 +0000961LD
cristy73bd4a52010-10-05 11:24:23 +0000962FGREP
963SED
964am__fastdepCXX_FALSE
965am__fastdepCXX_TRUE
966CXXDEPMODE
cristy95646052009-11-28 23:05:30 +0000967ac_ct_CXX
968CXXFLAGS
969CXX
cristya0b81c32010-01-22 02:54:33 +0000970EGREP
971GREP
972CPP
cristy73bd4a52010-10-05 11:24:23 +0000973am__fastdepCC_FALSE
974am__fastdepCC_TRUE
975CCDEPMODE
cristy7247bba2012-02-05 16:37:27 +0000976am__nodep
cristy73bd4a52010-10-05 11:24:23 +0000977AMDEPBACKSLASH
978AMDEP_FALSE
979AMDEP_TRUE
980am__quote
981am__include
982DEPDIR
cristy3ed852e2009-09-05 21:47:34 +0000983OBJEXT
984EXEEXT
985ac_ct_CC
986CPPFLAGS
987LDFLAGS
988CFLAGS
989CC
990DIRSEP
991MAGICK_FILTER_MODULE_PATH
992MAGICK_CONFIGURE_BUILD_PATH
993MAGICK_CONFIGURE_SRC_PATH
994MAGICK_CODER_MODULE_PATH
995MAN_DIR
996INFO_DIR
997PERSISTINCLUDE_DIR
998INCLUDE_DIR
999LIB_DIR
1000LOCALSTATE_DIR
1001SHAREDSTATE_DIR
1002SYSCONF_DIR
cristyd55889c2011-03-27 00:50:24 +00001003DOC_DIR
cristy3ed852e2009-09-05 21:47:34 +00001004DATA_DIR
1005LIBEXEC_DIR
1006SBIN_DIR
1007BIN_DIR
1008EXEC_PREFIX_DIR
1009PREFIX_DIR
1010CONFIG_STATUS_DEPENDENCIES
1011MAGICK_LIB_VERSION_NUMBER
1012MAGICK_LIB_VERSION_TEXT
1013MAGICK_LIB_VERSION
cristy73bd4a52010-10-05 11:24:23 +00001014AM_BACKSLASH
1015AM_DEFAULT_VERBOSITY
cristyc3fb77b2012-02-06 01:49:41 +00001016AM_DEFAULT_V
1017AM_V
cristy73bd4a52010-10-05 11:24:23 +00001018am__untar
1019am__tar
1020AMTAR
1021am__leading_dot
1022SET_MAKE
1023AWK
1024mkdir_p
1025MKDIR_P
1026INSTALL_STRIP_PROGRAM
1027STRIP
1028install_sh
1029MAKEINFO
1030AUTOHEADER
1031AUTOMAKE
1032AUTOCONF
1033ACLOCAL
1034VERSION
1035PACKAGE
1036CYGPATH_W
1037am__isrc
1038INSTALL_DATA
1039INSTALL_SCRIPT
1040INSTALL_PROGRAM
cristy15a88782010-01-31 23:24:49 +00001041PACKAGE_VERSION_ADDENDUM
cristy3ed852e2009-09-05 21:47:34 +00001042PACKAGE_RELEASE_DATE
1043PACKAGE_LIB_VERSION_NUMBER
1044PACKAGE_LIB_VERSION
1045PACKAGE_CHANGE_DATE
1046PACKAGE_RELEASE
cristy878c2f12011-08-19 00:25:19 +00001047PACKAGE_PERL_VERSION
cristyd694ca32011-03-27 21:42:54 +00001048MAGICK_SVN_REVISION
cristybab87c32010-02-09 20:54:22 +00001049MAGICK_LIBRARY_VERSION_INFO
1050MAGICK_LIBRARY_CURRENT_MIN
cristy3ed852e2009-09-05 21:47:34 +00001051MAGICK_LIBRARY_AGE
1052MAGICK_LIBRARY_REVISION
1053MAGICK_LIBRARY_CURRENT
cristy3225a072010-04-17 01:47:28 +00001054MAGICK_TARGET_OS
1055MAGICK_TARGET_VENDOR
1056MAGICK_TARGET_CPU
cristy3ed852e2009-09-05 21:47:34 +00001057target_os
1058target_vendor
1059target_cpu
1060target
1061host_os
1062host_vendor
1063host_cpu
1064host
1065build_os
1066build_vendor
1067build_cpu
1068build
1069CONFIGURE_ARGS
1070DISTCHECK_CONFIG_FLAGS
1071target_alias
1072host_alias
1073build_alias
1074LIBS
1075ECHO_T
1076ECHO_N
1077ECHO_C
1078DEFS
1079mandir
1080localedir
1081libdir
1082psdir
1083pdfdir
1084dvidir
1085htmldir
1086infodir
1087docdir
1088oldincludedir
1089includedir
1090localstatedir
1091sharedstatedir
1092sysconfdir
1093datadir
1094datarootdir
1095libexecdir
1096sbindir
1097bindir
1098program_transform_name
1099prefix
1100exec_prefix
cristy8b350f62009-11-15 23:12:43 +00001101PACKAGE_URL
cristy3ed852e2009-09-05 21:47:34 +00001102PACKAGE_BUGREPORT
1103PACKAGE_STRING
1104PACKAGE_VERSION
1105PACKAGE_TARNAME
1106PACKAGE_NAME
1107PATH_SEPARATOR
1108SHELL'
1109ac_subst_files=''
1110ac_user_opts='
1111enable_option_checking
cristy73bd4a52010-10-05 11:24:23 +00001112enable_silent_rules
1113enable_dependency_tracking
1114with_gnu_ld
1115with_dmalloc
cristy37110d62012-03-01 18:38:20 +00001116with_gcc_arch
cristy3ed852e2009-09-05 21:47:34 +00001117enable_bounds_checking
1118enable_osx_universal_binary
cristy670aa3c2011-11-03 00:54:00 +00001119with_includearch_dir
1120with_sharearch_dir
cristy3ed852e2009-09-05 21:47:34 +00001121with_threads
1122enable_openmp
cristy73bd4a52010-10-05 11:24:23 +00001123enable_opencl
cristy3ed852e2009-09-05 21:47:34 +00001124enable_largefile
cristy73bd4a52010-10-05 11:24:23 +00001125enable_shared
1126enable_static
1127with_pic
1128enable_fast_install
cristyda16f162011-02-19 23:52:17 +00001129with_sysroot
cristy73bd4a52010-10-05 11:24:23 +00001130enable_libtool_lock
1131with_included_ltdl
1132with_ltdl_include
1133with_ltdl_lib
1134enable_ltdl_install
cristy3ed852e2009-09-05 21:47:34 +00001135with_modules
1136enable_delegate_build
1137enable_deprecated
1138enable_installed
1139enable_cipher
cristy6e3607c2011-09-13 13:59:17 +00001140enable_zero_configuration
cristy3ed852e2009-09-05 21:47:34 +00001141enable_hdri
cristy3ed852e2009-09-05 21:47:34 +00001142enable_assert
cristy73bd4a52010-10-05 11:24:23 +00001143enable_maintainer_mode
cristy3ed852e2009-09-05 21:47:34 +00001144enable_ccmalloc
1145enable_efence
1146enable_prof
1147enable_gprof
1148enable_gcov
1149with_method_prefix
cristy71d8c202012-03-20 17:05:01 +00001150enable_legacy_support
cristy3ed852e2009-09-05 21:47:34 +00001151with_quantum_depth
1152with_cache
1153with_frozenpaths
1154with_magick_plus_plus
1155with_perl
1156with_perl_options
1157with_umem
1158with_libstdc
1159with_bzlib
cristyc7083c12009-10-14 03:16:55 +00001160with_x
cristy3ed852e2009-09-05 21:47:34 +00001161with_zlib
1162with_autotrace
1163with_dps
1164with_djvu
cristy430a7312010-01-21 20:44:04 +00001165with_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +00001166with_fftw
1167with_fpx
1168with_fontconfig
1169with_freetype
1170with_gslib
1171with_fontpath
1172with_gs_font_dir
1173with_gvc
1174with_jbig
1175with_jpeg
1176with_jp2
1177with_lcms
cristy71203402010-06-18 13:12:03 +00001178with_lcms2
cristy3ed852e2009-09-05 21:47:34 +00001179with_lqr
cristyfbb0ef02010-12-19 02:32:11 +00001180with_lzma
cristy3ed852e2009-09-05 21:47:34 +00001181with_openexr
cristy41cbe8a2011-10-27 01:35:18 +00001182with_pango
cristy3ed852e2009-09-05 21:47:34 +00001183with_png
1184with_rsvg
1185with_tiff
cristyb1860752011-03-14 00:27:46 +00001186with_webp
cristy3ed852e2009-09-05 21:47:34 +00001187with_windows_font_dir
1188with_wmf
1189with_xml
1190'
1191 ac_precious_vars='build_alias
1192host_alias
1193target_alias
1194CC
1195CFLAGS
1196LDFLAGS
1197LIBS
1198CPPFLAGS
cristya0b81c32010-01-22 02:54:33 +00001199CPP
cristy3ed852e2009-09-05 21:47:34 +00001200CXX
1201CXXFLAGS
1202CCC
cristy73bd4a52010-10-05 11:24:23 +00001203PKG_CONFIG
1204CXXCPP
cristyc7083c12009-10-14 03:16:55 +00001205XMKMF
cristy73bd4a52010-10-05 11:24:23 +00001206AUTOTRACE_CFLAGS
1207AUTOTRACE_LIBS
1208FONTCONFIG_CFLAGS
1209FONTCONFIG_LIBS
1210GVC_CFLAGS
1211GVC_LIBS
1212LQR_CFLAGS
1213LQR_LIBS
cristyb94e5002011-11-14 13:20:10 +00001214LZMA_CFLAGS
1215LZMA_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001216OPENEXR_CFLAGS
1217OPENEXR_LIBS
cristy41cbe8a2011-10-27 01:35:18 +00001218PANGO_CFLAGS
1219PANGO_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001220RSVG_CFLAGS
1221RSVG_LIBS
1222CAIRO_SVG_CFLAGS
cristy81beccd2011-10-03 18:17:24 +00001223CAIRO_SVG_LIBS'
cristy3ed852e2009-09-05 21:47:34 +00001224
1225
1226# Initialize some variables set by options.
1227ac_init_help=
1228ac_init_version=false
1229ac_unrecognized_opts=
1230ac_unrecognized_sep=
1231# The variables have the same names as the options, with
1232# dashes changed to underlines.
1233cache_file=/dev/null
1234exec_prefix=NONE
1235no_create=
1236no_recursion=
1237prefix=NONE
1238program_prefix=NONE
1239program_suffix=NONE
1240program_transform_name=s,x,x,
1241silent=
1242site=
1243srcdir=
1244verbose=
1245x_includes=NONE
1246x_libraries=NONE
1247
1248# Installation directory options.
1249# These are left unexpanded so users can "make install exec_prefix=/foo"
1250# and all the variables that are supposed to be based on exec_prefix
1251# by default will actually change.
1252# Use braces instead of parens because sh, perl, etc. also accept them.
1253# (The list follows the same order as the GNU Coding Standards.)
1254bindir='${exec_prefix}/bin'
1255sbindir='${exec_prefix}/sbin'
1256libexecdir='${exec_prefix}/libexec'
1257datarootdir='${prefix}/share'
1258datadir='${datarootdir}'
1259sysconfdir='${prefix}/etc'
1260sharedstatedir='${prefix}/com'
1261localstatedir='${prefix}/var'
1262includedir='${prefix}/include'
1263oldincludedir='/usr/include'
1264docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1265infodir='${datarootdir}/info'
1266htmldir='${docdir}'
1267dvidir='${docdir}'
1268pdfdir='${docdir}'
1269psdir='${docdir}'
1270libdir='${exec_prefix}/lib'
1271localedir='${datarootdir}/locale'
1272mandir='${datarootdir}/man'
1273
1274ac_prev=
1275ac_dashdash=
1276for ac_option
1277do
1278 # If the previous option needs an argument, assign it.
1279 if test -n "$ac_prev"; then
1280 eval $ac_prev=\$ac_option
1281 ac_prev=
1282 continue
1283 fi
1284
1285 case $ac_option in
cristyda16f162011-02-19 23:52:17 +00001286 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1287 *=) ac_optarg= ;;
1288 *) ac_optarg=yes ;;
cristy3ed852e2009-09-05 21:47:34 +00001289 esac
1290
1291 # Accept the important Cygnus configure options, so we can diagnose typos.
1292
1293 case $ac_dashdash$ac_option in
1294 --)
1295 ac_dashdash=yes ;;
1296
1297 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1298 ac_prev=bindir ;;
1299 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1300 bindir=$ac_optarg ;;
1301
1302 -build | --build | --buil | --bui | --bu)
1303 ac_prev=build_alias ;;
1304 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1305 build_alias=$ac_optarg ;;
1306
1307 -cache-file | --cache-file | --cache-fil | --cache-fi \
1308 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1309 ac_prev=cache_file ;;
1310 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1311 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1312 cache_file=$ac_optarg ;;
1313
1314 --config-cache | -C)
1315 cache_file=config.cache ;;
1316
1317 -datadir | --datadir | --datadi | --datad)
1318 ac_prev=datadir ;;
1319 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1320 datadir=$ac_optarg ;;
1321
1322 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1323 | --dataroo | --dataro | --datar)
1324 ac_prev=datarootdir ;;
1325 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1326 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1327 datarootdir=$ac_optarg ;;
1328
1329 -disable-* | --disable-*)
1330 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1331 # Reject names that are not valid shell variable names.
1332 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001333 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001334 ac_useropt_orig=$ac_useropt
1335 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1336 case $ac_user_opts in
1337 *"
1338"enable_$ac_useropt"
1339"*) ;;
1340 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1341 ac_unrecognized_sep=', ';;
1342 esac
1343 eval enable_$ac_useropt=no ;;
1344
1345 -docdir | --docdir | --docdi | --doc | --do)
1346 ac_prev=docdir ;;
1347 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1348 docdir=$ac_optarg ;;
1349
1350 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1351 ac_prev=dvidir ;;
1352 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1353 dvidir=$ac_optarg ;;
1354
1355 -enable-* | --enable-*)
1356 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1357 # Reject names that are not valid shell variable names.
1358 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001359 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001360 ac_useropt_orig=$ac_useropt
1361 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1362 case $ac_user_opts in
1363 *"
1364"enable_$ac_useropt"
1365"*) ;;
1366 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1367 ac_unrecognized_sep=', ';;
1368 esac
1369 eval enable_$ac_useropt=\$ac_optarg ;;
1370
1371 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1372 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1373 | --exec | --exe | --ex)
1374 ac_prev=exec_prefix ;;
1375 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1376 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1377 | --exec=* | --exe=* | --ex=*)
1378 exec_prefix=$ac_optarg ;;
1379
1380 -gas | --gas | --ga | --g)
1381 # Obsolete; use --with-gas.
1382 with_gas=yes ;;
1383
1384 -help | --help | --hel | --he | -h)
1385 ac_init_help=long ;;
1386 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1387 ac_init_help=recursive ;;
1388 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1389 ac_init_help=short ;;
1390
1391 -host | --host | --hos | --ho)
1392 ac_prev=host_alias ;;
1393 -host=* | --host=* | --hos=* | --ho=*)
1394 host_alias=$ac_optarg ;;
1395
1396 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1397 ac_prev=htmldir ;;
1398 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1399 | --ht=*)
1400 htmldir=$ac_optarg ;;
1401
1402 -includedir | --includedir | --includedi | --included | --include \
1403 | --includ | --inclu | --incl | --inc)
1404 ac_prev=includedir ;;
1405 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1406 | --includ=* | --inclu=* | --incl=* | --inc=*)
1407 includedir=$ac_optarg ;;
1408
1409 -infodir | --infodir | --infodi | --infod | --info | --inf)
1410 ac_prev=infodir ;;
1411 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1412 infodir=$ac_optarg ;;
1413
1414 -libdir | --libdir | --libdi | --libd)
1415 ac_prev=libdir ;;
1416 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1417 libdir=$ac_optarg ;;
1418
1419 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1420 | --libexe | --libex | --libe)
1421 ac_prev=libexecdir ;;
1422 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1423 | --libexe=* | --libex=* | --libe=*)
1424 libexecdir=$ac_optarg ;;
1425
1426 -localedir | --localedir | --localedi | --localed | --locale)
1427 ac_prev=localedir ;;
1428 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1429 localedir=$ac_optarg ;;
1430
1431 -localstatedir | --localstatedir | --localstatedi | --localstated \
1432 | --localstate | --localstat | --localsta | --localst | --locals)
1433 ac_prev=localstatedir ;;
1434 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1435 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1436 localstatedir=$ac_optarg ;;
1437
1438 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1439 ac_prev=mandir ;;
1440 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1441 mandir=$ac_optarg ;;
1442
1443 -nfp | --nfp | --nf)
1444 # Obsolete; use --without-fp.
1445 with_fp=no ;;
1446
1447 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1448 | --no-cr | --no-c | -n)
1449 no_create=yes ;;
1450
1451 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1452 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1453 no_recursion=yes ;;
1454
1455 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1456 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1457 | --oldin | --oldi | --old | --ol | --o)
1458 ac_prev=oldincludedir ;;
1459 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1460 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1461 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1462 oldincludedir=$ac_optarg ;;
1463
1464 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1465 ac_prev=prefix ;;
1466 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1467 prefix=$ac_optarg ;;
1468
1469 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1470 | --program-pre | --program-pr | --program-p)
1471 ac_prev=program_prefix ;;
1472 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1473 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1474 program_prefix=$ac_optarg ;;
1475
1476 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1477 | --program-suf | --program-su | --program-s)
1478 ac_prev=program_suffix ;;
1479 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1480 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1481 program_suffix=$ac_optarg ;;
1482
1483 -program-transform-name | --program-transform-name \
1484 | --program-transform-nam | --program-transform-na \
1485 | --program-transform-n | --program-transform- \
1486 | --program-transform | --program-transfor \
1487 | --program-transfo | --program-transf \
1488 | --program-trans | --program-tran \
1489 | --progr-tra | --program-tr | --program-t)
1490 ac_prev=program_transform_name ;;
1491 -program-transform-name=* | --program-transform-name=* \
1492 | --program-transform-nam=* | --program-transform-na=* \
1493 | --program-transform-n=* | --program-transform-=* \
1494 | --program-transform=* | --program-transfor=* \
1495 | --program-transfo=* | --program-transf=* \
1496 | --program-trans=* | --program-tran=* \
1497 | --progr-tra=* | --program-tr=* | --program-t=*)
1498 program_transform_name=$ac_optarg ;;
1499
1500 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1501 ac_prev=pdfdir ;;
1502 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1503 pdfdir=$ac_optarg ;;
1504
1505 -psdir | --psdir | --psdi | --psd | --ps)
1506 ac_prev=psdir ;;
1507 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1508 psdir=$ac_optarg ;;
1509
1510 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1511 | -silent | --silent | --silen | --sile | --sil)
1512 silent=yes ;;
1513
1514 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1515 ac_prev=sbindir ;;
1516 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1517 | --sbi=* | --sb=*)
1518 sbindir=$ac_optarg ;;
1519
1520 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1521 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1522 | --sharedst | --shareds | --shared | --share | --shar \
1523 | --sha | --sh)
1524 ac_prev=sharedstatedir ;;
1525 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1526 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1527 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1528 | --sha=* | --sh=*)
1529 sharedstatedir=$ac_optarg ;;
1530
1531 -site | --site | --sit)
1532 ac_prev=site ;;
1533 -site=* | --site=* | --sit=*)
1534 site=$ac_optarg ;;
1535
1536 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1537 ac_prev=srcdir ;;
1538 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1539 srcdir=$ac_optarg ;;
1540
1541 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1542 | --syscon | --sysco | --sysc | --sys | --sy)
1543 ac_prev=sysconfdir ;;
1544 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1545 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1546 sysconfdir=$ac_optarg ;;
1547
1548 -target | --target | --targe | --targ | --tar | --ta | --t)
1549 ac_prev=target_alias ;;
1550 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1551 target_alias=$ac_optarg ;;
1552
1553 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1554 verbose=yes ;;
1555
1556 -version | --version | --versio | --versi | --vers | -V)
1557 ac_init_version=: ;;
1558
1559 -with-* | --with-*)
1560 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1561 # Reject names that are not valid shell variable names.
1562 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001563 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001564 ac_useropt_orig=$ac_useropt
1565 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1566 case $ac_user_opts in
1567 *"
1568"with_$ac_useropt"
1569"*) ;;
1570 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1571 ac_unrecognized_sep=', ';;
1572 esac
1573 eval with_$ac_useropt=\$ac_optarg ;;
1574
1575 -without-* | --without-*)
1576 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1577 # Reject names that are not valid shell variable names.
1578 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001579 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001580 ac_useropt_orig=$ac_useropt
1581 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1582 case $ac_user_opts in
1583 *"
1584"with_$ac_useropt"
1585"*) ;;
1586 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1587 ac_unrecognized_sep=', ';;
1588 esac
1589 eval with_$ac_useropt=no ;;
1590
1591 --x)
1592 # Obsolete; use --with-x.
1593 with_x=yes ;;
1594
1595 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1596 | --x-incl | --x-inc | --x-in | --x-i)
1597 ac_prev=x_includes ;;
1598 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1599 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1600 x_includes=$ac_optarg ;;
1601
1602 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1603 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1604 ac_prev=x_libraries ;;
1605 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1606 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1607 x_libraries=$ac_optarg ;;
1608
cristy98dddb52010-11-04 00:30:15 +00001609 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1610Try \`$0 --help' for more information"
cristy3ed852e2009-09-05 21:47:34 +00001611 ;;
1612
1613 *=*)
1614 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1615 # Reject names that are not valid shell variable names.
cristy8b350f62009-11-15 23:12:43 +00001616 case $ac_envvar in #(
1617 '' | [0-9]* | *[!_$as_cr_alnum]* )
cristy98dddb52010-11-04 00:30:15 +00001618 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
cristy8b350f62009-11-15 23:12:43 +00001619 esac
cristy3ed852e2009-09-05 21:47:34 +00001620 eval $ac_envvar=\$ac_optarg
1621 export $ac_envvar ;;
1622
1623 *)
1624 # FIXME: should be removed in autoconf 3.0.
1625 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1626 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1627 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
cristyda16f162011-02-19 23:52:17 +00001628 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
cristy3ed852e2009-09-05 21:47:34 +00001629 ;;
1630
1631 esac
1632done
1633
1634if test -n "$ac_prev"; then
1635 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
cristy98dddb52010-11-04 00:30:15 +00001636 as_fn_error $? "missing argument to $ac_option"
cristy3ed852e2009-09-05 21:47:34 +00001637fi
1638
1639if test -n "$ac_unrecognized_opts"; then
1640 case $enable_option_checking in
1641 no) ;;
cristy98dddb52010-11-04 00:30:15 +00001642 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
cristy3ed852e2009-09-05 21:47:34 +00001643 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1644 esac
1645fi
1646
1647# Check all directory arguments for consistency.
1648for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1649 datadir sysconfdir sharedstatedir localstatedir includedir \
1650 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1651 libdir localedir mandir
1652do
1653 eval ac_val=\$$ac_var
1654 # Remove trailing slashes.
1655 case $ac_val in
1656 */ )
1657 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1658 eval $ac_var=\$ac_val;;
1659 esac
1660 # Be sure to have absolute directory names.
1661 case $ac_val in
1662 [\\/$]* | ?:[\\/]* ) continue;;
1663 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1664 esac
cristy98dddb52010-11-04 00:30:15 +00001665 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
cristy3ed852e2009-09-05 21:47:34 +00001666done
1667
1668# There might be people who depend on the old broken behavior: `$host'
1669# used to hold the argument of --host etc.
1670# FIXME: To remove some day.
1671build=$build_alias
1672host=$host_alias
1673target=$target_alias
1674
1675# FIXME: To remove some day.
1676if test "x$host_alias" != x; then
1677 if test "x$build_alias" = x; then
1678 cross_compiling=maybe
cristy3ed852e2009-09-05 21:47:34 +00001679 elif test "x$build_alias" != "x$host_alias"; then
1680 cross_compiling=yes
1681 fi
1682fi
1683
1684ac_tool_prefix=
1685test -n "$host_alias" && ac_tool_prefix=$host_alias-
1686
1687test "$silent" = yes && exec 6>/dev/null
1688
1689
1690ac_pwd=`pwd` && test -n "$ac_pwd" &&
1691ac_ls_di=`ls -di .` &&
1692ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
cristy98dddb52010-11-04 00:30:15 +00001693 as_fn_error $? "working directory cannot be determined"
cristy3ed852e2009-09-05 21:47:34 +00001694test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
cristy98dddb52010-11-04 00:30:15 +00001695 as_fn_error $? "pwd does not report name of working directory"
cristy3ed852e2009-09-05 21:47:34 +00001696
1697
1698# Find the source files, if location was not specified.
1699if test -z "$srcdir"; then
1700 ac_srcdir_defaulted=yes
1701 # Try the directory containing this script, then the parent directory.
1702 ac_confdir=`$as_dirname -- "$as_myself" ||
1703$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1704 X"$as_myself" : 'X\(//\)[^/]' \| \
1705 X"$as_myself" : 'X\(//\)$' \| \
1706 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1707$as_echo X"$as_myself" |
1708 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1709 s//\1/
1710 q
1711 }
1712 /^X\(\/\/\)[^/].*/{
1713 s//\1/
1714 q
1715 }
1716 /^X\(\/\/\)$/{
1717 s//\1/
1718 q
1719 }
1720 /^X\(\/\).*/{
1721 s//\1/
1722 q
1723 }
1724 s/.*/./; q'`
1725 srcdir=$ac_confdir
1726 if test ! -r "$srcdir/$ac_unique_file"; then
1727 srcdir=..
1728 fi
1729else
1730 ac_srcdir_defaulted=no
1731fi
1732if test ! -r "$srcdir/$ac_unique_file"; then
1733 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
cristy98dddb52010-11-04 00:30:15 +00001734 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
cristy3ed852e2009-09-05 21:47:34 +00001735fi
1736ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1737ac_abs_confdir=`(
cristy98dddb52010-11-04 00:30:15 +00001738 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
cristy3ed852e2009-09-05 21:47:34 +00001739 pwd)`
1740# When building in place, set srcdir=.
1741if test "$ac_abs_confdir" = "$ac_pwd"; then
1742 srcdir=.
1743fi
1744# Remove unnecessary trailing slashes from srcdir.
1745# Double slashes in file names in object file debugging info
1746# mess up M-x gdb in Emacs.
1747case $srcdir in
1748*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1749esac
1750for ac_var in $ac_precious_vars; do
1751 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1752 eval ac_env_${ac_var}_value=\$${ac_var}
1753 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1754 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1755done
1756
1757#
1758# Report the --help message.
1759#
1760if test "$ac_init_help" = "long"; then
1761 # Omit some internal or obsolete options to make the list less imposing.
1762 # This message is too long to be a string in the A/UX 3.1 sh.
1763 cat <<_ACEOF
cristy29eb34e2011-10-16 00:46:08 +00001764\`configure' configures ImageMagick 7.0.0-0 to adapt to many kinds of systems.
cristy3ed852e2009-09-05 21:47:34 +00001765
1766Usage: $0 [OPTION]... [VAR=VALUE]...
1767
1768To assign environment variables (e.g., CC, CFLAGS...), specify them as
1769VAR=VALUE. See below for descriptions of some of the useful variables.
1770
1771Defaults for the options are specified in brackets.
1772
1773Configuration:
1774 -h, --help display this help and exit
1775 --help=short display options specific to this package
1776 --help=recursive display the short help of all the included packages
1777 -V, --version display version information and exit
cristy98dddb52010-11-04 00:30:15 +00001778 -q, --quiet, --silent do not print \`checking ...' messages
cristy3ed852e2009-09-05 21:47:34 +00001779 --cache-file=FILE cache test results in FILE [disabled]
1780 -C, --config-cache alias for \`--cache-file=config.cache'
1781 -n, --no-create do not create output files
1782 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1783
1784Installation directories:
1785 --prefix=PREFIX install architecture-independent files in PREFIX
1786 [$ac_default_prefix]
1787 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1788 [PREFIX]
1789
1790By default, \`make install' will install all the files in
1791\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1792an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1793for instance \`--prefix=\$HOME'.
1794
1795For better control, use the options below.
1796
1797Fine tuning of the installation directories:
1798 --bindir=DIR user executables [EPREFIX/bin]
1799 --sbindir=DIR system admin executables [EPREFIX/sbin]
1800 --libexecdir=DIR program executables [EPREFIX/libexec]
1801 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1802 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1803 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1804 --libdir=DIR object code libraries [EPREFIX/lib]
1805 --includedir=DIR C header files [PREFIX/include]
1806 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1807 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1808 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1809 --infodir=DIR info documentation [DATAROOTDIR/info]
1810 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1811 --mandir=DIR man documentation [DATAROOTDIR/man]
cristy09b53e12011-10-14 12:47:22 +00001812 --docdir=DIR documentation root [DATAROOTDIR/doc/ImageMagick]
cristy3ed852e2009-09-05 21:47:34 +00001813 --htmldir=DIR html documentation [DOCDIR]
1814 --dvidir=DIR dvi documentation [DOCDIR]
1815 --pdfdir=DIR pdf documentation [DOCDIR]
1816 --psdir=DIR ps documentation [DOCDIR]
1817_ACEOF
1818
1819 cat <<\_ACEOF
1820
cristy73bd4a52010-10-05 11:24:23 +00001821Program names:
1822 --program-prefix=PREFIX prepend PREFIX to installed program names
1823 --program-suffix=SUFFIX append SUFFIX to installed program names
1824 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1825
cristy3ed852e2009-09-05 21:47:34 +00001826X features:
1827 --x-includes=DIR X include files are in DIR
1828 --x-libraries=DIR X library files are in DIR
1829
1830System types:
1831 --build=BUILD configure for building on BUILD [guessed]
1832 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1833 --target=TARGET configure for building compilers for TARGET [HOST]
1834_ACEOF
1835fi
1836
1837if test -n "$ac_init_help"; then
1838 case $ac_init_help in
cristy29eb34e2011-10-16 00:46:08 +00001839 short | recursive ) echo "Configuration of ImageMagick 7.0.0-0:";;
cristy3ed852e2009-09-05 21:47:34 +00001840 esac
1841 cat <<\_ACEOF
1842
1843Optional Features:
1844 --disable-option-checking ignore unrecognized --enable/--with options
1845 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1846 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
cristy73bd4a52010-10-05 11:24:23 +00001847 --enable-silent-rules less verbose build output (undo: `make V=1')
1848 --disable-silent-rules verbose build output (undo: `make V=0')
1849 --disable-dependency-tracking speeds up one-time build
1850 --enable-dependency-tracking do not reject slow dependency extractors
cristya3824692012-03-30 17:22:07 +00001851 --enable-bounds-checking
1852 enable run-time bounds-checking
cristy3ed852e2009-09-05 21:47:34 +00001853 --enable-osx-universal-binary
cristycd4c5312009-11-22 01:19:08 +00001854 build universal binary on OS X [[default=no]]
cristy3ed852e2009-09-05 21:47:34 +00001855 --disable-openmp do not use OpenMP
cristy73bd4a52010-10-05 11:24:23 +00001856 --disable-opencl do not use OpenCL
cristy3ed852e2009-09-05 21:47:34 +00001857 --disable-largefile omit support for large files
cristy73bd4a52010-10-05 11:24:23 +00001858 --enable-shared[=PKGS] build shared libraries [default=yes]
1859 --enable-static[=PKGS] build static libraries [default=yes]
1860 --enable-fast-install[=PKGS]
1861 optimize for fast installation [default=yes]
1862 --disable-libtool-lock avoid locking (might break parallel builds)
1863 --enable-ltdl-install install libltdl
cristy3ed852e2009-09-05 21:47:34 +00001864 --enable-delegate-build look for delegate libraries in build directory
1865 --disable-deprecated exclude deprecated methods in MagickCore and
1866 MagickWand API's
1867 --disable-installed Formally install ImageMagick under PREFIX
1868 --disable-cipher disable enciphering and deciphering image pixels
cristy6e3607c2011-09-13 13:59:17 +00001869 --enable-zero-configuration
1870 enable self-contained, embeddable,
cristy3ed852e2009-09-05 21:47:34 +00001871 zero-configuration ImageMagick
1872 --enable-hdri accurately represent the wide range of intensity
1873 levels found in real scenes
cristy3ed852e2009-09-05 21:47:34 +00001874 --disable-assert disable assert() statements in build
cristy73bd4a52010-10-05 11:24:23 +00001875 --enable-maintainer-mode enable make rules and dependencies not useful
1876 (and sometimes confusing) to the casual installer
cristy3ed852e2009-09-05 21:47:34 +00001877 --enable-ccmalloc enable 'ccmalloc' memory debug support
1878 --enable-efence enable 'efence' memory debug support
1879 --enable-prof enable 'prof' profiling support
1880 --enable-gprof enable 'gprof' profiling support
1881 --enable-gcov enable 'gcov' profiling support
cristy71d8c202012-03-20 17:05:01 +00001882 --enable-legacy-support install legacy command-line utilities (default disabled)
cristya0b81c32010-01-22 02:54:33 +00001883 --disable-assert turn off assertions
cristy3ed852e2009-09-05 21:47:34 +00001884
1885Optional Packages:
1886 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1887 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
cristy73bd4a52010-10-05 11:24:23 +00001888 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
cristy7247bba2012-02-05 16:37:27 +00001889 --with-dmalloc use dmalloc, as in http://www.dmalloc.com
cristy37110d62012-03-01 18:38:20 +00001890 --with-gcc-arch=<arch> use architecture <arch> for gcc -march/-mtune,
1891 instead of guessing
cristy670aa3c2011-11-03 00:54:00 +00001892 --includearch-dir=DIR ARCH specific include directory
1893 --sharearch-dir=DIR ARCH specific config directory
cristy3ed852e2009-09-05 21:47:34 +00001894 --without-threads disable threads support
cristy99bd5232011-12-07 14:38:20 +00001895 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
cristy73bd4a52010-10-05 11:24:23 +00001896 both]
cristyda16f162011-02-19 23:52:17 +00001897 --with-sysroot=DIR Search for dependent libraries within DIR
1898 (or the compiler's sysroot if not specified).
cristy73bd4a52010-10-05 11:24:23 +00001899 --with-included-ltdl use the GNU ltdl sources included here
1900 --with-ltdl-include=DIR use the ltdl headers installed in DIR
1901 --with-ltdl-lib=DIR use the libltdl.la installed in DIR
cristy3ed852e2009-09-05 21:47:34 +00001902 --with-modules enable building dynamically loadable modules
1903 --with-method-prefix=PREFIX
1904 prefix MagickCore API methods
1905 --with-quantum-depth=DEPTH
1906 number of bits in a pixel quantum (default 16)
1907 --with-cache=THRESHOLD set pixel cache threshhold in MB (default available
1908 memory)
1909 --with-frozenpaths freeze delegate paths
1910 --without-magick-plus-plus
1911 disable build/install of Magick++
1912 --with-perl enable build/install of PerlMagick
1913 --with-perl-options=OPTIONS
1914 options to pass on command-line when generating
cristyfc3d0222012-02-07 15:05:57 +00001915 PerlMagick build file
cristy3ed852e2009-09-05 21:47:34 +00001916 --with-umem enable umem memory allocation library support
1917 --with-libstdc=DIR use libstdc++ in DIR (for GNU C++)
1918 --without-bzlib disable BZLIB support
cristyc7083c12009-10-14 03:16:55 +00001919 --with-x use the X Window System
cristy3ed852e2009-09-05 21:47:34 +00001920 --without-zlib disable ZLIB support
1921 --with-autotrace enable autotrace support
1922 --without-dps disable Display Postscript support
1923 --without-djvu disable DjVu support
cristy430a7312010-01-21 20:44:04 +00001924 --with-dejavu-font-dir=DIR
1925 DejaVu font directory
cristy3ed852e2009-09-05 21:47:34 +00001926 --without-fftw disable FFTW support
1927 --without-fpx disable FlashPIX support
1928 --without-fontconfig disable fontconfig support
cristy81beccd2011-10-03 18:17:24 +00001929 --without-freetype disable Freetype support
cristy3ed852e2009-09-05 21:47:34 +00001930 --without-gslib enable Ghostscript library support
1931 --with-fontpath=DIR prepend to default font search path
1932 --with-gs-font-dir=DIR Ghostscript font directory
1933 --without-gvc disable GVC support
1934 --without-jbig disable JBIG support
1935 --without-jpeg disable JPEG support
1936 --without-jp2 disable JPEG-2000 support
cristy71203402010-06-18 13:12:03 +00001937 --without-lcms disable lcms (v1.1X) support
1938 --without-lcms2 disable lcms (v2.X) support
cristyf0c78232010-03-15 12:53:40 +00001939 --without-lqr disable Liquid Rescale support
cristyfbb0ef02010-12-19 02:32:11 +00001940 --without-lzma disable LZMA support
cristy3ed852e2009-09-05 21:47:34 +00001941 --without-openexr disable OpenEXR support
cristy41cbe8a2011-10-27 01:35:18 +00001942 --without-pango disable PANGO support
cristy3ed852e2009-09-05 21:47:34 +00001943 --without-png disable PNG support
1944 --without-rsvg disable RSVG support
1945 --without-tiff disable TIFF support
cristyb1860752011-03-14 00:27:46 +00001946 --without-webp disable WEBP support
cristy3ed852e2009-09-05 21:47:34 +00001947 --with-windows-font-dir=DIR
1948 directory containing MS-Windows fonts
cristyde3fc5d2012-02-12 15:40:47 +00001949 --with-wmf enable WMF support
cristy3ed852e2009-09-05 21:47:34 +00001950 --without-xml disable XML support
1951
1952Some influential environment variables:
1953 CC C compiler command
1954 CFLAGS C compiler flags
1955 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1956 nonstandard directory <lib dir>
1957 LIBS libraries to pass to the linker, e.g. -l<library>
cristycd4c5312009-11-22 01:19:08 +00001958 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
cristy3ed852e2009-09-05 21:47:34 +00001959 you have headers in a nonstandard directory <include dir>
cristya0b81c32010-01-22 02:54:33 +00001960 CPP C preprocessor
cristy3ed852e2009-09-05 21:47:34 +00001961 CXX C++ compiler command
1962 CXXFLAGS C++ compiler flags
cristy73bd4a52010-10-05 11:24:23 +00001963 PKG_CONFIG path to pkg-config utility
nicolas6237c462010-10-05 06:11:49 +00001964 CXXCPP C++ preprocessor
cristy73bd4a52010-10-05 11:24:23 +00001965 XMKMF Path to xmkmf, Makefile generator for X Window System
1966 AUTOTRACE_CFLAGS
1967 C compiler flags for AUTOTRACE, overriding pkg-config
1968 AUTOTRACE_LIBS
1969 linker flags for AUTOTRACE, overriding pkg-config
1970 FONTCONFIG_CFLAGS
1971 C compiler flags for FONTCONFIG, overriding pkg-config
1972 FONTCONFIG_LIBS
1973 linker flags for FONTCONFIG, overriding pkg-config
1974 GVC_CFLAGS C compiler flags for GVC, overriding pkg-config
1975 GVC_LIBS linker flags for GVC, overriding pkg-config
1976 LQR_CFLAGS C compiler flags for LQR, overriding pkg-config
1977 LQR_LIBS linker flags for LQR, overriding pkg-config
cristyb94e5002011-11-14 13:20:10 +00001978 LZMA_CFLAGS C compiler flags for LZMA, overriding pkg-config
1979 LZMA_LIBS linker flags for LZMA, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00001980 OPENEXR_CFLAGS
1981 C compiler flags for OPENEXR, overriding pkg-config
1982 OPENEXR_LIBS
1983 linker flags for OPENEXR, overriding pkg-config
cristy41cbe8a2011-10-27 01:35:18 +00001984 PANGO_CFLAGS
1985 C compiler flags for PANGO, overriding pkg-config
1986 PANGO_LIBS linker flags for PANGO, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00001987 RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
1988 RSVG_LIBS linker flags for RSVG, overriding pkg-config
1989 CAIRO_SVG_CFLAGS
1990 C compiler flags for CAIRO_SVG, overriding pkg-config
1991 CAIRO_SVG_LIBS
1992 linker flags for CAIRO_SVG, overriding pkg-config
cristy3ed852e2009-09-05 21:47:34 +00001993
1994Use these variables to override the choices made by `configure' or to help
1995it to find libraries and programs with nonstandard names/locations.
1996
1997Report bugs to <http://www.imagemagick.org>.
1998_ACEOF
1999ac_status=$?
2000fi
2001
2002if test "$ac_init_help" = "recursive"; then
2003 # If there are subdirs, report their specific --help.
2004 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2005 test -d "$ac_dir" ||
2006 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2007 continue
2008 ac_builddir=.
2009
2010case "$ac_dir" in
2011.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2012*)
2013 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2014 # A ".." for each directory in $ac_dir_suffix.
2015 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2016 case $ac_top_builddir_sub in
2017 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2018 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2019 esac ;;
2020esac
2021ac_abs_top_builddir=$ac_pwd
2022ac_abs_builddir=$ac_pwd$ac_dir_suffix
2023# for backward compatibility:
2024ac_top_builddir=$ac_top_build_prefix
2025
2026case $srcdir in
2027 .) # We are building in place.
2028 ac_srcdir=.
2029 ac_top_srcdir=$ac_top_builddir_sub
2030 ac_abs_top_srcdir=$ac_pwd ;;
2031 [\\/]* | ?:[\\/]* ) # Absolute name.
2032 ac_srcdir=$srcdir$ac_dir_suffix;
2033 ac_top_srcdir=$srcdir
2034 ac_abs_top_srcdir=$srcdir ;;
2035 *) # Relative name.
2036 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2037 ac_top_srcdir=$ac_top_build_prefix$srcdir
2038 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2039esac
2040ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2041
2042 cd "$ac_dir" || { ac_status=$?; continue; }
2043 # Check for guested configure.
2044 if test -f "$ac_srcdir/configure.gnu"; then
2045 echo &&
2046 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2047 elif test -f "$ac_srcdir/configure"; then
2048 echo &&
2049 $SHELL "$ac_srcdir/configure" --help=recursive
2050 else
2051 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2052 fi || ac_status=$?
2053 cd "$ac_pwd" || { ac_status=$?; break; }
2054 done
2055fi
2056
2057test -n "$ac_init_help" && exit $ac_status
2058if $ac_init_version; then
2059 cat <<\_ACEOF
cristy29eb34e2011-10-16 00:46:08 +00002060ImageMagick configure 7.0.0-0
cristy14fefe52012-05-21 00:59:18 +00002061generated by GNU Autoconf 2.69
cristy3ed852e2009-09-05 21:47:34 +00002062
cristy14fefe52012-05-21 00:59:18 +00002063Copyright (C) 2012 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +00002064This configure script is free software; the Free Software Foundation
2065gives unlimited permission to copy, distribute and modify it.
2066_ACEOF
2067 exit
2068fi
cristy8b350f62009-11-15 23:12:43 +00002069
2070## ------------------------ ##
2071## Autoconf initialization. ##
2072## ------------------------ ##
2073
2074# ac_fn_c_try_compile LINENO
2075# --------------------------
2076# Try to compile conftest.$ac_ext, and return whether this succeeded.
2077ac_fn_c_try_compile ()
2078{
2079 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2080 rm -f conftest.$ac_objext
2081 if { { ac_try="$ac_compile"
2082case "(($ac_try" in
2083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2084 *) ac_try_echo=$ac_try;;
2085esac
2086eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2087$as_echo "$ac_try_echo"; } >&5
2088 (eval "$ac_compile") 2>conftest.err
2089 ac_status=$?
2090 if test -s conftest.err; then
2091 grep -v '^ *+' conftest.err >conftest.er1
2092 cat conftest.er1 >&5
2093 mv -f conftest.er1 conftest.err
2094 fi
2095 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2096 test $ac_status = 0; } && {
2097 test -z "$ac_c_werror_flag" ||
2098 test ! -s conftest.err
2099 } && test -s conftest.$ac_objext; then :
2100 ac_retval=0
2101else
2102 $as_echo "$as_me: failed program was:" >&5
2103sed 's/^/| /' conftest.$ac_ext >&5
2104
2105 ac_retval=1
2106fi
cristyda16f162011-02-19 23:52:17 +00002107 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002108 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002109
2110} # ac_fn_c_try_compile
2111
cristy95646052009-11-28 23:05:30 +00002112# ac_fn_c_try_cpp LINENO
2113# ----------------------
2114# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2115ac_fn_c_try_cpp ()
2116{
2117 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2118 if { { ac_try="$ac_cpp conftest.$ac_ext"
2119case "(($ac_try" in
2120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2121 *) ac_try_echo=$ac_try;;
2122esac
2123eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2124$as_echo "$ac_try_echo"; } >&5
2125 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2126 ac_status=$?
2127 if test -s conftest.err; then
2128 grep -v '^ *+' conftest.err >conftest.er1
2129 cat conftest.er1 >&5
2130 mv -f conftest.er1 conftest.err
2131 fi
2132 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002133 test $ac_status = 0; } > conftest.i && {
cristy95646052009-11-28 23:05:30 +00002134 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2135 test ! -s conftest.err
2136 }; then :
2137 ac_retval=0
2138else
2139 $as_echo "$as_me: failed program was:" >&5
2140sed 's/^/| /' conftest.$ac_ext >&5
2141
2142 ac_retval=1
2143fi
cristyda16f162011-02-19 23:52:17 +00002144 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy95646052009-11-28 23:05:30 +00002145 as_fn_set_status $ac_retval
2146
2147} # ac_fn_c_try_cpp
2148
cristy8b350f62009-11-15 23:12:43 +00002149# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2150# -------------------------------------------------------
2151# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2152# the include files in INCLUDES and setting the cache variable VAR
2153# accordingly.
2154ac_fn_c_check_header_mongrel ()
2155{
2156 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00002157 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2159$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002160if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002161 $as_echo_n "(cached) " >&6
2162fi
2163eval ac_res=\$$3
2164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2165$as_echo "$ac_res" >&6; }
2166else
2167 # Is the header compilable?
2168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2169$as_echo_n "checking $2 usability... " >&6; }
2170cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2171/* end confdefs.h. */
2172$4
2173#include <$2>
2174_ACEOF
2175if ac_fn_c_try_compile "$LINENO"; then :
2176 ac_header_compiler=yes
2177else
2178 ac_header_compiler=no
2179fi
2180rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2182$as_echo "$ac_header_compiler" >&6; }
2183
2184# Is the header present?
2185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2186$as_echo_n "checking $2 presence... " >&6; }
2187cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2188/* end confdefs.h. */
2189#include <$2>
2190_ACEOF
2191if ac_fn_c_try_cpp "$LINENO"; then :
2192 ac_header_preproc=yes
2193else
2194 ac_header_preproc=no
2195fi
cristyda16f162011-02-19 23:52:17 +00002196rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00002197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2198$as_echo "$ac_header_preproc" >&6; }
2199
2200# So? What about this header?
2201case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2202 yes:no: )
2203 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2204$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2205 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2206$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2207 ;;
2208 no:yes:* )
2209 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2210$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2211 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2212$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2213 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2214$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2215 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2216$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2217 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2218$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00002219( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00002220## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00002221## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00002222 ) | sed "s/^/$as_me: WARNING: /" >&2
2223 ;;
2224esac
2225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2226$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002227if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002228 $as_echo_n "(cached) " >&6
2229else
2230 eval "$3=\$ac_header_compiler"
2231fi
2232eval ac_res=\$$3
2233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2234$as_echo "$ac_res" >&6; }
2235fi
cristyda16f162011-02-19 23:52:17 +00002236 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002237
2238} # ac_fn_c_check_header_mongrel
2239
2240# ac_fn_c_try_run LINENO
2241# ----------------------
2242# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2243# that executables *can* be run.
2244ac_fn_c_try_run ()
2245{
2246 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2247 if { { ac_try="$ac_link"
2248case "(($ac_try" in
2249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2250 *) ac_try_echo=$ac_try;;
2251esac
2252eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2253$as_echo "$ac_try_echo"; } >&5
2254 (eval "$ac_link") 2>&5
2255 ac_status=$?
2256 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2257 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2258 { { case "(($ac_try" in
2259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2260 *) ac_try_echo=$ac_try;;
2261esac
2262eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2263$as_echo "$ac_try_echo"; } >&5
2264 (eval "$ac_try") 2>&5
2265 ac_status=$?
2266 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2267 test $ac_status = 0; }; }; then :
2268 ac_retval=0
2269else
2270 $as_echo "$as_me: program exited with status $ac_status" >&5
2271 $as_echo "$as_me: failed program was:" >&5
2272sed 's/^/| /' conftest.$ac_ext >&5
2273
2274 ac_retval=$ac_status
2275fi
2276 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002277 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002278 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002279
2280} # ac_fn_c_try_run
2281
2282# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2283# -------------------------------------------------------
2284# Tests whether HEADER exists and can be compiled using the include files in
2285# INCLUDES, setting the cache variable VAR accordingly.
2286ac_fn_c_check_header_compile ()
2287{
2288 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2290$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002291if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002292 $as_echo_n "(cached) " >&6
2293else
2294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2295/* end confdefs.h. */
2296$4
2297#include <$2>
2298_ACEOF
2299if ac_fn_c_try_compile "$LINENO"; then :
2300 eval "$3=yes"
2301else
2302 eval "$3=no"
2303fi
2304rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2305fi
2306eval ac_res=\$$3
2307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2308$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002309 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002310
2311} # ac_fn_c_check_header_compile
2312
cristya0b81c32010-01-22 02:54:33 +00002313# ac_fn_cxx_try_compile LINENO
2314# ----------------------------
2315# Try to compile conftest.$ac_ext, and return whether this succeeded.
2316ac_fn_cxx_try_compile ()
2317{
2318 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2319 rm -f conftest.$ac_objext
2320 if { { ac_try="$ac_compile"
2321case "(($ac_try" in
2322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2323 *) ac_try_echo=$ac_try;;
2324esac
2325eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2326$as_echo "$ac_try_echo"; } >&5
2327 (eval "$ac_compile") 2>conftest.err
2328 ac_status=$?
2329 if test -s conftest.err; then
2330 grep -v '^ *+' conftest.err >conftest.er1
2331 cat conftest.er1 >&5
2332 mv -f conftest.er1 conftest.err
2333 fi
2334 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2335 test $ac_status = 0; } && {
2336 test -z "$ac_cxx_werror_flag" ||
2337 test ! -s conftest.err
2338 } && test -s conftest.$ac_objext; then :
2339 ac_retval=0
2340else
2341 $as_echo "$as_me: failed program was:" >&5
2342sed 's/^/| /' conftest.$ac_ext >&5
2343
2344 ac_retval=1
2345fi
cristyda16f162011-02-19 23:52:17 +00002346 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristya0b81c32010-01-22 02:54:33 +00002347 as_fn_set_status $ac_retval
2348
2349} # ac_fn_cxx_try_compile
2350
cristy8b350f62009-11-15 23:12:43 +00002351# ac_fn_c_try_link LINENO
2352# -----------------------
2353# Try to link conftest.$ac_ext, and return whether this succeeded.
2354ac_fn_c_try_link ()
2355{
2356 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2357 rm -f conftest.$ac_objext conftest$ac_exeext
2358 if { { ac_try="$ac_link"
2359case "(($ac_try" in
2360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2361 *) ac_try_echo=$ac_try;;
2362esac
2363eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2364$as_echo "$ac_try_echo"; } >&5
2365 (eval "$ac_link") 2>conftest.err
2366 ac_status=$?
2367 if test -s conftest.err; then
2368 grep -v '^ *+' conftest.err >conftest.er1
2369 cat conftest.er1 >&5
2370 mv -f conftest.er1 conftest.err
2371 fi
2372 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2373 test $ac_status = 0; } && {
2374 test -z "$ac_c_werror_flag" ||
2375 test ! -s conftest.err
2376 } && test -s conftest$ac_exeext && {
2377 test "$cross_compiling" = yes ||
cristy14fefe52012-05-21 00:59:18 +00002378 test -x conftest$ac_exeext
cristy8b350f62009-11-15 23:12:43 +00002379 }; then :
2380 ac_retval=0
2381else
2382 $as_echo "$as_me: failed program was:" >&5
2383sed 's/^/| /' conftest.$ac_ext >&5
2384
2385 ac_retval=1
2386fi
2387 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2388 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2389 # interfere with the next link command; also delete a directory that is
2390 # left behind by Apple's compiler. We do this before executing the actions.
2391 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002392 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002393 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002394
2395} # ac_fn_c_try_link
2396
cristy73bd4a52010-10-05 11:24:23 +00002397# ac_fn_c_check_func LINENO FUNC VAR
2398# ----------------------------------
2399# Tests whether FUNC exists, setting the cache variable VAR accordingly
2400ac_fn_c_check_func ()
2401{
2402 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2404$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002405if eval \${$3+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00002406 $as_echo_n "(cached) " >&6
2407else
2408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2409/* end confdefs.h. */
2410/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2411 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2412#define $2 innocuous_$2
2413
2414/* System header to define __stub macros and hopefully few prototypes,
2415 which can conflict with char $2 (); below.
2416 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2417 <limits.h> exists even on freestanding compilers. */
2418
2419#ifdef __STDC__
2420# include <limits.h>
2421#else
2422# include <assert.h>
2423#endif
2424
2425#undef $2
2426
2427/* Override any GCC internal prototype to avoid an error.
2428 Use char because int might match the return type of a GCC
2429 builtin and then its argument prototype would still apply. */
2430#ifdef __cplusplus
2431extern "C"
2432#endif
2433char $2 ();
2434/* The GNU C library defines this for functions which it implements
2435 to always fail with ENOSYS. Some functions are actually named
2436 something starting with __ and the normal name is an alias. */
2437#if defined __stub_$2 || defined __stub___$2
2438choke me
2439#endif
2440
2441int
2442main ()
2443{
2444return $2 ();
2445 ;
2446 return 0;
2447}
2448_ACEOF
2449if ac_fn_c_try_link "$LINENO"; then :
2450 eval "$3=yes"
2451else
2452 eval "$3=no"
2453fi
2454rm -f core conftest.err conftest.$ac_objext \
2455 conftest$ac_exeext conftest.$ac_ext
2456fi
2457eval ac_res=\$$3
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2459$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002460 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002461
2462} # ac_fn_c_check_func
2463
2464# ac_fn_cxx_try_cpp LINENO
2465# ------------------------
2466# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2467ac_fn_cxx_try_cpp ()
2468{
2469 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2470 if { { ac_try="$ac_cpp conftest.$ac_ext"
2471case "(($ac_try" in
2472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2473 *) ac_try_echo=$ac_try;;
2474esac
2475eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2476$as_echo "$ac_try_echo"; } >&5
2477 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2478 ac_status=$?
2479 if test -s conftest.err; then
2480 grep -v '^ *+' conftest.err >conftest.er1
2481 cat conftest.er1 >&5
2482 mv -f conftest.er1 conftest.err
2483 fi
2484 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002485 test $ac_status = 0; } > conftest.i && {
cristy73bd4a52010-10-05 11:24:23 +00002486 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2487 test ! -s conftest.err
2488 }; then :
2489 ac_retval=0
2490else
2491 $as_echo "$as_me: failed program was:" >&5
2492sed 's/^/| /' conftest.$ac_ext >&5
2493
2494 ac_retval=1
2495fi
cristyda16f162011-02-19 23:52:17 +00002496 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002497 as_fn_set_status $ac_retval
2498
2499} # ac_fn_cxx_try_cpp
2500
2501# ac_fn_cxx_try_link LINENO
2502# -------------------------
2503# Try to link conftest.$ac_ext, and return whether this succeeded.
2504ac_fn_cxx_try_link ()
2505{
2506 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2507 rm -f conftest.$ac_objext conftest$ac_exeext
2508 if { { ac_try="$ac_link"
2509case "(($ac_try" in
2510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2511 *) ac_try_echo=$ac_try;;
2512esac
2513eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2514$as_echo "$ac_try_echo"; } >&5
2515 (eval "$ac_link") 2>conftest.err
2516 ac_status=$?
2517 if test -s conftest.err; then
2518 grep -v '^ *+' conftest.err >conftest.er1
2519 cat conftest.er1 >&5
2520 mv -f conftest.er1 conftest.err
2521 fi
2522 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2523 test $ac_status = 0; } && {
2524 test -z "$ac_cxx_werror_flag" ||
2525 test ! -s conftest.err
2526 } && test -s conftest$ac_exeext && {
2527 test "$cross_compiling" = yes ||
cristy14fefe52012-05-21 00:59:18 +00002528 test -x conftest$ac_exeext
cristy73bd4a52010-10-05 11:24:23 +00002529 }; then :
2530 ac_retval=0
2531else
2532 $as_echo "$as_me: failed program was:" >&5
2533sed 's/^/| /' conftest.$ac_ext >&5
2534
2535 ac_retval=1
2536fi
2537 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2538 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2539 # interfere with the next link command; also delete a directory that is
2540 # left behind by Apple's compiler. We do this before executing the actions.
2541 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002542 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002543 as_fn_set_status $ac_retval
2544
2545} # ac_fn_cxx_try_link
2546
cristy98dddb52010-11-04 00:30:15 +00002547# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2548# ---------------------------------------------
2549# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2550# accordingly.
cristy73bd4a52010-10-05 11:24:23 +00002551ac_fn_c_check_decl ()
2552{
2553 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristy98dddb52010-11-04 00:30:15 +00002554 as_decl_name=`echo $2|sed 's/ *(.*//'`
2555 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2557$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002558if eval \${$3+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00002559 $as_echo_n "(cached) " >&6
2560else
2561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2562/* end confdefs.h. */
2563$4
2564int
2565main ()
2566{
cristy98dddb52010-11-04 00:30:15 +00002567#ifndef $as_decl_name
2568#ifdef __cplusplus
2569 (void) $as_decl_use;
2570#else
2571 (void) $as_decl_name;
2572#endif
cristy73bd4a52010-10-05 11:24:23 +00002573#endif
2574
2575 ;
2576 return 0;
2577}
2578_ACEOF
2579if ac_fn_c_try_compile "$LINENO"; then :
2580 eval "$3=yes"
2581else
2582 eval "$3=no"
2583fi
2584rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2585fi
2586eval ac_res=\$$3
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2588$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002589 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002590
2591} # ac_fn_c_check_decl
2592
cristy8b350f62009-11-15 23:12:43 +00002593# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2594# -------------------------------------------
2595# Tests whether TYPE exists after having included INCLUDES, setting cache
2596# variable VAR accordingly.
2597ac_fn_c_check_type ()
2598{
2599 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2601$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002602if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002603 $as_echo_n "(cached) " >&6
2604else
2605 eval "$3=no"
2606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2607/* end confdefs.h. */
2608$4
2609int
2610main ()
2611{
2612if (sizeof ($2))
2613 return 0;
2614 ;
2615 return 0;
2616}
2617_ACEOF
2618if ac_fn_c_try_compile "$LINENO"; then :
2619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2620/* end confdefs.h. */
2621$4
2622int
2623main ()
2624{
2625if (sizeof (($2)))
2626 return 0;
2627 ;
2628 return 0;
2629}
2630_ACEOF
2631if ac_fn_c_try_compile "$LINENO"; then :
2632
2633else
2634 eval "$3=yes"
2635fi
2636rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2637fi
2638rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2639fi
2640eval ac_res=\$$3
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2642$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002643 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002644
2645} # ac_fn_c_check_type
2646
cristy92703d82010-04-26 00:18:18 +00002647# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2648# ----------------------------------------------------
2649# Tries to find if the field MEMBER exists in type AGGR, after including
2650# INCLUDES, setting cache variable VAR accordingly.
2651ac_fn_c_check_member ()
2652{
2653 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2655$as_echo_n "checking for $2.$3... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002656if eval \${$4+:} false; then :
cristy92703d82010-04-26 00:18:18 +00002657 $as_echo_n "(cached) " >&6
2658else
2659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2660/* end confdefs.h. */
2661$5
2662int
2663main ()
2664{
2665static $2 ac_aggr;
2666if (ac_aggr.$3)
2667return 0;
2668 ;
2669 return 0;
2670}
2671_ACEOF
2672if ac_fn_c_try_compile "$LINENO"; then :
2673 eval "$4=yes"
2674else
2675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2676/* end confdefs.h. */
2677$5
2678int
2679main ()
2680{
2681static $2 ac_aggr;
2682if (sizeof ac_aggr.$3)
2683return 0;
2684 ;
2685 return 0;
2686}
2687_ACEOF
2688if ac_fn_c_try_compile "$LINENO"; then :
2689 eval "$4=yes"
2690else
2691 eval "$4=no"
2692fi
2693rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2694fi
2695rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2696fi
2697eval ac_res=\$$4
2698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2699$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002700 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy92703d82010-04-26 00:18:18 +00002701
2702} # ac_fn_c_check_member
2703
cristy501c8042011-05-26 17:46:28 +00002704# ac_fn_c_find_intX_t LINENO BITS VAR
2705# -----------------------------------
2706# Finds a signed integer type with width BITS, setting cache variable VAR
2707# accordingly.
2708ac_fn_c_find_intX_t ()
2709{
2710 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2712$as_echo_n "checking for int$2_t... " >&6; }
2713if eval \${$3+:} false; then :
2714 $as_echo_n "(cached) " >&6
2715else
2716 eval "$3=no"
2717 # Order is important - never check a type that is potentially smaller
2718 # than half of the expected target width.
2719 for ac_type in int$2_t 'int' 'long int' \
2720 'long long int' 'short int' 'signed char'; do
2721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2722/* end confdefs.h. */
2723$ac_includes_default
2724 enum { N = $2 / 2 - 1 };
2725int
2726main ()
2727{
2728static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
cristy14fefe52012-05-21 00:59:18 +00002729test_array [0] = 0;
2730return test_array [0];
cristy501c8042011-05-26 17:46:28 +00002731
2732 ;
2733 return 0;
2734}
2735_ACEOF
2736if ac_fn_c_try_compile "$LINENO"; then :
2737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2738/* end confdefs.h. */
2739$ac_includes_default
2740 enum { N = $2 / 2 - 1 };
2741int
2742main ()
2743{
2744static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2745 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
cristy14fefe52012-05-21 00:59:18 +00002746test_array [0] = 0;
2747return test_array [0];
cristy501c8042011-05-26 17:46:28 +00002748
2749 ;
2750 return 0;
2751}
2752_ACEOF
2753if ac_fn_c_try_compile "$LINENO"; then :
2754
2755else
2756 case $ac_type in #(
2757 int$2_t) :
2758 eval "$3=yes" ;; #(
2759 *) :
2760 eval "$3=\$ac_type" ;;
2761esac
2762fi
2763rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2764fi
2765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2766 if eval test \"x\$"$3"\" = x"no"; then :
2767
2768else
2769 break
2770fi
2771 done
2772fi
2773eval ac_res=\$$3
2774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2775$as_echo "$ac_res" >&6; }
2776 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2777
2778} # ac_fn_c_find_intX_t
2779
2780# ac_fn_c_find_uintX_t LINENO BITS VAR
2781# ------------------------------------
2782# Finds an unsigned integer type with width BITS, setting cache variable VAR
2783# accordingly.
2784ac_fn_c_find_uintX_t ()
2785{
2786 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2788$as_echo_n "checking for uint$2_t... " >&6; }
2789if eval \${$3+:} false; then :
2790 $as_echo_n "(cached) " >&6
2791else
2792 eval "$3=no"
2793 # Order is important - never check a type that is potentially smaller
2794 # than half of the expected target width.
2795 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2796 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2798/* end confdefs.h. */
2799$ac_includes_default
2800int
2801main ()
2802{
2803static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
cristy14fefe52012-05-21 00:59:18 +00002804test_array [0] = 0;
2805return test_array [0];
cristy501c8042011-05-26 17:46:28 +00002806
2807 ;
2808 return 0;
2809}
2810_ACEOF
2811if ac_fn_c_try_compile "$LINENO"; then :
2812 case $ac_type in #(
2813 uint$2_t) :
2814 eval "$3=yes" ;; #(
2815 *) :
2816 eval "$3=\$ac_type" ;;
2817esac
2818fi
2819rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2820 if eval test \"x\$"$3"\" = x"no"; then :
2821
2822else
2823 break
2824fi
2825 done
2826fi
2827eval ac_res=\$$3
2828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2829$as_echo "$ac_res" >&6; }
2830 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2831
2832} # ac_fn_c_find_uintX_t
2833
cristy8b350f62009-11-15 23:12:43 +00002834# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2835# --------------------------------------------
2836# Tries to find the compile-time value of EXPR in a program that includes
2837# INCLUDES, setting VAR accordingly. Returns whether the value could be
2838# computed
2839ac_fn_c_compute_int ()
2840{
2841 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2842 if test "$cross_compiling" = yes; then
2843 # Depending upon the size, compute the lo and hi bounds.
2844cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2845/* end confdefs.h. */
2846$4
2847int
2848main ()
2849{
2850static int test_array [1 - 2 * !(($2) >= 0)];
cristy14fefe52012-05-21 00:59:18 +00002851test_array [0] = 0;
2852return test_array [0];
cristy8b350f62009-11-15 23:12:43 +00002853
2854 ;
2855 return 0;
2856}
2857_ACEOF
2858if ac_fn_c_try_compile "$LINENO"; then :
2859 ac_lo=0 ac_mid=0
2860 while :; do
2861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2862/* end confdefs.h. */
2863$4
2864int
2865main ()
2866{
2867static int test_array [1 - 2 * !(($2) <= $ac_mid)];
cristy14fefe52012-05-21 00:59:18 +00002868test_array [0] = 0;
2869return test_array [0];
cristy8b350f62009-11-15 23:12:43 +00002870
2871 ;
2872 return 0;
2873}
2874_ACEOF
2875if ac_fn_c_try_compile "$LINENO"; then :
2876 ac_hi=$ac_mid; break
2877else
2878 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2879 if test $ac_lo -le $ac_mid; then
2880 ac_lo= ac_hi=
2881 break
2882 fi
2883 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2884fi
2885rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2886 done
2887else
2888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2889/* end confdefs.h. */
2890$4
2891int
2892main ()
2893{
2894static int test_array [1 - 2 * !(($2) < 0)];
cristy14fefe52012-05-21 00:59:18 +00002895test_array [0] = 0;
2896return test_array [0];
cristy8b350f62009-11-15 23:12:43 +00002897
2898 ;
2899 return 0;
2900}
2901_ACEOF
2902if ac_fn_c_try_compile "$LINENO"; then :
2903 ac_hi=-1 ac_mid=-1
2904 while :; do
2905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2906/* end confdefs.h. */
2907$4
2908int
2909main ()
2910{
2911static int test_array [1 - 2 * !(($2) >= $ac_mid)];
cristy14fefe52012-05-21 00:59:18 +00002912test_array [0] = 0;
2913return test_array [0];
cristy8b350f62009-11-15 23:12:43 +00002914
2915 ;
2916 return 0;
2917}
2918_ACEOF
2919if ac_fn_c_try_compile "$LINENO"; then :
2920 ac_lo=$ac_mid; break
2921else
2922 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2923 if test $ac_mid -le $ac_hi; then
2924 ac_lo= ac_hi=
2925 break
2926 fi
2927 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2928fi
2929rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2930 done
2931else
2932 ac_lo= ac_hi=
2933fi
2934rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2935fi
2936rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2937# Binary search between lo and hi bounds.
2938while test "x$ac_lo" != "x$ac_hi"; do
2939 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2941/* end confdefs.h. */
2942$4
2943int
2944main ()
2945{
2946static int test_array [1 - 2 * !(($2) <= $ac_mid)];
cristy14fefe52012-05-21 00:59:18 +00002947test_array [0] = 0;
2948return test_array [0];
cristy8b350f62009-11-15 23:12:43 +00002949
2950 ;
2951 return 0;
2952}
2953_ACEOF
2954if ac_fn_c_try_compile "$LINENO"; then :
2955 ac_hi=$ac_mid
2956else
2957 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2958fi
2959rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2960done
2961case $ac_lo in #((
2962?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2963'') ac_retval=1 ;;
2964esac
2965 else
2966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2967/* end confdefs.h. */
2968$4
2969static long int longval () { return $2; }
2970static unsigned long int ulongval () { return $2; }
2971#include <stdio.h>
2972#include <stdlib.h>
2973int
2974main ()
2975{
2976
2977 FILE *f = fopen ("conftest.val", "w");
2978 if (! f)
2979 return 1;
2980 if (($2) < 0)
2981 {
2982 long int i = longval ();
2983 if (i != ($2))
2984 return 1;
2985 fprintf (f, "%ld", i);
2986 }
2987 else
2988 {
2989 unsigned long int i = ulongval ();
2990 if (i != ($2))
2991 return 1;
2992 fprintf (f, "%lu", i);
2993 }
2994 /* Do not output a trailing newline, as this causes \r\n confusion
2995 on some platforms. */
2996 return ferror (f) || fclose (f) != 0;
2997
2998 ;
2999 return 0;
3000}
3001_ACEOF
3002if ac_fn_c_try_run "$LINENO"; then :
3003 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
3004else
3005 ac_retval=1
3006fi
3007rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3008 conftest.$ac_objext conftest.beam conftest.$ac_ext
3009rm -f conftest.val
3010
3011 fi
cristyda16f162011-02-19 23:52:17 +00003012 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00003013 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00003014
3015} # ac_fn_c_compute_int
3016
3017# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
3018# ---------------------------------------------------------
3019# Tests whether HEADER exists, giving a warning if it cannot be compiled using
3020# the include files in INCLUDES and setting the cache variable VAR
3021# accordingly.
3022ac_fn_cxx_check_header_mongrel ()
3023{
3024 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00003025 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3027$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003028if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003029 $as_echo_n "(cached) " >&6
3030fi
3031eval ac_res=\$$3
3032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3033$as_echo "$ac_res" >&6; }
3034else
3035 # Is the header compilable?
3036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
3037$as_echo_n "checking $2 usability... " >&6; }
3038cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3039/* end confdefs.h. */
3040$4
3041#include <$2>
3042_ACEOF
3043if ac_fn_cxx_try_compile "$LINENO"; then :
3044 ac_header_compiler=yes
3045else
3046 ac_header_compiler=no
3047fi
3048rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
3050$as_echo "$ac_header_compiler" >&6; }
3051
3052# Is the header present?
3053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
3054$as_echo_n "checking $2 presence... " >&6; }
3055cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3056/* end confdefs.h. */
3057#include <$2>
3058_ACEOF
3059if ac_fn_cxx_try_cpp "$LINENO"; then :
3060 ac_header_preproc=yes
3061else
3062 ac_header_preproc=no
3063fi
cristyda16f162011-02-19 23:52:17 +00003064rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00003065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
3066$as_echo "$ac_header_preproc" >&6; }
3067
3068# So? What about this header?
3069case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
3070 yes:no: )
3071 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
3072$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3074$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
3075 ;;
3076 no:yes:* )
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
3078$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
3079 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
3080$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
3081 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
3082$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
3083 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
3084$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
3085 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3086$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003087( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00003088## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00003089## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00003090 ) | sed "s/^/$as_me: WARNING: /" >&2
3091 ;;
3092esac
3093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3094$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003095if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003096 $as_echo_n "(cached) " >&6
3097else
3098 eval "$3=\$ac_header_compiler"
3099fi
3100eval ac_res=\$$3
3101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3102$as_echo "$ac_res" >&6; }
3103fi
cristyda16f162011-02-19 23:52:17 +00003104 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00003105
3106} # ac_fn_cxx_check_header_mongrel
cristy3ed852e2009-09-05 21:47:34 +00003107cat >config.log <<_ACEOF
3108This file contains any messages produced by compilers while
3109running configure, to aid debugging if configure makes a mistake.
3110
cristy29eb34e2011-10-16 00:46:08 +00003111It was created by ImageMagick $as_me 7.0.0-0, which was
cristy14fefe52012-05-21 00:59:18 +00003112generated by GNU Autoconf 2.69. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +00003113
3114 $ $0 $@
3115
3116_ACEOF
3117exec 5>>config.log
3118{
3119cat <<_ASUNAME
3120## --------- ##
3121## Platform. ##
3122## --------- ##
3123
3124hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3125uname -m = `(uname -m) 2>/dev/null || echo unknown`
3126uname -r = `(uname -r) 2>/dev/null || echo unknown`
3127uname -s = `(uname -s) 2>/dev/null || echo unknown`
3128uname -v = `(uname -v) 2>/dev/null || echo unknown`
3129
3130/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3131/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3132
3133/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3134/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3135/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3136/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3137/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3138/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3139/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3140
3141_ASUNAME
3142
3143as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3144for as_dir in $PATH
3145do
3146 IFS=$as_save_IFS
3147 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003148 $as_echo "PATH: $as_dir"
3149 done
cristy3ed852e2009-09-05 21:47:34 +00003150IFS=$as_save_IFS
3151
3152} >&5
3153
3154cat >&5 <<_ACEOF
3155
3156
3157## ----------- ##
3158## Core tests. ##
3159## ----------- ##
3160
3161_ACEOF
3162
3163
3164# Keep a trace of the command line.
3165# Strip out --no-create and --no-recursion so they do not pile up.
3166# Strip out --silent because we don't want to record it for future runs.
3167# Also quote any args containing shell meta-characters.
3168# Make two passes to allow for proper duplicate-argument suppression.
3169ac_configure_args=
3170ac_configure_args0=
3171ac_configure_args1=
3172ac_must_keep_next=false
3173for ac_pass in 1 2
3174do
3175 for ac_arg
3176 do
3177 case $ac_arg in
3178 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3179 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3180 | -silent | --silent | --silen | --sile | --sil)
3181 continue ;;
3182 *\'*)
3183 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3184 esac
3185 case $ac_pass in
cristy8b350f62009-11-15 23:12:43 +00003186 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003187 2)
cristy8b350f62009-11-15 23:12:43 +00003188 as_fn_append ac_configure_args1 " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003189 if test $ac_must_keep_next = true; then
3190 ac_must_keep_next=false # Got value, back to normal.
3191 else
3192 case $ac_arg in
3193 *=* | --config-cache | -C | -disable-* | --disable-* \
3194 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3195 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3196 | -with-* | --with-* | -without-* | --without-* | --x)
3197 case "$ac_configure_args0 " in
3198 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3199 esac
3200 ;;
3201 -* ) ac_must_keep_next=true ;;
3202 esac
3203 fi
cristy8b350f62009-11-15 23:12:43 +00003204 as_fn_append ac_configure_args " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003205 ;;
3206 esac
3207 done
3208done
cristy8b350f62009-11-15 23:12:43 +00003209{ ac_configure_args0=; unset ac_configure_args0;}
3210{ ac_configure_args1=; unset ac_configure_args1;}
cristy3ed852e2009-09-05 21:47:34 +00003211
3212# When interrupted or exit'd, cleanup temporary files, and complete
3213# config.log. We remove comments because anyway the quotes in there
3214# would cause problems or look ugly.
3215# WARNING: Use '\'' to represent an apostrophe within the trap.
3216# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3217trap 'exit_status=$?
3218 # Save into config.log some information that might help in debugging.
3219 {
3220 echo
3221
cristy98dddb52010-11-04 00:30:15 +00003222 $as_echo "## ---------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003223## Cache variables. ##
cristy98dddb52010-11-04 00:30:15 +00003224## ---------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003225 echo
3226 # The following way of writing the cache mishandles newlines in values,
3227(
3228 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3229 eval ac_val=\$$ac_var
3230 case $ac_val in #(
3231 *${as_nl}*)
3232 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +00003233 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +00003234$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3235 esac
3236 case $ac_var in #(
3237 _ | IFS | as_nl) ;; #(
3238 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +00003239 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +00003240 esac ;;
3241 esac
3242 done
3243 (set) 2>&1 |
3244 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3245 *${as_nl}ac_space=\ *)
3246 sed -n \
3247 "s/'\''/'\''\\\\'\'''\''/g;
3248 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3249 ;; #(
3250 *)
3251 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3252 ;;
3253 esac |
3254 sort
3255)
3256 echo
3257
cristy98dddb52010-11-04 00:30:15 +00003258 $as_echo "## ----------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003259## Output variables. ##
cristy98dddb52010-11-04 00:30:15 +00003260## ----------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003261 echo
3262 for ac_var in $ac_subst_vars
3263 do
3264 eval ac_val=\$$ac_var
3265 case $ac_val in
3266 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3267 esac
3268 $as_echo "$ac_var='\''$ac_val'\''"
3269 done | sort
3270 echo
3271
3272 if test -n "$ac_subst_files"; then
cristy98dddb52010-11-04 00:30:15 +00003273 $as_echo "## ------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003274## File substitutions. ##
cristy98dddb52010-11-04 00:30:15 +00003275## ------------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003276 echo
3277 for ac_var in $ac_subst_files
3278 do
3279 eval ac_val=\$$ac_var
3280 case $ac_val in
3281 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3282 esac
3283 $as_echo "$ac_var='\''$ac_val'\''"
3284 done | sort
3285 echo
3286 fi
3287
3288 if test -s confdefs.h; then
cristy98dddb52010-11-04 00:30:15 +00003289 $as_echo "## ----------- ##
cristy3ed852e2009-09-05 21:47:34 +00003290## confdefs.h. ##
cristy98dddb52010-11-04 00:30:15 +00003291## ----------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003292 echo
3293 cat confdefs.h
3294 echo
3295 fi
3296 test "$ac_signal" != 0 &&
3297 $as_echo "$as_me: caught signal $ac_signal"
3298 $as_echo "$as_me: exit $exit_status"
3299 } >&5
3300 rm -f core *.core core.conftest.* &&
3301 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3302 exit $exit_status
3303' 0
3304for ac_signal in 1 2 13 15; do
cristy8b350f62009-11-15 23:12:43 +00003305 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
cristy3ed852e2009-09-05 21:47:34 +00003306done
3307ac_signal=0
3308
3309# confdefs.h avoids OS command line length limits that DEFS can exceed.
3310rm -f -r conftest* confdefs.h
3311
cristy8b350f62009-11-15 23:12:43 +00003312$as_echo "/* confdefs.h */" > confdefs.h
3313
cristy3ed852e2009-09-05 21:47:34 +00003314# Predefined preprocessor variables.
3315
3316cat >>confdefs.h <<_ACEOF
3317#define PACKAGE_NAME "$PACKAGE_NAME"
3318_ACEOF
3319
cristy3ed852e2009-09-05 21:47:34 +00003320cat >>confdefs.h <<_ACEOF
3321#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3322_ACEOF
3323
cristy3ed852e2009-09-05 21:47:34 +00003324cat >>confdefs.h <<_ACEOF
3325#define PACKAGE_VERSION "$PACKAGE_VERSION"
3326_ACEOF
3327
cristy3ed852e2009-09-05 21:47:34 +00003328cat >>confdefs.h <<_ACEOF
3329#define PACKAGE_STRING "$PACKAGE_STRING"
3330_ACEOF
3331
cristy3ed852e2009-09-05 21:47:34 +00003332cat >>confdefs.h <<_ACEOF
3333#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3334_ACEOF
3335
cristy8b350f62009-11-15 23:12:43 +00003336cat >>confdefs.h <<_ACEOF
3337#define PACKAGE_URL "$PACKAGE_URL"
3338_ACEOF
3339
cristy3ed852e2009-09-05 21:47:34 +00003340
3341# Let the site file select an alternate cache file if it wants to.
3342# Prefer an explicitly selected file to automatically selected ones.
3343ac_site_file1=NONE
3344ac_site_file2=NONE
3345if test -n "$CONFIG_SITE"; then
cristy98dddb52010-11-04 00:30:15 +00003346 # We do not want a PATH search for config.site.
3347 case $CONFIG_SITE in #((
3348 -*) ac_site_file1=./$CONFIG_SITE;;
3349 */*) ac_site_file1=$CONFIG_SITE;;
3350 *) ac_site_file1=./$CONFIG_SITE;;
3351 esac
cristy3ed852e2009-09-05 21:47:34 +00003352elif test "x$prefix" != xNONE; then
3353 ac_site_file1=$prefix/share/config.site
3354 ac_site_file2=$prefix/etc/config.site
3355else
3356 ac_site_file1=$ac_default_prefix/share/config.site
3357 ac_site_file2=$ac_default_prefix/etc/config.site
3358fi
3359for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3360do
3361 test "x$ac_site_file" = xNONE && continue
cristycd4c5312009-11-22 01:19:08 +00003362 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
cristy8b350f62009-11-15 23:12:43 +00003363 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003364$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3365 sed 's/^/| /' "$ac_site_file" >&5
cristy98dddb52010-11-04 00:30:15 +00003366 . "$ac_site_file" \
3367 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3368$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3369as_fn_error $? "failed to load site script $ac_site_file
3370See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00003371 fi
3372done
3373
3374if test -r "$cache_file"; then
cristycd4c5312009-11-22 01:19:08 +00003375 # Some versions of bash will fail to source /dev/null (special files
3376 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3377 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
cristy8b350f62009-11-15 23:12:43 +00003378 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003379$as_echo "$as_me: loading cache $cache_file" >&6;}
3380 case $cache_file in
3381 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3382 *) . "./$cache_file";;
3383 esac
3384 fi
3385else
cristy8b350f62009-11-15 23:12:43 +00003386 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003387$as_echo "$as_me: creating cache $cache_file" >&6;}
3388 >$cache_file
3389fi
3390
cristycd4c5312009-11-22 01:19:08 +00003391as_fn_append ac_header_list " stdlib.h"
3392as_fn_append ac_header_list " unistd.h"
3393as_fn_append ac_header_list " sys/param.h"
cristy3ed852e2009-09-05 21:47:34 +00003394# Check that the precious variables saved in the cache have kept the same
3395# value.
3396ac_cache_corrupted=false
3397for ac_var in $ac_precious_vars; do
3398 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3399 eval ac_new_set=\$ac_env_${ac_var}_set
3400 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3401 eval ac_new_val=\$ac_env_${ac_var}_value
3402 case $ac_old_set,$ac_new_set in
3403 set,)
cristy8b350f62009-11-15 23:12:43 +00003404 { $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 +00003405$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3406 ac_cache_corrupted=: ;;
3407 ,set)
cristy8b350f62009-11-15 23:12:43 +00003408 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
cristy3ed852e2009-09-05 21:47:34 +00003409$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3410 ac_cache_corrupted=: ;;
3411 ,);;
3412 *)
3413 if test "x$ac_old_val" != "x$ac_new_val"; then
3414 # differences in whitespace do not lead to failure.
3415 ac_old_val_w=`echo x $ac_old_val`
3416 ac_new_val_w=`echo x $ac_new_val`
3417 if test "$ac_old_val_w" != "$ac_new_val_w"; then
cristy8b350f62009-11-15 23:12:43 +00003418 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
cristy3ed852e2009-09-05 21:47:34 +00003419$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3420 ac_cache_corrupted=:
3421 else
cristy8b350f62009-11-15 23:12:43 +00003422 { $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 +00003423$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3424 eval $ac_var=\$ac_old_val
3425 fi
cristy8b350f62009-11-15 23:12:43 +00003426 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003427$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003428 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003429$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3430 fi;;
3431 esac
3432 # Pass precious variables to config.status.
3433 if test "$ac_new_set" = set; then
3434 case $ac_new_val in
3435 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3436 *) ac_arg=$ac_var=$ac_new_val ;;
3437 esac
3438 case " $ac_configure_args " in
3439 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
cristy8b350f62009-11-15 23:12:43 +00003440 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003441 esac
3442 fi
3443done
3444if $ac_cache_corrupted; then
cristy8b350f62009-11-15 23:12:43 +00003445 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00003446$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003447 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003448$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003449 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003450fi
cristy8b350f62009-11-15 23:12:43 +00003451## -------------------- ##
3452## Main body of script. ##
3453## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003454
3455ac_ext=c
3456ac_cpp='$CPP $CPPFLAGS'
3457ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3458ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3459ac_compiler_gnu=$ac_cv_c_compiler_gnu
3460
3461
3462
3463ac_aux_dir=
3464for ac_dir in config "$srcdir"/config; do
cristy98dddb52010-11-04 00:30:15 +00003465 if test -f "$ac_dir/install-sh"; then
3466 ac_aux_dir=$ac_dir
3467 ac_install_sh="$ac_aux_dir/install-sh -c"
3468 break
3469 elif test -f "$ac_dir/install.sh"; then
3470 ac_aux_dir=$ac_dir
3471 ac_install_sh="$ac_aux_dir/install.sh -c"
3472 break
3473 elif test -f "$ac_dir/shtool"; then
3474 ac_aux_dir=$ac_dir
3475 ac_install_sh="$ac_aux_dir/shtool install -c"
3476 break
3477 fi
cristy3ed852e2009-09-05 21:47:34 +00003478done
3479if test -z "$ac_aux_dir"; then
cristy98dddb52010-11-04 00:30:15 +00003480 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003481fi
3482
3483# These three variables are undocumented and unsupported,
3484# and are intended to be withdrawn in a future Autoconf release.
3485# They can cause serious problems if a builder's source tree is in a directory
3486# whose full name contains unusual characters.
3487ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3488ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3489ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3490
3491
3492
3493
3494ac_config_headers="$ac_config_headers config/config.h"
3495
cristy24fc1fe2010-10-23 21:13:01 +00003496
cristy4c08aed2011-07-01 19:47:50 +00003497ac_config_commands="$ac_config_commands MagickCore/magick-config.h"
cristy73bd4a52010-10-05 11:24:23 +00003498
cristy4c08aed2011-07-01 19:47:50 +00003499ac_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 MagickCore/ImageMagick.pc Magick++/lib/ImageMagick++.pc Magick++/lib/Magick++.pc MagickCore/MagickCore-config MagickCore/MagickCore.pc MagickCore/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 MagickWand/MagickWand-config MagickWand/MagickWand.pc"
cristy3ed852e2009-09-05 21:47:34 +00003500
3501
3502#
3503# Save initial user-tunable values
3504#
3505USER_LIBS=$LIBS
3506for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
3507 eval isset=\${$var+set}
3508 if test "$isset" = 'set'; then
3509 eval val=$`echo $var`
3510 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
3511 fi
3512done
3513
3514
3515CONFIGURE_ARGS="$0 ${ac_configure_args}"
3516
3517
3518# Source file containing package/library versioning information.
3519. ${srcdir}/version.sh
3520
cristy15a88782010-01-31 23:24:49 +00003521echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
cristy3ed852e2009-09-05 21:47:34 +00003522# Make sure we can run config.sub.
3523$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
cristy98dddb52010-11-04 00:30:15 +00003524 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003525
cristy8b350f62009-11-15 23:12:43 +00003526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003527$as_echo_n "checking build system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003528if ${ac_cv_build+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003529 $as_echo_n "(cached) " >&6
3530else
3531 ac_build_alias=$build_alias
3532test "x$ac_build_alias" = x &&
3533 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3534test "x$ac_build_alias" = x &&
cristy98dddb52010-11-04 00:30:15 +00003535 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003536ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003537 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003538
3539fi
cristy8b350f62009-11-15 23:12:43 +00003540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003541$as_echo "$ac_cv_build" >&6; }
3542case $ac_cv_build in
3543*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003544*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003545esac
3546build=$ac_cv_build
3547ac_save_IFS=$IFS; IFS='-'
3548set x $ac_cv_build
3549shift
3550build_cpu=$1
3551build_vendor=$2
3552shift; shift
3553# Remember, the first character of IFS is used to create $*,
3554# except with old shells:
3555build_os=$*
3556IFS=$ac_save_IFS
3557case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3558
3559
cristy8b350f62009-11-15 23:12:43 +00003560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003561$as_echo_n "checking host system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003562if ${ac_cv_host+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003563 $as_echo_n "(cached) " >&6
3564else
3565 if test "x$host_alias" = x; then
3566 ac_cv_host=$ac_cv_build
3567else
3568 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003569 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003570fi
3571
3572fi
cristy8b350f62009-11-15 23:12:43 +00003573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
cristy3ed852e2009-09-05 21:47:34 +00003574$as_echo "$ac_cv_host" >&6; }
3575case $ac_cv_host in
3576*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003577*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003578esac
3579host=$ac_cv_host
3580ac_save_IFS=$IFS; IFS='-'
3581set x $ac_cv_host
3582shift
3583host_cpu=$1
3584host_vendor=$2
3585shift; shift
3586# Remember, the first character of IFS is used to create $*,
3587# except with old shells:
3588host_os=$*
3589IFS=$ac_save_IFS
3590case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3591
3592
cristy8b350f62009-11-15 23:12:43 +00003593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003594$as_echo_n "checking target system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003595if ${ac_cv_target+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003596 $as_echo_n "(cached) " >&6
3597else
3598 if test "x$target_alias" = x; then
3599 ac_cv_target=$ac_cv_host
3600else
3601 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003602 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003603fi
3604
3605fi
cristy8b350f62009-11-15 23:12:43 +00003606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
cristy3ed852e2009-09-05 21:47:34 +00003607$as_echo "$ac_cv_target" >&6; }
3608case $ac_cv_target in
3609*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003610*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003611esac
3612target=$ac_cv_target
3613ac_save_IFS=$IFS; IFS='-'
3614set x $ac_cv_target
3615shift
3616target_cpu=$1
3617target_vendor=$2
3618shift; shift
3619# Remember, the first character of IFS is used to create $*,
3620# except with old shells:
3621target_os=$*
3622IFS=$ac_save_IFS
3623case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3624
3625
3626# The aliases save the names the user supplied, while $host etc.
3627# will get canonicalized.
3628test -n "$target_alias" &&
3629 test "$program_prefix$program_suffix$program_transform_name" = \
3630 NONENONEs,x,x, &&
3631 program_prefix=${target_alias}-
3632
cristy837d6dc2010-02-27 01:16:57 +00003633
3634
3635
cristy19615b82011-04-13 20:02:01 +00003636MAGICK_TARGET_CPU=$host_cpu
cristy3225a072010-04-17 01:47:28 +00003637
3638
cristy19615b82011-04-13 20:02:01 +00003639MAGICK_TARGET_VENDOR=$host_vendor
cristy3225a072010-04-17 01:47:28 +00003640
3641
cristy19615b82011-04-13 20:02:01 +00003642MAGICK_TARGET_OS=$host_os
cristy3225a072010-04-17 01:47:28 +00003643
3644
cristy3ed852e2009-09-05 21:47:34 +00003645# Substitute library versioning
cristybab87c32010-02-09 20:54:22 +00003646MAGICK_LIBRARY_CURRENT_MIN=`expr $MAGICK_LIBRARY_CURRENT - $MAGICK_LIBRARY_AGE`
3647
3648MAGICK_LIBRARY_VERSION_INFO=$MAGICK_LIBRARY_CURRENT:$MAGICK_LIBRARY_REVISION:$MAGICK_LIBRARY_AGE
3649
cristy751980d2012-06-03 23:18:35 +00003650MAGICK_SVN_REVISION=8118
cristyd694ca32011-03-27 21:42:54 +00003651
3652
cristy3ed852e2009-09-05 21:47:34 +00003653
3654
3655# Ensure that make can run correctly
cristy73bd4a52010-10-05 11:24:23 +00003656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3657$as_echo_n "checking whether build environment is sane... " >&6; }
3658# Just in case
3659sleep 1
3660echo timestamp > conftest.file
3661# Reject unsafe characters in $srcdir or the absolute working directory
3662# name. Accept space and tab only in the latter.
3663am_lf='
3664'
3665case `pwd` in
3666 *[\\\"\#\$\&\'\`$am_lf]*)
cristy98dddb52010-11-04 00:30:15 +00003667 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003668esac
3669case $srcdir in
3670 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
cristy98dddb52010-11-04 00:30:15 +00003671 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003672esac
cristy3ed852e2009-09-05 21:47:34 +00003673
cristy73bd4a52010-10-05 11:24:23 +00003674# Do `set' in a subshell so we don't clobber the current shell's
3675# arguments. Must try -L first in case configure is actually a
3676# symlink; some systems play weird games with the mod time of symlinks
3677# (eg FreeBSD returns the mod time of the symlink's containing
3678# directory).
3679if (
3680 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3681 if test "$*" = "X"; then
3682 # -L didn't work.
3683 set X `ls -t "$srcdir/configure" conftest.file`
3684 fi
3685 rm -f conftest.file
3686 if test "$*" != "X $srcdir/configure conftest.file" \
3687 && test "$*" != "X conftest.file $srcdir/configure"; then
3688
3689 # If neither matched, then we have a broken ls. This can happen
3690 # if, for instance, CONFIG_SHELL is bash and it inherits a
3691 # broken ls alias from the environment. This has actually
3692 # happened. Such a system could not be considered "sane".
cristy98dddb52010-11-04 00:30:15 +00003693 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
cristy73bd4a52010-10-05 11:24:23 +00003694alias in your environment" "$LINENO" 5
3695 fi
3696
3697 test "$2" = conftest.file
3698 )
3699then
3700 # Ok.
3701 :
3702else
cristy98dddb52010-11-04 00:30:15 +00003703 as_fn_error $? "newly created file is older than distributed files!
cristy73bd4a52010-10-05 11:24:23 +00003704Check your system clock" "$LINENO" 5
3705fi
3706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3707$as_echo "yes" >&6; }
3708
3709am__api_version='1.11'
3710
3711# Find a good install program. We prefer a C program (faster),
3712# so one script is as good as another. But avoid the broken or
3713# incompatible versions:
3714# SysV /etc/install, /usr/sbin/install
3715# SunOS /usr/etc/install
3716# IRIX /sbin/install
3717# AIX /bin/install
3718# AmigaOS /C/install, which installs bootblocks on floppy discs
3719# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3720# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3721# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3722# OS/2's system install, which has a completely different semantic
3723# ./install, which can be erroneously created by make from ./install.sh.
3724# Reject install programs that cannot install multiple files.
3725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3726$as_echo_n "checking for a BSD-compatible install... " >&6; }
3727if test -z "$INSTALL"; then
cristyda16f162011-02-19 23:52:17 +00003728if ${ac_cv_path_install+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003729 $as_echo_n "(cached) " >&6
3730else
3731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3732for as_dir in $PATH
3733do
3734 IFS=$as_save_IFS
3735 test -z "$as_dir" && as_dir=.
3736 # Account for people who put trailing slashes in PATH elements.
3737case $as_dir/ in #((
3738 ./ | .// | /[cC]/* | \
3739 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3740 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3741 /usr/ucb/* ) ;;
3742 *)
3743 # OSF1 and SCO ODT 3.0 have their own names for install.
3744 # Don't use installbsd from OSF since it installs stuff as root
3745 # by default.
3746 for ac_prog in ginstall scoinst install; do
3747 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003748 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003749 if test $ac_prog = install &&
3750 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3751 # AIX install. It has an incompatible calling convention.
3752 :
3753 elif test $ac_prog = install &&
3754 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3755 # program-specific install script used by HP pwplus--don't use.
3756 :
3757 else
3758 rm -rf conftest.one conftest.two conftest.dir
3759 echo one > conftest.one
3760 echo two > conftest.two
3761 mkdir conftest.dir
3762 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3763 test -s conftest.one && test -s conftest.two &&
3764 test -s conftest.dir/conftest.one &&
3765 test -s conftest.dir/conftest.two
3766 then
3767 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3768 break 3
3769 fi
3770 fi
3771 fi
3772 done
3773 done
3774 ;;
3775esac
3776
3777 done
3778IFS=$as_save_IFS
3779
3780rm -rf conftest.one conftest.two conftest.dir
3781
3782fi
3783 if test "${ac_cv_path_install+set}" = set; then
3784 INSTALL=$ac_cv_path_install
3785 else
3786 # As a last resort, use the slow shell script. Don't cache a
3787 # value for INSTALL within a source directory, because that will
3788 # break other packages using the cache if that directory is
3789 # removed, or if the value is a relative name.
3790 INSTALL=$ac_install_sh
3791 fi
3792fi
3793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3794$as_echo "$INSTALL" >&6; }
3795
3796# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3797# It thinks the first close brace ends the variable substitution.
3798test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3799
3800test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3801
3802test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3803
3804test "$program_prefix" != NONE &&
3805 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3806# Use a double $ so make ignores it.
3807test "$program_suffix" != NONE &&
3808 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3809# Double any \ or $.
3810# By default was `s,x,x', remove it if useless.
3811ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3812program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3813
3814# expand $ac_aux_dir to an absolute path
3815am_aux_dir=`cd $ac_aux_dir && pwd`
3816
3817if test x"${MISSING+set}" != xset; then
3818 case $am_aux_dir in
3819 *\ * | *\ *)
3820 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3821 *)
3822 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3823 esac
3824fi
3825# Use eval to expand $SHELL
3826if eval "$MISSING --run true"; then
3827 am_missing_run="$MISSING --run "
3828else
3829 am_missing_run=
3830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3831$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3832fi
3833
3834if test x"${install_sh}" != xset; then
3835 case $am_aux_dir in
3836 *\ * | *\ *)
3837 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3838 *)
3839 install_sh="\${SHELL} $am_aux_dir/install-sh"
3840 esac
3841fi
3842
3843# Installed binaries are usually stripped using `strip' when the user
3844# run `make install-strip'. However `strip' might not be the right
3845# tool to use in cross-compilation environments, therefore Automake
3846# will honor the `STRIP' environment variable to overrule this program.
3847if test "$cross_compiling" != no; then
3848 if test -n "$ac_tool_prefix"; then
3849 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3850set dummy ${ac_tool_prefix}strip; ac_word=$2
3851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3852$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003853if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003854 $as_echo_n "(cached) " >&6
3855else
3856 if test -n "$STRIP"; then
3857 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3858else
3859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3860for as_dir in $PATH
3861do
3862 IFS=$as_save_IFS
3863 test -z "$as_dir" && as_dir=.
3864 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003865 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003866 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3868 break 2
3869 fi
3870done
3871 done
3872IFS=$as_save_IFS
3873
3874fi
3875fi
3876STRIP=$ac_cv_prog_STRIP
3877if test -n "$STRIP"; then
3878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3879$as_echo "$STRIP" >&6; }
3880else
3881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3882$as_echo "no" >&6; }
3883fi
3884
3885
3886fi
3887if test -z "$ac_cv_prog_STRIP"; then
3888 ac_ct_STRIP=$STRIP
3889 # Extract the first word of "strip", so it can be a program name with args.
3890set dummy strip; ac_word=$2
3891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3892$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003893if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003894 $as_echo_n "(cached) " >&6
3895else
3896 if test -n "$ac_ct_STRIP"; then
3897 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3898else
3899as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3900for as_dir in $PATH
3901do
3902 IFS=$as_save_IFS
3903 test -z "$as_dir" && as_dir=.
3904 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003905 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003906 ac_cv_prog_ac_ct_STRIP="strip"
3907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3908 break 2
3909 fi
3910done
3911 done
3912IFS=$as_save_IFS
3913
3914fi
3915fi
3916ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3917if test -n "$ac_ct_STRIP"; then
3918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3919$as_echo "$ac_ct_STRIP" >&6; }
3920else
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3922$as_echo "no" >&6; }
3923fi
3924
3925 if test "x$ac_ct_STRIP" = x; then
3926 STRIP=":"
3927 else
3928 case $cross_compiling:$ac_tool_warned in
3929yes:)
3930{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3931$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3932ac_tool_warned=yes ;;
3933esac
3934 STRIP=$ac_ct_STRIP
3935 fi
3936else
3937 STRIP="$ac_cv_prog_STRIP"
3938fi
3939
3940fi
3941INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3942
3943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3944$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3945if test -z "$MKDIR_P"; then
cristyda16f162011-02-19 23:52:17 +00003946 if ${ac_cv_path_mkdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003947 $as_echo_n "(cached) " >&6
3948else
3949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3950for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3951do
3952 IFS=$as_save_IFS
3953 test -z "$as_dir" && as_dir=.
3954 for ac_prog in mkdir gmkdir; do
3955 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003956 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
cristy73bd4a52010-10-05 11:24:23 +00003957 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3958 'mkdir (GNU coreutils) '* | \
3959 'mkdir (coreutils) '* | \
3960 'mkdir (fileutils) '4.1*)
3961 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3962 break 3;;
3963 esac
3964 done
3965 done
3966 done
3967IFS=$as_save_IFS
3968
3969fi
3970
3971 test -d ./--version && rmdir ./--version
3972 if test "${ac_cv_path_mkdir+set}" = set; then
3973 MKDIR_P="$ac_cv_path_mkdir -p"
3974 else
3975 # As a last resort, use the slow shell script. Don't cache a
3976 # value for MKDIR_P within a source directory, because that will
3977 # break other packages using the cache if that directory is
3978 # removed, or if the value is a relative name.
3979 MKDIR_P="$ac_install_sh -d"
3980 fi
3981fi
3982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3983$as_echo "$MKDIR_P" >&6; }
3984
3985mkdir_p="$MKDIR_P"
3986case $mkdir_p in
3987 [\\/$]* | ?:[\\/]*) ;;
3988 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3989esac
3990
3991for ac_prog in gawk mawk nawk awk
3992do
3993 # Extract the first word of "$ac_prog", so it can be a program name with args.
3994set dummy $ac_prog; ac_word=$2
3995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3996$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003997if ${ac_cv_prog_AWK+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003998 $as_echo_n "(cached) " >&6
3999else
4000 if test -n "$AWK"; then
4001 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4002else
4003as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4004for as_dir in $PATH
4005do
4006 IFS=$as_save_IFS
4007 test -z "$as_dir" && as_dir=.
4008 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004009 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00004010 ac_cv_prog_AWK="$ac_prog"
4011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4012 break 2
4013 fi
4014done
4015 done
4016IFS=$as_save_IFS
4017
4018fi
4019fi
4020AWK=$ac_cv_prog_AWK
4021if test -n "$AWK"; then
4022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4023$as_echo "$AWK" >&6; }
4024else
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4026$as_echo "no" >&6; }
4027fi
4028
4029
4030 test -n "$AWK" && break
4031done
4032
4033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4034$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4035set x ${MAKE-make}
4036ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00004037if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004038 $as_echo_n "(cached) " >&6
4039else
4040 cat >conftest.make <<\_ACEOF
4041SHELL = /bin/sh
4042all:
4043 @echo '@@@%%%=$(MAKE)=@@@%%%'
4044_ACEOF
cristy98dddb52010-11-04 00:30:15 +00004045# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristy73bd4a52010-10-05 11:24:23 +00004046case `${MAKE-make} -f conftest.make 2>/dev/null` in
4047 *@@@%%%=?*=@@@%%%*)
4048 eval ac_cv_prog_make_${ac_make}_set=yes;;
4049 *)
4050 eval ac_cv_prog_make_${ac_make}_set=no;;
4051esac
4052rm -f conftest.make
4053fi
4054if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4056$as_echo "yes" >&6; }
4057 SET_MAKE=
4058else
4059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4060$as_echo "no" >&6; }
4061 SET_MAKE="MAKE=${MAKE-make}"
4062fi
4063
4064rm -rf .tst 2>/dev/null
4065mkdir .tst 2>/dev/null
4066if test -d .tst; then
4067 am__leading_dot=.
4068else
4069 am__leading_dot=_
4070fi
4071rmdir .tst 2>/dev/null
4072
cristya448bd22011-10-14 12:38:13 +00004073# Check whether --enable-silent-rules was given.
4074if test "${enable_silent_rules+set}" = set; then :
4075 enableval=$enable_silent_rules;
4076fi
4077
4078case $enable_silent_rules in
4079yes) AM_DEFAULT_VERBOSITY=0;;
4080no) AM_DEFAULT_VERBOSITY=1;;
4081*) AM_DEFAULT_VERBOSITY=1;;
4082esac
cristyc3fb77b2012-02-06 01:49:41 +00004083am_make=${MAKE-make}
4084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4085$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4086if ${am_cv_make_support_nested_variables+:} false; then :
4087 $as_echo_n "(cached) " >&6
4088else
4089 if $as_echo 'TRUE=$(BAR$(V))
4090BAR0=false
4091BAR1=true
4092V=1
4093am__doit:
4094 @$(TRUE)
4095.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4096 am_cv_make_support_nested_variables=yes
4097else
4098 am_cv_make_support_nested_variables=no
4099fi
4100fi
4101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4102$as_echo "$am_cv_make_support_nested_variables" >&6; }
4103if test $am_cv_make_support_nested_variables = yes; then
4104 AM_V='$(V)'
4105 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4106else
4107 AM_V=$AM_DEFAULT_VERBOSITY
4108 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4109fi
cristya448bd22011-10-14 12:38:13 +00004110AM_BACKSLASH='\'
4111
cristy73bd4a52010-10-05 11:24:23 +00004112if test "`cd $srcdir && pwd`" != "`pwd`"; then
4113 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4114 # is not polluted with repeated "-I."
4115 am__isrc=' -I$(srcdir)'
4116 # test to see if srcdir already configured
4117 if test -f $srcdir/config.status; then
cristy98dddb52010-11-04 00:30:15 +00004118 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00004119 fi
4120fi
4121
4122# test whether we have cygpath
4123if test -z "$CYGPATH_W"; then
4124 if (cygpath --version) >/dev/null 2>/dev/null; then
4125 CYGPATH_W='cygpath -w'
4126 else
4127 CYGPATH_W=echo
4128 fi
4129fi
4130
4131
4132# Define the identity of the package.
cristy09b53e12011-10-14 12:47:22 +00004133 PACKAGE='ImageMagick'
cristy29eb34e2011-10-16 00:46:08 +00004134 VERSION='7.0.0-0'
cristy73bd4a52010-10-05 11:24:23 +00004135
4136
cristya448bd22011-10-14 12:38:13 +00004137cat >>confdefs.h <<_ACEOF
4138#define PACKAGE "$PACKAGE"
4139_ACEOF
4140
4141
4142cat >>confdefs.h <<_ACEOF
4143#define VERSION "$VERSION"
4144_ACEOF
4145
cristy73bd4a52010-10-05 11:24:23 +00004146# Some tools Automake needs.
4147
4148ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4149
4150
4151AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4152
4153
4154AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4155
4156
4157AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4158
4159
4160MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4161
4162# We need awk for the "check" target. The system "awk" is bad on
4163# some platforms.
cristyc3fb77b2012-02-06 01:49:41 +00004164# Always define AMTAR for backward compatibility. Yes, it's still used
4165# in the wild :-( We should find a proper way to deprecate it ...
4166AMTAR='$${TAR-tar}'
cristy73bd4a52010-10-05 11:24:23 +00004167
cristyc3fb77b2012-02-06 01:49:41 +00004168am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
cristy73bd4a52010-10-05 11:24:23 +00004169
4170
4171
4172
4173
cristy3ed852e2009-09-05 21:47:34 +00004174
4175# Enable support for silent build rules
cristy73bd4a52010-10-05 11:24:23 +00004176# Check whether --enable-silent-rules was given.
4177if test "${enable_silent_rules+set}" = set; then :
4178 enableval=$enable_silent_rules;
4179fi
4180
4181case $enable_silent_rules in
4182yes) AM_DEFAULT_VERBOSITY=0;;
4183no) AM_DEFAULT_VERBOSITY=1;;
4184*) AM_DEFAULT_VERBOSITY=0;;
4185esac
cristyc3fb77b2012-02-06 01:49:41 +00004186am_make=${MAKE-make}
4187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4188$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4189if ${am_cv_make_support_nested_variables+:} false; then :
4190 $as_echo_n "(cached) " >&6
4191else
4192 if $as_echo 'TRUE=$(BAR$(V))
4193BAR0=false
4194BAR1=true
4195V=1
4196am__doit:
4197 @$(TRUE)
4198.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4199 am_cv_make_support_nested_variables=yes
4200else
4201 am_cv_make_support_nested_variables=no
4202fi
4203fi
4204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4205$as_echo "$am_cv_make_support_nested_variables" >&6; }
4206if test $am_cv_make_support_nested_variables = yes; then
4207 AM_V='$(V)'
4208 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4209else
4210 AM_V=$AM_DEFAULT_VERBOSITY
4211 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4212fi
cristy73bd4a52010-10-05 11:24:23 +00004213AM_BACKSLASH='\'
4214
cristy3ed852e2009-09-05 21:47:34 +00004215
4216MAGICK_LIB_VERSION="0x"
4217if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
4218 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4219fi
4220MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
4221if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
4222 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4223fi
4224MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
4225if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
4226 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4227fi
4228MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
4229
4230
4231# Definition used to define MagickLibVersionText in version.h
4232MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
4233
4234
4235# Definition used to define MagickLibVersionNumber in version.h
4236MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
4237
4238
4239# Regenerate config.status if ChangeLog or version.sh is updated.
4240CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
4241
4242
4243PERLMAINCC=$CC
4244
4245MAGICK_CFLAGS=''
4246MAGICK_CPPFLAGS=$CPPFLAGS_USER
4247MAGICK_PCFLAGS=$CPPFLAGS_USER
4248MAGICK_LDFLAGS=''
4249MAGICK_LIBS=''
cristyfd9dcd42010-08-08 18:07:02 +00004250MAGICK_FEATURES=''
cristy3ed852e2009-09-05 21:47:34 +00004251
4252#
4253# Evaluate shell variable equivalents to Makefile directory variables
4254#
4255if test "x$prefix" = xNONE; then
4256 prefix=$ac_default_prefix
4257fi
4258# Let make expand exec_prefix.
4259if test "x$exec_prefix" = xNONE; then
4260 exec_prefix='${prefix}'
4261fi
4262
4263#
4264eval "eval PREFIX_DIR=${prefix}"
4265
4266eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
4267
4268eval "eval BIN_DIR=$bindir"
4269
4270eval "eval SBIN_DIR=$sbindir"
4271
4272eval "eval LIBEXEC_DIR=$libexecdir"
4273
4274eval "eval DATA_DIR=$datadir"
4275
cristy4e65ec22012-04-08 01:33:27 +00004276eval "eval DOC_DIR=$datadir/doc"
cristyd55889c2011-03-27 00:50:24 +00004277
cristy3ed852e2009-09-05 21:47:34 +00004278eval "eval SYSCONF_DIR=$sysconfdir"
4279
4280eval "eval SHAREDSTATE_DIR=$sharedstatedir"
4281
4282eval "eval LOCALSTATE_DIR=$localstatedir"
4283
4284eval "eval LIB_DIR=$libdir"
4285
4286eval "eval INCLUDE_DIR=$includedir"
4287
4288eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
4289
4290eval "eval INFO_DIR=$infodir"
4291
4292eval "eval MAN_DIR=$mandir"
4293
4294
4295# Get full paths to source and build directories
4296srcdirfull="`cd $srcdir && pwd`"
4297builddir="`pwd`"
4298
4299#
4300# Compute variables useful for running uninstalled software.
4301#
4302MAGICK_CODER_MODULE_PATH="${builddir}/coders"
4303MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
4304MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
4305MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
4306DIRSEP=':'
4307case "${build_os}" in
4308 mingw* )
4309 MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
4310 MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
4311 MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
4312 MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
4313 DIRSEP=';'
4314 ;;
4315esac
4316case "${host_os}" in
4317 mingw* )
4318 DIRSEP=';'
4319 ;;
4320esac
4321
4322
4323
4324
4325
4326
cristya0b81c32010-01-22 02:54:33 +00004327
4328#
4329# Enable OS features.
4330#
cristy73bd4a52010-10-05 11:24:23 +00004331DEPDIR="${am__leading_dot}deps"
4332
4333ac_config_commands="$ac_config_commands depfiles"
4334
4335
4336am_make=${MAKE-make}
4337cat > confinc << 'END'
4338am__doit:
4339 @echo this is the am__doit target
4340.PHONY: am__doit
4341END
4342# If we don't find an include directive, just comment out the code.
4343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4344$as_echo_n "checking for style of include used by $am_make... " >&6; }
4345am__include="#"
4346am__quote=
4347_am_result=none
4348# First try GNU make style include.
4349echo "include confinc" > confmf
4350# Ignore all kinds of additional output from `make'.
4351case `$am_make -s -f confmf 2> /dev/null` in #(
4352*the\ am__doit\ target*)
4353 am__include=include
4354 am__quote=
4355 _am_result=GNU
4356 ;;
4357esac
4358# Now try BSD make style include.
4359if test "$am__include" = "#"; then
4360 echo '.include "confinc"' > confmf
4361 case `$am_make -s -f confmf 2> /dev/null` in #(
4362 *the\ am__doit\ target*)
4363 am__include=.include
4364 am__quote="\""
4365 _am_result=BSD
4366 ;;
4367 esac
4368fi
4369
4370
4371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4372$as_echo "$_am_result" >&6; }
4373rm -f confinc confmf
4374
4375# Check whether --enable-dependency-tracking was given.
4376if test "${enable_dependency_tracking+set}" = set; then :
4377 enableval=$enable_dependency_tracking;
4378fi
4379
4380if test "x$enable_dependency_tracking" != xno; then
4381 am_depcomp="$ac_aux_dir/depcomp"
4382 AMDEPBACKSLASH='\'
cristy7247bba2012-02-05 16:37:27 +00004383 am__nodep='_no'
cristy73bd4a52010-10-05 11:24:23 +00004384fi
4385 if test "x$enable_dependency_tracking" != xno; then
4386 AMDEP_TRUE=
4387 AMDEP_FALSE='#'
4388else
4389 AMDEP_TRUE='#'
4390 AMDEP_FALSE=
4391fi
4392
4393
cristy3ed852e2009-09-05 21:47:34 +00004394ac_ext=c
4395ac_cpp='$CPP $CPPFLAGS'
4396ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4397ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4398ac_compiler_gnu=$ac_cv_c_compiler_gnu
4399if test -n "$ac_tool_prefix"; then
4400 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4401set dummy ${ac_tool_prefix}gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004403$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004404if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004405 $as_echo_n "(cached) " >&6
4406else
4407 if test -n "$CC"; then
4408 ac_cv_prog_CC="$CC" # Let the user override the test.
4409else
4410as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4411for as_dir in $PATH
4412do
4413 IFS=$as_save_IFS
4414 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004415 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004416 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004417 ac_cv_prog_CC="${ac_tool_prefix}gcc"
cristy8b350f62009-11-15 23:12:43 +00004418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004419 break 2
4420 fi
4421done
cristy8b350f62009-11-15 23:12:43 +00004422 done
cristy3ed852e2009-09-05 21:47:34 +00004423IFS=$as_save_IFS
4424
4425fi
4426fi
4427CC=$ac_cv_prog_CC
4428if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004430$as_echo "$CC" >&6; }
4431else
cristy8b350f62009-11-15 23:12:43 +00004432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004433$as_echo "no" >&6; }
4434fi
4435
4436
4437fi
4438if test -z "$ac_cv_prog_CC"; then
4439 ac_ct_CC=$CC
4440 # Extract the first word of "gcc", so it can be a program name with args.
4441set dummy gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004443$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004444if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004445 $as_echo_n "(cached) " >&6
4446else
4447 if test -n "$ac_ct_CC"; then
4448 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4449else
4450as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4451for as_dir in $PATH
4452do
4453 IFS=$as_save_IFS
4454 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004455 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004456 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004457 ac_cv_prog_ac_ct_CC="gcc"
cristy8b350f62009-11-15 23:12:43 +00004458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004459 break 2
4460 fi
4461done
cristy8b350f62009-11-15 23:12:43 +00004462 done
cristy3ed852e2009-09-05 21:47:34 +00004463IFS=$as_save_IFS
4464
4465fi
4466fi
4467ac_ct_CC=$ac_cv_prog_ac_ct_CC
4468if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004470$as_echo "$ac_ct_CC" >&6; }
4471else
cristy8b350f62009-11-15 23:12:43 +00004472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004473$as_echo "no" >&6; }
4474fi
4475
4476 if test "x$ac_ct_CC" = x; then
4477 CC=""
4478 else
4479 case $cross_compiling:$ac_tool_warned in
4480yes:)
cristy8b350f62009-11-15 23:12:43 +00004481{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004482$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4483ac_tool_warned=yes ;;
4484esac
4485 CC=$ac_ct_CC
4486 fi
4487else
4488 CC="$ac_cv_prog_CC"
4489fi
4490
4491if test -z "$CC"; then
4492 if test -n "$ac_tool_prefix"; then
4493 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4494set dummy ${ac_tool_prefix}cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004496$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004497if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004498 $as_echo_n "(cached) " >&6
4499else
4500 if test -n "$CC"; then
4501 ac_cv_prog_CC="$CC" # Let the user override the test.
4502else
4503as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4504for as_dir in $PATH
4505do
4506 IFS=$as_save_IFS
4507 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004508 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004509 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004510 ac_cv_prog_CC="${ac_tool_prefix}cc"
cristy8b350f62009-11-15 23:12:43 +00004511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004512 break 2
4513 fi
4514done
cristy8b350f62009-11-15 23:12:43 +00004515 done
cristy3ed852e2009-09-05 21:47:34 +00004516IFS=$as_save_IFS
4517
4518fi
4519fi
4520CC=$ac_cv_prog_CC
4521if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004523$as_echo "$CC" >&6; }
4524else
cristy8b350f62009-11-15 23:12:43 +00004525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004526$as_echo "no" >&6; }
4527fi
4528
4529
4530 fi
4531fi
4532if test -z "$CC"; then
4533 # Extract the first word of "cc", so it can be a program name with args.
4534set dummy cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004536$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004537if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004538 $as_echo_n "(cached) " >&6
4539else
4540 if test -n "$CC"; then
4541 ac_cv_prog_CC="$CC" # Let the user override the test.
4542else
4543 ac_prog_rejected=no
4544as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4545for as_dir in $PATH
4546do
4547 IFS=$as_save_IFS
4548 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004549 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004550 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004551 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4552 ac_prog_rejected=yes
4553 continue
4554 fi
4555 ac_cv_prog_CC="cc"
cristy8b350f62009-11-15 23:12:43 +00004556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004557 break 2
4558 fi
4559done
cristy8b350f62009-11-15 23:12:43 +00004560 done
cristy3ed852e2009-09-05 21:47:34 +00004561IFS=$as_save_IFS
4562
4563if test $ac_prog_rejected = yes; then
4564 # We found a bogon in the path, so make sure we never use it.
4565 set dummy $ac_cv_prog_CC
4566 shift
4567 if test $# != 0; then
4568 # We chose a different compiler from the bogus one.
4569 # However, it has the same basename, so the bogon will be chosen
4570 # first if we set CC to just the basename; use the full file name.
4571 shift
4572 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4573 fi
4574fi
4575fi
4576fi
4577CC=$ac_cv_prog_CC
4578if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004580$as_echo "$CC" >&6; }
4581else
cristy8b350f62009-11-15 23:12:43 +00004582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004583$as_echo "no" >&6; }
4584fi
4585
4586
4587fi
4588if test -z "$CC"; then
4589 if test -n "$ac_tool_prefix"; then
4590 for ac_prog in cl.exe
4591 do
4592 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4593set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004595$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004596if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004597 $as_echo_n "(cached) " >&6
4598else
4599 if test -n "$CC"; then
4600 ac_cv_prog_CC="$CC" # Let the user override the test.
4601else
4602as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4603for as_dir in $PATH
4604do
4605 IFS=$as_save_IFS
4606 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004607 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004608 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004609 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004611 break 2
4612 fi
4613done
cristy8b350f62009-11-15 23:12:43 +00004614 done
cristy3ed852e2009-09-05 21:47:34 +00004615IFS=$as_save_IFS
4616
4617fi
4618fi
4619CC=$ac_cv_prog_CC
4620if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004622$as_echo "$CC" >&6; }
4623else
cristy8b350f62009-11-15 23:12:43 +00004624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004625$as_echo "no" >&6; }
4626fi
4627
4628
4629 test -n "$CC" && break
4630 done
4631fi
4632if test -z "$CC"; then
4633 ac_ct_CC=$CC
4634 for ac_prog in cl.exe
4635do
4636 # Extract the first word of "$ac_prog", so it can be a program name with args.
4637set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004639$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004640if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004641 $as_echo_n "(cached) " >&6
4642else
4643 if test -n "$ac_ct_CC"; then
4644 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4645else
4646as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4647for as_dir in $PATH
4648do
4649 IFS=$as_save_IFS
4650 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004651 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004652 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004653 ac_cv_prog_ac_ct_CC="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004655 break 2
4656 fi
4657done
cristy8b350f62009-11-15 23:12:43 +00004658 done
cristy3ed852e2009-09-05 21:47:34 +00004659IFS=$as_save_IFS
4660
4661fi
4662fi
4663ac_ct_CC=$ac_cv_prog_ac_ct_CC
4664if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004666$as_echo "$ac_ct_CC" >&6; }
4667else
cristy8b350f62009-11-15 23:12:43 +00004668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004669$as_echo "no" >&6; }
4670fi
4671
4672
4673 test -n "$ac_ct_CC" && break
4674done
4675
4676 if test "x$ac_ct_CC" = x; then
4677 CC=""
4678 else
4679 case $cross_compiling:$ac_tool_warned in
4680yes:)
cristy8b350f62009-11-15 23:12:43 +00004681{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004682$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4683ac_tool_warned=yes ;;
4684esac
4685 CC=$ac_ct_CC
4686 fi
4687fi
4688
4689fi
4690
4691
cristy8b350f62009-11-15 23:12:43 +00004692test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004693$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004694as_fn_error $? "no acceptable C compiler found in \$PATH
4695See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004696
4697# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +00004698$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +00004699set X $ac_compile
4700ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +00004701for ac_option in --version -v -V -qversion; do
4702 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +00004703case "(($ac_try" in
4704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4705 *) ac_try_echo=$ac_try;;
4706esac
cristy8b350f62009-11-15 23:12:43 +00004707eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4708$as_echo "$ac_try_echo"; } >&5
4709 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +00004710 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004711 if test -s conftest.err; then
4712 sed '10a\
4713... rest of stderr output deleted ...
4714 10q' conftest.err >conftest.er1
4715 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +00004716 fi
cristycd4c5312009-11-22 01:19:08 +00004717 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +00004718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4719 test $ac_status = 0; }
4720done
cristy3ed852e2009-09-05 21:47:34 +00004721
cristy8b350f62009-11-15 23:12:43 +00004722cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004723/* end confdefs.h. */
cristycd4c5312009-11-22 01:19:08 +00004724
cristy3ed852e2009-09-05 21:47:34 +00004725int
4726main ()
4727{
4728
4729 ;
4730 return 0;
4731}
4732_ACEOF
4733ac_clean_files_save=$ac_clean_files
cristycd4c5312009-11-22 01:19:08 +00004734ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
cristy3ed852e2009-09-05 21:47:34 +00004735# Try to create an executable without -o first, disregard a.out.
4736# It will help us diagnose broken compilers, and finding out an intuition
4737# of exeext.
cristycd4c5312009-11-22 01:19:08 +00004738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4739$as_echo_n "checking whether the C compiler works... " >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004740ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4741
4742# The possible output files:
4743ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4744
4745ac_rmfiles=
4746for ac_file in $ac_files
4747do
4748 case $ac_file in
4749 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4750 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4751 esac
4752done
4753rm -f $ac_rmfiles
4754
cristy8b350f62009-11-15 23:12:43 +00004755if { { ac_try="$ac_link_default"
cristy3ed852e2009-09-05 21:47:34 +00004756case "(($ac_try" in
4757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4758 *) ac_try_echo=$ac_try;;
4759esac
cristy8b350f62009-11-15 23:12:43 +00004760eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4761$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004762 (eval "$ac_link_default") 2>&5
4763 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4765 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004766 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4767# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4768# in a Makefile. We should not override ac_cv_exeext if it was cached,
4769# so that the user can short-circuit this test for compilers unknown to
4770# Autoconf.
4771for ac_file in $ac_files ''
4772do
4773 test -f "$ac_file" || continue
4774 case $ac_file in
4775 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4776 ;;
4777 [ab].out )
4778 # We found the default executable, but exeext='' is most
4779 # certainly right.
4780 break;;
4781 *.* )
cristy8b350f62009-11-15 23:12:43 +00004782 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
cristy3ed852e2009-09-05 21:47:34 +00004783 then :; else
4784 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4785 fi
4786 # We set ac_cv_exeext here because the later test for it is not
4787 # safe: cross compilers may not add the suffix if given an `-o'
4788 # argument, so we may need to know it at that point already.
4789 # Even if this section looks crufty: it has the advantage of
4790 # actually working.
4791 break;;
4792 * )
4793 break;;
4794 esac
4795done
4796test "$ac_cv_exeext" = no && ac_cv_exeext=
4797
4798else
4799 ac_file=''
4800fi
cristy8b350f62009-11-15 23:12:43 +00004801if test -z "$ac_file"; then :
cristycd4c5312009-11-22 01:19:08 +00004802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4803$as_echo "no" >&6; }
4804$as_echo "$as_me: failed program was:" >&5
cristy3ed852e2009-09-05 21:47:34 +00004805sed 's/^/| /' conftest.$ac_ext >&5
4806
cristy8b350f62009-11-15 23:12:43 +00004807{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004808$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004809as_fn_error 77 "C compiler cannot create executables
4810See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00004811else
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4813$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004814fi
cristycd4c5312009-11-22 01:19:08 +00004815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4816$as_echo_n "checking for C compiler default output file name... " >&6; }
4817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4818$as_echo "$ac_file" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004819ac_exeext=$ac_cv_exeext
4820
cristycd4c5312009-11-22 01:19:08 +00004821rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
cristy3ed852e2009-09-05 21:47:34 +00004822ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
cristy3ed852e2009-09-05 21:47:34 +00004824$as_echo_n "checking for suffix of executables... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004825if { { ac_try="$ac_link"
cristy3ed852e2009-09-05 21:47:34 +00004826case "(($ac_try" in
4827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4828 *) ac_try_echo=$ac_try;;
4829esac
cristy8b350f62009-11-15 23:12:43 +00004830eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4831$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004832 (eval "$ac_link") 2>&5
4833 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4835 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004836 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4837# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4838# work properly (i.e., refer to `conftest.exe'), while it won't with
4839# `rm'.
4840for ac_file in conftest.exe conftest conftest.*; do
4841 test -f "$ac_file" || continue
4842 case $ac_file in
4843 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4844 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4845 break;;
4846 * ) break;;
4847 esac
4848done
4849else
cristy8b350f62009-11-15 23:12:43 +00004850 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004851$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004852as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4853See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004854fi
cristycd4c5312009-11-22 01:19:08 +00004855rm -f conftest conftest$ac_cv_exeext
cristy8b350f62009-11-15 23:12:43 +00004856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004857$as_echo "$ac_cv_exeext" >&6; }
4858
4859rm -f conftest.$ac_ext
4860EXEEXT=$ac_cv_exeext
4861ac_exeext=$EXEEXT
cristycd4c5312009-11-22 01:19:08 +00004862cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4863/* end confdefs.h. */
4864#include <stdio.h>
4865int
4866main ()
4867{
4868FILE *f = fopen ("conftest.out", "w");
4869 return ferror (f) || fclose (f) != 0;
4870
4871 ;
4872 return 0;
4873}
4874_ACEOF
4875ac_clean_files="$ac_clean_files conftest.out"
4876# Check that the compiler produces executables we can run. If not, either
4877# the compiler is broken, or we cross compile.
4878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4879$as_echo_n "checking whether we are cross compiling... " >&6; }
4880if test "$cross_compiling" != yes; then
4881 { { ac_try="$ac_link"
4882case "(($ac_try" in
4883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4884 *) ac_try_echo=$ac_try;;
4885esac
4886eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4887$as_echo "$ac_try_echo"; } >&5
4888 (eval "$ac_link") 2>&5
4889 ac_status=$?
4890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4891 test $ac_status = 0; }
4892 if { ac_try='./conftest$ac_cv_exeext'
4893 { { case "(($ac_try" in
4894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4895 *) ac_try_echo=$ac_try;;
4896esac
4897eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4898$as_echo "$ac_try_echo"; } >&5
4899 (eval "$ac_try") 2>&5
4900 ac_status=$?
4901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4902 test $ac_status = 0; }; }; then
4903 cross_compiling=no
4904 else
4905 if test "$cross_compiling" = maybe; then
4906 cross_compiling=yes
4907 else
4908 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4909$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004910as_fn_error $? "cannot run C compiled programs.
cristycd4c5312009-11-22 01:19:08 +00004911If you meant to cross compile, use \`--host'.
cristy98dddb52010-11-04 00:30:15 +00004912See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00004913 fi
4914 fi
4915fi
4916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4917$as_echo "$cross_compiling" >&6; }
4918
4919rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4920ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00004922$as_echo_n "checking for suffix of object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004923if ${ac_cv_objext+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004924 $as_echo_n "(cached) " >&6
4925else
cristy8b350f62009-11-15 23:12:43 +00004926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004927/* end confdefs.h. */
4928
4929int
4930main ()
4931{
4932
4933 ;
4934 return 0;
4935}
4936_ACEOF
4937rm -f conftest.o conftest.obj
cristy8b350f62009-11-15 23:12:43 +00004938if { { ac_try="$ac_compile"
cristy3ed852e2009-09-05 21:47:34 +00004939case "(($ac_try" in
4940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4941 *) ac_try_echo=$ac_try;;
4942esac
cristy8b350f62009-11-15 23:12:43 +00004943eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4944$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004945 (eval "$ac_compile") 2>&5
4946 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004947 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4948 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004949 for ac_file in conftest.o conftest.obj conftest.*; do
4950 test -f "$ac_file" || continue;
4951 case $ac_file in
4952 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4953 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4954 break;;
4955 esac
4956done
4957else
4958 $as_echo "$as_me: failed program was:" >&5
4959sed 's/^/| /' conftest.$ac_ext >&5
4960
cristy8b350f62009-11-15 23:12:43 +00004961{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004962$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004963as_fn_error $? "cannot compute suffix of object files: cannot compile
4964See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004965fi
cristy3ed852e2009-09-05 21:47:34 +00004966rm -f conftest.$ac_cv_objext conftest.$ac_ext
4967fi
cristy8b350f62009-11-15 23:12:43 +00004968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004969$as_echo "$ac_cv_objext" >&6; }
4970OBJEXT=$ac_cv_objext
4971ac_objext=$OBJEXT
cristy8b350f62009-11-15 23:12:43 +00004972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +00004973$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004974if ${ac_cv_c_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004975 $as_echo_n "(cached) " >&6
4976else
cristy8b350f62009-11-15 23:12:43 +00004977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004978/* end confdefs.h. */
4979
4980int
4981main ()
4982{
4983#ifndef __GNUC__
4984 choke me
4985#endif
4986
4987 ;
4988 return 0;
4989}
4990_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004991if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004992 ac_compiler_gnu=yes
4993else
cristy8b350f62009-11-15 23:12:43 +00004994 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +00004995fi
cristy3ed852e2009-09-05 21:47:34 +00004996rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4997ac_cv_c_compiler_gnu=$ac_compiler_gnu
4998
4999fi
cristy8b350f62009-11-15 23:12:43 +00005000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +00005001$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5002if test $ac_compiler_gnu = yes; then
5003 GCC=yes
5004else
5005 GCC=
5006fi
5007ac_test_CFLAGS=${CFLAGS+set}
5008ac_save_CFLAGS=$CFLAGS
cristy8b350f62009-11-15 23:12:43 +00005009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +00005010$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005011if ${ac_cv_prog_cc_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005012 $as_echo_n "(cached) " >&6
5013else
5014 ac_save_c_werror_flag=$ac_c_werror_flag
5015 ac_c_werror_flag=yes
5016 ac_cv_prog_cc_g=no
5017 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00005018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005019/* end confdefs.h. */
5020
5021int
5022main ()
5023{
5024
5025 ;
5026 return 0;
5027}
5028_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005029if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005030 ac_cv_prog_cc_g=yes
5031else
cristy8b350f62009-11-15 23:12:43 +00005032 CFLAGS=""
5033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005034/* end confdefs.h. */
5035
5036int
5037main ()
5038{
5039
5040 ;
5041 return 0;
5042}
5043_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005044if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005045
cristy8b350f62009-11-15 23:12:43 +00005046else
5047 ac_c_werror_flag=$ac_save_c_werror_flag
cristy3ed852e2009-09-05 21:47:34 +00005048 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00005049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005050/* end confdefs.h. */
5051
5052int
5053main ()
5054{
5055
5056 ;
5057 return 0;
5058}
5059_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005060if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005061 ac_cv_prog_cc_g=yes
cristy3ed852e2009-09-05 21:47:34 +00005062fi
cristy3ed852e2009-09-05 21:47:34 +00005063rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5064fi
cristy3ed852e2009-09-05 21:47:34 +00005065rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5066fi
cristy3ed852e2009-09-05 21:47:34 +00005067rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5068 ac_c_werror_flag=$ac_save_c_werror_flag
5069fi
cristy8b350f62009-11-15 23:12:43 +00005070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
cristy3ed852e2009-09-05 21:47:34 +00005071$as_echo "$ac_cv_prog_cc_g" >&6; }
5072if test "$ac_test_CFLAGS" = set; then
5073 CFLAGS=$ac_save_CFLAGS
5074elif test $ac_cv_prog_cc_g = yes; then
5075 if test "$GCC" = yes; then
5076 CFLAGS="-g -O2"
5077 else
5078 CFLAGS="-g"
5079 fi
5080else
5081 if test "$GCC" = yes; then
5082 CFLAGS="-O2"
5083 else
5084 CFLAGS=
5085 fi
5086fi
cristy8b350f62009-11-15 23:12:43 +00005087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005088$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005089if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005090 $as_echo_n "(cached) " >&6
5091else
5092 ac_cv_prog_cc_c89=no
5093ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00005094cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005095/* end confdefs.h. */
5096#include <stdarg.h>
5097#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00005098struct stat;
cristy3ed852e2009-09-05 21:47:34 +00005099/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5100struct buf { int x; };
5101FILE * (*rcsopen) (struct buf *, struct stat *, int);
5102static char *e (p, i)
5103 char **p;
5104 int i;
5105{
5106 return p[i];
5107}
5108static char *f (char * (*g) (char **, int), char **p, ...)
5109{
5110 char *s;
5111 va_list v;
5112 va_start (v,p);
5113 s = g (p, va_arg (v,int));
5114 va_end (v);
5115 return s;
5116}
5117
5118/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5119 function prototypes and stuff, but not '\xHH' hex character constants.
5120 These don't provoke an error unfortunately, instead are silently treated
5121 as 'x'. The following induces an error, until -std is added to get
5122 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5123 array size at least. It's necessary to write '\x00'==0 to get something
5124 that's true only with -std. */
5125int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5126
5127/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5128 inside strings and character constants. */
5129#define FOO(x) 'x'
5130int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5131
5132int test (int i, double x);
5133struct s1 {int (*f) (int a);};
5134struct s2 {int (*f) (double a);};
5135int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5136int argc;
5137char **argv;
5138int
5139main ()
5140{
5141return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5142 ;
5143 return 0;
5144}
5145_ACEOF
5146for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5147 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5148do
5149 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00005150 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005151 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00005152fi
cristy3ed852e2009-09-05 21:47:34 +00005153rm -f core conftest.err conftest.$ac_objext
5154 test "x$ac_cv_prog_cc_c89" != "xno" && break
5155done
5156rm -f conftest.$ac_ext
5157CC=$ac_save_CC
5158
5159fi
5160# AC_CACHE_VAL
5161case "x$ac_cv_prog_cc_c89" in
5162 x)
cristy8b350f62009-11-15 23:12:43 +00005163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00005164$as_echo "none needed" >&6; } ;;
5165 xno)
cristy8b350f62009-11-15 23:12:43 +00005166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00005167$as_echo "unsupported" >&6; } ;;
5168 *)
5169 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00005170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005171$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5172esac
cristy8b350f62009-11-15 23:12:43 +00005173if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00005174
cristy8b350f62009-11-15 23:12:43 +00005175fi
cristy3ed852e2009-09-05 21:47:34 +00005176
5177ac_ext=c
5178ac_cpp='$CPP $CPPFLAGS'
5179ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5180ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5181ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy3ed852e2009-09-05 21:47:34 +00005182
cristy73bd4a52010-10-05 11:24:23 +00005183depcc="$CC" am_compiler_list=
5184
5185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5186$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005187if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00005188 $as_echo_n "(cached) " >&6
5189else
5190 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5191 # We make a subdir and do the tests there. Otherwise we can end up
5192 # making bogus files that we don't know about and never remove. For
5193 # instance it was reported that on HP-UX the gcc test will end up
5194 # making a dummy file named `D' -- because `-MD' means `put the output
5195 # in D'.
cristy7247bba2012-02-05 16:37:27 +00005196 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00005197 mkdir conftest.dir
5198 # Copy depcomp to subdir because otherwise we won't find it if we're
5199 # using a relative directory.
5200 cp "$am_depcomp" conftest.dir
5201 cd conftest.dir
5202 # We will build objects and dependencies in a subdirectory because
5203 # it helps to detect inapplicable dependency modes. For instance
5204 # both Tru64's cc and ICC support -MD to output dependencies as a
5205 # side effect of compilation, but ICC will put the dependencies in
5206 # the current directory while Tru64 will put them in the object
5207 # directory.
5208 mkdir sub
5209
5210 am_cv_CC_dependencies_compiler_type=none
5211 if test "$am_compiler_list" = ""; then
5212 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5213 fi
5214 am__universal=false
5215 case " $depcc " in #(
5216 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5217 esac
5218
5219 for depmode in $am_compiler_list; do
5220 # Setup a source with many dependencies, because some compilers
5221 # like to wrap large dependency lists on column 80 (with \), and
5222 # we should not choose a depcomp mode which is confused by this.
5223 #
5224 # We need to recreate these files for each test, as the compiler may
5225 # overwrite some of them when testing with obscure command lines.
5226 # This happens at least with the AIX C compiler.
5227 : > sub/conftest.c
5228 for i in 1 2 3 4 5 6; do
5229 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5230 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5231 # Solaris 8's {/usr,}/bin/sh.
5232 touch sub/conftst$i.h
5233 done
5234 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5235
5236 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5237 # mode. It turns out that the SunPro C++ compiler does not properly
5238 # handle `-M -o', and we need to detect this. Also, some Intel
5239 # versions had trouble with output in subdirs
5240 am__obj=sub/conftest.${OBJEXT-o}
5241 am__minus_obj="-o $am__obj"
5242 case $depmode in
5243 gcc)
5244 # This depmode causes a compiler race in universal mode.
5245 test "$am__universal" = false || continue
5246 ;;
5247 nosideeffect)
5248 # after this tag, mechanisms are not by side-effect, so they'll
5249 # only be used when explicitly requested
5250 if test "x$enable_dependency_tracking" = xyes; then
5251 continue
5252 else
5253 break
5254 fi
5255 ;;
cristy7247bba2012-02-05 16:37:27 +00005256 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristy73bd4a52010-10-05 11:24:23 +00005257 # This compiler won't grok `-c -o', but also, the minuso test has
5258 # not run yet. These depmodes are late enough in the game, and
5259 # so weak that their functioning should not be impacted.
5260 am__obj=conftest.${OBJEXT-o}
5261 am__minus_obj=
5262 ;;
5263 none) break ;;
5264 esac
5265 if depmode=$depmode \
5266 source=sub/conftest.c object=$am__obj \
5267 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5268 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5269 >/dev/null 2>conftest.err &&
5270 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5271 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5272 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5273 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5274 # icc doesn't choke on unknown options, it will just issue warnings
5275 # or remarks (even with -Werror). So we grep stderr for any message
5276 # that says an option was ignored or not supported.
5277 # When given -MP, icc 7.0 and 7.1 complain thusly:
5278 # icc: Command line warning: ignoring option '-M'; no argument required
5279 # The diagnosis changed in icc 8.0:
5280 # icc: Command line remark: option '-MP' not supported
5281 if (grep 'ignoring option' conftest.err ||
5282 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5283 am_cv_CC_dependencies_compiler_type=$depmode
5284 break
5285 fi
5286 fi
5287 done
5288
5289 cd ..
5290 rm -rf conftest.dir
5291else
5292 am_cv_CC_dependencies_compiler_type=none
5293fi
5294
5295fi
5296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5297$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5298CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5299
5300 if
5301 test "x$enable_dependency_tracking" != xno \
5302 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5303 am__fastdepCC_TRUE=
5304 am__fastdepCC_FALSE='#'
5305else
5306 am__fastdepCC_TRUE='#'
5307 am__fastdepCC_FALSE=
5308fi
5309
5310
cristy3ed852e2009-09-05 21:47:34 +00005311
cristya0b81c32010-01-22 02:54:33 +00005312ac_ext=c
5313ac_cpp='$CPP $CPPFLAGS'
5314ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5315ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5316ac_compiler_gnu=$ac_cv_c_compiler_gnu
5317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5318$as_echo_n "checking how to run the C preprocessor... " >&6; }
5319# On Suns, sometimes $CPP names a directory.
5320if test -n "$CPP" && test -d "$CPP"; then
5321 CPP=
5322fi
5323if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00005324 if ${ac_cv_prog_CPP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005325 $as_echo_n "(cached) " >&6
5326else
5327 # Double quotes because CPP needs to be expanded
5328 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5329 do
5330 ac_preproc_ok=false
5331for ac_c_preproc_warn_flag in '' yes
5332do
5333 # Use a header file that comes with gcc, so configuring glibc
5334 # with a fresh cross-compiler works.
5335 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5336 # <limits.h> exists even on freestanding compilers.
5337 # On the NeXT, cc -E runs the code through the compiler's parser,
5338 # not just through cpp. "Syntax error" is here to catch this case.
5339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5340/* end confdefs.h. */
5341#ifdef __STDC__
5342# include <limits.h>
5343#else
5344# include <assert.h>
5345#endif
5346 Syntax error
5347_ACEOF
5348if ac_fn_c_try_cpp "$LINENO"; then :
5349
5350else
5351 # Broken: fails on valid input.
5352continue
5353fi
cristyda16f162011-02-19 23:52:17 +00005354rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005355
5356 # OK, works on sane cases. Now check whether nonexistent headers
5357 # can be detected and how.
5358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5359/* end confdefs.h. */
5360#include <ac_nonexistent.h>
5361_ACEOF
5362if ac_fn_c_try_cpp "$LINENO"; then :
5363 # Broken: success on invalid input.
5364continue
5365else
5366 # Passes both tests.
5367ac_preproc_ok=:
5368break
5369fi
cristyda16f162011-02-19 23:52:17 +00005370rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005371
5372done
5373# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005374rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005375if $ac_preproc_ok; then :
5376 break
5377fi
5378
5379 done
5380 ac_cv_prog_CPP=$CPP
5381
5382fi
5383 CPP=$ac_cv_prog_CPP
5384else
5385 ac_cv_prog_CPP=$CPP
5386fi
5387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5388$as_echo "$CPP" >&6; }
5389ac_preproc_ok=false
5390for ac_c_preproc_warn_flag in '' yes
5391do
5392 # Use a header file that comes with gcc, so configuring glibc
5393 # with a fresh cross-compiler works.
5394 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5395 # <limits.h> exists even on freestanding compilers.
5396 # On the NeXT, cc -E runs the code through the compiler's parser,
5397 # not just through cpp. "Syntax error" is here to catch this case.
5398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5399/* end confdefs.h. */
5400#ifdef __STDC__
5401# include <limits.h>
5402#else
5403# include <assert.h>
5404#endif
5405 Syntax error
5406_ACEOF
5407if ac_fn_c_try_cpp "$LINENO"; then :
5408
5409else
5410 # Broken: fails on valid input.
5411continue
5412fi
cristyda16f162011-02-19 23:52:17 +00005413rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005414
5415 # OK, works on sane cases. Now check whether nonexistent headers
5416 # can be detected and how.
5417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5418/* end confdefs.h. */
5419#include <ac_nonexistent.h>
5420_ACEOF
5421if ac_fn_c_try_cpp "$LINENO"; then :
5422 # Broken: success on invalid input.
5423continue
5424else
5425 # Passes both tests.
5426ac_preproc_ok=:
5427break
5428fi
cristyda16f162011-02-19 23:52:17 +00005429rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005430
5431done
5432# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005433rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005434if $ac_preproc_ok; then :
5435
5436else
5437 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5438$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005439as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5440See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00005441fi
5442
5443ac_ext=c
5444ac_cpp='$CPP $CPPFLAGS'
5445ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5446ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5447ac_compiler_gnu=$ac_cv_c_compiler_gnu
5448
5449
5450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5451$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005452if ${ac_cv_path_GREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005453 $as_echo_n "(cached) " >&6
5454else
5455 if test -z "$GREP"; then
5456 ac_path_GREP_found=false
5457 # Loop through the user's path and test for each of PROGNAME-LIST
5458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5459for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5460do
5461 IFS=$as_save_IFS
5462 test -z "$as_dir" && as_dir=.
5463 for ac_prog in grep ggrep; do
5464 for ac_exec_ext in '' $ac_executable_extensions; do
5465 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00005466 as_fn_executable_p "$ac_path_GREP" || continue
cristya0b81c32010-01-22 02:54:33 +00005467# Check for GNU ac_path_GREP and select it if it is found.
5468 # Check for GNU $ac_path_GREP
5469case `"$ac_path_GREP" --version 2>&1` in
5470*GNU*)
5471 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5472*)
5473 ac_count=0
5474 $as_echo_n 0123456789 >"conftest.in"
5475 while :
5476 do
5477 cat "conftest.in" "conftest.in" >"conftest.tmp"
5478 mv "conftest.tmp" "conftest.in"
5479 cp "conftest.in" "conftest.nl"
5480 $as_echo 'GREP' >> "conftest.nl"
5481 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5482 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5483 as_fn_arith $ac_count + 1 && ac_count=$as_val
5484 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5485 # Best one so far, save it but keep looking for a better one
5486 ac_cv_path_GREP="$ac_path_GREP"
5487 ac_path_GREP_max=$ac_count
5488 fi
5489 # 10*(2^10) chars as input seems more than enough
5490 test $ac_count -gt 10 && break
5491 done
5492 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5493esac
5494
5495 $ac_path_GREP_found && break 3
5496 done
5497 done
5498 done
5499IFS=$as_save_IFS
5500 if test -z "$ac_cv_path_GREP"; then
cristy98dddb52010-11-04 00:30:15 +00005501 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005502 fi
5503else
5504 ac_cv_path_GREP=$GREP
5505fi
5506
5507fi
5508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5509$as_echo "$ac_cv_path_GREP" >&6; }
5510 GREP="$ac_cv_path_GREP"
5511
5512
5513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5514$as_echo_n "checking for egrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005515if ${ac_cv_path_EGREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005516 $as_echo_n "(cached) " >&6
5517else
5518 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5519 then ac_cv_path_EGREP="$GREP -E"
5520 else
5521 if test -z "$EGREP"; then
5522 ac_path_EGREP_found=false
5523 # Loop through the user's path and test for each of PROGNAME-LIST
5524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5525for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5526do
5527 IFS=$as_save_IFS
5528 test -z "$as_dir" && as_dir=.
5529 for ac_prog in egrep; do
5530 for ac_exec_ext in '' $ac_executable_extensions; do
5531 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00005532 as_fn_executable_p "$ac_path_EGREP" || continue
cristya0b81c32010-01-22 02:54:33 +00005533# Check for GNU ac_path_EGREP and select it if it is found.
5534 # Check for GNU $ac_path_EGREP
5535case `"$ac_path_EGREP" --version 2>&1` in
5536*GNU*)
5537 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5538*)
5539 ac_count=0
5540 $as_echo_n 0123456789 >"conftest.in"
5541 while :
5542 do
5543 cat "conftest.in" "conftest.in" >"conftest.tmp"
5544 mv "conftest.tmp" "conftest.in"
5545 cp "conftest.in" "conftest.nl"
5546 $as_echo 'EGREP' >> "conftest.nl"
5547 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5548 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5549 as_fn_arith $ac_count + 1 && ac_count=$as_val
5550 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5551 # Best one so far, save it but keep looking for a better one
5552 ac_cv_path_EGREP="$ac_path_EGREP"
5553 ac_path_EGREP_max=$ac_count
5554 fi
5555 # 10*(2^10) chars as input seems more than enough
5556 test $ac_count -gt 10 && break
5557 done
5558 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5559esac
5560
5561 $ac_path_EGREP_found && break 3
5562 done
5563 done
5564 done
5565IFS=$as_save_IFS
5566 if test -z "$ac_cv_path_EGREP"; then
cristy98dddb52010-11-04 00:30:15 +00005567 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005568 fi
5569else
5570 ac_cv_path_EGREP=$EGREP
5571fi
5572
5573 fi
5574fi
5575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5576$as_echo "$ac_cv_path_EGREP" >&6; }
5577 EGREP="$ac_cv_path_EGREP"
5578
5579
5580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5581$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005582if ${ac_cv_header_stdc+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005583 $as_echo_n "(cached) " >&6
5584else
5585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5586/* end confdefs.h. */
5587#include <stdlib.h>
5588#include <stdarg.h>
5589#include <string.h>
5590#include <float.h>
5591
5592int
5593main ()
5594{
5595
5596 ;
5597 return 0;
5598}
5599_ACEOF
5600if ac_fn_c_try_compile "$LINENO"; then :
5601 ac_cv_header_stdc=yes
5602else
5603 ac_cv_header_stdc=no
5604fi
5605rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5606
5607if test $ac_cv_header_stdc = yes; then
5608 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5610/* end confdefs.h. */
5611#include <string.h>
5612
5613_ACEOF
5614if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5615 $EGREP "memchr" >/dev/null 2>&1; then :
5616
5617else
5618 ac_cv_header_stdc=no
5619fi
5620rm -f conftest*
5621
5622fi
5623
5624if test $ac_cv_header_stdc = yes; then
5625 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5627/* end confdefs.h. */
5628#include <stdlib.h>
5629
5630_ACEOF
5631if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5632 $EGREP "free" >/dev/null 2>&1; then :
5633
5634else
5635 ac_cv_header_stdc=no
5636fi
5637rm -f conftest*
5638
5639fi
5640
5641if test $ac_cv_header_stdc = yes; then
5642 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5643 if test "$cross_compiling" = yes; then :
5644 :
5645else
5646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5647/* end confdefs.h. */
5648#include <ctype.h>
5649#include <stdlib.h>
5650#if ((' ' & 0x0FF) == 0x020)
5651# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5652# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5653#else
5654# define ISLOWER(c) \
5655 (('a' <= (c) && (c) <= 'i') \
5656 || ('j' <= (c) && (c) <= 'r') \
5657 || ('s' <= (c) && (c) <= 'z'))
5658# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5659#endif
5660
5661#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5662int
5663main ()
5664{
5665 int i;
5666 for (i = 0; i < 256; i++)
5667 if (XOR (islower (i), ISLOWER (i))
5668 || toupper (i) != TOUPPER (i))
5669 return 2;
5670 return 0;
5671}
5672_ACEOF
5673if ac_fn_c_try_run "$LINENO"; then :
5674
5675else
5676 ac_cv_header_stdc=no
5677fi
5678rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5679 conftest.$ac_objext conftest.beam conftest.$ac_ext
5680fi
5681
5682fi
5683fi
5684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5685$as_echo "$ac_cv_header_stdc" >&6; }
5686if test $ac_cv_header_stdc = yes; then
5687
5688$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5689
5690fi
5691
5692# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5693for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5694 inttypes.h stdint.h unistd.h
5695do :
5696 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5697ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5698"
cristy98dddb52010-11-04 00:30:15 +00005699if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristya0b81c32010-01-22 02:54:33 +00005700 cat >>confdefs.h <<_ACEOF
5701#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5702_ACEOF
5703
5704fi
5705
5706done
5707
5708
5709
5710 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +00005711if test "x$ac_cv_header_minix_config_h" = xyes; then :
cristya0b81c32010-01-22 02:54:33 +00005712 MINIX=yes
5713else
5714 MINIX=
5715fi
5716
5717
5718 if test "$MINIX" = yes; then
5719
5720$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5721
5722
5723$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5724
5725
5726$as_echo "#define _MINIX 1" >>confdefs.h
5727
5728 fi
5729
5730
5731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5732$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005733if ${ac_cv_safe_to_define___extensions__+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005734 $as_echo_n "(cached) " >&6
5735else
5736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5737/* end confdefs.h. */
5738
cristy14fefe52012-05-21 00:59:18 +00005739# define __EXTENSIONS__ 1
5740 $ac_includes_default
cristya0b81c32010-01-22 02:54:33 +00005741int
5742main ()
5743{
5744
5745 ;
5746 return 0;
5747}
5748_ACEOF
5749if ac_fn_c_try_compile "$LINENO"; then :
5750 ac_cv_safe_to_define___extensions__=yes
5751else
5752 ac_cv_safe_to_define___extensions__=no
5753fi
5754rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5755fi
5756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5757$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5758 test $ac_cv_safe_to_define___extensions__ = yes &&
5759 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5760
5761 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5762
5763 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5764
5765 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5766
5767 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5768
5769
5770
5771# Check for programs
5772ac_ext=c
5773ac_cpp='$CPP $CPPFLAGS'
5774ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5775ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5776ac_compiler_gnu=$ac_cv_c_compiler_gnu
5777if test -n "$ac_tool_prefix"; then
5778 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5779set dummy ${ac_tool_prefix}gcc; ac_word=$2
5780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5781$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005782if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005783 $as_echo_n "(cached) " >&6
5784else
5785 if test -n "$CC"; then
5786 ac_cv_prog_CC="$CC" # Let the user override the test.
5787else
5788as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5789for as_dir in $PATH
5790do
5791 IFS=$as_save_IFS
5792 test -z "$as_dir" && as_dir=.
5793 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00005794 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00005795 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5797 break 2
5798 fi
5799done
5800 done
5801IFS=$as_save_IFS
5802
5803fi
5804fi
5805CC=$ac_cv_prog_CC
5806if test -n "$CC"; then
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5808$as_echo "$CC" >&6; }
5809else
5810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5811$as_echo "no" >&6; }
5812fi
5813
5814
5815fi
5816if test -z "$ac_cv_prog_CC"; then
5817 ac_ct_CC=$CC
5818 # Extract the first word of "gcc", so it can be a program name with args.
5819set dummy gcc; ac_word=$2
5820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5821$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005822if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005823 $as_echo_n "(cached) " >&6
5824else
5825 if test -n "$ac_ct_CC"; then
5826 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5827else
5828as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5829for as_dir in $PATH
5830do
5831 IFS=$as_save_IFS
5832 test -z "$as_dir" && as_dir=.
5833 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00005834 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00005835 ac_cv_prog_ac_ct_CC="gcc"
5836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5837 break 2
5838 fi
5839done
5840 done
5841IFS=$as_save_IFS
5842
5843fi
5844fi
5845ac_ct_CC=$ac_cv_prog_ac_ct_CC
5846if test -n "$ac_ct_CC"; then
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5848$as_echo "$ac_ct_CC" >&6; }
5849else
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5851$as_echo "no" >&6; }
5852fi
5853
5854 if test "x$ac_ct_CC" = x; then
5855 CC=""
5856 else
5857 case $cross_compiling:$ac_tool_warned in
5858yes:)
5859{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5860$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5861ac_tool_warned=yes ;;
5862esac
5863 CC=$ac_ct_CC
5864 fi
5865else
5866 CC="$ac_cv_prog_CC"
5867fi
5868
5869if test -z "$CC"; then
5870 if test -n "$ac_tool_prefix"; then
5871 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5872set dummy ${ac_tool_prefix}cc; ac_word=$2
5873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5874$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005875if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005876 $as_echo_n "(cached) " >&6
5877else
5878 if test -n "$CC"; then
5879 ac_cv_prog_CC="$CC" # Let the user override the test.
5880else
5881as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5882for as_dir in $PATH
5883do
5884 IFS=$as_save_IFS
5885 test -z "$as_dir" && as_dir=.
5886 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00005887 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00005888 ac_cv_prog_CC="${ac_tool_prefix}cc"
5889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5890 break 2
5891 fi
5892done
5893 done
5894IFS=$as_save_IFS
5895
5896fi
5897fi
5898CC=$ac_cv_prog_CC
5899if test -n "$CC"; then
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5901$as_echo "$CC" >&6; }
5902else
5903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5904$as_echo "no" >&6; }
5905fi
5906
5907
5908 fi
5909fi
5910if test -z "$CC"; then
5911 # Extract the first word of "cc", so it can be a program name with args.
5912set dummy cc; ac_word=$2
5913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5914$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005915if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005916 $as_echo_n "(cached) " >&6
5917else
5918 if test -n "$CC"; then
5919 ac_cv_prog_CC="$CC" # Let the user override the test.
5920else
5921 ac_prog_rejected=no
5922as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5923for as_dir in $PATH
5924do
5925 IFS=$as_save_IFS
5926 test -z "$as_dir" && as_dir=.
5927 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00005928 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00005929 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5930 ac_prog_rejected=yes
5931 continue
5932 fi
5933 ac_cv_prog_CC="cc"
5934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5935 break 2
5936 fi
5937done
5938 done
5939IFS=$as_save_IFS
5940
5941if test $ac_prog_rejected = yes; then
5942 # We found a bogon in the path, so make sure we never use it.
5943 set dummy $ac_cv_prog_CC
5944 shift
5945 if test $# != 0; then
5946 # We chose a different compiler from the bogus one.
5947 # However, it has the same basename, so the bogon will be chosen
5948 # first if we set CC to just the basename; use the full file name.
5949 shift
5950 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5951 fi
5952fi
5953fi
5954fi
5955CC=$ac_cv_prog_CC
5956if test -n "$CC"; then
5957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5958$as_echo "$CC" >&6; }
5959else
5960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5961$as_echo "no" >&6; }
5962fi
5963
5964
5965fi
5966if test -z "$CC"; then
5967 if test -n "$ac_tool_prefix"; then
5968 for ac_prog in cl.exe
5969 do
5970 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5971set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5973$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005974if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005975 $as_echo_n "(cached) " >&6
5976else
5977 if test -n "$CC"; then
5978 ac_cv_prog_CC="$CC" # Let the user override the test.
5979else
5980as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5981for as_dir in $PATH
5982do
5983 IFS=$as_save_IFS
5984 test -z "$as_dir" && as_dir=.
5985 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00005986 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00005987 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5989 break 2
5990 fi
5991done
5992 done
5993IFS=$as_save_IFS
5994
5995fi
5996fi
5997CC=$ac_cv_prog_CC
5998if test -n "$CC"; then
5999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6000$as_echo "$CC" >&6; }
6001else
6002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6003$as_echo "no" >&6; }
6004fi
6005
6006
6007 test -n "$CC" && break
6008 done
6009fi
6010if test -z "$CC"; then
6011 ac_ct_CC=$CC
6012 for ac_prog in cl.exe
6013do
6014 # Extract the first word of "$ac_prog", so it can be a program name with args.
6015set dummy $ac_prog; ac_word=$2
6016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6017$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006018if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006019 $as_echo_n "(cached) " >&6
6020else
6021 if test -n "$ac_ct_CC"; then
6022 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6023else
6024as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6025for as_dir in $PATH
6026do
6027 IFS=$as_save_IFS
6028 test -z "$as_dir" && as_dir=.
6029 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006030 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006031 ac_cv_prog_ac_ct_CC="$ac_prog"
6032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6033 break 2
6034 fi
6035done
6036 done
6037IFS=$as_save_IFS
6038
6039fi
6040fi
6041ac_ct_CC=$ac_cv_prog_ac_ct_CC
6042if test -n "$ac_ct_CC"; then
6043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6044$as_echo "$ac_ct_CC" >&6; }
6045else
6046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6047$as_echo "no" >&6; }
6048fi
6049
6050
6051 test -n "$ac_ct_CC" && break
6052done
6053
6054 if test "x$ac_ct_CC" = x; then
6055 CC=""
6056 else
6057 case $cross_compiling:$ac_tool_warned in
6058yes:)
6059{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6060$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6061ac_tool_warned=yes ;;
6062esac
6063 CC=$ac_ct_CC
6064 fi
6065fi
6066
6067fi
6068
6069
6070test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6071$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00006072as_fn_error $? "no acceptable C compiler found in \$PATH
6073See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00006074
6075# Provide some information about the compiler.
6076$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6077set X $ac_compile
6078ac_compiler=$2
6079for ac_option in --version -v -V -qversion; do
6080 { { ac_try="$ac_compiler $ac_option >&5"
6081case "(($ac_try" in
6082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6083 *) ac_try_echo=$ac_try;;
6084esac
6085eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6086$as_echo "$ac_try_echo"; } >&5
6087 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6088 ac_status=$?
6089 if test -s conftest.err; then
6090 sed '10a\
6091... rest of stderr output deleted ...
6092 10q' conftest.err >conftest.er1
6093 cat conftest.er1 >&5
6094 fi
6095 rm -f conftest.er1 conftest.err
6096 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6097 test $ac_status = 0; }
6098done
6099
6100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6101$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006102if ${ac_cv_c_compiler_gnu+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006103 $as_echo_n "(cached) " >&6
6104else
6105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6106/* end confdefs.h. */
6107
6108int
6109main ()
6110{
6111#ifndef __GNUC__
6112 choke me
6113#endif
6114
6115 ;
6116 return 0;
6117}
6118_ACEOF
6119if ac_fn_c_try_compile "$LINENO"; then :
6120 ac_compiler_gnu=yes
6121else
6122 ac_compiler_gnu=no
6123fi
6124rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6125ac_cv_c_compiler_gnu=$ac_compiler_gnu
6126
6127fi
6128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6129$as_echo "$ac_cv_c_compiler_gnu" >&6; }
6130if test $ac_compiler_gnu = yes; then
6131 GCC=yes
6132else
6133 GCC=
6134fi
6135ac_test_CFLAGS=${CFLAGS+set}
6136ac_save_CFLAGS=$CFLAGS
6137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6138$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006139if ${ac_cv_prog_cc_g+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006140 $as_echo_n "(cached) " >&6
6141else
6142 ac_save_c_werror_flag=$ac_c_werror_flag
6143 ac_c_werror_flag=yes
6144 ac_cv_prog_cc_g=no
6145 CFLAGS="-g"
6146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6147/* end confdefs.h. */
6148
6149int
6150main ()
6151{
6152
6153 ;
6154 return 0;
6155}
6156_ACEOF
6157if ac_fn_c_try_compile "$LINENO"; then :
6158 ac_cv_prog_cc_g=yes
6159else
6160 CFLAGS=""
6161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6162/* end confdefs.h. */
6163
6164int
6165main ()
6166{
6167
6168 ;
6169 return 0;
6170}
6171_ACEOF
6172if ac_fn_c_try_compile "$LINENO"; then :
6173
6174else
6175 ac_c_werror_flag=$ac_save_c_werror_flag
6176 CFLAGS="-g"
6177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6178/* end confdefs.h. */
6179
6180int
6181main ()
6182{
6183
6184 ;
6185 return 0;
6186}
6187_ACEOF
6188if ac_fn_c_try_compile "$LINENO"; then :
6189 ac_cv_prog_cc_g=yes
6190fi
6191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6192fi
6193rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6194fi
6195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6196 ac_c_werror_flag=$ac_save_c_werror_flag
6197fi
6198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6199$as_echo "$ac_cv_prog_cc_g" >&6; }
6200if test "$ac_test_CFLAGS" = set; then
6201 CFLAGS=$ac_save_CFLAGS
6202elif test $ac_cv_prog_cc_g = yes; then
6203 if test "$GCC" = yes; then
6204 CFLAGS="-g -O2"
6205 else
6206 CFLAGS="-g"
6207 fi
6208else
6209 if test "$GCC" = yes; then
6210 CFLAGS="-O2"
6211 else
6212 CFLAGS=
6213 fi
6214fi
6215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6216$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006217if ${ac_cv_prog_cc_c89+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006218 $as_echo_n "(cached) " >&6
6219else
6220 ac_cv_prog_cc_c89=no
6221ac_save_CC=$CC
6222cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6223/* end confdefs.h. */
6224#include <stdarg.h>
6225#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00006226struct stat;
cristya0b81c32010-01-22 02:54:33 +00006227/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6228struct buf { int x; };
6229FILE * (*rcsopen) (struct buf *, struct stat *, int);
6230static char *e (p, i)
6231 char **p;
6232 int i;
6233{
6234 return p[i];
6235}
6236static char *f (char * (*g) (char **, int), char **p, ...)
6237{
6238 char *s;
6239 va_list v;
6240 va_start (v,p);
6241 s = g (p, va_arg (v,int));
6242 va_end (v);
6243 return s;
6244}
6245
6246/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6247 function prototypes and stuff, but not '\xHH' hex character constants.
6248 These don't provoke an error unfortunately, instead are silently treated
6249 as 'x'. The following induces an error, until -std is added to get
6250 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6251 array size at least. It's necessary to write '\x00'==0 to get something
6252 that's true only with -std. */
6253int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6254
6255/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6256 inside strings and character constants. */
6257#define FOO(x) 'x'
6258int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6259
6260int test (int i, double x);
6261struct s1 {int (*f) (int a);};
6262struct s2 {int (*f) (double a);};
6263int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6264int argc;
6265char **argv;
6266int
6267main ()
6268{
6269return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6270 ;
6271 return 0;
6272}
6273_ACEOF
6274for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6275 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6276do
6277 CC="$ac_save_CC $ac_arg"
6278 if ac_fn_c_try_compile "$LINENO"; then :
6279 ac_cv_prog_cc_c89=$ac_arg
6280fi
6281rm -f core conftest.err conftest.$ac_objext
6282 test "x$ac_cv_prog_cc_c89" != "xno" && break
6283done
6284rm -f conftest.$ac_ext
6285CC=$ac_save_CC
6286
6287fi
6288# AC_CACHE_VAL
6289case "x$ac_cv_prog_cc_c89" in
6290 x)
6291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6292$as_echo "none needed" >&6; } ;;
6293 xno)
6294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6295$as_echo "unsupported" >&6; } ;;
6296 *)
6297 CC="$CC $ac_cv_prog_cc_c89"
6298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6299$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6300esac
6301if test "x$ac_cv_prog_cc_c89" != xno; then :
6302
6303fi
6304
6305ac_ext=c
6306ac_cpp='$CPP $CPPFLAGS'
6307ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6308ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6309ac_compiler_gnu=$ac_cv_c_compiler_gnu
6310
cristy73bd4a52010-10-05 11:24:23 +00006311depcc="$CC" am_compiler_list=
6312
6313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6314$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006315if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006316 $as_echo_n "(cached) " >&6
6317else
6318 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6319 # We make a subdir and do the tests there. Otherwise we can end up
6320 # making bogus files that we don't know about and never remove. For
6321 # instance it was reported that on HP-UX the gcc test will end up
6322 # making a dummy file named `D' -- because `-MD' means `put the output
6323 # in D'.
cristy7247bba2012-02-05 16:37:27 +00006324 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00006325 mkdir conftest.dir
6326 # Copy depcomp to subdir because otherwise we won't find it if we're
6327 # using a relative directory.
6328 cp "$am_depcomp" conftest.dir
6329 cd conftest.dir
6330 # We will build objects and dependencies in a subdirectory because
6331 # it helps to detect inapplicable dependency modes. For instance
6332 # both Tru64's cc and ICC support -MD to output dependencies as a
6333 # side effect of compilation, but ICC will put the dependencies in
6334 # the current directory while Tru64 will put them in the object
6335 # directory.
6336 mkdir sub
6337
6338 am_cv_CC_dependencies_compiler_type=none
6339 if test "$am_compiler_list" = ""; then
6340 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6341 fi
6342 am__universal=false
6343 case " $depcc " in #(
6344 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6345 esac
6346
6347 for depmode in $am_compiler_list; do
6348 # Setup a source with many dependencies, because some compilers
6349 # like to wrap large dependency lists on column 80 (with \), and
6350 # we should not choose a depcomp mode which is confused by this.
6351 #
6352 # We need to recreate these files for each test, as the compiler may
6353 # overwrite some of them when testing with obscure command lines.
6354 # This happens at least with the AIX C compiler.
6355 : > sub/conftest.c
6356 for i in 1 2 3 4 5 6; do
6357 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6358 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6359 # Solaris 8's {/usr,}/bin/sh.
6360 touch sub/conftst$i.h
6361 done
6362 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6363
6364 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6365 # mode. It turns out that the SunPro C++ compiler does not properly
6366 # handle `-M -o', and we need to detect this. Also, some Intel
6367 # versions had trouble with output in subdirs
6368 am__obj=sub/conftest.${OBJEXT-o}
6369 am__minus_obj="-o $am__obj"
6370 case $depmode in
6371 gcc)
6372 # This depmode causes a compiler race in universal mode.
6373 test "$am__universal" = false || continue
6374 ;;
6375 nosideeffect)
6376 # after this tag, mechanisms are not by side-effect, so they'll
6377 # only be used when explicitly requested
6378 if test "x$enable_dependency_tracking" = xyes; then
6379 continue
6380 else
6381 break
6382 fi
6383 ;;
cristy7247bba2012-02-05 16:37:27 +00006384 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristy73bd4a52010-10-05 11:24:23 +00006385 # This compiler won't grok `-c -o', but also, the minuso test has
6386 # not run yet. These depmodes are late enough in the game, and
6387 # so weak that their functioning should not be impacted.
6388 am__obj=conftest.${OBJEXT-o}
6389 am__minus_obj=
6390 ;;
6391 none) break ;;
6392 esac
6393 if depmode=$depmode \
6394 source=sub/conftest.c object=$am__obj \
6395 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6396 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6397 >/dev/null 2>conftest.err &&
6398 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6399 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6400 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6401 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6402 # icc doesn't choke on unknown options, it will just issue warnings
6403 # or remarks (even with -Werror). So we grep stderr for any message
6404 # that says an option was ignored or not supported.
6405 # When given -MP, icc 7.0 and 7.1 complain thusly:
6406 # icc: Command line warning: ignoring option '-M'; no argument required
6407 # The diagnosis changed in icc 8.0:
6408 # icc: Command line remark: option '-MP' not supported
6409 if (grep 'ignoring option' conftest.err ||
6410 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6411 am_cv_CC_dependencies_compiler_type=$depmode
6412 break
6413 fi
6414 fi
6415 done
6416
6417 cd ..
6418 rm -rf conftest.dir
6419else
6420 am_cv_CC_dependencies_compiler_type=none
6421fi
6422
6423fi
6424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6425$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6426CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6427
6428 if
6429 test "x$enable_dependency_tracking" != xno \
6430 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6431 am__fastdepCC_TRUE=
6432 am__fastdepCC_FALSE='#'
6433else
6434 am__fastdepCC_TRUE='#'
6435 am__fastdepCC_FALSE=
6436fi
6437
6438
cristy95646052009-11-28 23:05:30 +00006439ac_ext=cpp
6440ac_cpp='$CXXCPP $CPPFLAGS'
6441ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6442ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6443ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6444if test -z "$CXX"; then
6445 if test -n "$CCC"; then
6446 CXX=$CCC
6447 else
6448 if test -n "$ac_tool_prefix"; then
6449 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6450 do
6451 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6452set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6454$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006455if ${ac_cv_prog_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006456 $as_echo_n "(cached) " >&6
6457else
6458 if test -n "$CXX"; then
6459 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6460else
6461as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6462for as_dir in $PATH
6463do
6464 IFS=$as_save_IFS
6465 test -z "$as_dir" && as_dir=.
6466 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006467 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy95646052009-11-28 23:05:30 +00006468 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6470 break 2
6471 fi
6472done
6473 done
6474IFS=$as_save_IFS
6475
6476fi
6477fi
6478CXX=$ac_cv_prog_CXX
6479if test -n "$CXX"; then
6480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6481$as_echo "$CXX" >&6; }
6482else
6483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6484$as_echo "no" >&6; }
6485fi
6486
6487
6488 test -n "$CXX" && break
6489 done
6490fi
6491if test -z "$CXX"; then
6492 ac_ct_CXX=$CXX
6493 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6494do
6495 # Extract the first word of "$ac_prog", so it can be a program name with args.
6496set dummy $ac_prog; ac_word=$2
6497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6498$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006499if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006500 $as_echo_n "(cached) " >&6
6501else
6502 if test -n "$ac_ct_CXX"; then
6503 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6504else
6505as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6506for as_dir in $PATH
6507do
6508 IFS=$as_save_IFS
6509 test -z "$as_dir" && as_dir=.
6510 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006511 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy95646052009-11-28 23:05:30 +00006512 ac_cv_prog_ac_ct_CXX="$ac_prog"
6513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6514 break 2
6515 fi
6516done
6517 done
6518IFS=$as_save_IFS
6519
6520fi
6521fi
6522ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6523if test -n "$ac_ct_CXX"; then
6524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6525$as_echo "$ac_ct_CXX" >&6; }
6526else
6527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6528$as_echo "no" >&6; }
6529fi
6530
6531
6532 test -n "$ac_ct_CXX" && break
6533done
6534
6535 if test "x$ac_ct_CXX" = x; then
6536 CXX="g++"
6537 else
6538 case $cross_compiling:$ac_tool_warned in
6539yes:)
6540{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6541$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6542ac_tool_warned=yes ;;
6543esac
6544 CXX=$ac_ct_CXX
6545 fi
6546fi
6547
6548 fi
6549fi
6550# Provide some information about the compiler.
6551$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6552set X $ac_compile
6553ac_compiler=$2
6554for ac_option in --version -v -V -qversion; do
6555 { { ac_try="$ac_compiler $ac_option >&5"
6556case "(($ac_try" in
6557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6558 *) ac_try_echo=$ac_try;;
6559esac
6560eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6561$as_echo "$ac_try_echo"; } >&5
6562 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6563 ac_status=$?
6564 if test -s conftest.err; then
6565 sed '10a\
6566... rest of stderr output deleted ...
6567 10q' conftest.err >conftest.er1
6568 cat conftest.er1 >&5
6569 fi
6570 rm -f conftest.er1 conftest.err
6571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6572 test $ac_status = 0; }
6573done
6574
6575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6576$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006577if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy95646052009-11-28 23:05:30 +00006578 $as_echo_n "(cached) " >&6
6579else
6580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6581/* end confdefs.h. */
6582
6583int
6584main ()
6585{
6586#ifndef __GNUC__
6587 choke me
6588#endif
6589
6590 ;
6591 return 0;
6592}
6593_ACEOF
6594if ac_fn_cxx_try_compile "$LINENO"; then :
6595 ac_compiler_gnu=yes
6596else
6597 ac_compiler_gnu=no
6598fi
6599rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6600ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6601
6602fi
6603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6604$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6605if test $ac_compiler_gnu = yes; then
6606 GXX=yes
6607else
6608 GXX=
6609fi
6610ac_test_CXXFLAGS=${CXXFLAGS+set}
6611ac_save_CXXFLAGS=$CXXFLAGS
6612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6613$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006614if ${ac_cv_prog_cxx_g+:} false; then :
cristy95646052009-11-28 23:05:30 +00006615 $as_echo_n "(cached) " >&6
6616else
6617 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6618 ac_cxx_werror_flag=yes
6619 ac_cv_prog_cxx_g=no
6620 CXXFLAGS="-g"
6621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6622/* end confdefs.h. */
6623
6624int
6625main ()
6626{
6627
6628 ;
6629 return 0;
6630}
6631_ACEOF
6632if ac_fn_cxx_try_compile "$LINENO"; then :
6633 ac_cv_prog_cxx_g=yes
6634else
6635 CXXFLAGS=""
6636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6637/* end confdefs.h. */
6638
6639int
6640main ()
6641{
6642
6643 ;
6644 return 0;
6645}
6646_ACEOF
6647if ac_fn_cxx_try_compile "$LINENO"; then :
6648
6649else
6650 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6651 CXXFLAGS="-g"
6652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6653/* end confdefs.h. */
6654
6655int
6656main ()
6657{
6658
6659 ;
6660 return 0;
6661}
6662_ACEOF
6663if ac_fn_cxx_try_compile "$LINENO"; then :
6664 ac_cv_prog_cxx_g=yes
6665fi
6666rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6667fi
6668rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6669fi
6670rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6671 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6672fi
6673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6674$as_echo "$ac_cv_prog_cxx_g" >&6; }
6675if test "$ac_test_CXXFLAGS" = set; then
6676 CXXFLAGS=$ac_save_CXXFLAGS
6677elif test $ac_cv_prog_cxx_g = yes; then
6678 if test "$GXX" = yes; then
6679 CXXFLAGS="-g -O2"
6680 else
6681 CXXFLAGS="-g"
6682 fi
6683else
6684 if test "$GXX" = yes; then
6685 CXXFLAGS="-O2"
6686 else
6687 CXXFLAGS=
6688 fi
6689fi
6690ac_ext=c
6691ac_cpp='$CPP $CPPFLAGS'
6692ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6693ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6694ac_compiler_gnu=$ac_cv_c_compiler_gnu
6695
cristy73bd4a52010-10-05 11:24:23 +00006696depcc="$CXX" am_compiler_list=
6697
6698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6699$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006700if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006701 $as_echo_n "(cached) " >&6
6702else
6703 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6704 # We make a subdir and do the tests there. Otherwise we can end up
6705 # making bogus files that we don't know about and never remove. For
6706 # instance it was reported that on HP-UX the gcc test will end up
6707 # making a dummy file named `D' -- because `-MD' means `put the output
6708 # in D'.
cristy7247bba2012-02-05 16:37:27 +00006709 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00006710 mkdir conftest.dir
6711 # Copy depcomp to subdir because otherwise we won't find it if we're
6712 # using a relative directory.
6713 cp "$am_depcomp" conftest.dir
6714 cd conftest.dir
6715 # We will build objects and dependencies in a subdirectory because
6716 # it helps to detect inapplicable dependency modes. For instance
6717 # both Tru64's cc and ICC support -MD to output dependencies as a
6718 # side effect of compilation, but ICC will put the dependencies in
6719 # the current directory while Tru64 will put them in the object
6720 # directory.
6721 mkdir sub
6722
6723 am_cv_CXX_dependencies_compiler_type=none
6724 if test "$am_compiler_list" = ""; then
6725 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6726 fi
6727 am__universal=false
6728 case " $depcc " in #(
6729 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6730 esac
6731
6732 for depmode in $am_compiler_list; do
6733 # Setup a source with many dependencies, because some compilers
6734 # like to wrap large dependency lists on column 80 (with \), and
6735 # we should not choose a depcomp mode which is confused by this.
6736 #
6737 # We need to recreate these files for each test, as the compiler may
6738 # overwrite some of them when testing with obscure command lines.
6739 # This happens at least with the AIX C compiler.
6740 : > sub/conftest.c
6741 for i in 1 2 3 4 5 6; do
6742 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6743 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6744 # Solaris 8's {/usr,}/bin/sh.
6745 touch sub/conftst$i.h
6746 done
6747 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6748
6749 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6750 # mode. It turns out that the SunPro C++ compiler does not properly
6751 # handle `-M -o', and we need to detect this. Also, some Intel
6752 # versions had trouble with output in subdirs
6753 am__obj=sub/conftest.${OBJEXT-o}
6754 am__minus_obj="-o $am__obj"
6755 case $depmode in
6756 gcc)
6757 # This depmode causes a compiler race in universal mode.
6758 test "$am__universal" = false || continue
6759 ;;
6760 nosideeffect)
6761 # after this tag, mechanisms are not by side-effect, so they'll
6762 # only be used when explicitly requested
6763 if test "x$enable_dependency_tracking" = xyes; then
6764 continue
6765 else
6766 break
6767 fi
6768 ;;
cristy7247bba2012-02-05 16:37:27 +00006769 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristy73bd4a52010-10-05 11:24:23 +00006770 # This compiler won't grok `-c -o', but also, the minuso test has
6771 # not run yet. These depmodes are late enough in the game, and
6772 # so weak that their functioning should not be impacted.
6773 am__obj=conftest.${OBJEXT-o}
6774 am__minus_obj=
6775 ;;
6776 none) break ;;
6777 esac
6778 if depmode=$depmode \
6779 source=sub/conftest.c object=$am__obj \
6780 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6781 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6782 >/dev/null 2>conftest.err &&
6783 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6784 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6785 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6786 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6787 # icc doesn't choke on unknown options, it will just issue warnings
6788 # or remarks (even with -Werror). So we grep stderr for any message
6789 # that says an option was ignored or not supported.
6790 # When given -MP, icc 7.0 and 7.1 complain thusly:
6791 # icc: Command line warning: ignoring option '-M'; no argument required
6792 # The diagnosis changed in icc 8.0:
6793 # icc: Command line remark: option '-MP' not supported
6794 if (grep 'ignoring option' conftest.err ||
6795 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6796 am_cv_CXX_dependencies_compiler_type=$depmode
6797 break
6798 fi
6799 fi
6800 done
6801
6802 cd ..
6803 rm -rf conftest.dir
6804else
6805 am_cv_CXX_dependencies_compiler_type=none
6806fi
6807
6808fi
6809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6810$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6811CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6812
6813 if
6814 test "x$enable_dependency_tracking" != xno \
6815 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6816 am__fastdepCXX_TRUE=
6817 am__fastdepCXX_FALSE='#'
6818else
6819 am__fastdepCXX_TRUE='#'
6820 am__fastdepCXX_FALSE=
6821fi
6822
6823
cristy8b350f62009-11-15 23:12:43 +00006824 case $ac_cv_prog_cc_stdc in #(
6825 no) :
6826 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6827 *) :
6828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
cristy3ed852e2009-09-05 21:47:34 +00006829$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006830if ${ac_cv_prog_cc_c99+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00006831 $as_echo_n "(cached) " >&6
6832else
6833 ac_cv_prog_cc_c99=no
6834ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00006835cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006836/* end confdefs.h. */
6837#include <stdarg.h>
6838#include <stdbool.h>
6839#include <stdlib.h>
6840#include <wchar.h>
6841#include <stdio.h>
6842
6843// Check varargs macros. These examples are taken from C99 6.10.3.5.
6844#define debug(...) fprintf (stderr, __VA_ARGS__)
6845#define showlist(...) puts (#__VA_ARGS__)
6846#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6847static void
6848test_varargs_macros (void)
6849{
6850 int x = 1234;
6851 int y = 5678;
6852 debug ("Flag");
6853 debug ("X = %d\n", x);
6854 showlist (The first, second, and third items.);
6855 report (x>y, "x is %d but y is %d", x, y);
6856}
6857
6858// Check long long types.
6859#define BIG64 18446744073709551615ull
6860#define BIG32 4294967295ul
6861#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6862#if !BIG_OK
6863 your preprocessor is broken;
6864#endif
6865#if BIG_OK
6866#else
6867 your preprocessor is broken;
6868#endif
6869static long long int bignum = -9223372036854775807LL;
6870static unsigned long long int ubignum = BIG64;
6871
6872struct incomplete_array
6873{
6874 int datasize;
6875 double data[];
6876};
6877
6878struct named_init {
6879 int number;
6880 const wchar_t *name;
6881 double average;
6882};
6883
6884typedef const char *ccp;
6885
6886static inline int
6887test_restrict (ccp restrict text)
6888{
6889 // See if C++-style comments work.
6890 // Iterate through items via the restricted pointer.
6891 // Also check for declarations in for loops.
6892 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6893 continue;
6894 return 0;
6895}
6896
6897// Check varargs and va_copy.
6898static void
6899test_varargs (const char *format, ...)
6900{
6901 va_list args;
6902 va_start (args, format);
6903 va_list args_copy;
6904 va_copy (args_copy, args);
6905
6906 const char *str;
6907 int number;
6908 float fnumber;
6909
6910 while (*format)
6911 {
6912 switch (*format++)
6913 {
6914 case 's': // string
6915 str = va_arg (args_copy, const char *);
6916 break;
6917 case 'd': // int
6918 number = va_arg (args_copy, int);
6919 break;
6920 case 'f': // float
6921 fnumber = va_arg (args_copy, double);
6922 break;
6923 default:
6924 break;
6925 }
6926 }
6927 va_end (args_copy);
6928 va_end (args);
6929}
6930
6931int
6932main ()
6933{
6934
6935 // Check bool.
6936 _Bool success = false;
6937
6938 // Check restrict.
6939 if (test_restrict ("String literal") == 0)
6940 success = true;
6941 char *restrict newvar = "Another string";
6942
6943 // Check varargs.
6944 test_varargs ("s, d' f .", "string", 65, 34.234);
6945 test_varargs_macros ();
6946
6947 // Check flexible array members.
6948 struct incomplete_array *ia =
6949 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6950 ia->datasize = 10;
6951 for (int i = 0; i < ia->datasize; ++i)
6952 ia->data[i] = i * 1.234;
6953
6954 // Check named initializers.
6955 struct named_init ni = {
6956 .number = 34,
6957 .name = L"Test wide string",
6958 .average = 543.34343,
6959 };
6960
6961 ni.number = 58;
6962
6963 int dynamic_array[ni.number];
6964 dynamic_array[ni.number - 1] = 543;
6965
6966 // work around unused variable warnings
6967 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6968 || dynamic_array[ni.number - 1] != 543);
6969
6970 ;
6971 return 0;
6972}
6973_ACEOF
cristy14fefe52012-05-21 00:59:18 +00006974for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
cristy3ed852e2009-09-05 21:47:34 +00006975do
6976 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00006977 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006978 ac_cv_prog_cc_c99=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00006979fi
cristy3ed852e2009-09-05 21:47:34 +00006980rm -f core conftest.err conftest.$ac_objext
6981 test "x$ac_cv_prog_cc_c99" != "xno" && break
6982done
6983rm -f conftest.$ac_ext
6984CC=$ac_save_CC
6985
6986fi
6987# AC_CACHE_VAL
6988case "x$ac_cv_prog_cc_c99" in
6989 x)
cristy8b350f62009-11-15 23:12:43 +00006990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00006991$as_echo "none needed" >&6; } ;;
6992 xno)
cristy8b350f62009-11-15 23:12:43 +00006993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00006994$as_echo "unsupported" >&6; } ;;
6995 *)
6996 CC="$CC $ac_cv_prog_cc_c99"
cristy8b350f62009-11-15 23:12:43 +00006997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
cristy3ed852e2009-09-05 21:47:34 +00006998$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6999esac
cristy8b350f62009-11-15 23:12:43 +00007000if test "x$ac_cv_prog_cc_c99" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00007001 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
7002else
cristy8b350f62009-11-15 23:12:43 +00007003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00007004$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007005if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007006 $as_echo_n "(cached) " >&6
7007else
7008 ac_cv_prog_cc_c89=no
7009ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00007010cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007011/* end confdefs.h. */
7012#include <stdarg.h>
7013#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00007014struct stat;
cristy3ed852e2009-09-05 21:47:34 +00007015/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7016struct buf { int x; };
7017FILE * (*rcsopen) (struct buf *, struct stat *, int);
7018static char *e (p, i)
7019 char **p;
7020 int i;
7021{
7022 return p[i];
7023}
7024static char *f (char * (*g) (char **, int), char **p, ...)
7025{
7026 char *s;
7027 va_list v;
7028 va_start (v,p);
7029 s = g (p, va_arg (v,int));
7030 va_end (v);
7031 return s;
7032}
7033
7034/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
7035 function prototypes and stuff, but not '\xHH' hex character constants.
7036 These don't provoke an error unfortunately, instead are silently treated
7037 as 'x'. The following induces an error, until -std is added to get
7038 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
7039 array size at least. It's necessary to write '\x00'==0 to get something
7040 that's true only with -std. */
7041int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7042
7043/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
7044 inside strings and character constants. */
7045#define FOO(x) 'x'
7046int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7047
7048int test (int i, double x);
7049struct s1 {int (*f) (int a);};
7050struct s2 {int (*f) (double a);};
7051int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7052int argc;
7053char **argv;
7054int
7055main ()
7056{
7057return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7058 ;
7059 return 0;
7060}
7061_ACEOF
7062for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
7063 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7064do
7065 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00007066 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007067 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00007068fi
cristy3ed852e2009-09-05 21:47:34 +00007069rm -f core conftest.err conftest.$ac_objext
7070 test "x$ac_cv_prog_cc_c89" != "xno" && break
7071done
7072rm -f conftest.$ac_ext
7073CC=$ac_save_CC
7074
7075fi
7076# AC_CACHE_VAL
7077case "x$ac_cv_prog_cc_c89" in
7078 x)
cristy8b350f62009-11-15 23:12:43 +00007079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00007080$as_echo "none needed" >&6; } ;;
7081 xno)
cristy8b350f62009-11-15 23:12:43 +00007082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00007083$as_echo "unsupported" >&6; } ;;
7084 *)
7085 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00007086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00007087$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7088esac
cristy8b350f62009-11-15 23:12:43 +00007089if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00007090 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
7091else
7092 ac_cv_prog_cc_stdc=no
7093fi
7094
cristy3ed852e2009-09-05 21:47:34 +00007095fi
cristy3ed852e2009-09-05 21:47:34 +00007096 ;;
7097esac
cristy8b350f62009-11-15 23:12:43 +00007098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
cristy3ed852e2009-09-05 21:47:34 +00007099$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007100 if ${ac_cv_prog_cc_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007101 $as_echo_n "(cached) " >&6
7102fi
7103
cristy8b350f62009-11-15 23:12:43 +00007104 case $ac_cv_prog_cc_stdc in #(
7105 no) :
7106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7107$as_echo "unsupported" >&6; } ;; #(
7108 '') :
7109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7110$as_echo "none needed" >&6; } ;; #(
7111 *) :
7112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +00007113$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
7114esac
7115
cristy3ed852e2009-09-05 21:47:34 +00007116ac_ext=c
7117ac_cpp='$CPP $CPPFLAGS'
7118ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7119ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7120ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy8b350f62009-11-15 23:12:43 +00007121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
cristy3ed852e2009-09-05 21:47:34 +00007122$as_echo_n "checking how to run the C preprocessor... " >&6; }
7123# On Suns, sometimes $CPP names a directory.
7124if test -n "$CPP" && test -d "$CPP"; then
7125 CPP=
7126fi
7127if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00007128 if ${ac_cv_prog_CPP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007129 $as_echo_n "(cached) " >&6
7130else
7131 # Double quotes because CPP needs to be expanded
7132 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7133 do
7134 ac_preproc_ok=false
7135for ac_c_preproc_warn_flag in '' yes
7136do
7137 # Use a header file that comes with gcc, so configuring glibc
7138 # with a fresh cross-compiler works.
7139 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7140 # <limits.h> exists even on freestanding compilers.
7141 # On the NeXT, cc -E runs the code through the compiler's parser,
7142 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007144/* end confdefs.h. */
7145#ifdef __STDC__
7146# include <limits.h>
7147#else
7148# include <assert.h>
7149#endif
7150 Syntax error
7151_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007152if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007153
cristy8b350f62009-11-15 23:12:43 +00007154else
cristy3ed852e2009-09-05 21:47:34 +00007155 # Broken: fails on valid input.
7156continue
7157fi
cristyda16f162011-02-19 23:52:17 +00007158rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007159
7160 # OK, works on sane cases. Now check whether nonexistent headers
7161 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007163/* end confdefs.h. */
7164#include <ac_nonexistent.h>
7165_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007166if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007167 # Broken: success on invalid input.
7168continue
7169else
cristy3ed852e2009-09-05 21:47:34 +00007170 # Passes both tests.
7171ac_preproc_ok=:
7172break
7173fi
cristyda16f162011-02-19 23:52:17 +00007174rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007175
7176done
7177# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007178rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007179if $ac_preproc_ok; then :
cristy3ed852e2009-09-05 21:47:34 +00007180 break
7181fi
7182
7183 done
7184 ac_cv_prog_CPP=$CPP
7185
7186fi
7187 CPP=$ac_cv_prog_CPP
7188else
7189 ac_cv_prog_CPP=$CPP
7190fi
cristy8b350f62009-11-15 23:12:43 +00007191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
cristy3ed852e2009-09-05 21:47:34 +00007192$as_echo "$CPP" >&6; }
7193ac_preproc_ok=false
7194for ac_c_preproc_warn_flag in '' yes
7195do
7196 # Use a header file that comes with gcc, so configuring glibc
7197 # with a fresh cross-compiler works.
7198 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7199 # <limits.h> exists even on freestanding compilers.
7200 # On the NeXT, cc -E runs the code through the compiler's parser,
7201 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007203/* end confdefs.h. */
7204#ifdef __STDC__
7205# include <limits.h>
7206#else
7207# include <assert.h>
7208#endif
7209 Syntax error
7210_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007211if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007212
cristy8b350f62009-11-15 23:12:43 +00007213else
cristy3ed852e2009-09-05 21:47:34 +00007214 # Broken: fails on valid input.
7215continue
7216fi
cristyda16f162011-02-19 23:52:17 +00007217rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007218
7219 # OK, works on sane cases. Now check whether nonexistent headers
7220 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007222/* end confdefs.h. */
7223#include <ac_nonexistent.h>
7224_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007225if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007226 # Broken: success on invalid input.
7227continue
7228else
cristy3ed852e2009-09-05 21:47:34 +00007229 # Passes both tests.
7230ac_preproc_ok=:
7231break
7232fi
cristyda16f162011-02-19 23:52:17 +00007233rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007234
7235done
7236# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007237rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007238if $ac_preproc_ok; then :
7239
cristy3ed852e2009-09-05 21:47:34 +00007240else
cristy8b350f62009-11-15 23:12:43 +00007241 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00007242$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00007243as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7244See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00007245fi
7246
7247ac_ext=c
7248ac_cpp='$CPP $CPPFLAGS'
7249ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7250ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7251ac_compiler_gnu=$ac_cv_c_compiler_gnu
7252
cristy73bd4a52010-10-05 11:24:23 +00007253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7254$as_echo_n "checking for a sed that does not truncate output... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007255if ${ac_cv_path_SED+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007256 $as_echo_n "(cached) " >&6
7257else
7258 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7259 for ac_i in 1 2 3 4 5 6 7; do
7260 ac_script="$ac_script$as_nl$ac_script"
7261 done
7262 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7263 { ac_script=; unset ac_script;}
7264 if test -z "$SED"; then
7265 ac_path_SED_found=false
7266 # Loop through the user's path and test for each of PROGNAME-LIST
7267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7268for as_dir in $PATH
7269do
7270 IFS=$as_save_IFS
7271 test -z "$as_dir" && as_dir=.
7272 for ac_prog in sed gsed; do
7273 for ac_exec_ext in '' $ac_executable_extensions; do
7274 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00007275 as_fn_executable_p "$ac_path_SED" || continue
cristy73bd4a52010-10-05 11:24:23 +00007276# Check for GNU ac_path_SED and select it if it is found.
7277 # Check for GNU $ac_path_SED
7278case `"$ac_path_SED" --version 2>&1` in
7279*GNU*)
7280 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7281*)
7282 ac_count=0
7283 $as_echo_n 0123456789 >"conftest.in"
7284 while :
7285 do
7286 cat "conftest.in" "conftest.in" >"conftest.tmp"
7287 mv "conftest.tmp" "conftest.in"
7288 cp "conftest.in" "conftest.nl"
7289 $as_echo '' >> "conftest.nl"
7290 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7291 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7292 as_fn_arith $ac_count + 1 && ac_count=$as_val
7293 if test $ac_count -gt ${ac_path_SED_max-0}; then
7294 # Best one so far, save it but keep looking for a better one
7295 ac_cv_path_SED="$ac_path_SED"
7296 ac_path_SED_max=$ac_count
7297 fi
7298 # 10*(2^10) chars as input seems more than enough
7299 test $ac_count -gt 10 && break
7300 done
7301 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7302esac
7303
7304 $ac_path_SED_found && break 3
7305 done
7306 done
7307 done
7308IFS=$as_save_IFS
7309 if test -z "$ac_cv_path_SED"; then
cristy98dddb52010-11-04 00:30:15 +00007310 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007311 fi
7312else
7313 ac_cv_path_SED=$SED
7314fi
7315
7316fi
7317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7318$as_echo "$ac_cv_path_SED" >&6; }
7319 SED="$ac_cv_path_SED"
7320 rm -f conftest.sed
7321
7322test -z "$SED" && SED=sed
7323Xsed="$SED -e 1s/^X//"
7324
7325
7326
7327
7328
7329
7330
7331
7332
7333
7334
7335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7336$as_echo_n "checking for fgrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007337if ${ac_cv_path_FGREP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007338 $as_echo_n "(cached) " >&6
7339else
7340 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7341 then ac_cv_path_FGREP="$GREP -F"
7342 else
7343 if test -z "$FGREP"; then
7344 ac_path_FGREP_found=false
7345 # Loop through the user's path and test for each of PROGNAME-LIST
7346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7347for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7348do
7349 IFS=$as_save_IFS
7350 test -z "$as_dir" && as_dir=.
7351 for ac_prog in fgrep; do
7352 for ac_exec_ext in '' $ac_executable_extensions; do
7353 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00007354 as_fn_executable_p "$ac_path_FGREP" || continue
cristy73bd4a52010-10-05 11:24:23 +00007355# Check for GNU ac_path_FGREP and select it if it is found.
7356 # Check for GNU $ac_path_FGREP
7357case `"$ac_path_FGREP" --version 2>&1` in
7358*GNU*)
7359 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7360*)
7361 ac_count=0
7362 $as_echo_n 0123456789 >"conftest.in"
7363 while :
7364 do
7365 cat "conftest.in" "conftest.in" >"conftest.tmp"
7366 mv "conftest.tmp" "conftest.in"
7367 cp "conftest.in" "conftest.nl"
7368 $as_echo 'FGREP' >> "conftest.nl"
7369 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7370 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7371 as_fn_arith $ac_count + 1 && ac_count=$as_val
7372 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7373 # Best one so far, save it but keep looking for a better one
7374 ac_cv_path_FGREP="$ac_path_FGREP"
7375 ac_path_FGREP_max=$ac_count
7376 fi
7377 # 10*(2^10) chars as input seems more than enough
7378 test $ac_count -gt 10 && break
7379 done
7380 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7381esac
7382
7383 $ac_path_FGREP_found && break 3
7384 done
7385 done
7386 done
7387IFS=$as_save_IFS
7388 if test -z "$ac_cv_path_FGREP"; then
cristy98dddb52010-11-04 00:30:15 +00007389 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007390 fi
7391else
7392 ac_cv_path_FGREP=$FGREP
7393fi
7394
7395 fi
7396fi
7397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7398$as_echo "$ac_cv_path_FGREP" >&6; }
7399 FGREP="$ac_cv_path_FGREP"
7400
7401
7402test -z "$GREP" && GREP=grep
7403
7404
7405
7406
7407
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417
7418
7419
cristy0c60a692010-11-04 01:09:47 +00007420ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7421ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7422ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7423
7424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7425$as_echo_n "checking how to print strings... " >&6; }
7426# Test print first, because it will be a builtin if present.
cristyda16f162011-02-19 23:52:17 +00007427if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
cristy0c60a692010-11-04 01:09:47 +00007428 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7429 ECHO='print -r --'
7430elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7431 ECHO='printf %s\n'
7432else
7433 # Use this function as a fallback that always works.
7434 func_fallback_echo ()
7435 {
7436 eval 'cat <<_LTECHO_EOF
7437$1
7438_LTECHO_EOF'
7439 }
7440 ECHO='func_fallback_echo'
7441fi
7442
7443# func_echo_all arg...
7444# Invoke $ECHO with all args, space-separated.
7445func_echo_all ()
7446{
7447 $ECHO ""
7448}
7449
7450case "$ECHO" in
7451 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7452$as_echo "printf" >&6; } ;;
7453 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7454$as_echo "print -r" >&6; } ;;
7455 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7456$as_echo "cat" >&6; } ;;
7457esac
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469
7470
7471
cristy73bd4a52010-10-05 11:24:23 +00007472
7473
7474# Check whether --with-gnu-ld was given.
7475if test "${with_gnu_ld+set}" = set; then :
7476 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7477else
7478 with_gnu_ld=no
7479fi
7480
7481ac_prog=ld
7482if test "$GCC" = yes; then
7483 # Check if gcc -print-prog-name=ld gives a path.
7484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7485$as_echo_n "checking for ld used by $CC... " >&6; }
7486 case $host in
7487 *-*-mingw*)
7488 # gcc leaves a trailing carriage return which upsets mingw
7489 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7490 *)
7491 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7492 esac
7493 case $ac_prog in
7494 # Accept absolute paths.
7495 [\\/]* | ?:[\\/]*)
7496 re_direlt='/[^/][^/]*/\.\./'
7497 # Canonicalize the pathname of ld
7498 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7499 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7500 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7501 done
7502 test -z "$LD" && LD="$ac_prog"
7503 ;;
7504 "")
7505 # If it fails, then pretend we aren't using GCC.
7506 ac_prog=ld
7507 ;;
7508 *)
7509 # If it is relative, then search for the first ld in PATH.
7510 with_gnu_ld=unknown
7511 ;;
7512 esac
7513elif test "$with_gnu_ld" = yes; then
7514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7515$as_echo_n "checking for GNU ld... " >&6; }
7516else
7517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7518$as_echo_n "checking for non-GNU ld... " >&6; }
7519fi
cristyda16f162011-02-19 23:52:17 +00007520if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007521 $as_echo_n "(cached) " >&6
7522else
7523 if test -z "$LD"; then
7524 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7525 for ac_dir in $PATH; do
7526 IFS="$lt_save_ifs"
7527 test -z "$ac_dir" && ac_dir=.
7528 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7529 lt_cv_path_LD="$ac_dir/$ac_prog"
7530 # Check to see if the program is GNU ld. I'd rather use --version,
7531 # but apparently some variants of GNU ld only accept -v.
7532 # Break only if it was the GNU/non-GNU ld that we prefer.
7533 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7534 *GNU* | *'with BFD'*)
7535 test "$with_gnu_ld" != no && break
7536 ;;
7537 *)
7538 test "$with_gnu_ld" != yes && break
7539 ;;
7540 esac
7541 fi
7542 done
7543 IFS="$lt_save_ifs"
7544else
7545 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7546fi
7547fi
7548
7549LD="$lt_cv_path_LD"
7550if test -n "$LD"; then
7551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7552$as_echo "$LD" >&6; }
7553else
7554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7555$as_echo "no" >&6; }
7556fi
cristy98dddb52010-11-04 00:30:15 +00007557test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7559$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007560if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007561 $as_echo_n "(cached) " >&6
7562else
7563 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7564case `$LD -v 2>&1 </dev/null` in
7565*GNU* | *'with BFD'*)
7566 lt_cv_prog_gnu_ld=yes
7567 ;;
7568*)
7569 lt_cv_prog_gnu_ld=no
7570 ;;
7571esac
7572fi
7573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7574$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7575with_gnu_ld=$lt_cv_prog_gnu_ld
7576
7577
7578
7579
7580
7581
7582
7583
7584
cristy3ed852e2009-09-05 21:47:34 +00007585
cristy837d6dc2010-02-27 01:16:57 +00007586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
7587$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007588if ${ac_cv_prog_cc_c99+:} false; then :
cristy837d6dc2010-02-27 01:16:57 +00007589 $as_echo_n "(cached) " >&6
7590else
7591 ac_cv_prog_cc_c99=no
7592ac_save_CC=$CC
7593cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7594/* end confdefs.h. */
7595#include <stdarg.h>
7596#include <stdbool.h>
7597#include <stdlib.h>
7598#include <wchar.h>
7599#include <stdio.h>
7600
7601// Check varargs macros. These examples are taken from C99 6.10.3.5.
7602#define debug(...) fprintf (stderr, __VA_ARGS__)
7603#define showlist(...) puts (#__VA_ARGS__)
7604#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7605static void
7606test_varargs_macros (void)
7607{
7608 int x = 1234;
7609 int y = 5678;
7610 debug ("Flag");
7611 debug ("X = %d\n", x);
7612 showlist (The first, second, and third items.);
7613 report (x>y, "x is %d but y is %d", x, y);
7614}
7615
7616// Check long long types.
7617#define BIG64 18446744073709551615ull
7618#define BIG32 4294967295ul
7619#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7620#if !BIG_OK
7621 your preprocessor is broken;
7622#endif
7623#if BIG_OK
7624#else
7625 your preprocessor is broken;
7626#endif
7627static long long int bignum = -9223372036854775807LL;
7628static unsigned long long int ubignum = BIG64;
7629
7630struct incomplete_array
7631{
7632 int datasize;
7633 double data[];
7634};
7635
7636struct named_init {
7637 int number;
7638 const wchar_t *name;
7639 double average;
7640};
7641
7642typedef const char *ccp;
7643
7644static inline int
7645test_restrict (ccp restrict text)
7646{
7647 // See if C++-style comments work.
7648 // Iterate through items via the restricted pointer.
7649 // Also check for declarations in for loops.
7650 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7651 continue;
7652 return 0;
7653}
7654
7655// Check varargs and va_copy.
7656static void
7657test_varargs (const char *format, ...)
7658{
7659 va_list args;
7660 va_start (args, format);
7661 va_list args_copy;
7662 va_copy (args_copy, args);
7663
7664 const char *str;
7665 int number;
7666 float fnumber;
7667
7668 while (*format)
7669 {
7670 switch (*format++)
7671 {
7672 case 's': // string
7673 str = va_arg (args_copy, const char *);
7674 break;
7675 case 'd': // int
7676 number = va_arg (args_copy, int);
7677 break;
7678 case 'f': // float
7679 fnumber = va_arg (args_copy, double);
7680 break;
7681 default:
7682 break;
7683 }
7684 }
7685 va_end (args_copy);
7686 va_end (args);
7687}
7688
7689int
7690main ()
7691{
7692
7693 // Check bool.
7694 _Bool success = false;
7695
7696 // Check restrict.
7697 if (test_restrict ("String literal") == 0)
7698 success = true;
7699 char *restrict newvar = "Another string";
7700
7701 // Check varargs.
7702 test_varargs ("s, d' f .", "string", 65, 34.234);
7703 test_varargs_macros ();
7704
7705 // Check flexible array members.
7706 struct incomplete_array *ia =
7707 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7708 ia->datasize = 10;
7709 for (int i = 0; i < ia->datasize; ++i)
7710 ia->data[i] = i * 1.234;
7711
7712 // Check named initializers.
7713 struct named_init ni = {
7714 .number = 34,
7715 .name = L"Test wide string",
7716 .average = 543.34343,
7717 };
7718
7719 ni.number = 58;
7720
7721 int dynamic_array[ni.number];
7722 dynamic_array[ni.number - 1] = 543;
7723
7724 // work around unused variable warnings
7725 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7726 || dynamic_array[ni.number - 1] != 543);
7727
7728 ;
7729 return 0;
7730}
7731_ACEOF
cristy14fefe52012-05-21 00:59:18 +00007732for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
cristy837d6dc2010-02-27 01:16:57 +00007733do
7734 CC="$ac_save_CC $ac_arg"
7735 if ac_fn_c_try_compile "$LINENO"; then :
7736 ac_cv_prog_cc_c99=$ac_arg
7737fi
7738rm -f core conftest.err conftest.$ac_objext
7739 test "x$ac_cv_prog_cc_c99" != "xno" && break
7740done
7741rm -f conftest.$ac_ext
7742CC=$ac_save_CC
7743
7744fi
7745# AC_CACHE_VAL
7746case "x$ac_cv_prog_cc_c99" in
7747 x)
7748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7749$as_echo "none needed" >&6; } ;;
7750 xno)
7751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7752$as_echo "unsupported" >&6; } ;;
7753 *)
7754 CC="$CC $ac_cv_prog_cc_c99"
7755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
7756$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7757esac
7758if test "x$ac_cv_prog_cc_c99" != xno; then :
7759
7760fi
7761
7762
cristy73bd4a52010-10-05 11:24:23 +00007763if test "x$CC" != xcc; then
7764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
7765$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
7766else
7767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
7768$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
7769fi
7770set dummy $CC; ac_cc=`$as_echo "$2" |
7771 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
cristyda16f162011-02-19 23:52:17 +00007772if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007773 $as_echo_n "(cached) " >&6
7774else
cristy73bd4a52010-10-05 11:24:23 +00007775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7776/* end confdefs.h. */
7777
7778int
7779main ()
7780{
7781
7782 ;
7783 return 0;
7784}
7785_ACEOF
7786# Make sure it works both with $CC and with simple cc.
7787# We do the test twice because some compilers refuse to overwrite an
7788# existing .o file with -o, though they will create one.
7789ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7790rm -f conftest2.*
7791if { { case "(($ac_try" in
7792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7793 *) ac_try_echo=$ac_try;;
7794esac
7795eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7796$as_echo "$ac_try_echo"; } >&5
7797 (eval "$ac_try") 2>&5
7798 ac_status=$?
7799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7800 test $ac_status = 0; } &&
7801 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7803 *) ac_try_echo=$ac_try;;
7804esac
7805eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7806$as_echo "$ac_try_echo"; } >&5
7807 (eval "$ac_try") 2>&5
7808 ac_status=$?
7809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7810 test $ac_status = 0; };
7811then
7812 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
7813 if test "x$CC" != xcc; then
7814 # Test first that cc exists at all.
7815 if { ac_try='cc -c conftest.$ac_ext >&5'
7816 { { case "(($ac_try" in
7817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7818 *) ac_try_echo=$ac_try;;
7819esac
7820eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7821$as_echo "$ac_try_echo"; } >&5
7822 (eval "$ac_try") 2>&5
7823 ac_status=$?
7824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7825 test $ac_status = 0; }; }; then
7826 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7827 rm -f conftest2.*
7828 if { { case "(($ac_try" in
7829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7830 *) ac_try_echo=$ac_try;;
7831esac
7832eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7833$as_echo "$ac_try_echo"; } >&5
7834 (eval "$ac_try") 2>&5
7835 ac_status=$?
7836 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7837 test $ac_status = 0; } &&
7838 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7840 *) ac_try_echo=$ac_try;;
7841esac
7842eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7843$as_echo "$ac_try_echo"; } >&5
7844 (eval "$ac_try") 2>&5
7845 ac_status=$?
7846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7847 test $ac_status = 0; };
7848 then
7849 # cc works too.
7850 :
7851 else
7852 # cc exists but doesn't like -o.
7853 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7854 fi
7855 fi
7856 fi
7857else
7858 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7859fi
7860rm -f core conftest*
7861
7862fi
7863if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
7864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7865$as_echo "yes" >&6; }
7866else
7867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7868$as_echo "no" >&6; }
7869
7870$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
7871
7872fi
7873
7874# FIXME: we rely on the cache variable name because
7875# there is no other way.
7876set dummy $CC
7877am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7878eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
7879if test "$am_t" != yes; then
7880 # Losing compiler, so override with the script.
7881 # FIXME: It is wrong to rewrite CC.
7882 # But if we don't then we get into trouble of one sort or another.
7883 # A longer-term fix would be to have automake use am__CC in this case,
7884 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7885 CC="$am_aux_dir/compile $CC"
7886fi
7887
7888
7889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
7890$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007891if ${ac_cv_cflags_warn_all+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007892 $as_echo_n "(cached) " >&6
7893else
7894 ac_cv_cflags_warn_all="no, unknown"
cristy73bd4a52010-10-05 11:24:23 +00007895 ac_ext=c
7896ac_cpp='$CPP $CPPFLAGS'
7897ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7898ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7899ac_compiler_gnu=$ac_cv_c_compiler_gnu
7900
7901 ac_save_CFLAGS="$CFLAGS"
7902for 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" #
7903do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
7904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7905/* end confdefs.h. */
7906
7907int
7908main ()
7909{
cristy24fc1fe2010-10-23 21:13:01 +00007910
cristy73bd4a52010-10-05 11:24:23 +00007911 ;
7912 return 0;
7913}
7914_ACEOF
7915if ac_fn_c_try_compile "$LINENO"; then :
7916 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
7917fi
7918rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7919done
7920 CFLAGS="$ac_save_CFLAGS"
7921 ac_ext=c
7922ac_cpp='$CPP $CPPFLAGS'
7923ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7924ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7925ac_compiler_gnu=$ac_cv_c_compiler_gnu
7926
7927
7928fi
7929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
7930$as_echo "$ac_cv_cflags_warn_all" >&6; }
7931case ".$ac_cv_cflags_warn_all" in
7932 .ok|.ok,*) ;;
7933 .|.no|.no,*)
7934 ;;
7935 *)
7936 if echo " $CFLAGS " | grep " $ac_cv_cflags_warn_all " 2>&1 >/dev/null
7937 then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_warn_all"; } >&5
7938 (: CFLAGS does contain $ac_cv_cflags_warn_all) 2>&5
7939 ac_status=$?
7940 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7941 test $ac_status = 0; }
7942 else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
7943 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
7944 ac_status=$?
7945 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7946 test $ac_status = 0; }
7947 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
7948 fi
7949 ;;
nicolas6237c462010-10-05 06:11:49 +00007950esac
cristy3ed852e2009-09-05 21:47:34 +00007951
cristya0b81c32010-01-22 02:54:33 +00007952
7953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7954$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7955set x ${MAKE-make}
7956ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00007957if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00007958 $as_echo_n "(cached) " >&6
7959else
7960 cat >conftest.make <<\_ACEOF
7961SHELL = /bin/sh
7962all:
7963 @echo '@@@%%%=$(MAKE)=@@@%%%'
7964_ACEOF
cristy98dddb52010-11-04 00:30:15 +00007965# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristya0b81c32010-01-22 02:54:33 +00007966case `${MAKE-make} -f conftest.make 2>/dev/null` in
7967 *@@@%%%=?*=@@@%%%*)
7968 eval ac_cv_prog_make_${ac_make}_set=yes;;
7969 *)
7970 eval ac_cv_prog_make_${ac_make}_set=no;;
7971esac
7972rm -f conftest.make
7973fi
7974if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7976$as_echo "yes" >&6; }
7977 SET_MAKE=
7978else
7979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7980$as_echo "no" >&6; }
7981 SET_MAKE="MAKE=${MAKE-make}"
7982fi
7983
cristy8b350f62009-11-15 23:12:43 +00007984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
cristy3ed852e2009-09-05 21:47:34 +00007985$as_echo_n "checking whether ln -s works... " >&6; }
7986LN_S=$as_ln_s
7987if test "$LN_S" = "ln -s"; then
cristy8b350f62009-11-15 23:12:43 +00007988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00007989$as_echo "yes" >&6; }
7990else
cristy8b350f62009-11-15 23:12:43 +00007991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
cristy3ed852e2009-09-05 21:47:34 +00007992$as_echo "no, using $LN_S" >&6; }
7993fi
7994
cristy73bd4a52010-10-05 11:24:23 +00007995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
7996$as_echo_n "checking if malloc debugging is wanted... " >&6; }
7997
7998# Check whether --with-dmalloc was given.
7999if test "${with_dmalloc+set}" = set; then :
8000 withval=$with_dmalloc; if test "$withval" = yes; then
8001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8002$as_echo "yes" >&6; }
8003
8004$as_echo "#define WITH_DMALLOC 1" >>confdefs.h
8005
8006 LIBS="$LIBS -ldmalloc"
8007 LDFLAGS="$LDFLAGS -g"
8008else
8009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8010$as_echo "no" >&6; }
8011fi
8012else
8013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8014$as_echo "no" >&6; }
8015fi
8016
8017
8018
8019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
8020$as_echo_n "checking for __attribute__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008021if ${ax_cv___attribute__+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008022 $as_echo_n "(cached) " >&6
8023else
8024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8025/* end confdefs.h. */
8026#include <stdlib.h>
cristy73380532012-02-18 20:26:28 +00008027 static void foo(void) __attribute__ ((__unused__));
cristy73bd4a52010-10-05 11:24:23 +00008028 static void
8029 foo(void) {
8030 exit(1);
8031 }
8032
8033int
8034main ()
8035{
8036
8037 ;
8038 return 0;
8039}
8040_ACEOF
8041if ac_fn_c_try_compile "$LINENO"; then :
8042 ax_cv___attribute__=yes
8043else
8044 ax_cv___attribute__=no
8045
8046fi
8047rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8048
8049fi
8050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv___attribute__" >&5
8051$as_echo "$ax_cv___attribute__" >&6; }
8052 if test "$ax_cv___attribute__" = "yes"; then
8053
8054$as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
8055
8056 fi
8057
8058
8059
cristy37110d62012-03-01 18:38:20 +00008060
8061
8062# Check whether --with-gcc-arch was given.
8063if test "${with_gcc_arch+set}" = set; then :
8064 withval=$with_gcc_arch; ax_gcc_arch=$withval
8065else
cristya32d1812012-03-02 19:24:21 +00008066 ax_gcc_arch=no
cristy37110d62012-03-01 18:38:20 +00008067fi
8068
8069
8070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
8071$as_echo_n "checking for gcc architecture flag... " >&6; }
8072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
8073$as_echo "" >&6; }
8074if ${ax_cv_gcc_archflag+:} false; then :
8075 $as_echo_n "(cached) " >&6
8076else
8077
8078ax_cv_gcc_archflag="unknown"
8079
8080if test "$GCC" = yes; then
8081
8082if test "x$ax_gcc_arch" = xyes; then
8083ax_gcc_arch=""
8084if test "$cross_compiling" = no; then
8085case $host_cpu in
8086 i[3456]86*|x86_64*) # use cpuid codes
8087
8088ac_ext=c
8089ac_cpp='$CPP $CPPFLAGS'
8090ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8091ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8092ac_compiler_gnu=$ac_cv_c_compiler_gnu
8093
8094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0 output" >&5
8095$as_echo_n "checking for x86 cpuid 0 output... " >&6; }
8096if ${ax_cv_gcc_x86_cpuid_0+:} false; then :
8097 $as_echo_n "(cached) " >&6
8098else
8099 if test "$cross_compiling" = yes; then :
8100 ax_cv_gcc_x86_cpuid_0=unknown
8101else
8102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8103/* end confdefs.h. */
8104#include <stdio.h>
8105int
8106main ()
8107{
8108
8109 int op = 0, eax, ebx, ecx, edx;
8110 FILE *f;
8111 __asm__("cpuid"
8112 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8113 : "a" (op));
8114 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8115 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8116 fclose(f);
8117 return 0;
8118
8119 ;
8120 return 0;
8121}
8122_ACEOF
8123if ac_fn_c_try_run "$LINENO"; then :
8124 ax_cv_gcc_x86_cpuid_0=`cat conftest_cpuid`; rm -f conftest_cpuid
8125else
8126 ax_cv_gcc_x86_cpuid_0=unknown; rm -f conftest_cpuid
8127fi
8128rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8129 conftest.$ac_objext conftest.beam conftest.$ac_ext
8130fi
8131
8132fi
8133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0" >&5
8134$as_echo "$ax_cv_gcc_x86_cpuid_0" >&6; }
8135ac_ext=c
8136ac_cpp='$CPP $CPPFLAGS'
8137ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8138ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8139ac_compiler_gnu=$ac_cv_c_compiler_gnu
8140
8141
8142
8143ac_ext=c
8144ac_cpp='$CPP $CPPFLAGS'
8145ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8146ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8147ac_compiler_gnu=$ac_cv_c_compiler_gnu
8148
8149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 1 output" >&5
8150$as_echo_n "checking for x86 cpuid 1 output... " >&6; }
8151if ${ax_cv_gcc_x86_cpuid_1+:} false; then :
8152 $as_echo_n "(cached) " >&6
8153else
8154 if test "$cross_compiling" = yes; then :
8155 ax_cv_gcc_x86_cpuid_1=unknown
8156else
8157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8158/* end confdefs.h. */
8159#include <stdio.h>
8160int
8161main ()
8162{
8163
8164 int op = 1, eax, ebx, ecx, edx;
8165 FILE *f;
8166 __asm__("cpuid"
8167 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8168 : "a" (op));
8169 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8170 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8171 fclose(f);
8172 return 0;
8173
8174 ;
8175 return 0;
8176}
8177_ACEOF
8178if ac_fn_c_try_run "$LINENO"; then :
8179 ax_cv_gcc_x86_cpuid_1=`cat conftest_cpuid`; rm -f conftest_cpuid
8180else
8181 ax_cv_gcc_x86_cpuid_1=unknown; rm -f conftest_cpuid
8182fi
8183rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8184 conftest.$ac_objext conftest.beam conftest.$ac_ext
8185fi
8186
8187fi
8188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_1" >&5
8189$as_echo "$ax_cv_gcc_x86_cpuid_1" >&6; }
8190ac_ext=c
8191ac_cpp='$CPP $CPPFLAGS'
8192ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8193ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8194ac_compiler_gnu=$ac_cv_c_compiler_gnu
8195
8196
8197 case $ax_cv_gcc_x86_cpuid_0 in
8198 *:756e6547:*:*) # Intel
8199 case $ax_cv_gcc_x86_cpuid_1 in
8200 *5[48]?:*:*:*) ax_gcc_arch="pentium-mmx pentium" ;;
8201 *5??:*:*:*) ax_gcc_arch=pentium ;;
8202 *0?6[3456]?:*:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
8203 *0?6a?:*[01]:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
8204 *0?6a?:*[234]:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
8205 *0?6[9de]?:*:*:*) ax_gcc_arch="pentium-m pentium3 pentiumpro" ;;
8206 *0?6[78b]?:*:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
8207 *0?6f?:*:*:*|*1?66?:*:*:*) ax_gcc_arch="core2 pentium-m pentium3 pentiumpro" ;;
8208 *1?6[7d]?:*:*:*) ax_gcc_arch="penryn core2 pentium-m pentium3 pentiumpro" ;;
8209 *1?6[aef]?:*:*:*|*2?6[5cef]?:*:*:*) ax_gcc_arch="corei7 core2 pentium-m pentium3 pentiumpro" ;;
8210 *1?6c?:*:*:*|*[23]?66?:*:*:*) ax_gcc_arch="atom core2 pentium-m pentium3 pentiumpro" ;;
8211 *2?6[ad]?:*:*:*) ax_gcc_arch="corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;;
8212 *0?6??:*:*:*) ax_gcc_arch=pentiumpro ;;
8213 *6??:*:*:*) ax_gcc_arch="core2 pentiumpro" ;;
8214 ?000?f3[347]:*:*:*|?000?f41347:*:*:*|?000?f6?:*:*:*)
8215 case $host_cpu in
8216 x86_64*) ax_gcc_arch="nocona pentium4 pentiumpro" ;;
8217 *) ax_gcc_arch="prescott pentium4 pentiumpro" ;;
8218 esac ;;
8219 ?000?f??:*:*:*) ax_gcc_arch="pentium4 pentiumpro";;
8220 esac ;;
8221 *:68747541:*:*) # AMD
8222 case $ax_cv_gcc_x86_cpuid_1 in
8223 *5[67]?:*:*:*) ax_gcc_arch=k6 ;;
8224 *5[8d]?:*:*:*) ax_gcc_arch="k6-2 k6" ;;
8225 *5[9]?:*:*:*) ax_gcc_arch="k6-3 k6" ;;
8226 *60?:*:*:*) ax_gcc_arch=k7 ;;
8227 *6[12]?:*:*:*) ax_gcc_arch="athlon k7" ;;
8228 *6[34]?:*:*:*) ax_gcc_arch="athlon-tbird k7" ;;
8229 *67?:*:*:*) ax_gcc_arch="athlon-4 athlon k7" ;;
8230 *6[68a]?:*:*:*)
8231
8232ac_ext=c
8233ac_cpp='$CPP $CPPFLAGS'
8234ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8235ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8236ac_compiler_gnu=$ac_cv_c_compiler_gnu
8237
8238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0x80000006 output" >&5
8239$as_echo_n "checking for x86 cpuid 0x80000006 output... " >&6; }
8240if ${ax_cv_gcc_x86_cpuid_0x80000006+:} false; then :
8241 $as_echo_n "(cached) " >&6
8242else
8243 if test "$cross_compiling" = yes; then :
8244 ax_cv_gcc_x86_cpuid_0x80000006=unknown
8245else
8246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8247/* end confdefs.h. */
8248#include <stdio.h>
8249int
8250main ()
8251{
8252
8253 int op = 0x80000006, eax, ebx, ecx, edx;
8254 FILE *f;
8255 __asm__("cpuid"
8256 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8257 : "a" (op));
8258 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8259 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8260 fclose(f);
8261 return 0;
8262
8263 ;
8264 return 0;
8265}
8266_ACEOF
8267if ac_fn_c_try_run "$LINENO"; then :
8268 ax_cv_gcc_x86_cpuid_0x80000006=`cat conftest_cpuid`; rm -f conftest_cpuid
8269else
8270 ax_cv_gcc_x86_cpuid_0x80000006=unknown; rm -f conftest_cpuid
8271fi
8272rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8273 conftest.$ac_objext conftest.beam conftest.$ac_ext
8274fi
8275
8276fi
8277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0x80000006" >&5
8278$as_echo "$ax_cv_gcc_x86_cpuid_0x80000006" >&6; }
8279ac_ext=c
8280ac_cpp='$CPP $CPPFLAGS'
8281ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8282ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8283ac_compiler_gnu=$ac_cv_c_compiler_gnu
8284
8285 # L2 cache size
8286 case $ax_cv_gcc_x86_cpuid_0x80000006 in
8287 *:*:*[1-9a-f]??????:*) # (L2 = ecx >> 16) >= 256
8288 ax_gcc_arch="athlon-xp athlon-4 athlon k7" ;;
8289 *) ax_gcc_arch="athlon-4 athlon k7" ;;
8290 esac ;;
8291 ?00??f[4cef8b]?:*:*:*) ax_gcc_arch="athlon64 k8" ;;
8292 ?00??f5?:*:*:*) ax_gcc_arch="opteron k8" ;;
8293 ?00??f7?:*:*:*) ax_gcc_arch="athlon-fx opteron k8" ;;
8294 ?00??f??:*:*:*) ax_gcc_arch="k8" ;;
8295 ?05??f??:*:*:*) ax_gcc_arch="btver1 amdfam10 k8" ;;
8296 ?06??f??:*:*:*) ax_gcc_arch="bdver1 amdfam10 k8" ;;
8297 *f??:*:*:*) ax_gcc_arch="amdfam10 k8" ;;
8298 esac ;;
8299 *:746e6543:*:*) # IDT
8300 case $ax_cv_gcc_x86_cpuid_1 in
8301 *54?:*:*:*) ax_gcc_arch=winchip-c6 ;;
8302 *58?:*:*:*) ax_gcc_arch=winchip2 ;;
8303 *6[78]?:*:*:*) ax_gcc_arch=c3 ;;
8304 *69?:*:*:*) ax_gcc_arch="c3-2 c3" ;;
8305 esac ;;
8306 esac
8307 if test x"$ax_gcc_arch" = x; then # fallback
8308 case $host_cpu in
8309 i586*) ax_gcc_arch=pentium ;;
8310 i686*) ax_gcc_arch=pentiumpro ;;
8311 esac
8312 fi
8313 ;;
8314
8315 sparc*)
8316 # Extract the first word of "prtdiag", so it can be a program name with args.
8317set dummy prtdiag; ac_word=$2
8318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8319$as_echo_n "checking for $ac_word... " >&6; }
8320if ${ac_cv_path_PRTDIAG+:} false; then :
8321 $as_echo_n "(cached) " >&6
8322else
8323 case $PRTDIAG in
8324 [\\/]* | ?:[\\/]*)
8325 ac_cv_path_PRTDIAG="$PRTDIAG" # Let the user override the test with a path.
8326 ;;
8327 *)
8328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8329as_dummy="$PATH:/usr/platform/`uname -i`/sbin/:/usr/platform/`uname -m`/sbin/"
8330for as_dir in $as_dummy
8331do
8332 IFS=$as_save_IFS
8333 test -z "$as_dir" && as_dir=.
8334 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00008335 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy37110d62012-03-01 18:38:20 +00008336 ac_cv_path_PRTDIAG="$as_dir/$ac_word$ac_exec_ext"
8337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8338 break 2
8339 fi
8340done
8341 done
8342IFS=$as_save_IFS
8343
8344 test -z "$ac_cv_path_PRTDIAG" && ac_cv_path_PRTDIAG="prtdiag"
8345 ;;
8346esac
8347fi
8348PRTDIAG=$ac_cv_path_PRTDIAG
8349if test -n "$PRTDIAG"; then
8350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRTDIAG" >&5
8351$as_echo "$PRTDIAG" >&6; }
8352else
8353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8354$as_echo "no" >&6; }
8355fi
8356
8357
8358 cputype=`(((grep cpu /proc/cpuinfo | cut -d: -f2) ; ($PRTDIAG -v |grep -i sparc) ; grep -i cpu /var/run/dmesg.boot ) | head -n 1) 2> /dev/null`
8359 cputype=`echo "$cputype" | tr -d ' -' |tr $as_cr_LETTERS $as_cr_letters`
8360 case $cputype in
8361 *ultrasparciv*) ax_gcc_arch="ultrasparc4 ultrasparc3 ultrasparc v9" ;;
8362 *ultrasparciii*) ax_gcc_arch="ultrasparc3 ultrasparc v9" ;;
8363 *ultrasparc*) ax_gcc_arch="ultrasparc v9" ;;
8364 *supersparc*|*tms390z5[05]*) ax_gcc_arch="supersparc v8" ;;
8365 *hypersparc*|*rt62[056]*) ax_gcc_arch="hypersparc v8" ;;
8366 *cypress*) ax_gcc_arch=cypress ;;
8367 esac ;;
8368
8369 alphaev5) ax_gcc_arch=ev5 ;;
8370 alphaev56) ax_gcc_arch=ev56 ;;
8371 alphapca56) ax_gcc_arch="pca56 ev56" ;;
8372 alphapca57) ax_gcc_arch="pca57 pca56 ev56" ;;
8373 alphaev6) ax_gcc_arch=ev6 ;;
8374 alphaev67) ax_gcc_arch=ev67 ;;
8375 alphaev68) ax_gcc_arch="ev68 ev67" ;;
8376 alphaev69) ax_gcc_arch="ev69 ev68 ev67" ;;
8377 alphaev7) ax_gcc_arch="ev7 ev69 ev68 ev67" ;;
8378 alphaev79) ax_gcc_arch="ev79 ev7 ev69 ev68 ev67" ;;
8379
8380 powerpc*)
8381 cputype=`((grep cpu /proc/cpuinfo | head -n 1 | cut -d: -f2 | cut -d, -f1 | sed 's/ //g') ; /usr/bin/machine ; /bin/machine; grep CPU /var/run/dmesg.boot | head -n 1 | cut -d" " -f2) 2> /dev/null`
8382 cputype=`echo $cputype | sed -e 's/ppc//g;s/ *//g'`
8383 case $cputype in
8384 *750*) ax_gcc_arch="750 G3" ;;
8385 *740[0-9]*) ax_gcc_arch="$cputype 7400 G4" ;;
8386 *74[4-5][0-9]*) ax_gcc_arch="$cputype 7450 G4" ;;
8387 *74[0-9][0-9]*) ax_gcc_arch="$cputype G4" ;;
8388 *970*) ax_gcc_arch="970 G5 power4";;
8389 *POWER4*|*power4*|*gq*) ax_gcc_arch="power4 970";;
8390 *POWER5*|*power5*|*gr*|*gs*) ax_gcc_arch="power5 power4 970";;
8391 603ev|8240) ax_gcc_arch="$cputype 603e 603";;
8392 *) ax_gcc_arch=$cputype ;;
8393 esac
8394 ax_gcc_arch="$ax_gcc_arch powerpc"
8395 ;;
8396esac
8397fi # not cross-compiling
8398fi # guess arch
8399
8400if test "x$ax_gcc_arch" != x -a "x$ax_gcc_arch" != xno; then
8401for arch in $ax_gcc_arch; do
cristya32d1812012-03-02 19:24:21 +00008402 if test "xno" = xyes; then # if we require portable code
cristy37110d62012-03-01 18:38:20 +00008403 flags="-mtune=$arch"
8404 # -mcpu=$arch and m$arch generate nonportable code on every arch except
8405 # x86. And some other arches (e.g. Alpha) don't accept -mtune. Grrr.
8406 case $host_cpu in i*86|x86_64*) flags="$flags -mcpu=$arch -m$arch";; esac
8407 else
8408 flags="-march=$arch -mcpu=$arch -m$arch"
8409 fi
8410 for flag in $flags; do
8411 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
8412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
8413$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
8414if eval \${$as_CACHEVAR+:} false; then :
8415 $as_echo_n "(cached) " >&6
8416else
8417
8418 ax_check_save_flags=$CFLAGS
8419 CFLAGS="$CFLAGS $flag"
8420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8421/* end confdefs.h. */
8422
8423int
8424main ()
8425{
8426
8427 ;
8428 return 0;
8429}
8430_ACEOF
8431if ac_fn_c_try_compile "$LINENO"; then :
8432 eval "$as_CACHEVAR=yes"
8433else
8434 eval "$as_CACHEVAR=no"
8435fi
8436rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8437 CFLAGS=$ax_check_save_flags
8438fi
8439eval ac_res=\$$as_CACHEVAR
8440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8441$as_echo "$ac_res" >&6; }
8442if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
8443 ax_cv_gcc_archflag=$flag; break
8444else
8445 :
8446fi
8447
8448 done
8449 test "x$ax_cv_gcc_archflag" = xunknown || break
8450done
8451fi
8452
8453fi # $GCC=yes
8454
8455fi
8456
8457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
8458$as_echo_n "checking for gcc architecture flag... " >&6; }
8459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_archflag" >&5
8460$as_echo "$ax_cv_gcc_archflag" >&6; }
8461if test "x$ax_cv_gcc_archflag" = xunknown; then
8462 :
8463else
8464 CFLAGS="$CFLAGS $ax_cv_gcc_archflag"
8465fi
8466
8467
8468
cristy73bd4a52010-10-05 11:24:23 +00008469if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
8470 if test -n "$ac_tool_prefix"; then
8471 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
8472set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
8473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8474$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008475if ${ac_cv_path_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008476 $as_echo_n "(cached) " >&6
8477else
8478 case $PKG_CONFIG in
8479 [\\/]* | ?:[\\/]*)
8480 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8481 ;;
8482 *)
8483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8484for as_dir in $PATH
8485do
8486 IFS=$as_save_IFS
8487 test -z "$as_dir" && as_dir=.
8488 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00008489 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00008490 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8492 break 2
8493 fi
8494done
8495 done
8496IFS=$as_save_IFS
8497
8498 ;;
8499esac
8500fi
8501PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8502if test -n "$PKG_CONFIG"; then
8503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8504$as_echo "$PKG_CONFIG" >&6; }
8505else
8506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8507$as_echo "no" >&6; }
8508fi
8509
8510
8511fi
8512if test -z "$ac_cv_path_PKG_CONFIG"; then
8513 ac_pt_PKG_CONFIG=$PKG_CONFIG
8514 # Extract the first word of "pkg-config", so it can be a program name with args.
8515set dummy pkg-config; ac_word=$2
8516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8517$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008518if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008519 $as_echo_n "(cached) " >&6
8520else
8521 case $ac_pt_PKG_CONFIG in
8522 [\\/]* | ?:[\\/]*)
8523 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
8524 ;;
8525 *)
8526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8527for as_dir in $PATH
8528do
8529 IFS=$as_save_IFS
8530 test -z "$as_dir" && as_dir=.
8531 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00008532 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00008533 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8535 break 2
8536 fi
8537done
8538 done
8539IFS=$as_save_IFS
8540
8541 ;;
8542esac
8543fi
8544ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
8545if test -n "$ac_pt_PKG_CONFIG"; then
8546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
8547$as_echo "$ac_pt_PKG_CONFIG" >&6; }
8548else
8549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8550$as_echo "no" >&6; }
8551fi
8552
8553 if test "x$ac_pt_PKG_CONFIG" = x; then
8554 PKG_CONFIG=""
8555 else
8556 case $cross_compiling:$ac_tool_warned in
8557yes:)
8558{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8559$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8560ac_tool_warned=yes ;;
8561esac
8562 PKG_CONFIG=$ac_pt_PKG_CONFIG
8563 fi
8564else
8565 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8566fi
8567
8568fi
8569if test -n "$PKG_CONFIG"; then
8570 _pkg_min_version=0.9.0
8571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
8572$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
8573 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8575$as_echo "yes" >&6; }
8576 else
8577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8578$as_echo "no" >&6; }
8579 PKG_CONFIG=""
8580 fi
8581
8582fi
cristy3ed852e2009-09-05 21:47:34 +00008583
8584#
cristy3ed852e2009-09-05 21:47:34 +00008585# Enable run-time checking.
8586#
8587# Check whether --enable-bounds-checking was given.
cristy8b350f62009-11-15 23:12:43 +00008588if test "${enable_bounds_checking+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008589 enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
8590else
8591 enable_bounds_checking='no'
8592fi
8593
8594
8595if test "$enable_bounds_checking" = yes; then
8596
cristy8b350f62009-11-15 23:12:43 +00008597$as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008598
8599fi
8600
8601#
8602# Tests for Windows
8603#
8604
8605
cristy73bd4a52010-10-05 11:24:23 +00008606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
8607$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008608if ${ax_cv_c_compiler_ms+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008609 $as_echo_n "(cached) " >&6
8610else
8611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8612/* end confdefs.h. */
8613
8614int
8615main ()
8616{
8617#ifndef _MSC_VER
8618 choke me
8619#endif
8620
8621 ;
8622 return 0;
8623}
8624_ACEOF
8625if ac_fn_c_try_compile "$LINENO"; then :
8626 ax_compiler_ms=yes
8627else
8628 ax_compiler_ms=no
8629fi
8630rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8631ax_cv_c_compiler_ms=$ax_compiler_ms
8632
8633fi
8634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
8635$as_echo "$ax_cv_c_compiler_ms" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00008636
8637GDI32_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +00008638native_win32_build='no'
8639cygwin_build='no'
8640case "${host_os}" in
8641 cygwin* )
cristy3ed852e2009-09-05 21:47:34 +00008642 cygwin_build='yes'
8643 GDI32_LIBS='-lgdi32'
8644 ;;
8645 mingw* )
cristy3ed852e2009-09-05 21:47:34 +00008646 native_win32_build='yes'
8647 GDI32_LIBS='-lgdi32'
8648 ;;
8649esac
8650if test "${GDI32_LIBS}x" != 'x'; then
8651
cristy8b350f62009-11-15 23:12:43 +00008652$as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008653
8654fi
8655
cristy73bd4a52010-10-05 11:24:23 +00008656 if test "${GDI32_LIBS}x" != 'x' ; then
8657 WINGDI32_DELEGATE_TRUE=
8658 WINGDI32_DELEGATE_FALSE='#'
8659else
8660 WINGDI32_DELEGATE_TRUE='#'
8661 WINGDI32_DELEGATE_FALSE=
8662fi
8663
8664 if test "${native_win32_build}" = 'yes' ; then
8665 WIN32_NATIVE_BUILD_TRUE=
8666 WIN32_NATIVE_BUILD_FALSE='#'
8667else
8668 WIN32_NATIVE_BUILD_TRUE='#'
8669 WIN32_NATIVE_BUILD_FALSE=
8670fi
8671
8672 if test "${cygwin_build}" = 'yes' ; then
8673 CYGWIN_BUILD_TRUE=
8674 CYGWIN_BUILD_FALSE='#'
8675else
8676 CYGWIN_BUILD_TRUE='#'
8677 CYGWIN_BUILD_FALSE=
8678fi
8679
8680 if test "x${CC}" = 'xcl.exe' ; then
8681 USING_CL_TRUE=
8682 USING_CL_FALSE='#'
8683else
8684 USING_CL_TRUE='#'
8685 USING_CL_FALSE=
8686fi
8687
cristy3ed852e2009-09-05 21:47:34 +00008688
8689WinPathScript="${srcdirfull}/winpath.sh"
8690
8691
8692#
8693# Compiler flags tweaks
8694#
8695if test "${GCC}" != "yes"; then
8696 case "${host}" in
8697 *-*-hpux* )
8698 # aCC: HP ANSI C++ B3910B A.03.34
8699 CFLAGS="${CFLAGS} -Wp,-H30000"
8700 if test -n "${CXXFLAGS}"; then
8701 CXXFLAGS='-AA'
8702 else
8703 CXXFLAGS="${CXXFLAGS} -AA"
8704 fi
8705 ;;
8706 *-dec-osf5.* )
8707 # Compaq alphaev68-dec-osf5.1 compiler
8708 if test -n "${CXXFLAGS}"; then
8709 CXXFLAGS='-std strict_ansi -noimplicit_include'
8710 else
8711 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
8712 fi
8713 esac
8714fi
8715
8716# Check for lazy-loading.
cristy8b350f62009-11-15 23:12:43 +00008717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
cristy3ed852e2009-09-05 21:47:34 +00008718$as_echo_n "checking for linker lazyload option... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008719if ${im_cv_ld_lazyload+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00008720 $as_echo_n "(cached) " >&6
8721else
8722
8723im_cv_ld_lazyload='none'
8724case "${host}" in
8725 *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
8726 if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
8727 im_cv_ld_lazyload='-Wl,-zlazyload'
8728 fi
8729 ;;
8730esac
8731
8732fi
cristy8b350f62009-11-15 23:12:43 +00008733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
cristy3ed852e2009-09-05 21:47:34 +00008734$as_echo "$im_cv_ld_lazyload" >&6; }
8735if test "${im_cv_ld_lazyload}" != 'none' ; then
8736 if test -z "${LDFLAGS}" ; then
8737 LDFLAGS="${im_cv_ld_lazyload}"
8738 else
8739 LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
8740 fi
8741fi
8742
8743case "$host" in
8744*darwin* | *-macos10*)
cristy3ed852e2009-09-05 21:47:34 +00008745 # Check whether --enable-osx-universal-binary was given.
cristy8b350f62009-11-15 23:12:43 +00008746if test "${enable_osx_universal_binary+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008747 enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
8748else
8749 build_osxuniversal=no
8750fi
8751
8752
8753 if test "${build_osxuniversal}" != no ; then
8754 if test "$enable_dependency_tracking" != no ; then
cristy98dddb52010-11-04 00:30:15 +00008755 as_fn_error $? "--enable-osx-universal-binary requires --disable-dependency-tracking.
cristy3ed852e2009-09-05 21:47:34 +00008756Please re-run configure with these options:
8757 --disable-dependency-tracking --enable-osx-universal-binary
cristy8b350f62009-11-15 23:12:43 +00008758 " "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00008759 fi
8760 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8761 CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8762 LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8763 fi
8764 ;;
8765esac
8766
cristy0151ae12011-10-28 16:32:29 +00008767#
8768# ARCH specific include directory
8769#
8770
cristy670aa3c2011-11-03 00:54:00 +00008771# Check whether --with-includearch-dir was given.
8772if test "${with_includearch_dir+set}" = set; then :
8773 withval=$with_includearch_dir; includearch_dir=$withval
cristy0151ae12011-10-28 16:32:29 +00008774else
cristy670aa3c2011-11-03 00:54:00 +00008775 includearch_dir=$INCLUDE_DIR
cristy0151ae12011-10-28 16:32:29 +00008776fi
8777
8778
cristy670aa3c2011-11-03 00:54:00 +00008779eval "eval INCLUDEARCH_DIR=$includearch_dir"
cristyac9041a2011-10-28 16:52:32 +00008780
cristy0151ae12011-10-28 16:32:29 +00008781
8782#
8783# ARCH specific configuration directory
8784#
8785
cristy670aa3c2011-11-03 00:54:00 +00008786# Check whether --with-sharearch-dir was given.
8787if test "${with_sharearch_dir+set}" = set; then :
8788 withval=$with_sharearch_dir; sharearch_dir=$withval
cristy0151ae12011-10-28 16:32:29 +00008789else
cristy408ebcd2011-11-14 01:36:57 +00008790 sharearch_dir="${LIB_DIR}"
cristy0151ae12011-10-28 16:32:29 +00008791fi
8792
8793
cristy670aa3c2011-11-03 00:54:00 +00008794eval "eval SHAREARCH_DIR=$sharearch_dir"
8795SHAREARCH_DIR="$sharearch_dir"
cristyac9041a2011-10-28 16:52:32 +00008796
cristy0151ae12011-10-28 16:32:29 +00008797
8798#
cristy3ed852e2009-09-05 21:47:34 +00008799# Enable support for threads
8800
8801# Check whether --with-threads was given.
cristy8b350f62009-11-15 23:12:43 +00008802if test "${with_threads+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008803 withval=$with_threads; with_threads=$withval
8804else
8805 with_threads='yes'
8806fi
8807
8808
8809have_threads=no
8810if test "$with_threads" != 'no'; then
cristy73bd4a52010-10-05 11:24:23 +00008811
8812
cristy73bd4a52010-10-05 11:24:23 +00008813ac_ext=c
8814ac_cpp='$CPP $CPPFLAGS'
8815ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8816ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8817ac_compiler_gnu=$ac_cv_c_compiler_gnu
8818
8819ax_pthread_ok=no
8820
8821# We used to check for pthread.h first, but this fails if pthread.h
8822# requires special compiler flags (e.g. on True64 or Sequent).
8823# It gets checked for in the link test anyway.
8824
8825# First of all, check if the user has set any of the PTHREAD_LIBS,
8826# etcetera environment variables, and if threads linking works using
8827# them:
8828if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8829 save_CFLAGS="$CFLAGS"
8830 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8831 save_LIBS="$LIBS"
8832 LIBS="$PTHREAD_LIBS $LIBS"
8833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
8834$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
8835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8836/* end confdefs.h. */
8837
8838/* Override any GCC internal prototype to avoid an error.
8839 Use char because int might match the return type of a GCC
8840 builtin and then its argument prototype would still apply. */
8841#ifdef __cplusplus
8842extern "C"
8843#endif
8844char pthread_join ();
8845int
8846main ()
8847{
8848return pthread_join ();
8849 ;
8850 return 0;
8851}
8852_ACEOF
8853if ac_fn_c_try_link "$LINENO"; then :
8854 ax_pthread_ok=yes
8855fi
8856rm -f core conftest.err conftest.$ac_objext \
8857 conftest$ac_exeext conftest.$ac_ext
8858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8859$as_echo "$ax_pthread_ok" >&6; }
8860 if test x"$ax_pthread_ok" = xno; then
8861 PTHREAD_LIBS=""
8862 PTHREAD_CFLAGS=""
8863 fi
8864 LIBS="$save_LIBS"
8865 CFLAGS="$save_CFLAGS"
8866fi
8867
8868# We must check for the threads library under a number of different
8869# names; the ordering is very important because some systems
8870# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8871# libraries is broken (non-POSIX).
8872
8873# Create a list of thread flags to try. Items starting with a "-" are
8874# C compiler flags, and other items are library names, except for "none"
8875# which indicates that we try without any flags at all, and "pthread-config"
8876# which is a program returning the flags for the Pth emulation library.
8877
cristy18307f12011-12-30 01:20:16 +00008878ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt lpthread pthread-config"
cristy73bd4a52010-10-05 11:24:23 +00008879
8880# The ordering *is* (sometimes) important. Some notes on the
8881# individual items follow:
8882
8883# pthreads: AIX (must check this before -lpthread)
8884# none: in case threads are in libc; should be tried before -Kthread and
8885# other compiler flags to prevent continual compiler warnings
8886# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8887# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8888# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8889# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8890# -pthreads: Solaris/gcc
8891# -mthreads: Mingw32/gcc, Lynx/gcc
8892# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8893# doesn't hurt to check since this sometimes defines pthreads too;
8894# also defines -D_REENTRANT)
8895# ... -mt is also the pthreads flag for HP/aCC
8896# pthread: Linux, etcetera
8897# --thread-safe: KAI C++
8898# pthread-config: use pthread-config program (for GNU Pth library)
8899
8900case "${host_cpu}-${host_os}" in
8901 *solaris*)
8902
8903 # On Solaris (at least, for some versions), libc contains stubbed
8904 # (non-functional) versions of the pthreads routines, so link-based
8905 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
8906 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
8907 # a function called by this macro, so we could check for that, but
8908 # who knows whether they'll stub that too in a future libc.) So,
8909 # we'll just look for -pthreads and -lpthread first:
8910
8911 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
8912 ;;
8913
cristya316db12011-10-24 00:49:45 +00008914 *-darwin*)
8915 ax_pthread_flags="-pthread $ax_pthread_flags"
8916 ;;
cristy73bd4a52010-10-05 11:24:23 +00008917esac
8918
8919if test x"$ax_pthread_ok" = xno; then
8920for flag in $ax_pthread_flags; do
8921
8922 case $flag in
8923 none)
8924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
8925$as_echo_n "checking whether pthreads work without any flags... " >&6; }
8926 ;;
8927
8928 -*)
8929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
8930$as_echo_n "checking whether pthreads work with $flag... " >&6; }
8931 PTHREAD_CFLAGS="$flag"
8932 ;;
8933
cristya316db12011-10-24 00:49:45 +00008934 pthread-config)
8935 # Extract the first word of "pthread-config", so it can be a program name with args.
cristy73bd4a52010-10-05 11:24:23 +00008936set dummy pthread-config; ac_word=$2
8937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8938$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008939if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008940 $as_echo_n "(cached) " >&6
8941else
8942 if test -n "$ax_pthread_config"; then
8943 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
8944else
8945as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8946for as_dir in $PATH
8947do
8948 IFS=$as_save_IFS
8949 test -z "$as_dir" && as_dir=.
8950 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00008951 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00008952 ac_cv_prog_ax_pthread_config="yes"
8953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8954 break 2
8955 fi
8956done
8957 done
8958IFS=$as_save_IFS
8959
8960 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
8961fi
8962fi
8963ax_pthread_config=$ac_cv_prog_ax_pthread_config
8964if test -n "$ax_pthread_config"; then
8965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8966$as_echo "$ax_pthread_config" >&6; }
8967else
8968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8969$as_echo "no" >&6; }
8970fi
8971
8972
cristya316db12011-10-24 00:49:45 +00008973 if test x"$ax_pthread_config" = xno; then continue; fi
8974 PTHREAD_CFLAGS="`pthread-config --cflags`"
8975 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
8976 ;;
cristy73bd4a52010-10-05 11:24:23 +00008977
8978 *)
8979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
8980$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
8981 PTHREAD_LIBS="-l$flag"
8982 ;;
8983 esac
8984
8985 save_LIBS="$LIBS"
8986 save_CFLAGS="$CFLAGS"
8987 LIBS="$PTHREAD_LIBS $LIBS"
8988 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8989
8990 # Check for various functions. We must include pthread.h,
8991 # since some functions may be macros. (On the Sequent, we
8992 # need a special flag -Kthread to make this header compile.)
8993 # We check for pthread_join because it is in -lpthread on IRIX
8994 # while pthread_create is in libc. We check for pthread_attr_init
8995 # due to DEC craziness with -lpthreads. We check for
8996 # pthread_cleanup_push because it is one of the few pthread
8997 # functions on Solaris that doesn't have a non-functional libc stub.
8998 # We try pthread_create on general principles.
8999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9000/* end confdefs.h. */
9001#include <pthread.h>
cristya316db12011-10-24 00:49:45 +00009002 static void routine(void *a) { a = 0; }
9003 static void *start_routine(void *a) { return a; }
cristy73bd4a52010-10-05 11:24:23 +00009004int
9005main ()
9006{
9007pthread_t th; pthread_attr_t attr;
cristya316db12011-10-24 00:49:45 +00009008 pthread_create(&th, 0, start_routine, 0);
9009 pthread_join(th, 0);
9010 pthread_attr_init(&attr);
9011 pthread_cleanup_push(routine, 0);
9012 pthread_cleanup_pop(0) /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009013 ;
9014 return 0;
9015}
9016_ACEOF
9017if ac_fn_c_try_link "$LINENO"; then :
9018 ax_pthread_ok=yes
9019fi
9020rm -f core conftest.err conftest.$ac_objext \
9021 conftest$ac_exeext conftest.$ac_ext
9022
9023 LIBS="$save_LIBS"
9024 CFLAGS="$save_CFLAGS"
9025
9026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9027$as_echo "$ax_pthread_ok" >&6; }
9028 if test "x$ax_pthread_ok" = xyes; then
9029 break;
9030 fi
9031
9032 PTHREAD_LIBS=""
9033 PTHREAD_CFLAGS=""
9034done
9035fi
9036
9037# Various other checks:
9038if test "x$ax_pthread_ok" = xyes; then
9039 save_LIBS="$LIBS"
9040 LIBS="$PTHREAD_LIBS $LIBS"
9041 save_CFLAGS="$CFLAGS"
9042 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9043
9044 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristya316db12011-10-24 00:49:45 +00009045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy73bd4a52010-10-05 11:24:23 +00009046$as_echo_n "checking for joinable pthread attribute... " >&6; }
cristya316db12011-10-24 00:49:45 +00009047 attr_name=unknown
9048 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
9049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +00009050/* end confdefs.h. */
9051#include <pthread.h>
9052int
9053main ()
9054{
cristya316db12011-10-24 00:49:45 +00009055int attr = $attr; return attr /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009056 ;
9057 return 0;
9058}
9059_ACEOF
9060if ac_fn_c_try_link "$LINENO"; then :
9061 attr_name=$attr; break
9062fi
9063rm -f core conftest.err conftest.$ac_objext \
9064 conftest$ac_exeext conftest.$ac_ext
cristya316db12011-10-24 00:49:45 +00009065 done
cristy73bd4a52010-10-05 11:24:23 +00009066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
9067$as_echo "$attr_name" >&6; }
9068 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
9069
9070cat >>confdefs.h <<_ACEOF
9071#define PTHREAD_CREATE_JOINABLE $attr_name
9072_ACEOF
9073
9074 fi
9075
9076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
9077$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
9078 flag=no
9079 case "${host_cpu}-${host_os}" in
9080 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
9081 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
9082 esac
9083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
9084$as_echo "${flag}" >&6; }
9085 if test "x$flag" != xno; then
9086 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
9087 fi
9088
cristya316db12011-10-24 00:49:45 +00009089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
9090$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
9091if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
9092 $as_echo_n "(cached) " >&6
9093else
9094
9095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9096/* end confdefs.h. */
9097
9098 #include <pthread.h>
9099int
9100main ()
9101{
9102int i = PTHREAD_PRIO_INHERIT;
9103 ;
9104 return 0;
9105}
9106_ACEOF
9107if ac_fn_c_try_link "$LINENO"; then :
9108 ax_cv_PTHREAD_PRIO_INHERIT=yes
9109else
9110 ax_cv_PTHREAD_PRIO_INHERIT=no
9111fi
9112rm -f core conftest.err conftest.$ac_objext \
9113 conftest$ac_exeext conftest.$ac_ext
9114
9115fi
9116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
9117$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
9118 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
9119
9120$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
9121
9122fi
9123
cristy73bd4a52010-10-05 11:24:23 +00009124 LIBS="$save_LIBS"
9125 CFLAGS="$save_CFLAGS"
9126
9127 # More AIX lossage: must compile with xlc_r or cc_r
cristya316db12011-10-24 00:49:45 +00009128 if test x"$GCC" != xyes; then
cristy73bd4a52010-10-05 11:24:23 +00009129 for ac_prog in xlc_r cc_r
9130do
9131 # Extract the first word of "$ac_prog", so it can be a program name with args.
9132set dummy $ac_prog; ac_word=$2
9133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9134$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009135if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009136 $as_echo_n "(cached) " >&6
9137else
9138 if test -n "$PTHREAD_CC"; then
9139 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
9140else
9141as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9142for as_dir in $PATH
9143do
9144 IFS=$as_save_IFS
9145 test -z "$as_dir" && as_dir=.
9146 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009147 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009148 ac_cv_prog_PTHREAD_CC="$ac_prog"
9149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9150 break 2
9151 fi
9152done
9153 done
9154IFS=$as_save_IFS
9155
9156fi
9157fi
9158PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
9159if test -n "$PTHREAD_CC"; then
9160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
9161$as_echo "$PTHREAD_CC" >&6; }
9162else
9163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9164$as_echo "no" >&6; }
9165fi
9166
9167
9168 test -n "$PTHREAD_CC" && break
9169done
9170test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
9171
9172 else
9173 PTHREAD_CC=$CC
cristya316db12011-10-24 00:49:45 +00009174 fi
cristy73bd4a52010-10-05 11:24:23 +00009175else
9176 PTHREAD_CC="$CC"
9177fi
9178
9179
9180
9181
9182
9183# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
9184if test x"$ax_pthread_ok" = xyes; then
9185
9186$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
9187
9188 :
9189else
9190 ax_pthread_ok=no
9191
9192fi
9193ac_ext=c
9194ac_cpp='$CPP $CPPFLAGS'
9195ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9196ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9197ac_compiler_gnu=$ac_cv_c_compiler_gnu
9198
9199
cristy7acf8fb2010-09-23 19:58:53 +00009200 if test "$ax_pthread_ok" = yes; then
cristy3ed852e2009-09-05 21:47:34 +00009201 have_threads=yes
9202 DEF_THREAD="$PTHREAD_CFLAGS"
9203 CFLAGS="$CFLAGS $DEF_THREAD"
9204 CXXFLAGS="$CXXFLAGS $DEF_THREAD"
9205 if test "$CC" != "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +00009206 { $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 +00009207$as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
9208 CC="$PTHREAD_CC"
9209 fi
cristy55bf91c2010-09-24 00:29:41 +00009210
9211$as_echo "#define THREAD_SUPPORT 1" >>confdefs.h
9212
cristy3ed852e2009-09-05 21:47:34 +00009213 fi
9214fi
9215
9216# Enable support for OpenMP
9217if test "$have_threads" != 'yes'; then
9218 ac_cv_prog_c_openmp=unsupported
9219fi
9220
9221 OPENMP_CFLAGS=
9222 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +00009223if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009224 enableval=$enable_openmp;
9225fi
9226
9227 if test "$enable_openmp" != no; then
cristy8b350f62009-11-15 23:12:43 +00009228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00009229$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009230if ${ac_cv_prog_c_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009231 $as_echo_n "(cached) " >&6
9232else
cristy8b350f62009-11-15 23:12:43 +00009233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9234/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00009235
9236#ifndef _OPENMP
9237 choke me
9238#endif
9239#include <omp.h>
9240int main () { return omp_get_num_threads (); }
9241
9242_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009243if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009244 ac_cv_prog_c_openmp='none needed'
9245else
cristy8b350f62009-11-15 23:12:43 +00009246 ac_cv_prog_c_openmp='unsupported'
cristy14fefe52012-05-21 00:59:18 +00009247 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
9248 -Popenmp --openmp; do
cristy3ed852e2009-09-05 21:47:34 +00009249 ac_save_CFLAGS=$CFLAGS
9250 CFLAGS="$CFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +00009251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9252/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00009253
9254#ifndef _OPENMP
9255 choke me
9256#endif
9257#include <omp.h>
9258int main () { return omp_get_num_threads (); }
9259
9260_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009261if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009262 ac_cv_prog_c_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +00009263fi
cristy8b350f62009-11-15 23:12:43 +00009264rm -f core conftest.err conftest.$ac_objext \
9265 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009266 CFLAGS=$ac_save_CFLAGS
9267 if test "$ac_cv_prog_c_openmp" != unsupported; then
9268 break
9269 fi
9270 done
9271fi
cristy8b350f62009-11-15 23:12:43 +00009272rm -f core conftest.err conftest.$ac_objext \
9273 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009274fi
cristy8b350f62009-11-15 23:12:43 +00009275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +00009276$as_echo "$ac_cv_prog_c_openmp" >&6; }
9277 case $ac_cv_prog_c_openmp in #(
9278 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +00009279 ;; #(
cristy3ed852e2009-09-05 21:47:34 +00009280 *)
cristy8b350f62009-11-15 23:12:43 +00009281 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +00009282 esac
9283 fi
9284
9285
9286CFLAGS="$OPENMP_CFLAGS $CFLAGS"
9287MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
9288
cristy391f1ce2010-09-09 17:23:28 +00009289if test "$enable_openmp" != no; then
9290 if test "$ac_cv_prog_c_openmp" != 'unsupported'; then
9291 MAGICK_FEATURES="OpenMP $MAGICK_FEATURES"
9292 fi
9293fi
cristy3ed852e2009-09-05 21:47:34 +00009294
cristy736173a2009-09-20 21:18:22 +00009295# Enable support for OpenCL
cristy73bd4a52010-10-05 11:24:23 +00009296
9297
cristy73bd4a52010-10-05 11:24:23 +00009298ac_ext=c
9299ac_cpp='$CPP $CPPFLAGS'
9300ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9301ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9302ac_compiler_gnu=$ac_cv_c_compiler_gnu
9303
9304ax_pthread_ok=no
9305
9306# We used to check for pthread.h first, but this fails if pthread.h
9307# requires special compiler flags (e.g. on True64 or Sequent).
9308# It gets checked for in the link test anyway.
9309
9310# First of all, check if the user has set any of the PTHREAD_LIBS,
9311# etcetera environment variables, and if threads linking works using
9312# them:
9313if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
9314 save_CFLAGS="$CFLAGS"
9315 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9316 save_LIBS="$LIBS"
9317 LIBS="$PTHREAD_LIBS $LIBS"
9318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
9319$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
9320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9321/* end confdefs.h. */
9322
9323/* Override any GCC internal prototype to avoid an error.
9324 Use char because int might match the return type of a GCC
9325 builtin and then its argument prototype would still apply. */
9326#ifdef __cplusplus
9327extern "C"
9328#endif
9329char pthread_join ();
9330int
9331main ()
9332{
9333return pthread_join ();
9334 ;
9335 return 0;
9336}
9337_ACEOF
9338if ac_fn_c_try_link "$LINENO"; then :
9339 ax_pthread_ok=yes
9340fi
9341rm -f core conftest.err conftest.$ac_objext \
9342 conftest$ac_exeext conftest.$ac_ext
9343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9344$as_echo "$ax_pthread_ok" >&6; }
9345 if test x"$ax_pthread_ok" = xno; then
9346 PTHREAD_LIBS=""
9347 PTHREAD_CFLAGS=""
9348 fi
9349 LIBS="$save_LIBS"
9350 CFLAGS="$save_CFLAGS"
9351fi
9352
9353# We must check for the threads library under a number of different
9354# names; the ordering is very important because some systems
9355# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
9356# libraries is broken (non-POSIX).
9357
9358# Create a list of thread flags to try. Items starting with a "-" are
9359# C compiler flags, and other items are library names, except for "none"
9360# which indicates that we try without any flags at all, and "pthread-config"
9361# which is a program returning the flags for the Pth emulation library.
9362
cristy18307f12011-12-30 01:20:16 +00009363ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt lpthread pthread-config"
cristy73bd4a52010-10-05 11:24:23 +00009364
9365# The ordering *is* (sometimes) important. Some notes on the
9366# individual items follow:
9367
9368# pthreads: AIX (must check this before -lpthread)
9369# none: in case threads are in libc; should be tried before -Kthread and
9370# other compiler flags to prevent continual compiler warnings
9371# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
9372# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
9373# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
9374# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
9375# -pthreads: Solaris/gcc
9376# -mthreads: Mingw32/gcc, Lynx/gcc
9377# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
9378# doesn't hurt to check since this sometimes defines pthreads too;
9379# also defines -D_REENTRANT)
9380# ... -mt is also the pthreads flag for HP/aCC
9381# pthread: Linux, etcetera
9382# --thread-safe: KAI C++
9383# pthread-config: use pthread-config program (for GNU Pth library)
9384
9385case "${host_cpu}-${host_os}" in
9386 *solaris*)
9387
9388 # On Solaris (at least, for some versions), libc contains stubbed
9389 # (non-functional) versions of the pthreads routines, so link-based
9390 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
9391 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
9392 # a function called by this macro, so we could check for that, but
9393 # who knows whether they'll stub that too in a future libc.) So,
9394 # we'll just look for -pthreads and -lpthread first:
9395
9396 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
9397 ;;
9398
cristya316db12011-10-24 00:49:45 +00009399 *-darwin*)
9400 ax_pthread_flags="-pthread $ax_pthread_flags"
9401 ;;
cristy73bd4a52010-10-05 11:24:23 +00009402esac
9403
9404if test x"$ax_pthread_ok" = xno; then
9405for flag in $ax_pthread_flags; do
9406
9407 case $flag in
9408 none)
9409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
9410$as_echo_n "checking whether pthreads work without any flags... " >&6; }
9411 ;;
9412
9413 -*)
9414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
9415$as_echo_n "checking whether pthreads work with $flag... " >&6; }
9416 PTHREAD_CFLAGS="$flag"
9417 ;;
9418
cristya316db12011-10-24 00:49:45 +00009419 pthread-config)
9420 # Extract the first word of "pthread-config", so it can be a program name with args.
cristy73bd4a52010-10-05 11:24:23 +00009421set dummy pthread-config; ac_word=$2
9422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9423$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009424if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009425 $as_echo_n "(cached) " >&6
9426else
9427 if test -n "$ax_pthread_config"; then
9428 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
9429else
9430as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9431for as_dir in $PATH
9432do
9433 IFS=$as_save_IFS
9434 test -z "$as_dir" && as_dir=.
9435 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009436 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009437 ac_cv_prog_ax_pthread_config="yes"
9438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9439 break 2
9440 fi
9441done
9442 done
9443IFS=$as_save_IFS
9444
9445 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
9446fi
9447fi
9448ax_pthread_config=$ac_cv_prog_ax_pthread_config
9449if test -n "$ax_pthread_config"; then
9450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
9451$as_echo "$ax_pthread_config" >&6; }
9452else
9453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9454$as_echo "no" >&6; }
9455fi
9456
9457
cristya316db12011-10-24 00:49:45 +00009458 if test x"$ax_pthread_config" = xno; then continue; fi
9459 PTHREAD_CFLAGS="`pthread-config --cflags`"
9460 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
9461 ;;
cristy73bd4a52010-10-05 11:24:23 +00009462
9463 *)
9464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
9465$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
9466 PTHREAD_LIBS="-l$flag"
9467 ;;
9468 esac
9469
9470 save_LIBS="$LIBS"
9471 save_CFLAGS="$CFLAGS"
9472 LIBS="$PTHREAD_LIBS $LIBS"
9473 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9474
9475 # Check for various functions. We must include pthread.h,
9476 # since some functions may be macros. (On the Sequent, we
9477 # need a special flag -Kthread to make this header compile.)
9478 # We check for pthread_join because it is in -lpthread on IRIX
9479 # while pthread_create is in libc. We check for pthread_attr_init
9480 # due to DEC craziness with -lpthreads. We check for
9481 # pthread_cleanup_push because it is one of the few pthread
9482 # functions on Solaris that doesn't have a non-functional libc stub.
9483 # We try pthread_create on general principles.
9484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9485/* end confdefs.h. */
9486#include <pthread.h>
cristya316db12011-10-24 00:49:45 +00009487 static void routine(void *a) { a = 0; }
9488 static void *start_routine(void *a) { return a; }
cristy73bd4a52010-10-05 11:24:23 +00009489int
9490main ()
9491{
9492pthread_t th; pthread_attr_t attr;
cristya316db12011-10-24 00:49:45 +00009493 pthread_create(&th, 0, start_routine, 0);
9494 pthread_join(th, 0);
9495 pthread_attr_init(&attr);
9496 pthread_cleanup_push(routine, 0);
9497 pthread_cleanup_pop(0) /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009498 ;
9499 return 0;
9500}
9501_ACEOF
9502if ac_fn_c_try_link "$LINENO"; then :
9503 ax_pthread_ok=yes
9504fi
9505rm -f core conftest.err conftest.$ac_objext \
9506 conftest$ac_exeext conftest.$ac_ext
9507
9508 LIBS="$save_LIBS"
9509 CFLAGS="$save_CFLAGS"
9510
9511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9512$as_echo "$ax_pthread_ok" >&6; }
9513 if test "x$ax_pthread_ok" = xyes; then
9514 break;
9515 fi
9516
9517 PTHREAD_LIBS=""
9518 PTHREAD_CFLAGS=""
9519done
9520fi
9521
9522# Various other checks:
9523if test "x$ax_pthread_ok" = xyes; then
9524 save_LIBS="$LIBS"
9525 LIBS="$PTHREAD_LIBS $LIBS"
9526 save_CFLAGS="$CFLAGS"
9527 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9528
9529 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristya316db12011-10-24 00:49:45 +00009530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy73bd4a52010-10-05 11:24:23 +00009531$as_echo_n "checking for joinable pthread attribute... " >&6; }
cristya316db12011-10-24 00:49:45 +00009532 attr_name=unknown
9533 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
9534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +00009535/* end confdefs.h. */
9536#include <pthread.h>
9537int
9538main ()
9539{
cristya316db12011-10-24 00:49:45 +00009540int attr = $attr; return attr /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009541 ;
9542 return 0;
9543}
9544_ACEOF
9545if ac_fn_c_try_link "$LINENO"; then :
9546 attr_name=$attr; break
9547fi
9548rm -f core conftest.err conftest.$ac_objext \
9549 conftest$ac_exeext conftest.$ac_ext
cristya316db12011-10-24 00:49:45 +00009550 done
cristy73bd4a52010-10-05 11:24:23 +00009551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
9552$as_echo "$attr_name" >&6; }
9553 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
9554
9555cat >>confdefs.h <<_ACEOF
9556#define PTHREAD_CREATE_JOINABLE $attr_name
9557_ACEOF
9558
9559 fi
9560
9561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
9562$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
9563 flag=no
9564 case "${host_cpu}-${host_os}" in
9565 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
9566 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
9567 esac
9568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
9569$as_echo "${flag}" >&6; }
9570 if test "x$flag" != xno; then
9571 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
9572 fi
9573
cristya316db12011-10-24 00:49:45 +00009574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
9575$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
9576if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
9577 $as_echo_n "(cached) " >&6
9578else
9579
9580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9581/* end confdefs.h. */
9582
9583 #include <pthread.h>
9584int
9585main ()
9586{
9587int i = PTHREAD_PRIO_INHERIT;
9588 ;
9589 return 0;
9590}
9591_ACEOF
9592if ac_fn_c_try_link "$LINENO"; then :
9593 ax_cv_PTHREAD_PRIO_INHERIT=yes
9594else
9595 ax_cv_PTHREAD_PRIO_INHERIT=no
9596fi
9597rm -f core conftest.err conftest.$ac_objext \
9598 conftest$ac_exeext conftest.$ac_ext
9599
9600fi
9601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
9602$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
9603 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
9604
9605$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
9606
9607fi
9608
cristy73bd4a52010-10-05 11:24:23 +00009609 LIBS="$save_LIBS"
9610 CFLAGS="$save_CFLAGS"
9611
9612 # More AIX lossage: must compile with xlc_r or cc_r
cristya316db12011-10-24 00:49:45 +00009613 if test x"$GCC" != xyes; then
cristy73bd4a52010-10-05 11:24:23 +00009614 for ac_prog in xlc_r cc_r
9615do
9616 # Extract the first word of "$ac_prog", so it can be a program name with args.
9617set dummy $ac_prog; ac_word=$2
9618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9619$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009620if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009621 $as_echo_n "(cached) " >&6
9622else
9623 if test -n "$PTHREAD_CC"; then
9624 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
9625else
9626as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9627for as_dir in $PATH
9628do
9629 IFS=$as_save_IFS
9630 test -z "$as_dir" && as_dir=.
9631 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009632 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009633 ac_cv_prog_PTHREAD_CC="$ac_prog"
9634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9635 break 2
9636 fi
9637done
9638 done
9639IFS=$as_save_IFS
9640
9641fi
9642fi
9643PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
9644if test -n "$PTHREAD_CC"; then
9645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
9646$as_echo "$PTHREAD_CC" >&6; }
9647else
9648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9649$as_echo "no" >&6; }
9650fi
9651
9652
9653 test -n "$PTHREAD_CC" && break
9654done
9655test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
9656
9657 else
9658 PTHREAD_CC=$CC
cristya316db12011-10-24 00:49:45 +00009659 fi
cristy73bd4a52010-10-05 11:24:23 +00009660else
9661 PTHREAD_CC="$CC"
9662fi
9663
9664
9665
9666
9667
9668# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
9669if test x"$ax_pthread_ok" = xyes; then
9670
9671$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
9672
9673 :
9674else
9675 ax_pthread_ok=no
9676
9677fi
9678ac_ext=c
9679ac_cpp='$CPP $CPPFLAGS'
9680ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9681ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9682ac_compiler_gnu=$ac_cv_c_compiler_gnu
9683
9684
9685
9686# Check whether --enable-opencl was given.
9687if test "${enable_opencl+set}" = set; then :
9688 enableval=$enable_opencl; disable_opencl=$enableval
9689else
9690 disable_opencl='yes'
9691fi
9692
9693
9694if test "$disable_opencl" = 'yes'; then
9695 ac_ext=c
9696ac_cpp='$CPP $CPPFLAGS'
9697ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9698ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9699ac_compiler_gnu=$ac_cv_c_compiler_gnu
9700
9701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
9702$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009703if ${ax_cv_c_compiler_ms+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009704 $as_echo_n "(cached) " >&6
9705else
9706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9707/* end confdefs.h. */
9708
9709int
9710main ()
9711{
9712#ifndef _MSC_VER
9713 choke me
9714#endif
9715
9716 ;
9717 return 0;
9718}
9719_ACEOF
9720if ac_fn_c_try_compile "$LINENO"; then :
9721 ax_compiler_ms=yes
9722else
9723 ax_compiler_ms=no
9724fi
9725rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9726ax_cv_c_compiler_ms=$ax_compiler_ms
9727
9728fi
9729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
9730$as_echo "$ax_cv_c_compiler_ms" >&6; }
9731 if test X$ax_compiler_ms = Xno; then :
9732 CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
9733fi
9734
9735 ax_save_CPPFLAGS=$CPPFLAGS
9736 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
9737 for ac_header in CL/cl.h OpenCL/cl.h
9738do :
9739 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9740ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +00009741if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +00009742 cat >>confdefs.h <<_ACEOF
9743#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9744_ACEOF
9745
9746fi
9747
9748done
9749
9750 CPPFLAGS=$ax_save_CPPFLAGS
9751
9752 for ac_header in windows.h
9753do :
9754 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +00009755if test "x$ac_cv_header_windows_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +00009756 cat >>confdefs.h <<_ACEOF
9757#define HAVE_WINDOWS_H 1
9758_ACEOF
9759
9760fi
9761
9762done
9763
9764
9765
9766
9767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
9768$as_echo_n "checking for OpenCL library... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009769if ${ax_cv_check_cl_libcl+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009770 $as_echo_n "(cached) " >&6
9771else
9772 ax_cv_check_cl_libcl=no
9773 case $host_cpu in
9774 x86_64) ax_check_cl_libdir=lib64 ;;
9775 *) ax_check_cl_libdir=lib ;;
9776 esac
9777 ax_save_CPPFLAGS=$CPPFLAGS
9778 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
9779 ax_save_LIBS=$LIBS
9780 LIBS=""
9781 ax_check_libs="-lOpenCL -lCL -lclparser"
9782 for ax_lib in $ax_check_libs; do
9783 if test X$ax_compiler_ms = Xyes; then :
9784 ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
9785else
9786 ax_try_lib=$ax_lib
9787fi
9788 LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
9789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9790/* end confdefs.h. */
9791
9792 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9793 # include <windows.h>
9794 # endif
9795 # ifdef HAVE_CL_CL_H
9796 # include <CL/cl.h>
9797 # elif defined(HAVE_OPENCL_CL_H)
9798 # include <OpenCL/cl.h>
9799 # else
9800 # error no CL.h
9801 # endif
9802int
9803main ()
9804{
9805clCreateContextFromType(0,0,0,0,0)
9806 ;
9807 return 0;
9808}
9809_ACEOF
9810if ac_fn_c_try_link "$LINENO"; then :
9811 ax_cv_check_cl_libcl=$ax_try_lib; break
9812else
9813 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"
9814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9815/* end confdefs.h. */
9816
9817 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9818 # include <windows.h>
9819 # endif
9820 # ifdef HAVE_CL_CL_H
9821 # include <CL/cl.h>
9822 # elif defined(HAVE_OPENCL_CL_H)
9823 # include <OpenCL/cl.h>
9824 # else
9825 # error no CL.h
9826 # endif
9827int
9828main ()
9829{
9830clCreateContextFromType(0,0,0,0,0)
9831 ;
9832 return 0;
9833}
9834_ACEOF
9835if ac_fn_c_try_link "$LINENO"; then :
9836 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
9837else
cristy78c5a0c2010-12-04 20:00:59 +00009838 ax_check_cl_dylib_flag='-Wl,-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"
cristy73bd4a52010-10-05 11:24:23 +00009839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9840/* end confdefs.h. */
9841
9842 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9843 # include <windows.h>
9844 # endif
9845 # ifdef HAVE_CL_CL_H
9846 # include <CL/cl.h>
9847 # elif defined(HAVE_OPENCL_CL_H)
9848 # include <OpenCL/cl.h>
9849 # else
9850 # error no CL.h
9851 # endif
9852int
9853main ()
9854{
9855clCreateContextFromType(0,0,0,0,0)
9856 ;
9857 return 0;
9858}
9859_ACEOF
9860if ac_fn_c_try_link "$LINENO"; then :
9861 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
9862fi
9863rm -f core conftest.err conftest.$ac_objext \
9864 conftest$ac_exeext conftest.$ac_ext
9865fi
9866rm -f core conftest.err conftest.$ac_objext \
9867 conftest$ac_exeext conftest.$ac_ext
9868fi
9869rm -f core conftest.err conftest.$ac_objext \
9870 conftest$ac_exeext conftest.$ac_ext
9871 done
9872
cristyc3f8b8e2011-12-22 14:55:16 +00009873 if test "X$ax_cv_check_cl_libcl" = Xno; then :
cristy78c5a0c2010-12-04 20:00:59 +00009874 LIBS='-Wl,-framework,OpenCL'
cristy73bd4a52010-10-05 11:24:23 +00009875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9876/* end confdefs.h. */
9877
9878 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9879 # include <windows.h>
9880 # endif
9881 # ifdef HAVE_CL_CL_H
9882 # include <CL/cl.h>
9883 # elif defined(HAVE_OPENCL_CL_H)
9884 # include <OpenCL/cl.h>
9885 # else
9886 # error no CL.h
9887 # endif
9888int
9889main ()
9890{
9891clCreateContextFromType(0,0,0,0,0)
9892 ;
9893 return 0;
9894}
9895_ACEOF
9896if ac_fn_c_try_link "$LINENO"; then :
9897 ax_cv_check_cl_libcl=$LIBS
9898fi
9899rm -f core conftest.err conftest.$ac_objext \
9900 conftest$ac_exeext conftest.$ac_ext
9901fi
9902
9903 LIBS=$ax_save_LIBS
9904 CPPFLAGS=$ax_save_CPPFLAGS
9905fi
9906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
9907$as_echo "$ax_cv_check_cl_libcl" >&6; }
9908
9909 if test "X$ax_cv_check_cl_libcl" = Xno; then :
9910 no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
9911else
9912 CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS";
9913$as_echo "#define _OPENCL 1" >>confdefs.h
9914
9915fi
9916 ac_ext=c
9917ac_cpp='$CPP $CPPFLAGS'
9918ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9919ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9920ac_compiler_gnu=$ac_cv_c_compiler_gnu
9921
9922fi
9923
9924
9925
9926
cristyc7083c12009-10-14 03:16:55 +00009927CFLAGS="$CL_CFLAGS $CFLAGS"
9928LIBS="$CL_LIBS $LIBS"
cristy736173a2009-09-20 21:18:22 +00009929
cristy391f1ce2010-09-09 17:23:28 +00009930if test "$enable_opencl" != no; then
cristy6e3607c2011-09-13 13:59:17 +00009931 if test "X$ax_cv_check_cl_libcl" != Xno; then :
cristy391f1ce2010-09-09 17:23:28 +00009932 MAGICK_FEATURES="OpenCL $MAGICK_FEATURES"
9933 fi
cristyfd9dcd42010-08-08 18:07:02 +00009934fi
cristy2e8b51d2009-10-17 18:26:15 +00009935
cristy3ed852e2009-09-05 21:47:34 +00009936########
9937#
9938# Check for large file support
9939#
9940########
9941# Check whether --enable-largefile was given.
cristy8b350f62009-11-15 23:12:43 +00009942if test "${enable_largefile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009943 enableval=$enable_largefile;
9944fi
9945
9946if test "$enable_largefile" != no; then
9947
cristy8b350f62009-11-15 23:12:43 +00009948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009949$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009950if ${ac_cv_sys_largefile_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009951 $as_echo_n "(cached) " >&6
9952else
9953 ac_cv_sys_largefile_CC=no
9954 if test "$GCC" != yes; then
9955 ac_save_CC=$CC
9956 while :; do
9957 # IRIX 6.2 and later do not support large files by default,
9958 # so use the C compiler's -n32 option if that helps.
cristy8b350f62009-11-15 23:12:43 +00009959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009960/* end confdefs.h. */
9961#include <sys/types.h>
9962 /* Check that off_t can represent 2**63 - 1 correctly.
9963 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9964 since some C++ compilers masquerading as C compilers
9965 incorrectly reject 9223372036854775807. */
9966#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9967 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9968 && LARGE_OFF_T % 2147483647 == 1)
9969 ? 1 : -1];
9970int
9971main ()
9972{
9973
9974 ;
9975 return 0;
9976}
9977_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009978 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009979 break
cristy3ed852e2009-09-05 21:47:34 +00009980fi
cristy3ed852e2009-09-05 21:47:34 +00009981rm -f core conftest.err conftest.$ac_objext
9982 CC="$CC -n32"
cristy8b350f62009-11-15 23:12:43 +00009983 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009984 ac_cv_sys_largefile_CC=' -n32'; break
cristy3ed852e2009-09-05 21:47:34 +00009985fi
cristy3ed852e2009-09-05 21:47:34 +00009986rm -f core conftest.err conftest.$ac_objext
9987 break
9988 done
9989 CC=$ac_save_CC
9990 rm -f conftest.$ac_ext
9991 fi
9992fi
cristy8b350f62009-11-15 23:12:43 +00009993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00009994$as_echo "$ac_cv_sys_largefile_CC" >&6; }
9995 if test "$ac_cv_sys_largefile_CC" != no; then
9996 CC=$CC$ac_cv_sys_largefile_CC
9997 fi
9998
cristy8b350f62009-11-15 23:12:43 +00009999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010000$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010001if ${ac_cv_sys_file_offset_bits+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010002 $as_echo_n "(cached) " >&6
10003else
10004 while :; do
cristy8b350f62009-11-15 23:12:43 +000010005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010006/* end confdefs.h. */
10007#include <sys/types.h>
10008 /* Check that off_t can represent 2**63 - 1 correctly.
10009 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10010 since some C++ compilers masquerading as C compilers
10011 incorrectly reject 9223372036854775807. */
10012#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10013 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10014 && LARGE_OFF_T % 2147483647 == 1)
10015 ? 1 : -1];
10016int
10017main ()
10018{
10019
10020 ;
10021 return 0;
10022}
10023_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010024if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010025 ac_cv_sys_file_offset_bits=no; break
cristy3ed852e2009-09-05 21:47:34 +000010026fi
cristy3ed852e2009-09-05 21:47:34 +000010027rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010029/* end confdefs.h. */
10030#define _FILE_OFFSET_BITS 64
10031#include <sys/types.h>
10032 /* Check that off_t can represent 2**63 - 1 correctly.
10033 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10034 since some C++ compilers masquerading as C compilers
10035 incorrectly reject 9223372036854775807. */
10036#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10037 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10038 && LARGE_OFF_T % 2147483647 == 1)
10039 ? 1 : -1];
10040int
10041main ()
10042{
10043
10044 ;
10045 return 0;
10046}
10047_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010048if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010049 ac_cv_sys_file_offset_bits=64; break
cristy3ed852e2009-09-05 21:47:34 +000010050fi
cristy3ed852e2009-09-05 21:47:34 +000010051rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10052 ac_cv_sys_file_offset_bits=unknown
10053 break
10054done
10055fi
cristy8b350f62009-11-15 23:12:43 +000010056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
cristy3ed852e2009-09-05 21:47:34 +000010057$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
10058case $ac_cv_sys_file_offset_bits in #(
10059 no | unknown) ;;
10060 *)
10061cat >>confdefs.h <<_ACEOF
10062#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10063_ACEOF
10064;;
10065esac
10066rm -rf conftest*
10067 if test $ac_cv_sys_file_offset_bits = unknown; then
cristy8b350f62009-11-15 23:12:43 +000010068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010069$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010070if ${ac_cv_sys_large_files+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010071 $as_echo_n "(cached) " >&6
10072else
10073 while :; do
cristy8b350f62009-11-15 23:12:43 +000010074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010075/* end confdefs.h. */
10076#include <sys/types.h>
10077 /* Check that off_t can represent 2**63 - 1 correctly.
10078 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10079 since some C++ compilers masquerading as C compilers
10080 incorrectly reject 9223372036854775807. */
10081#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10082 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10083 && LARGE_OFF_T % 2147483647 == 1)
10084 ? 1 : -1];
10085int
10086main ()
10087{
10088
10089 ;
10090 return 0;
10091}
10092_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010093if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010094 ac_cv_sys_large_files=no; break
cristy3ed852e2009-09-05 21:47:34 +000010095fi
cristy3ed852e2009-09-05 21:47:34 +000010096rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010098/* end confdefs.h. */
10099#define _LARGE_FILES 1
10100#include <sys/types.h>
10101 /* Check that off_t can represent 2**63 - 1 correctly.
10102 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10103 since some C++ compilers masquerading as C compilers
10104 incorrectly reject 9223372036854775807. */
10105#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10106 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10107 && LARGE_OFF_T % 2147483647 == 1)
10108 ? 1 : -1];
10109int
10110main ()
10111{
10112
10113 ;
10114 return 0;
10115}
10116_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010117if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010118 ac_cv_sys_large_files=1; break
cristy3ed852e2009-09-05 21:47:34 +000010119fi
cristy3ed852e2009-09-05 21:47:34 +000010120rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10121 ac_cv_sys_large_files=unknown
10122 break
10123done
10124fi
cristy8b350f62009-11-15 23:12:43 +000010125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010126$as_echo "$ac_cv_sys_large_files" >&6; }
10127case $ac_cv_sys_large_files in #(
10128 no | unknown) ;;
10129 *)
10130cat >>confdefs.h <<_ACEOF
10131#define _LARGE_FILES $ac_cv_sys_large_files
10132_ACEOF
10133;;
10134esac
10135rm -rf conftest*
10136 fi
cristy14fefe52012-05-21 00:59:18 +000010137
10138
cristy3ed852e2009-09-05 21:47:34 +000010139fi
10140
cristy8b350f62009-11-15 23:12:43 +000010141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010142$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010143if ${ac_cv_sys_largefile_source+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010144 $as_echo_n "(cached) " >&6
10145else
10146 while :; do
cristy8b350f62009-11-15 23:12:43 +000010147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010148/* end confdefs.h. */
10149#include <sys/types.h> /* for off_t */
10150 #include <stdio.h>
10151int
10152main ()
10153{
10154int (*fp) (FILE *, off_t, int) = fseeko;
10155 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
10156 ;
10157 return 0;
10158}
10159_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010160if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010161 ac_cv_sys_largefile_source=no; break
cristy3ed852e2009-09-05 21:47:34 +000010162fi
cristy8b350f62009-11-15 23:12:43 +000010163rm -f core conftest.err conftest.$ac_objext \
10164 conftest$ac_exeext conftest.$ac_ext
10165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010166/* end confdefs.h. */
10167#define _LARGEFILE_SOURCE 1
10168#include <sys/types.h> /* for off_t */
10169 #include <stdio.h>
10170int
10171main ()
10172{
10173int (*fp) (FILE *, off_t, int) = fseeko;
10174 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
10175 ;
10176 return 0;
10177}
10178_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010179if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010180 ac_cv_sys_largefile_source=1; break
cristy3ed852e2009-09-05 21:47:34 +000010181fi
cristy8b350f62009-11-15 23:12:43 +000010182rm -f core conftest.err conftest.$ac_objext \
10183 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010184 ac_cv_sys_largefile_source=unknown
10185 break
10186done
10187fi
cristy8b350f62009-11-15 23:12:43 +000010188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
cristy3ed852e2009-09-05 21:47:34 +000010189$as_echo "$ac_cv_sys_largefile_source" >&6; }
10190case $ac_cv_sys_largefile_source in #(
10191 no | unknown) ;;
10192 *)
10193cat >>confdefs.h <<_ACEOF
10194#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
10195_ACEOF
10196;;
10197esac
10198rm -rf conftest*
10199
10200# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
10201# in glibc 2.1.3, but that breaks too many other things.
10202# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
10203if test $ac_cv_sys_largefile_source != unknown; then
10204
cristy8b350f62009-11-15 23:12:43 +000010205$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000010206
10207fi
10208
10209LFS_CPPFLAGS=''
10210if test "$enable_largefile" != no; then
cristyc1e0cc12011-09-21 16:41:16 +000010211 case $ac_cv_sys_file_offset_bits in
10212 no)
10213 # nothing to do here as the host supports LFS fine
10214 ;;
10215 unknown)
cristy8b350f62009-11-15 23:12:43 +000010216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
cristy3ed852e2009-09-05 21:47:34 +000010217$as_echo_n "checking for native large file support... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010218 if test "$cross_compiling" = yes; then :
10219 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000010220$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000010221as_fn_error $? "cannot run test program while cross compiling
10222See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000010223else
cristy8b350f62009-11-15 23:12:43 +000010224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10225/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000010226#include <unistd.h>
10227 main () {
10228 exit(!(sizeof(off_t) == 8));
10229 }
cristyda16f162011-02-19 23:52:17 +000010230int
10231main ()
10232{
10233
10234 ;
10235 return 0;
10236}
cristy3ed852e2009-09-05 21:47:34 +000010237_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010238if ac_fn_c_try_run "$LINENO"; then :
10239 ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000010240
cristy09b53e12011-10-14 12:47:22 +000010241 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
10242$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000010243else
cristy09b53e12011-10-14 12:47:22 +000010244 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
10245$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000010246fi
cristy8b350f62009-11-15 23:12:43 +000010247rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10248 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010249fi
10250
cristyc1e0cc12011-09-21 16:41:16 +000010251 ;;
10252 *)
10253 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
10254 ;;
10255 esac
cristy3ed852e2009-09-05 21:47:34 +000010256 if test "$ac_cv_sys_large_files" != 'no'; then
10257 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
10258 fi
10259 if test "$ac_cv_sys_largefile_source" != 'no'; then
10260 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
10261 fi
10262fi
10263
10264
cristy3ed852e2009-09-05 21:47:34 +000010265# Configure libtool
cristy73bd4a52010-10-05 11:24:23 +000010266enable_dlopen=yes
10267
10268
10269
10270case `pwd` in
10271 *\ * | *\ *)
10272 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
10273$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
10274esac
10275
10276
10277
cristy99bd5232011-12-07 14:38:20 +000010278macro_version='2.4.2'
10279macro_revision='1.3337'
cristy73bd4a52010-10-05 11:24:23 +000010280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293ltmain="$ac_aux_dir/ltmain.sh"
10294
cristy0c60a692010-11-04 01:09:47 +000010295# Backslashify metacharacters that are still active within
10296# double-quoted strings.
10297sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
10298
10299# Same as above, but do not quote variable references.
10300double_quote_subst='s/\(["`\\]\)/\\\1/g'
10301
10302# Sed substitution to delay expansion of an escaped shell variable in a
10303# double_quote_subst'ed string.
10304delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
10305
10306# Sed substitution to delay expansion of an escaped single quote.
10307delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
10308
10309# Sed substitution to avoid accidental globbing in evaled expressions
10310no_glob_subst='s/\*/\\\*/g'
10311
cristy73bd4a52010-10-05 11:24:23 +000010312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
10313$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010314if ${lt_cv_path_NM+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010315 $as_echo_n "(cached) " >&6
10316else
10317 if test -n "$NM"; then
10318 # Let the user override the test.
10319 lt_cv_path_NM="$NM"
10320else
10321 lt_nm_to_check="${ac_tool_prefix}nm"
10322 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
10323 lt_nm_to_check="$lt_nm_to_check nm"
10324 fi
10325 for lt_tmp_nm in $lt_nm_to_check; do
10326 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10327 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
10328 IFS="$lt_save_ifs"
10329 test -z "$ac_dir" && ac_dir=.
10330 tmp_nm="$ac_dir/$lt_tmp_nm"
10331 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
10332 # Check to see if the nm accepts a BSD-compat flag.
10333 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
10334 # nm: unknown option "B" ignored
10335 # Tru64's nm complains that /dev/null is an invalid object file
10336 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
10337 */dev/null* | *'Invalid file or object type'*)
10338 lt_cv_path_NM="$tmp_nm -B"
10339 break
10340 ;;
10341 *)
10342 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
10343 */dev/null*)
10344 lt_cv_path_NM="$tmp_nm -p"
10345 break
10346 ;;
10347 *)
10348 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
10349 continue # so that we can try to find one that supports BSD flags
10350 ;;
10351 esac
10352 ;;
10353 esac
10354 fi
10355 done
10356 IFS="$lt_save_ifs"
10357 done
10358 : ${lt_cv_path_NM=no}
10359fi
10360fi
10361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
10362$as_echo "$lt_cv_path_NM" >&6; }
10363if test "$lt_cv_path_NM" != "no"; then
10364 NM="$lt_cv_path_NM"
10365else
10366 # Didn't find any BSD compatible name lister, look for dumpbin.
cristy0c60a692010-11-04 01:09:47 +000010367 if test -n "$DUMPBIN"; then :
10368 # Let the user override the test.
10369 else
10370 if test -n "$ac_tool_prefix"; then
10371 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +000010372 do
10373 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10374set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10376$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010377if ${ac_cv_prog_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010378 $as_echo_n "(cached) " >&6
10379else
10380 if test -n "$DUMPBIN"; then
10381 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
10382else
10383as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10384for as_dir in $PATH
10385do
10386 IFS=$as_save_IFS
10387 test -z "$as_dir" && as_dir=.
10388 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010389 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010390 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
10391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10392 break 2
10393 fi
10394done
10395 done
10396IFS=$as_save_IFS
10397
10398fi
10399fi
10400DUMPBIN=$ac_cv_prog_DUMPBIN
10401if test -n "$DUMPBIN"; then
10402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
10403$as_echo "$DUMPBIN" >&6; }
10404else
10405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10406$as_echo "no" >&6; }
10407fi
10408
10409
10410 test -n "$DUMPBIN" && break
10411 done
10412fi
10413if test -z "$DUMPBIN"; then
10414 ac_ct_DUMPBIN=$DUMPBIN
cristy0c60a692010-11-04 01:09:47 +000010415 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +000010416do
10417 # Extract the first word of "$ac_prog", so it can be a program name with args.
10418set dummy $ac_prog; ac_word=$2
10419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10420$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010421if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010422 $as_echo_n "(cached) " >&6
10423else
10424 if test -n "$ac_ct_DUMPBIN"; then
10425 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
10426else
10427as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10428for as_dir in $PATH
10429do
10430 IFS=$as_save_IFS
10431 test -z "$as_dir" && as_dir=.
10432 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010433 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010434 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
10435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10436 break 2
10437 fi
10438done
10439 done
10440IFS=$as_save_IFS
10441
10442fi
10443fi
10444ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
10445if test -n "$ac_ct_DUMPBIN"; then
10446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
10447$as_echo "$ac_ct_DUMPBIN" >&6; }
10448else
10449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10450$as_echo "no" >&6; }
10451fi
10452
10453
10454 test -n "$ac_ct_DUMPBIN" && break
10455done
10456
10457 if test "x$ac_ct_DUMPBIN" = x; then
10458 DUMPBIN=":"
10459 else
10460 case $cross_compiling:$ac_tool_warned in
10461yes:)
10462{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10463$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10464ac_tool_warned=yes ;;
10465esac
10466 DUMPBIN=$ac_ct_DUMPBIN
10467 fi
10468fi
10469
cristy0c60a692010-11-04 01:09:47 +000010470 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
10471 *COFF*)
10472 DUMPBIN="$DUMPBIN -symbols"
10473 ;;
10474 *)
10475 DUMPBIN=:
10476 ;;
10477 esac
10478 fi
cristy73bd4a52010-10-05 11:24:23 +000010479
10480 if test "$DUMPBIN" != ":"; then
10481 NM="$DUMPBIN"
10482 fi
10483fi
10484test -z "$NM" && NM=nm
10485
10486
10487
10488
10489
10490
10491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
10492$as_echo_n "checking the name lister ($NM) interface... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010493if ${lt_cv_nm_interface+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010494 $as_echo_n "(cached) " >&6
10495else
10496 lt_cv_nm_interface="BSD nm"
10497 echo "int some_variable = 0;" > conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000010498 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000010499 (eval "$ac_compile" 2>conftest.err)
10500 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000010501 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000010502 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
10503 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000010504 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000010505 cat conftest.out >&5
10506 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
10507 lt_cv_nm_interface="MS dumpbin"
10508 fi
10509 rm -f conftest*
10510fi
10511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
10512$as_echo "$lt_cv_nm_interface" >&6; }
10513
10514# find the maximum length of command line arguments
10515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
10516$as_echo_n "checking the maximum length of command line arguments... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010517if ${lt_cv_sys_max_cmd_len+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010518 $as_echo_n "(cached) " >&6
10519else
10520 i=0
10521 teststring="ABCD"
10522
10523 case $build_os in
10524 msdosdjgpp*)
10525 # On DJGPP, this test can blow up pretty badly due to problems in libc
10526 # (any single argument exceeding 2000 bytes causes a buffer overrun
10527 # during glob expansion). Even if it were fixed, the result of this
10528 # check would be larger than it should be.
10529 lt_cv_sys_max_cmd_len=12288; # 12K is about right
10530 ;;
10531
10532 gnu*)
10533 # Under GNU Hurd, this test is not required because there is
10534 # no limit to the length of command line arguments.
10535 # Libtool will interpret -1 as no limit whatsoever
10536 lt_cv_sys_max_cmd_len=-1;
10537 ;;
10538
10539 cygwin* | mingw* | cegcc*)
10540 # On Win9x/ME, this test blows up -- it succeeds, but takes
10541 # about 5 minutes as the teststring grows exponentially.
10542 # Worse, since 9x/ME are not pre-emptively multitasking,
10543 # you end up with a "frozen" computer, even though with patience
10544 # the test eventually succeeds (with a max line length of 256k).
10545 # Instead, let's just punt: use the minimum linelength reported by
10546 # all of the supported platforms: 8192 (on NT/2K/XP).
10547 lt_cv_sys_max_cmd_len=8192;
10548 ;;
10549
cristy0c60a692010-11-04 01:09:47 +000010550 mint*)
10551 # On MiNT this can take a long time and run out of memory.
10552 lt_cv_sys_max_cmd_len=8192;
10553 ;;
10554
cristy73bd4a52010-10-05 11:24:23 +000010555 amigaos*)
10556 # On AmigaOS with pdksh, this test takes hours, literally.
10557 # So we just punt and use a minimum line length of 8192.
10558 lt_cv_sys_max_cmd_len=8192;
10559 ;;
10560
10561 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
10562 # This has been around since 386BSD, at least. Likely further.
10563 if test -x /sbin/sysctl; then
10564 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
10565 elif test -x /usr/sbin/sysctl; then
10566 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
10567 else
10568 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
10569 fi
10570 # And add a safety zone
10571 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10572 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
10573 ;;
10574
10575 interix*)
10576 # We know the value 262144 and hardcode it with a safety zone (like BSD)
10577 lt_cv_sys_max_cmd_len=196608
10578 ;;
10579
cristy99bd5232011-12-07 14:38:20 +000010580 os2*)
10581 # The test takes a long time on OS/2.
10582 lt_cv_sys_max_cmd_len=8192
10583 ;;
10584
cristy73bd4a52010-10-05 11:24:23 +000010585 osf*)
10586 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
10587 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
10588 # nice to cause kernel panics so lets avoid the loop below.
10589 # First set a reasonable default.
10590 lt_cv_sys_max_cmd_len=16384
10591 #
10592 if test -x /sbin/sysconfig; then
10593 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
10594 *1*) lt_cv_sys_max_cmd_len=-1 ;;
10595 esac
10596 fi
10597 ;;
10598 sco3.2v5*)
10599 lt_cv_sys_max_cmd_len=102400
10600 ;;
10601 sysv5* | sco5v6* | sysv4.2uw2*)
10602 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
10603 if test -n "$kargmax"; then
10604 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
10605 else
10606 lt_cv_sys_max_cmd_len=32768
10607 fi
10608 ;;
10609 *)
10610 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
10611 if test -n "$lt_cv_sys_max_cmd_len"; then
10612 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10613 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
10614 else
10615 # Make teststring a little bigger before we do anything with it.
10616 # a 1K string should be a reasonable start.
10617 for i in 1 2 3 4 5 6 7 8 ; do
10618 teststring=$teststring$teststring
10619 done
10620 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
10621 # If test is not a shell built-in, we'll probably end up computing a
10622 # maximum length that is only half of the actual maximum length, but
10623 # we can't tell.
cristy99bd5232011-12-07 14:38:20 +000010624 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
cristy0c60a692010-11-04 01:09:47 +000010625 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
cristy73bd4a52010-10-05 11:24:23 +000010626 test $i != 17 # 1/2 MB should be enough
10627 do
10628 i=`expr $i + 1`
10629 teststring=$teststring$teststring
10630 done
10631 # Only check the string length outside the loop.
10632 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
10633 teststring=
10634 # Add a significant safety factor because C++ compilers can tack on
10635 # massive amounts of additional arguments before passing them to the
10636 # linker. It appears as though 1/2 is a usable value.
10637 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
10638 fi
10639 ;;
10640 esac
10641
10642fi
10643
10644if test -n $lt_cv_sys_max_cmd_len ; then
10645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
10646$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
10647else
10648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
10649$as_echo "none" >&6; }
10650fi
10651max_cmd_len=$lt_cv_sys_max_cmd_len
10652
10653
10654
10655
10656
10657
10658: ${CP="cp -f"}
10659: ${MV="mv -f"}
10660: ${RM="rm -f"}
10661
10662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
10663$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
10664# Try some XSI features
10665xsi_shell=no
10666( _lt_dummy="a/b/c"
cristyda16f162011-02-19 23:52:17 +000010667 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
10668 = c,a/b,b/c, \
cristy73bd4a52010-10-05 11:24:23 +000010669 && eval 'test $(( 1 + 1 )) -eq 2 \
10670 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
10671 && xsi_shell=yes
10672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
10673$as_echo "$xsi_shell" >&6; }
10674
10675
10676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
10677$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
10678lt_shell_append=no
10679( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
10680 >/dev/null 2>&1 \
10681 && lt_shell_append=yes
10682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
10683$as_echo "$lt_shell_append" >&6; }
10684
10685
10686if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10687 lt_unset=unset
10688else
10689 lt_unset=false
10690fi
10691
10692
10693
10694
10695
10696# test EBCDIC or ASCII
10697case `echo X|tr X '\101'` in
10698 A) # ASCII based system
10699 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
10700 lt_SP2NL='tr \040 \012'
10701 lt_NL2SP='tr \015\012 \040\040'
10702 ;;
10703 *) # EBCDIC based system
10704 lt_SP2NL='tr \100 \n'
10705 lt_NL2SP='tr \r\n \100\100'
10706 ;;
10707esac
10708
10709
10710
10711
10712
10713
10714
10715
10716
cristyda16f162011-02-19 23:52:17 +000010717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
10718$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
10719if ${lt_cv_to_host_file_cmd+:} false; then :
10720 $as_echo_n "(cached) " >&6
10721else
10722 case $host in
10723 *-*-mingw* )
10724 case $build in
10725 *-*-mingw* ) # actually msys
10726 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
10727 ;;
10728 *-*-cygwin* )
10729 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
10730 ;;
10731 * ) # otherwise, assume *nix
10732 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
10733 ;;
10734 esac
10735 ;;
10736 *-*-cygwin* )
10737 case $build in
10738 *-*-mingw* ) # actually msys
10739 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
10740 ;;
10741 *-*-cygwin* )
10742 lt_cv_to_host_file_cmd=func_convert_file_noop
10743 ;;
10744 * ) # otherwise, assume *nix
10745 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
10746 ;;
10747 esac
10748 ;;
10749 * ) # unhandled hosts (and "normal" native builds)
10750 lt_cv_to_host_file_cmd=func_convert_file_noop
10751 ;;
10752esac
10753
10754fi
10755
10756to_host_file_cmd=$lt_cv_to_host_file_cmd
10757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
10758$as_echo "$lt_cv_to_host_file_cmd" >&6; }
10759
10760
10761
10762
10763
10764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
10765$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
10766if ${lt_cv_to_tool_file_cmd+:} false; then :
10767 $as_echo_n "(cached) " >&6
10768else
10769 #assume ordinary cross tools, or native build.
10770lt_cv_to_tool_file_cmd=func_convert_file_noop
10771case $host in
10772 *-*-mingw* )
10773 case $build in
10774 *-*-mingw* ) # actually msys
10775 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
10776 ;;
10777 esac
10778 ;;
10779esac
10780
10781fi
10782
10783to_tool_file_cmd=$lt_cv_to_tool_file_cmd
10784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
10785$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
10786
10787
10788
10789
10790
cristy73bd4a52010-10-05 11:24:23 +000010791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
10792$as_echo_n "checking for $LD option to reload object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010793if ${lt_cv_ld_reload_flag+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010794 $as_echo_n "(cached) " >&6
10795else
10796 lt_cv_ld_reload_flag='-r'
10797fi
10798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
10799$as_echo "$lt_cv_ld_reload_flag" >&6; }
10800reload_flag=$lt_cv_ld_reload_flag
10801case $reload_flag in
10802"" | " "*) ;;
10803*) reload_flag=" $reload_flag" ;;
10804esac
10805reload_cmds='$LD$reload_flag -o $output$reload_objs'
10806case $host_os in
cristyda16f162011-02-19 23:52:17 +000010807 cygwin* | mingw* | pw32* | cegcc*)
10808 if test "$GCC" != yes; then
10809 reload_cmds=false
10810 fi
10811 ;;
cristy73bd4a52010-10-05 11:24:23 +000010812 darwin*)
10813 if test "$GCC" = yes; then
10814 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
10815 else
10816 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10817 fi
10818 ;;
10819esac
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829if test -n "$ac_tool_prefix"; then
10830 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
10831set dummy ${ac_tool_prefix}objdump; ac_word=$2
10832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10833$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010834if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010835 $as_echo_n "(cached) " >&6
10836else
10837 if test -n "$OBJDUMP"; then
10838 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10839else
10840as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10841for as_dir in $PATH
10842do
10843 IFS=$as_save_IFS
10844 test -z "$as_dir" && as_dir=.
10845 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010846 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010847 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
10848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10849 break 2
10850 fi
10851done
10852 done
10853IFS=$as_save_IFS
10854
10855fi
10856fi
10857OBJDUMP=$ac_cv_prog_OBJDUMP
10858if test -n "$OBJDUMP"; then
10859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10860$as_echo "$OBJDUMP" >&6; }
10861else
10862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10863$as_echo "no" >&6; }
10864fi
10865
10866
10867fi
10868if test -z "$ac_cv_prog_OBJDUMP"; then
10869 ac_ct_OBJDUMP=$OBJDUMP
10870 # Extract the first word of "objdump", so it can be a program name with args.
10871set dummy objdump; ac_word=$2
10872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10873$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010874if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010875 $as_echo_n "(cached) " >&6
10876else
10877 if test -n "$ac_ct_OBJDUMP"; then
10878 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
10879else
10880as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10881for as_dir in $PATH
10882do
10883 IFS=$as_save_IFS
10884 test -z "$as_dir" && as_dir=.
10885 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010886 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010887 ac_cv_prog_ac_ct_OBJDUMP="objdump"
10888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10889 break 2
10890 fi
10891done
10892 done
10893IFS=$as_save_IFS
10894
10895fi
10896fi
10897ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
10898if test -n "$ac_ct_OBJDUMP"; then
10899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
10900$as_echo "$ac_ct_OBJDUMP" >&6; }
10901else
10902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10903$as_echo "no" >&6; }
10904fi
10905
10906 if test "x$ac_ct_OBJDUMP" = x; then
10907 OBJDUMP="false"
10908 else
10909 case $cross_compiling:$ac_tool_warned in
10910yes:)
10911{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10912$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10913ac_tool_warned=yes ;;
10914esac
10915 OBJDUMP=$ac_ct_OBJDUMP
10916 fi
10917else
10918 OBJDUMP="$ac_cv_prog_OBJDUMP"
10919fi
10920
10921test -z "$OBJDUMP" && OBJDUMP=objdump
10922
10923
10924
10925
10926
10927
10928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
10929$as_echo_n "checking how to recognize dependent libraries... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010930if ${lt_cv_deplibs_check_method+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010931 $as_echo_n "(cached) " >&6
10932else
10933 lt_cv_file_magic_cmd='$MAGIC_CMD'
10934lt_cv_file_magic_test_file=
10935lt_cv_deplibs_check_method='unknown'
10936# Need to set the preceding variable on all platforms that support
10937# interlibrary dependencies.
10938# 'none' -- dependencies not supported.
10939# `unknown' -- same as none, but documents that we really don't know.
10940# 'pass_all' -- all dependencies passed with no checks.
10941# 'test_compile' -- check by making test program.
10942# 'file_magic [[regex]]' -- check by looking for files in library path
10943# which responds to the $file_magic_cmd with a given extended regex.
10944# If you have `file' or equivalent on your system and you're not sure
10945# whether `pass_all' will *always* work, you probably want this one.
10946
10947case $host_os in
10948aix[4-9]*)
10949 lt_cv_deplibs_check_method=pass_all
10950 ;;
10951
10952beos*)
10953 lt_cv_deplibs_check_method=pass_all
10954 ;;
10955
10956bsdi[45]*)
10957 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10958 lt_cv_file_magic_cmd='/usr/bin/file -L'
10959 lt_cv_file_magic_test_file=/shlib/libc.so
10960 ;;
10961
10962cygwin*)
10963 # func_win32_libid is a shell function defined in ltmain.sh
10964 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10965 lt_cv_file_magic_cmd='func_win32_libid'
10966 ;;
10967
10968mingw* | pw32*)
10969 # Base MSYS/MinGW do not provide the 'file' command needed by
10970 # func_win32_libid shell function, so use a weaker test based on 'objdump',
10971 # unless we find 'file', for example because we are cross-compiling.
cristy0c60a692010-11-04 01:09:47 +000010972 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
10973 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
cristy73bd4a52010-10-05 11:24:23 +000010974 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10975 lt_cv_file_magic_cmd='func_win32_libid'
10976 else
cristy0c60a692010-11-04 01:09:47 +000010977 # Keep this pattern in sync with the one in func_win32_libid.
10978 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
cristy73bd4a52010-10-05 11:24:23 +000010979 lt_cv_file_magic_cmd='$OBJDUMP -f'
10980 fi
10981 ;;
10982
cristy0c60a692010-11-04 01:09:47 +000010983cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000010984 # use the weaker test based on 'objdump'. See mingw*.
10985 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
10986 lt_cv_file_magic_cmd='$OBJDUMP -f'
10987 ;;
10988
10989darwin* | rhapsody*)
10990 lt_cv_deplibs_check_method=pass_all
10991 ;;
10992
10993freebsd* | dragonfly*)
10994 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10995 case $host_cpu in
10996 i*86 )
10997 # Not sure whether the presence of OpenBSD here was a mistake.
10998 # Let's accept both of them until this is cleared up.
10999 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11000 lt_cv_file_magic_cmd=/usr/bin/file
11001 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11002 ;;
11003 esac
11004 else
11005 lt_cv_deplibs_check_method=pass_all
11006 fi
11007 ;;
11008
11009gnu*)
11010 lt_cv_deplibs_check_method=pass_all
11011 ;;
11012
cristy0c60a692010-11-04 01:09:47 +000011013haiku*)
11014 lt_cv_deplibs_check_method=pass_all
11015 ;;
11016
cristy73bd4a52010-10-05 11:24:23 +000011017hpux10.20* | hpux11*)
11018 lt_cv_file_magic_cmd=/usr/bin/file
11019 case $host_cpu in
11020 ia64*)
11021 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11022 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11023 ;;
11024 hppa*64*)
cristy0c60a692010-11-04 01:09:47 +000011025 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
cristy73bd4a52010-10-05 11:24:23 +000011026 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11027 ;;
11028 *)
cristy0c60a692010-11-04 01:09:47 +000011029 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
cristy73bd4a52010-10-05 11:24:23 +000011030 lt_cv_file_magic_test_file=/usr/lib/libc.sl
11031 ;;
11032 esac
11033 ;;
11034
11035interix[3-9]*)
11036 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11037 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11038 ;;
11039
11040irix5* | irix6* | nonstopux*)
11041 case $LD in
11042 *-32|*"-32 ") libmagic=32-bit;;
11043 *-n32|*"-n32 ") libmagic=N32;;
11044 *-64|*"-64 ") libmagic=64-bit;;
11045 *) libmagic=never-match;;
11046 esac
11047 lt_cv_deplibs_check_method=pass_all
11048 ;;
11049
cristy99bd5232011-12-07 14:38:20 +000011050# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000011051linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000011052 lt_cv_deplibs_check_method=pass_all
11053 ;;
11054
11055netbsd*)
11056 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11057 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11058 else
11059 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
11060 fi
11061 ;;
11062
11063newos6*)
11064 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
11065 lt_cv_file_magic_cmd=/usr/bin/file
11066 lt_cv_file_magic_test_file=/usr/lib/libnls.so
11067 ;;
11068
11069*nto* | *qnx*)
11070 lt_cv_deplibs_check_method=pass_all
11071 ;;
11072
11073openbsd*)
11074 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11075 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
11076 else
11077 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11078 fi
11079 ;;
11080
11081osf3* | osf4* | osf5*)
11082 lt_cv_deplibs_check_method=pass_all
11083 ;;
11084
11085rdos*)
11086 lt_cv_deplibs_check_method=pass_all
11087 ;;
11088
11089solaris*)
11090 lt_cv_deplibs_check_method=pass_all
11091 ;;
11092
11093sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11094 lt_cv_deplibs_check_method=pass_all
11095 ;;
11096
11097sysv4 | sysv4.3*)
11098 case $host_vendor in
11099 motorola)
11100 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]'
11101 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
11102 ;;
11103 ncr)
11104 lt_cv_deplibs_check_method=pass_all
11105 ;;
11106 sequent)
11107 lt_cv_file_magic_cmd='/bin/file'
11108 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
11109 ;;
11110 sni)
11111 lt_cv_file_magic_cmd='/bin/file'
11112 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
11113 lt_cv_file_magic_test_file=/lib/libc.so
11114 ;;
11115 siemens)
11116 lt_cv_deplibs_check_method=pass_all
11117 ;;
11118 pc)
11119 lt_cv_deplibs_check_method=pass_all
11120 ;;
11121 esac
11122 ;;
11123
11124tpf*)
11125 lt_cv_deplibs_check_method=pass_all
11126 ;;
11127esac
11128
11129fi
11130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
11131$as_echo "$lt_cv_deplibs_check_method" >&6; }
cristyda16f162011-02-19 23:52:17 +000011132
11133file_magic_glob=
11134want_nocaseglob=no
11135if test "$build" = "$host"; then
11136 case $host_os in
11137 mingw* | pw32*)
11138 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
11139 want_nocaseglob=yes
11140 else
11141 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
11142 fi
11143 ;;
11144 esac
11145fi
11146
cristy73bd4a52010-10-05 11:24:23 +000011147file_magic_cmd=$lt_cv_file_magic_cmd
11148deplibs_check_method=$lt_cv_deplibs_check_method
11149test -z "$deplibs_check_method" && deplibs_check_method=unknown
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
cristyda16f162011-02-19 23:52:17 +000011162
11163
11164
11165
11166
11167
11168
11169
11170
11171
cristy73bd4a52010-10-05 11:24:23 +000011172if test -n "$ac_tool_prefix"; then
cristyda16f162011-02-19 23:52:17 +000011173 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11174set dummy ${ac_tool_prefix}dlltool; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000011175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11176$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011177if ${ac_cv_prog_DLLTOOL+:} false; then :
11178 $as_echo_n "(cached) " >&6
11179else
11180 if test -n "$DLLTOOL"; then
11181 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11182else
11183as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11184for as_dir in $PATH
11185do
11186 IFS=$as_save_IFS
11187 test -z "$as_dir" && as_dir=.
11188 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011189 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011190 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11192 break 2
11193 fi
11194done
11195 done
11196IFS=$as_save_IFS
11197
11198fi
11199fi
11200DLLTOOL=$ac_cv_prog_DLLTOOL
11201if test -n "$DLLTOOL"; then
11202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11203$as_echo "$DLLTOOL" >&6; }
11204else
11205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11206$as_echo "no" >&6; }
11207fi
11208
11209
11210fi
11211if test -z "$ac_cv_prog_DLLTOOL"; then
11212 ac_ct_DLLTOOL=$DLLTOOL
11213 # Extract the first word of "dlltool", so it can be a program name with args.
11214set dummy dlltool; ac_word=$2
11215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11216$as_echo_n "checking for $ac_word... " >&6; }
11217if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
11218 $as_echo_n "(cached) " >&6
11219else
11220 if test -n "$ac_ct_DLLTOOL"; then
11221 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11222else
11223as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11224for as_dir in $PATH
11225do
11226 IFS=$as_save_IFS
11227 test -z "$as_dir" && as_dir=.
11228 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011229 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011230 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11232 break 2
11233 fi
11234done
11235 done
11236IFS=$as_save_IFS
11237
11238fi
11239fi
11240ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11241if test -n "$ac_ct_DLLTOOL"; then
11242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11243$as_echo "$ac_ct_DLLTOOL" >&6; }
11244else
11245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11246$as_echo "no" >&6; }
11247fi
11248
11249 if test "x$ac_ct_DLLTOOL" = x; then
11250 DLLTOOL="false"
11251 else
11252 case $cross_compiling:$ac_tool_warned in
11253yes:)
11254{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11255$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11256ac_tool_warned=yes ;;
11257esac
11258 DLLTOOL=$ac_ct_DLLTOOL
11259 fi
11260else
11261 DLLTOOL="$ac_cv_prog_DLLTOOL"
11262fi
11263
11264test -z "$DLLTOOL" && DLLTOOL=dlltool
11265
11266
11267
11268
11269
11270
11271
11272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
11273$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
11274if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
11275 $as_echo_n "(cached) " >&6
11276else
11277 lt_cv_sharedlib_from_linklib_cmd='unknown'
11278
11279case $host_os in
11280cygwin* | mingw* | pw32* | cegcc*)
11281 # two different shell functions defined in ltmain.sh
11282 # decide which to use based on capabilities of $DLLTOOL
11283 case `$DLLTOOL --help 2>&1` in
11284 *--identify-strict*)
11285 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
11286 ;;
11287 *)
11288 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
11289 ;;
11290 esac
11291 ;;
11292*)
11293 # fallback: assume linklib IS sharedlib
11294 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
11295 ;;
11296esac
11297
11298fi
11299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
11300$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
11301sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
11302test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
11303
11304
11305
11306
11307
11308
11309
11310if test -n "$ac_tool_prefix"; then
11311 for ac_prog in ar
11312 do
11313 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11314set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11316$as_echo_n "checking for $ac_word... " >&6; }
11317if ${ac_cv_prog_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011318 $as_echo_n "(cached) " >&6
11319else
11320 if test -n "$AR"; then
11321 ac_cv_prog_AR="$AR" # Let the user override the test.
11322else
11323as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11324for as_dir in $PATH
11325do
11326 IFS=$as_save_IFS
11327 test -z "$as_dir" && as_dir=.
11328 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011329 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011330 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000011331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11332 break 2
11333 fi
11334done
11335 done
11336IFS=$as_save_IFS
11337
11338fi
11339fi
11340AR=$ac_cv_prog_AR
11341if test -n "$AR"; then
11342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
11343$as_echo "$AR" >&6; }
11344else
11345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11346$as_echo "no" >&6; }
11347fi
11348
11349
cristyda16f162011-02-19 23:52:17 +000011350 test -n "$AR" && break
11351 done
cristy73bd4a52010-10-05 11:24:23 +000011352fi
cristyda16f162011-02-19 23:52:17 +000011353if test -z "$AR"; then
cristy73bd4a52010-10-05 11:24:23 +000011354 ac_ct_AR=$AR
cristyda16f162011-02-19 23:52:17 +000011355 for ac_prog in ar
11356do
11357 # Extract the first word of "$ac_prog", so it can be a program name with args.
11358set dummy $ac_prog; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000011359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11360$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011361if ${ac_cv_prog_ac_ct_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011362 $as_echo_n "(cached) " >&6
11363else
11364 if test -n "$ac_ct_AR"; then
11365 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11366else
11367as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11368for as_dir in $PATH
11369do
11370 IFS=$as_save_IFS
11371 test -z "$as_dir" && as_dir=.
11372 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011374 ac_cv_prog_ac_ct_AR="$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000011375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11376 break 2
11377 fi
11378done
11379 done
11380IFS=$as_save_IFS
11381
11382fi
11383fi
11384ac_ct_AR=$ac_cv_prog_ac_ct_AR
11385if test -n "$ac_ct_AR"; then
11386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
11387$as_echo "$ac_ct_AR" >&6; }
11388else
11389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11390$as_echo "no" >&6; }
11391fi
11392
cristyda16f162011-02-19 23:52:17 +000011393
11394 test -n "$ac_ct_AR" && break
11395done
11396
cristy73bd4a52010-10-05 11:24:23 +000011397 if test "x$ac_ct_AR" = x; then
11398 AR="false"
11399 else
11400 case $cross_compiling:$ac_tool_warned in
11401yes:)
11402{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11403$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11404ac_tool_warned=yes ;;
11405esac
11406 AR=$ac_ct_AR
11407 fi
cristy73bd4a52010-10-05 11:24:23 +000011408fi
11409
cristyda16f162011-02-19 23:52:17 +000011410: ${AR=ar}
11411: ${AR_FLAGS=cru}
cristy73bd4a52010-10-05 11:24:23 +000011412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
cristyda16f162011-02-19 23:52:17 +000011423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
11424$as_echo_n "checking for archiver @FILE support... " >&6; }
11425if ${lt_cv_ar_at_file+:} false; then :
11426 $as_echo_n "(cached) " >&6
11427else
11428 lt_cv_ar_at_file=no
11429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11430/* end confdefs.h. */
11431
11432int
11433main ()
11434{
11435
11436 ;
11437 return 0;
11438}
11439_ACEOF
11440if ac_fn_c_try_compile "$LINENO"; then :
11441 echo conftest.$ac_objext > conftest.lst
11442 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
11443 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
11444 (eval $lt_ar_try) 2>&5
11445 ac_status=$?
11446 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11447 test $ac_status = 0; }
11448 if test "$ac_status" -eq 0; then
11449 # Ensure the archiver fails upon bogus file names.
11450 rm -f conftest.$ac_objext libconftest.a
11451 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
11452 (eval $lt_ar_try) 2>&5
11453 ac_status=$?
11454 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11455 test $ac_status = 0; }
11456 if test "$ac_status" -ne 0; then
11457 lt_cv_ar_at_file=@
11458 fi
11459 fi
11460 rm -f conftest.* libconftest.a
11461
11462fi
11463rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11464
11465fi
11466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
11467$as_echo "$lt_cv_ar_at_file" >&6; }
11468
11469if test "x$lt_cv_ar_at_file" = xno; then
11470 archiver_list_spec=
11471else
11472 archiver_list_spec=$lt_cv_ar_at_file
11473fi
11474
11475
11476
11477
11478
11479
11480
cristy73bd4a52010-10-05 11:24:23 +000011481if test -n "$ac_tool_prefix"; then
11482 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11483set dummy ${ac_tool_prefix}strip; ac_word=$2
11484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11485$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011486if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011487 $as_echo_n "(cached) " >&6
11488else
11489 if test -n "$STRIP"; then
11490 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11491else
11492as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11493for as_dir in $PATH
11494do
11495 IFS=$as_save_IFS
11496 test -z "$as_dir" && as_dir=.
11497 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011498 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011499 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11501 break 2
11502 fi
11503done
11504 done
11505IFS=$as_save_IFS
11506
11507fi
11508fi
11509STRIP=$ac_cv_prog_STRIP
11510if test -n "$STRIP"; then
11511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11512$as_echo "$STRIP" >&6; }
11513else
11514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11515$as_echo "no" >&6; }
11516fi
11517
11518
11519fi
11520if test -z "$ac_cv_prog_STRIP"; then
11521 ac_ct_STRIP=$STRIP
11522 # Extract the first word of "strip", so it can be a program name with args.
11523set dummy strip; ac_word=$2
11524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11525$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011526if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011527 $as_echo_n "(cached) " >&6
11528else
11529 if test -n "$ac_ct_STRIP"; then
11530 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11531else
11532as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11533for as_dir in $PATH
11534do
11535 IFS=$as_save_IFS
11536 test -z "$as_dir" && as_dir=.
11537 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011538 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011539 ac_cv_prog_ac_ct_STRIP="strip"
11540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11541 break 2
11542 fi
11543done
11544 done
11545IFS=$as_save_IFS
11546
11547fi
11548fi
11549ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11550if test -n "$ac_ct_STRIP"; then
11551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
11552$as_echo "$ac_ct_STRIP" >&6; }
11553else
11554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11555$as_echo "no" >&6; }
11556fi
11557
11558 if test "x$ac_ct_STRIP" = x; then
11559 STRIP=":"
11560 else
11561 case $cross_compiling:$ac_tool_warned in
11562yes:)
11563{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11564$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11565ac_tool_warned=yes ;;
11566esac
11567 STRIP=$ac_ct_STRIP
11568 fi
11569else
11570 STRIP="$ac_cv_prog_STRIP"
11571fi
11572
11573test -z "$STRIP" && STRIP=:
11574
11575
11576
11577
11578
11579
11580if test -n "$ac_tool_prefix"; then
11581 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11582set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11584$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011585if ${ac_cv_prog_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011586 $as_echo_n "(cached) " >&6
11587else
11588 if test -n "$RANLIB"; then
11589 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11590else
11591as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11592for as_dir in $PATH
11593do
11594 IFS=$as_save_IFS
11595 test -z "$as_dir" && as_dir=.
11596 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011597 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011598 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11600 break 2
11601 fi
11602done
11603 done
11604IFS=$as_save_IFS
11605
11606fi
11607fi
11608RANLIB=$ac_cv_prog_RANLIB
11609if test -n "$RANLIB"; then
11610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11611$as_echo "$RANLIB" >&6; }
11612else
11613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11614$as_echo "no" >&6; }
11615fi
11616
11617
11618fi
11619if test -z "$ac_cv_prog_RANLIB"; then
11620 ac_ct_RANLIB=$RANLIB
11621 # Extract the first word of "ranlib", so it can be a program name with args.
11622set dummy ranlib; ac_word=$2
11623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11624$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011625if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011626 $as_echo_n "(cached) " >&6
11627else
11628 if test -n "$ac_ct_RANLIB"; then
11629 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11630else
11631as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11632for as_dir in $PATH
11633do
11634 IFS=$as_save_IFS
11635 test -z "$as_dir" && as_dir=.
11636 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011637 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011638 ac_cv_prog_ac_ct_RANLIB="ranlib"
11639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11640 break 2
11641 fi
11642done
11643 done
11644IFS=$as_save_IFS
11645
11646fi
11647fi
11648ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11649if test -n "$ac_ct_RANLIB"; then
11650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
11651$as_echo "$ac_ct_RANLIB" >&6; }
11652else
11653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11654$as_echo "no" >&6; }
11655fi
11656
11657 if test "x$ac_ct_RANLIB" = x; then
11658 RANLIB=":"
11659 else
11660 case $cross_compiling:$ac_tool_warned in
11661yes:)
11662{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11663$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11664ac_tool_warned=yes ;;
11665esac
11666 RANLIB=$ac_ct_RANLIB
11667 fi
11668else
11669 RANLIB="$ac_cv_prog_RANLIB"
11670fi
11671
11672test -z "$RANLIB" && RANLIB=:
11673
11674
11675
11676
11677
11678
11679# Determine commands to create old-style static archives.
11680old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
11681old_postinstall_cmds='chmod 644 $oldlib'
11682old_postuninstall_cmds=
11683
11684if test -n "$RANLIB"; then
11685 case $host_os in
11686 openbsd*)
cristy99bd5232011-12-07 14:38:20 +000011687 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000011688 ;;
11689 *)
cristy99bd5232011-12-07 14:38:20 +000011690 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000011691 ;;
11692 esac
cristy99bd5232011-12-07 14:38:20 +000011693 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000011694fi
11695
cristy0c60a692010-11-04 01:09:47 +000011696case $host_os in
11697 darwin*)
11698 lock_old_archive_extraction=yes ;;
11699 *)
11700 lock_old_archive_extraction=no ;;
11701esac
11702
11703
11704
11705
11706
11707
cristy73bd4a52010-10-05 11:24:23 +000011708
11709
11710
11711
11712
11713
11714
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727
11728
11729
11730
11731
11732
11733
11734
11735
11736
11737
11738
11739
11740
11741# If no C compiler was specified, use CC.
11742LTCC=${LTCC-"$CC"}
11743
11744# If no C compiler flags were specified, use CFLAGS.
11745LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11746
11747# Allow CC to be a program name with arguments.
11748compiler=$CC
11749
11750
11751# Check for command to grab the raw symbol name followed by C symbol from nm.
11752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
11753$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011754if ${lt_cv_sys_global_symbol_pipe+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011755 $as_echo_n "(cached) " >&6
11756else
11757
11758# These are sane defaults that work on at least a few old systems.
11759# [They come from Ultrix. What could be older than Ultrix?!! ;)]
11760
11761# Character class describing NM global symbol codes.
11762symcode='[BCDEGRST]'
11763
11764# Regexp to match symbols that can be accessed directly from C.
11765sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
11766
11767# Define system-specific variables.
11768case $host_os in
11769aix*)
11770 symcode='[BCDT]'
11771 ;;
11772cygwin* | mingw* | pw32* | cegcc*)
11773 symcode='[ABCDGISTW]'
11774 ;;
11775hpux*)
11776 if test "$host_cpu" = ia64; then
11777 symcode='[ABCDEGRST]'
11778 fi
11779 ;;
11780irix* | nonstopux*)
11781 symcode='[BCDEGRST]'
11782 ;;
11783osf*)
11784 symcode='[BCDEGQRST]'
11785 ;;
11786solaris*)
11787 symcode='[BDRT]'
11788 ;;
11789sco3.2v5*)
11790 symcode='[DT]'
11791 ;;
11792sysv4.2uw2*)
11793 symcode='[DT]'
11794 ;;
11795sysv5* | sco5v6* | unixware* | OpenUNIX*)
11796 symcode='[ABDT]'
11797 ;;
11798sysv4)
11799 symcode='[DFNSTU]'
11800 ;;
11801esac
11802
11803# If we're using GNU nm, then use its standard symbol codes.
11804case `$NM -V 2>&1` in
11805*GNU* | *'with BFD'*)
11806 symcode='[ABCDGIRSTW]' ;;
11807esac
11808
11809# Transform an extracted symbol line into a proper C declaration.
11810# Some systems (esp. on ia64) link data and code symbols differently,
11811# so use this general approach.
11812lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11813
11814# Transform an extracted symbol line into symbol name and symbol address
cristyda16f162011-02-19 23:52:17 +000011815lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
11816lt_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'"
cristy73bd4a52010-10-05 11:24:23 +000011817
11818# Handle CRLF in mingw tool chain
11819opt_cr=
11820case $build_os in
11821mingw*)
11822 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11823 ;;
11824esac
11825
11826# Try without a prefix underscore, then with it.
11827for ac_symprfx in "" "_"; do
11828
11829 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
11830 symxfrm="\\1 $ac_symprfx\\2 \\2"
11831
11832 # Write the raw and C identifiers.
11833 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
11834 # Fake it for dumpbin and say T for any non-static function
11835 # and D for any global variable.
11836 # Also find C++ and __fastcall symbols from MSVC++,
11837 # which start with @ or ?.
11838 lt_cv_sys_global_symbol_pipe="$AWK '"\
11839" {last_section=section; section=\$ 3};"\
cristy99bd5232011-12-07 14:38:20 +000011840" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
cristy73bd4a52010-10-05 11:24:23 +000011841" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
11842" \$ 0!~/External *\|/{next};"\
11843" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
11844" {if(hide[section]) next};"\
11845" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
11846" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
11847" s[1]~/^[@?]/{print s[1], s[1]; next};"\
11848" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
11849" ' prfx=^$ac_symprfx"
11850 else
11851 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
11852 fi
cristyda16f162011-02-19 23:52:17 +000011853 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
cristy73bd4a52010-10-05 11:24:23 +000011854
11855 # Check to see that the pipe works correctly.
11856 pipe_works=no
11857
11858 rm -f conftest*
11859 cat > conftest.$ac_ext <<_LT_EOF
11860#ifdef __cplusplus
11861extern "C" {
11862#endif
11863char nm_test_var;
11864void nm_test_func(void);
11865void nm_test_func(void){}
11866#ifdef __cplusplus
11867}
11868#endif
11869int main(){nm_test_var='a';nm_test_func();return(0);}
11870_LT_EOF
11871
11872 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11873 (eval $ac_compile) 2>&5
11874 ac_status=$?
11875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11876 test $ac_status = 0; }; then
11877 # Now try to grab the symbols.
11878 nlist=conftest.nm
cristy0c60a692010-11-04 01:09:47 +000011879 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
11880 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
cristy73bd4a52010-10-05 11:24:23 +000011881 ac_status=$?
11882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11883 test $ac_status = 0; } && test -s "$nlist"; then
11884 # Try sorting and uniquifying the output.
11885 if sort "$nlist" | uniq > "$nlist"T; then
11886 mv -f "$nlist"T "$nlist"
11887 else
11888 rm -f "$nlist"T
11889 fi
11890
11891 # Make sure that we snagged all the symbols we need.
11892 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
11893 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
11894 cat <<_LT_EOF > conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000011895/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
11896#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
11897/* DATA imports from DLLs on WIN32 con't be const, because runtime
11898 relocations are performed -- see ld's documentation on pseudo-relocs. */
11899# define LT_DLSYM_CONST
11900#elif defined(__osf__)
11901/* This system does not cope well with relocations in const data. */
11902# define LT_DLSYM_CONST
11903#else
11904# define LT_DLSYM_CONST const
11905#endif
11906
cristy73bd4a52010-10-05 11:24:23 +000011907#ifdef __cplusplus
11908extern "C" {
11909#endif
11910
11911_LT_EOF
11912 # Now generate the symbol file.
11913 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
11914
11915 cat <<_LT_EOF >> conftest.$ac_ext
11916
11917/* The mapping between symbol names and symbols. */
cristyda16f162011-02-19 23:52:17 +000011918LT_DLSYM_CONST struct {
cristy73bd4a52010-10-05 11:24:23 +000011919 const char *name;
11920 void *address;
11921}
11922lt__PROGRAM__LTX_preloaded_symbols[] =
11923{
11924 { "@PROGRAM@", (void *) 0 },
11925_LT_EOF
11926 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
11927 cat <<\_LT_EOF >> conftest.$ac_ext
11928 {0, (void *) 0}
11929};
11930
11931/* This works around a problem in FreeBSD linker */
11932#ifdef FREEBSD_WORKAROUND
11933static const void *lt_preloaded_setup() {
11934 return lt__PROGRAM__LTX_preloaded_symbols;
11935}
11936#endif
11937
11938#ifdef __cplusplus
11939}
11940#endif
11941_LT_EOF
11942 # Now try linking the two files.
11943 mv conftest.$ac_objext conftstm.$ac_objext
cristyda16f162011-02-19 23:52:17 +000011944 lt_globsym_save_LIBS=$LIBS
11945 lt_globsym_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000011946 LIBS="conftstm.$ac_objext"
11947 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11948 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11949 (eval $ac_link) 2>&5
11950 ac_status=$?
11951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11952 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
11953 pipe_works=yes
11954 fi
cristyda16f162011-02-19 23:52:17 +000011955 LIBS=$lt_globsym_save_LIBS
11956 CFLAGS=$lt_globsym_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000011957 else
11958 echo "cannot find nm_test_func in $nlist" >&5
11959 fi
11960 else
11961 echo "cannot find nm_test_var in $nlist" >&5
11962 fi
11963 else
11964 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11965 fi
11966 else
11967 echo "$progname: failed program was:" >&5
11968 cat conftest.$ac_ext >&5
11969 fi
11970 rm -rf conftest* conftst*
11971
11972 # Do not use the global_symbol_pipe unless it works.
11973 if test "$pipe_works" = yes; then
11974 break
11975 else
11976 lt_cv_sys_global_symbol_pipe=
11977 fi
11978done
11979
11980fi
11981
11982if test -z "$lt_cv_sys_global_symbol_pipe"; then
11983 lt_cv_sys_global_symbol_to_cdecl=
11984fi
11985if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
11987$as_echo "failed" >&6; }
11988else
11989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
11990$as_echo "ok" >&6; }
11991fi
11992
cristyda16f162011-02-19 23:52:17 +000011993# Response file support.
11994if test "$lt_cv_nm_interface" = "MS dumpbin"; then
11995 nm_file_list_spec='@'
11996elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
11997 nm_file_list_spec='@'
11998fi
cristy73bd4a52010-10-05 11:24:23 +000011999
12000
12001
12002
12003
12004
12005
12006
12007
12008
12009
12010
12011
12012
12013
12014
12015
12016
12017
12018
12019
cristyda16f162011-02-19 23:52:17 +000012020
12021
12022
12023
12024
12025
12026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
12027$as_echo_n "checking for sysroot... " >&6; }
12028
12029# Check whether --with-sysroot was given.
12030if test "${with_sysroot+set}" = set; then :
12031 withval=$with_sysroot;
12032else
12033 with_sysroot=no
12034fi
12035
12036
12037lt_sysroot=
12038case ${with_sysroot} in #(
12039 yes)
12040 if test "$GCC" = yes; then
12041 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
12042 fi
12043 ;; #(
12044 /*)
12045 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
12046 ;; #(
12047 no|'')
12048 ;; #(
12049 *)
12050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
12051$as_echo "${with_sysroot}" >&6; }
12052 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
12053 ;;
12054esac
12055
12056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
12057$as_echo "${lt_sysroot:-no}" >&6; }
12058
12059
12060
12061
12062
cristy73bd4a52010-10-05 11:24:23 +000012063# Check whether --enable-libtool-lock was given.
12064if test "${enable_libtool_lock+set}" = set; then :
12065 enableval=$enable_libtool_lock;
12066fi
12067
12068test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12069
12070# Some flags need to be propagated to the compiler or linker for good
12071# libtool support.
12072case $host in
12073ia64-*-hpux*)
12074 # Find out which ABI we are using.
12075 echo 'int i;' > conftest.$ac_ext
12076 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12077 (eval $ac_compile) 2>&5
12078 ac_status=$?
12079 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12080 test $ac_status = 0; }; then
12081 case `/usr/bin/file conftest.$ac_objext` in
12082 *ELF-32*)
12083 HPUX_IA64_MODE="32"
12084 ;;
12085 *ELF-64*)
12086 HPUX_IA64_MODE="64"
12087 ;;
12088 esac
12089 fi
12090 rm -rf conftest*
12091 ;;
12092*-*-irix6*)
12093 # Find out which ABI we are using.
cristy0c60a692010-11-04 01:09:47 +000012094 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000012095 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12096 (eval $ac_compile) 2>&5
12097 ac_status=$?
12098 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12099 test $ac_status = 0; }; then
12100 if test "$lt_cv_prog_gnu_ld" = yes; then
12101 case `/usr/bin/file conftest.$ac_objext` in
12102 *32-bit*)
12103 LD="${LD-ld} -melf32bsmip"
12104 ;;
12105 *N32*)
12106 LD="${LD-ld} -melf32bmipn32"
12107 ;;
12108 *64-bit*)
12109 LD="${LD-ld} -melf64bmip"
12110 ;;
12111 esac
12112 else
12113 case `/usr/bin/file conftest.$ac_objext` in
12114 *32-bit*)
12115 LD="${LD-ld} -32"
12116 ;;
12117 *N32*)
12118 LD="${LD-ld} -n32"
12119 ;;
12120 *64-bit*)
12121 LD="${LD-ld} -64"
12122 ;;
12123 esac
12124 fi
12125 fi
12126 rm -rf conftest*
12127 ;;
12128
12129x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
12130s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
12131 # Find out which ABI we are using.
12132 echo 'int i;' > conftest.$ac_ext
12133 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12134 (eval $ac_compile) 2>&5
12135 ac_status=$?
12136 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12137 test $ac_status = 0; }; then
12138 case `/usr/bin/file conftest.o` in
12139 *32-bit*)
12140 case $host in
12141 x86_64-*kfreebsd*-gnu)
12142 LD="${LD-ld} -m elf_i386_fbsd"
12143 ;;
12144 x86_64-*linux*)
12145 LD="${LD-ld} -m elf_i386"
12146 ;;
12147 ppc64-*linux*|powerpc64-*linux*)
12148 LD="${LD-ld} -m elf32ppclinux"
12149 ;;
12150 s390x-*linux*)
12151 LD="${LD-ld} -m elf_s390"
12152 ;;
12153 sparc64-*linux*)
12154 LD="${LD-ld} -m elf32_sparc"
12155 ;;
12156 esac
12157 ;;
12158 *64-bit*)
12159 case $host in
12160 x86_64-*kfreebsd*-gnu)
12161 LD="${LD-ld} -m elf_x86_64_fbsd"
12162 ;;
12163 x86_64-*linux*)
12164 LD="${LD-ld} -m elf_x86_64"
12165 ;;
12166 ppc*-*linux*|powerpc*-*linux*)
12167 LD="${LD-ld} -m elf64ppc"
12168 ;;
12169 s390*-*linux*|s390*-*tpf*)
12170 LD="${LD-ld} -m elf64_s390"
12171 ;;
12172 sparc*-*linux*)
12173 LD="${LD-ld} -m elf64_sparc"
12174 ;;
12175 esac
12176 ;;
12177 esac
12178 fi
12179 rm -rf conftest*
12180 ;;
12181
12182*-*-sco3.2v5*)
12183 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12184 SAVE_CFLAGS="$CFLAGS"
12185 CFLAGS="$CFLAGS -belf"
12186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
12187$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012188if ${lt_cv_cc_needs_belf+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012189 $as_echo_n "(cached) " >&6
12190else
12191 ac_ext=c
12192ac_cpp='$CPP $CPPFLAGS'
12193ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12194ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12195ac_compiler_gnu=$ac_cv_c_compiler_gnu
12196
12197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12198/* end confdefs.h. */
12199
12200int
12201main ()
12202{
12203
12204 ;
12205 return 0;
12206}
12207_ACEOF
12208if ac_fn_c_try_link "$LINENO"; then :
12209 lt_cv_cc_needs_belf=yes
12210else
12211 lt_cv_cc_needs_belf=no
12212fi
12213rm -f core conftest.err conftest.$ac_objext \
12214 conftest$ac_exeext conftest.$ac_ext
12215 ac_ext=c
12216ac_cpp='$CPP $CPPFLAGS'
12217ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12218ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12219ac_compiler_gnu=$ac_cv_c_compiler_gnu
12220
12221fi
12222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
12223$as_echo "$lt_cv_cc_needs_belf" >&6; }
12224 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12225 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12226 CFLAGS="$SAVE_CFLAGS"
12227 fi
12228 ;;
cristy99bd5232011-12-07 14:38:20 +000012229*-*solaris*)
cristy73bd4a52010-10-05 11:24:23 +000012230 # Find out which ABI we are using.
12231 echo 'int i;' > conftest.$ac_ext
12232 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12233 (eval $ac_compile) 2>&5
12234 ac_status=$?
12235 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12236 test $ac_status = 0; }; then
12237 case `/usr/bin/file conftest.o` in
12238 *64-bit*)
12239 case $lt_cv_prog_gnu_ld in
cristy99bd5232011-12-07 14:38:20 +000012240 yes*)
12241 case $host in
12242 i?86-*-solaris*)
12243 LD="${LD-ld} -m elf_x86_64"
12244 ;;
12245 sparc*-*-solaris*)
12246 LD="${LD-ld} -m elf64_sparc"
12247 ;;
12248 esac
12249 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
12250 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
12251 LD="${LD-ld}_sol2"
12252 fi
12253 ;;
cristy73bd4a52010-10-05 11:24:23 +000012254 *)
12255 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
12256 LD="${LD-ld} -64"
12257 fi
12258 ;;
12259 esac
12260 ;;
12261 esac
12262 fi
12263 rm -rf conftest*
12264 ;;
12265esac
12266
12267need_locks="$enable_libtool_lock"
12268
cristyda16f162011-02-19 23:52:17 +000012269if test -n "$ac_tool_prefix"; then
12270 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
12271set dummy ${ac_tool_prefix}mt; ac_word=$2
12272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12273$as_echo_n "checking for $ac_word... " >&6; }
12274if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
12275 $as_echo_n "(cached) " >&6
12276else
12277 if test -n "$MANIFEST_TOOL"; then
12278 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
12279else
12280as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12281for as_dir in $PATH
12282do
12283 IFS=$as_save_IFS
12284 test -z "$as_dir" && as_dir=.
12285 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012286 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000012287 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
12288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12289 break 2
12290 fi
12291done
12292 done
12293IFS=$as_save_IFS
12294
12295fi
12296fi
12297MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
12298if test -n "$MANIFEST_TOOL"; then
12299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
12300$as_echo "$MANIFEST_TOOL" >&6; }
12301else
12302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12303$as_echo "no" >&6; }
12304fi
12305
12306
12307fi
12308if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
12309 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
12310 # Extract the first word of "mt", so it can be a program name with args.
12311set dummy mt; ac_word=$2
12312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12313$as_echo_n "checking for $ac_word... " >&6; }
12314if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
12315 $as_echo_n "(cached) " >&6
12316else
12317 if test -n "$ac_ct_MANIFEST_TOOL"; then
12318 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
12319else
12320as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12321for as_dir in $PATH
12322do
12323 IFS=$as_save_IFS
12324 test -z "$as_dir" && as_dir=.
12325 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012326 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000012327 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
12328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12329 break 2
12330 fi
12331done
12332 done
12333IFS=$as_save_IFS
12334
12335fi
12336fi
12337ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
12338if test -n "$ac_ct_MANIFEST_TOOL"; then
12339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
12340$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
12341else
12342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12343$as_echo "no" >&6; }
12344fi
12345
12346 if test "x$ac_ct_MANIFEST_TOOL" = x; then
12347 MANIFEST_TOOL=":"
12348 else
12349 case $cross_compiling:$ac_tool_warned in
12350yes:)
12351{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12352$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12353ac_tool_warned=yes ;;
12354esac
12355 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
12356 fi
12357else
12358 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
12359fi
12360
12361test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
12362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
12363$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
12364if ${lt_cv_path_mainfest_tool+:} false; then :
12365 $as_echo_n "(cached) " >&6
12366else
12367 lt_cv_path_mainfest_tool=no
12368 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
12369 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
12370 cat conftest.err >&5
12371 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
12372 lt_cv_path_mainfest_tool=yes
12373 fi
12374 rm -f conftest*
12375fi
12376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
12377$as_echo "$lt_cv_path_mainfest_tool" >&6; }
12378if test "x$lt_cv_path_mainfest_tool" != xyes; then
12379 MANIFEST_TOOL=:
12380fi
12381
12382
12383
12384
12385
cristy73bd4a52010-10-05 11:24:23 +000012386
12387 case $host_os in
12388 rhapsody* | darwin*)
12389 if test -n "$ac_tool_prefix"; then
12390 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
12391set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
12392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12393$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012394if ${ac_cv_prog_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012395 $as_echo_n "(cached) " >&6
12396else
12397 if test -n "$DSYMUTIL"; then
12398 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
12399else
12400as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12401for as_dir in $PATH
12402do
12403 IFS=$as_save_IFS
12404 test -z "$as_dir" && as_dir=.
12405 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012406 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012407 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
12408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12409 break 2
12410 fi
12411done
12412 done
12413IFS=$as_save_IFS
12414
12415fi
12416fi
12417DSYMUTIL=$ac_cv_prog_DSYMUTIL
12418if test -n "$DSYMUTIL"; then
12419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
12420$as_echo "$DSYMUTIL" >&6; }
12421else
12422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12423$as_echo "no" >&6; }
12424fi
12425
12426
12427fi
12428if test -z "$ac_cv_prog_DSYMUTIL"; then
12429 ac_ct_DSYMUTIL=$DSYMUTIL
12430 # Extract the first word of "dsymutil", so it can be a program name with args.
12431set dummy dsymutil; ac_word=$2
12432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12433$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012434if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012435 $as_echo_n "(cached) " >&6
12436else
12437 if test -n "$ac_ct_DSYMUTIL"; then
12438 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
12439else
12440as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12441for as_dir in $PATH
12442do
12443 IFS=$as_save_IFS
12444 test -z "$as_dir" && as_dir=.
12445 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012446 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012447 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
12448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12449 break 2
12450 fi
12451done
12452 done
12453IFS=$as_save_IFS
12454
12455fi
12456fi
12457ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
12458if test -n "$ac_ct_DSYMUTIL"; then
12459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
12460$as_echo "$ac_ct_DSYMUTIL" >&6; }
12461else
12462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12463$as_echo "no" >&6; }
12464fi
12465
12466 if test "x$ac_ct_DSYMUTIL" = x; then
12467 DSYMUTIL=":"
12468 else
12469 case $cross_compiling:$ac_tool_warned in
12470yes:)
12471{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12472$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12473ac_tool_warned=yes ;;
12474esac
12475 DSYMUTIL=$ac_ct_DSYMUTIL
12476 fi
12477else
12478 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
12479fi
12480
12481 if test -n "$ac_tool_prefix"; then
12482 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
12483set dummy ${ac_tool_prefix}nmedit; ac_word=$2
12484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12485$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012486if ${ac_cv_prog_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012487 $as_echo_n "(cached) " >&6
12488else
12489 if test -n "$NMEDIT"; then
12490 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
12491else
12492as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12493for as_dir in $PATH
12494do
12495 IFS=$as_save_IFS
12496 test -z "$as_dir" && as_dir=.
12497 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012498 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012499 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
12500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12501 break 2
12502 fi
12503done
12504 done
12505IFS=$as_save_IFS
12506
12507fi
12508fi
12509NMEDIT=$ac_cv_prog_NMEDIT
12510if test -n "$NMEDIT"; then
12511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
12512$as_echo "$NMEDIT" >&6; }
12513else
12514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12515$as_echo "no" >&6; }
12516fi
12517
12518
12519fi
12520if test -z "$ac_cv_prog_NMEDIT"; then
12521 ac_ct_NMEDIT=$NMEDIT
12522 # Extract the first word of "nmedit", so it can be a program name with args.
12523set dummy nmedit; ac_word=$2
12524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12525$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012526if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012527 $as_echo_n "(cached) " >&6
12528else
12529 if test -n "$ac_ct_NMEDIT"; then
12530 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
12531else
12532as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12533for as_dir in $PATH
12534do
12535 IFS=$as_save_IFS
12536 test -z "$as_dir" && as_dir=.
12537 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012538 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012539 ac_cv_prog_ac_ct_NMEDIT="nmedit"
12540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12541 break 2
12542 fi
12543done
12544 done
12545IFS=$as_save_IFS
12546
12547fi
12548fi
12549ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
12550if test -n "$ac_ct_NMEDIT"; then
12551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
12552$as_echo "$ac_ct_NMEDIT" >&6; }
12553else
12554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12555$as_echo "no" >&6; }
12556fi
12557
12558 if test "x$ac_ct_NMEDIT" = x; then
12559 NMEDIT=":"
12560 else
12561 case $cross_compiling:$ac_tool_warned in
12562yes:)
12563{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12564$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12565ac_tool_warned=yes ;;
12566esac
12567 NMEDIT=$ac_ct_NMEDIT
12568 fi
12569else
12570 NMEDIT="$ac_cv_prog_NMEDIT"
12571fi
12572
12573 if test -n "$ac_tool_prefix"; then
12574 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
12575set dummy ${ac_tool_prefix}lipo; ac_word=$2
12576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12577$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012578if ${ac_cv_prog_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012579 $as_echo_n "(cached) " >&6
12580else
12581 if test -n "$LIPO"; then
12582 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
12583else
12584as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12585for as_dir in $PATH
12586do
12587 IFS=$as_save_IFS
12588 test -z "$as_dir" && as_dir=.
12589 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012590 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012591 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
12592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12593 break 2
12594 fi
12595done
12596 done
12597IFS=$as_save_IFS
12598
12599fi
12600fi
12601LIPO=$ac_cv_prog_LIPO
12602if test -n "$LIPO"; then
12603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
12604$as_echo "$LIPO" >&6; }
12605else
12606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12607$as_echo "no" >&6; }
12608fi
12609
12610
12611fi
12612if test -z "$ac_cv_prog_LIPO"; then
12613 ac_ct_LIPO=$LIPO
12614 # Extract the first word of "lipo", so it can be a program name with args.
12615set dummy lipo; ac_word=$2
12616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12617$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012618if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012619 $as_echo_n "(cached) " >&6
12620else
12621 if test -n "$ac_ct_LIPO"; then
12622 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
12623else
12624as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12625for as_dir in $PATH
12626do
12627 IFS=$as_save_IFS
12628 test -z "$as_dir" && as_dir=.
12629 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012630 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012631 ac_cv_prog_ac_ct_LIPO="lipo"
12632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12633 break 2
12634 fi
12635done
12636 done
12637IFS=$as_save_IFS
12638
12639fi
12640fi
12641ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
12642if test -n "$ac_ct_LIPO"; then
12643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
12644$as_echo "$ac_ct_LIPO" >&6; }
12645else
12646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12647$as_echo "no" >&6; }
12648fi
12649
12650 if test "x$ac_ct_LIPO" = x; then
12651 LIPO=":"
12652 else
12653 case $cross_compiling:$ac_tool_warned in
12654yes:)
12655{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12656$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12657ac_tool_warned=yes ;;
12658esac
12659 LIPO=$ac_ct_LIPO
12660 fi
12661else
12662 LIPO="$ac_cv_prog_LIPO"
12663fi
12664
12665 if test -n "$ac_tool_prefix"; then
12666 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
12667set dummy ${ac_tool_prefix}otool; ac_word=$2
12668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12669$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012670if ${ac_cv_prog_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012671 $as_echo_n "(cached) " >&6
12672else
12673 if test -n "$OTOOL"; then
12674 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12675else
12676as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12677for as_dir in $PATH
12678do
12679 IFS=$as_save_IFS
12680 test -z "$as_dir" && as_dir=.
12681 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012682 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012683 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
12684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12685 break 2
12686 fi
12687done
12688 done
12689IFS=$as_save_IFS
12690
12691fi
12692fi
12693OTOOL=$ac_cv_prog_OTOOL
12694if test -n "$OTOOL"; then
12695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12696$as_echo "$OTOOL" >&6; }
12697else
12698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12699$as_echo "no" >&6; }
12700fi
12701
12702
12703fi
12704if test -z "$ac_cv_prog_OTOOL"; then
12705 ac_ct_OTOOL=$OTOOL
12706 # Extract the first word of "otool", so it can be a program name with args.
12707set dummy otool; ac_word=$2
12708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12709$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012710if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012711 $as_echo_n "(cached) " >&6
12712else
12713 if test -n "$ac_ct_OTOOL"; then
12714 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
12715else
12716as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12717for as_dir in $PATH
12718do
12719 IFS=$as_save_IFS
12720 test -z "$as_dir" && as_dir=.
12721 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012722 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012723 ac_cv_prog_ac_ct_OTOOL="otool"
12724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12725 break 2
12726 fi
12727done
12728 done
12729IFS=$as_save_IFS
12730
12731fi
12732fi
12733ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
12734if test -n "$ac_ct_OTOOL"; then
12735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
12736$as_echo "$ac_ct_OTOOL" >&6; }
12737else
12738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12739$as_echo "no" >&6; }
12740fi
12741
12742 if test "x$ac_ct_OTOOL" = x; then
12743 OTOOL=":"
12744 else
12745 case $cross_compiling:$ac_tool_warned in
12746yes:)
12747{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12748$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12749ac_tool_warned=yes ;;
12750esac
12751 OTOOL=$ac_ct_OTOOL
12752 fi
12753else
12754 OTOOL="$ac_cv_prog_OTOOL"
12755fi
12756
12757 if test -n "$ac_tool_prefix"; then
12758 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
12759set dummy ${ac_tool_prefix}otool64; ac_word=$2
12760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12761$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012762if ${ac_cv_prog_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012763 $as_echo_n "(cached) " >&6
12764else
12765 if test -n "$OTOOL64"; then
12766 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
12767else
12768as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12769for as_dir in $PATH
12770do
12771 IFS=$as_save_IFS
12772 test -z "$as_dir" && as_dir=.
12773 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012774 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012775 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
12776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12777 break 2
12778 fi
12779done
12780 done
12781IFS=$as_save_IFS
12782
12783fi
12784fi
12785OTOOL64=$ac_cv_prog_OTOOL64
12786if test -n "$OTOOL64"; then
12787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
12788$as_echo "$OTOOL64" >&6; }
12789else
12790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12791$as_echo "no" >&6; }
12792fi
12793
12794
12795fi
12796if test -z "$ac_cv_prog_OTOOL64"; then
12797 ac_ct_OTOOL64=$OTOOL64
12798 # Extract the first word of "otool64", so it can be a program name with args.
12799set dummy otool64; ac_word=$2
12800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12801$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012802if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012803 $as_echo_n "(cached) " >&6
12804else
12805 if test -n "$ac_ct_OTOOL64"; then
12806 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
12807else
12808as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12809for as_dir in $PATH
12810do
12811 IFS=$as_save_IFS
12812 test -z "$as_dir" && as_dir=.
12813 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012814 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012815 ac_cv_prog_ac_ct_OTOOL64="otool64"
12816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12817 break 2
12818 fi
12819done
12820 done
12821IFS=$as_save_IFS
12822
12823fi
12824fi
12825ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
12826if test -n "$ac_ct_OTOOL64"; then
12827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
12828$as_echo "$ac_ct_OTOOL64" >&6; }
12829else
12830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12831$as_echo "no" >&6; }
12832fi
12833
12834 if test "x$ac_ct_OTOOL64" = x; then
12835 OTOOL64=":"
12836 else
12837 case $cross_compiling:$ac_tool_warned in
12838yes:)
12839{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12840$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12841ac_tool_warned=yes ;;
12842esac
12843 OTOOL64=$ac_ct_OTOOL64
12844 fi
12845else
12846 OTOOL64="$ac_cv_prog_OTOOL64"
12847fi
12848
12849
12850
12851
12852
12853
12854
12855
12856
12857
12858
12859
12860
12861
12862
12863
12864
12865
12866
12867
12868
12869
12870
12871
12872
12873
12874
12875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
12876$as_echo_n "checking for -single_module linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012877if ${lt_cv_apple_cc_single_mod+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012878 $as_echo_n "(cached) " >&6
12879else
12880 lt_cv_apple_cc_single_mod=no
12881 if test -z "${LT_MULTI_MODULE}"; then
12882 # By default we will add the -single_module flag. You can override
12883 # by either setting the environment variable LT_MULTI_MODULE
12884 # non-empty at configure time, or by adding -multi_module to the
12885 # link flags.
12886 rm -rf libconftest.dylib*
12887 echo "int foo(void){return 1;}" > conftest.c
12888 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12889-dynamiclib -Wl,-single_module conftest.c" >&5
12890 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12891 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
12892 _lt_result=$?
cristy99bd5232011-12-07 14:38:20 +000012893 # If there is a non-empty error log, and "single_module"
12894 # appears in it, assume the flag caused a linker warning
12895 if test -s conftest.err && $GREP single_module conftest.err; then
12896 cat conftest.err >&5
12897 # Otherwise, if the output was created with a 0 exit code from
12898 # the compiler, it worked.
12899 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
cristy73bd4a52010-10-05 11:24:23 +000012900 lt_cv_apple_cc_single_mod=yes
12901 else
12902 cat conftest.err >&5
12903 fi
12904 rm -rf libconftest.dylib*
12905 rm -f conftest.*
12906 fi
12907fi
12908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
12909$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
cristy99bd5232011-12-07 14:38:20 +000012910
cristy73bd4a52010-10-05 11:24:23 +000012911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
12912$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012913if ${lt_cv_ld_exported_symbols_list+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012914 $as_echo_n "(cached) " >&6
12915else
12916 lt_cv_ld_exported_symbols_list=no
12917 save_LDFLAGS=$LDFLAGS
12918 echo "_main" > conftest.sym
12919 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
12920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12921/* end confdefs.h. */
12922
12923int
12924main ()
12925{
12926
12927 ;
12928 return 0;
12929}
12930_ACEOF
12931if ac_fn_c_try_link "$LINENO"; then :
12932 lt_cv_ld_exported_symbols_list=yes
12933else
12934 lt_cv_ld_exported_symbols_list=no
12935fi
12936rm -f core conftest.err conftest.$ac_objext \
12937 conftest$ac_exeext conftest.$ac_ext
12938 LDFLAGS="$save_LDFLAGS"
12939
12940fi
12941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
12942$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
cristy99bd5232011-12-07 14:38:20 +000012943
cristy0c60a692010-11-04 01:09:47 +000012944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
12945$as_echo_n "checking for -force_load linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012946if ${lt_cv_ld_force_load+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000012947 $as_echo_n "(cached) " >&6
12948else
12949 lt_cv_ld_force_load=no
12950 cat > conftest.c << _LT_EOF
12951int forced_loaded() { return 2;}
12952_LT_EOF
12953 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
12954 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
12955 echo "$AR cru libconftest.a conftest.o" >&5
12956 $AR cru libconftest.a conftest.o 2>&5
12957 echo "$RANLIB libconftest.a" >&5
12958 $RANLIB libconftest.a 2>&5
12959 cat > conftest.c << _LT_EOF
12960int main() { return 0;}
12961_LT_EOF
12962 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
12963 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
12964 _lt_result=$?
cristy99bd5232011-12-07 14:38:20 +000012965 if test -s conftest.err && $GREP force_load conftest.err; then
12966 cat conftest.err >&5
12967 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
cristy0c60a692010-11-04 01:09:47 +000012968 lt_cv_ld_force_load=yes
12969 else
12970 cat conftest.err >&5
12971 fi
12972 rm -f conftest.err libconftest.a conftest conftest.c
12973 rm -rf conftest.dSYM
12974
12975fi
12976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
12977$as_echo "$lt_cv_ld_force_load" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000012978 case $host_os in
12979 rhapsody* | darwin1.[012])
12980 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
12981 darwin1.*)
12982 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
12983 darwin*) # darwin 5.x on
12984 # if running on 10.5 or later, the deployment target defaults
12985 # to the OS version, if on x86, and 10.4, the deployment
12986 # target defaults to 10.4. Don't you love it?
12987 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
12988 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
12989 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
12990 10.[012]*)
12991 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
12992 10.*)
12993 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
12994 esac
12995 ;;
12996 esac
12997 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
12998 _lt_dar_single_mod='$single_module'
12999 fi
13000 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
13001 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
13002 else
13003 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
13004 fi
cristy0c60a692010-11-04 01:09:47 +000013005 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
cristy73bd4a52010-10-05 11:24:23 +000013006 _lt_dsymutil='~$DSYMUTIL $lib || :'
13007 else
13008 _lt_dsymutil=
13009 fi
13010 ;;
13011 esac
13012
13013for ac_header in dlfcn.h
13014do :
13015 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
13016"
cristyda16f162011-02-19 23:52:17 +000013017if test "x$ac_cv_header_dlfcn_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000013018 cat >>confdefs.h <<_ACEOF
13019#define HAVE_DLFCN_H 1
13020_ACEOF
13021
13022fi
13023
13024done
13025
13026
13027
cristy73bd4a52010-10-05 11:24:23 +000013028
cristyda16f162011-02-19 23:52:17 +000013029func_stripname_cnf ()
13030{
13031 case ${2} in
13032 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
13033 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
13034 esac
13035} # func_stripname_cnf
13036
13037
13038
cristy73bd4a52010-10-05 11:24:23 +000013039
13040
13041# Set options
13042enable_win32_dll=yes
13043
13044case $host in
cristy0c60a692010-11-04 01:09:47 +000013045*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000013046 if test -n "$ac_tool_prefix"; then
13047 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
13048set dummy ${ac_tool_prefix}as; ac_word=$2
13049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13050$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013051if ${ac_cv_prog_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013052 $as_echo_n "(cached) " >&6
13053else
13054 if test -n "$AS"; then
13055 ac_cv_prog_AS="$AS" # Let the user override the test.
13056else
13057as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13058for as_dir in $PATH
13059do
13060 IFS=$as_save_IFS
13061 test -z "$as_dir" && as_dir=.
13062 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013063 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013064 ac_cv_prog_AS="${ac_tool_prefix}as"
13065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13066 break 2
13067 fi
13068done
13069 done
13070IFS=$as_save_IFS
13071
13072fi
13073fi
13074AS=$ac_cv_prog_AS
13075if test -n "$AS"; then
13076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
13077$as_echo "$AS" >&6; }
13078else
13079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13080$as_echo "no" >&6; }
13081fi
13082
13083
13084fi
13085if test -z "$ac_cv_prog_AS"; then
13086 ac_ct_AS=$AS
13087 # Extract the first word of "as", so it can be a program name with args.
13088set dummy as; ac_word=$2
13089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13090$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013091if ${ac_cv_prog_ac_ct_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013092 $as_echo_n "(cached) " >&6
13093else
13094 if test -n "$ac_ct_AS"; then
13095 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
13096else
13097as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13098for as_dir in $PATH
13099do
13100 IFS=$as_save_IFS
13101 test -z "$as_dir" && as_dir=.
13102 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013103 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013104 ac_cv_prog_ac_ct_AS="as"
13105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13106 break 2
13107 fi
13108done
13109 done
13110IFS=$as_save_IFS
13111
13112fi
13113fi
13114ac_ct_AS=$ac_cv_prog_ac_ct_AS
13115if test -n "$ac_ct_AS"; then
13116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
13117$as_echo "$ac_ct_AS" >&6; }
13118else
13119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13120$as_echo "no" >&6; }
13121fi
13122
13123 if test "x$ac_ct_AS" = x; then
13124 AS="false"
13125 else
13126 case $cross_compiling:$ac_tool_warned in
13127yes:)
13128{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13129$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13130ac_tool_warned=yes ;;
13131esac
13132 AS=$ac_ct_AS
13133 fi
13134else
13135 AS="$ac_cv_prog_AS"
13136fi
13137
13138 if test -n "$ac_tool_prefix"; then
13139 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
13140set dummy ${ac_tool_prefix}dlltool; ac_word=$2
13141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13142$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013143if ${ac_cv_prog_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013144 $as_echo_n "(cached) " >&6
13145else
13146 if test -n "$DLLTOOL"; then
13147 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
13148else
13149as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13150for as_dir in $PATH
13151do
13152 IFS=$as_save_IFS
13153 test -z "$as_dir" && as_dir=.
13154 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013155 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013156 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
13157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13158 break 2
13159 fi
13160done
13161 done
13162IFS=$as_save_IFS
13163
13164fi
13165fi
13166DLLTOOL=$ac_cv_prog_DLLTOOL
13167if test -n "$DLLTOOL"; then
13168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
13169$as_echo "$DLLTOOL" >&6; }
13170else
13171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13172$as_echo "no" >&6; }
13173fi
13174
13175
13176fi
13177if test -z "$ac_cv_prog_DLLTOOL"; then
13178 ac_ct_DLLTOOL=$DLLTOOL
13179 # Extract the first word of "dlltool", so it can be a program name with args.
13180set dummy dlltool; ac_word=$2
13181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13182$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013183if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013184 $as_echo_n "(cached) " >&6
13185else
13186 if test -n "$ac_ct_DLLTOOL"; then
13187 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
13188else
13189as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13190for as_dir in $PATH
13191do
13192 IFS=$as_save_IFS
13193 test -z "$as_dir" && as_dir=.
13194 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013195 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013196 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
13197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13198 break 2
13199 fi
13200done
13201 done
13202IFS=$as_save_IFS
13203
13204fi
13205fi
13206ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
13207if test -n "$ac_ct_DLLTOOL"; then
13208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
13209$as_echo "$ac_ct_DLLTOOL" >&6; }
13210else
13211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13212$as_echo "no" >&6; }
13213fi
13214
13215 if test "x$ac_ct_DLLTOOL" = x; then
13216 DLLTOOL="false"
13217 else
13218 case $cross_compiling:$ac_tool_warned in
13219yes:)
13220{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13221$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13222ac_tool_warned=yes ;;
13223esac
13224 DLLTOOL=$ac_ct_DLLTOOL
13225 fi
13226else
13227 DLLTOOL="$ac_cv_prog_DLLTOOL"
13228fi
13229
13230 if test -n "$ac_tool_prefix"; then
13231 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
13232set dummy ${ac_tool_prefix}objdump; ac_word=$2
13233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13234$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013235if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013236 $as_echo_n "(cached) " >&6
13237else
13238 if test -n "$OBJDUMP"; then
13239 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13240else
13241as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13242for as_dir in $PATH
13243do
13244 IFS=$as_save_IFS
13245 test -z "$as_dir" && as_dir=.
13246 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013247 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013248 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
13249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13250 break 2
13251 fi
13252done
13253 done
13254IFS=$as_save_IFS
13255
13256fi
13257fi
13258OBJDUMP=$ac_cv_prog_OBJDUMP
13259if test -n "$OBJDUMP"; then
13260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
13261$as_echo "$OBJDUMP" >&6; }
13262else
13263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13264$as_echo "no" >&6; }
13265fi
13266
13267
13268fi
13269if test -z "$ac_cv_prog_OBJDUMP"; then
13270 ac_ct_OBJDUMP=$OBJDUMP
13271 # Extract the first word of "objdump", so it can be a program name with args.
13272set dummy objdump; ac_word=$2
13273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13274$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013275if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013276 $as_echo_n "(cached) " >&6
13277else
13278 if test -n "$ac_ct_OBJDUMP"; then
13279 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
13280else
13281as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13282for as_dir in $PATH
13283do
13284 IFS=$as_save_IFS
13285 test -z "$as_dir" && as_dir=.
13286 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013287 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013288 ac_cv_prog_ac_ct_OBJDUMP="objdump"
13289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13290 break 2
13291 fi
13292done
13293 done
13294IFS=$as_save_IFS
13295
13296fi
13297fi
13298ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
13299if test -n "$ac_ct_OBJDUMP"; then
13300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
13301$as_echo "$ac_ct_OBJDUMP" >&6; }
13302else
13303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13304$as_echo "no" >&6; }
13305fi
13306
13307 if test "x$ac_ct_OBJDUMP" = x; then
13308 OBJDUMP="false"
13309 else
13310 case $cross_compiling:$ac_tool_warned in
13311yes:)
13312{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13313$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13314ac_tool_warned=yes ;;
13315esac
13316 OBJDUMP=$ac_ct_OBJDUMP
13317 fi
13318else
13319 OBJDUMP="$ac_cv_prog_OBJDUMP"
13320fi
13321
13322 ;;
13323esac
13324
13325test -z "$AS" && AS=as
13326
13327
13328
13329
13330
13331test -z "$DLLTOOL" && DLLTOOL=dlltool
13332
13333
13334
13335
13336
13337test -z "$OBJDUMP" && OBJDUMP=objdump
13338
13339
13340
13341
13342
13343
13344
13345
13346
13347 # Check whether --enable-shared was given.
13348if test "${enable_shared+set}" = set; then :
13349 enableval=$enable_shared; p=${PACKAGE-default}
13350 case $enableval in
13351 yes) enable_shared=yes ;;
13352 no) enable_shared=no ;;
13353 *)
13354 enable_shared=no
13355 # Look at the argument we got. We use all the common list separators.
13356 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13357 for pkg in $enableval; do
13358 IFS="$lt_save_ifs"
13359 if test "X$pkg" = "X$p"; then
13360 enable_shared=yes
13361 fi
13362 done
13363 IFS="$lt_save_ifs"
13364 ;;
13365 esac
13366else
13367 enable_shared=yes
13368fi
13369
13370
13371
13372
13373
13374
13375
13376
13377
13378 # Check whether --enable-static was given.
13379if test "${enable_static+set}" = set; then :
13380 enableval=$enable_static; p=${PACKAGE-default}
13381 case $enableval in
13382 yes) enable_static=yes ;;
13383 no) enable_static=no ;;
13384 *)
13385 enable_static=no
13386 # Look at the argument we got. We use all the common list separators.
13387 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13388 for pkg in $enableval; do
13389 IFS="$lt_save_ifs"
13390 if test "X$pkg" = "X$p"; then
13391 enable_static=yes
13392 fi
13393 done
13394 IFS="$lt_save_ifs"
13395 ;;
13396 esac
13397else
13398 enable_static=yes
13399fi
13400
13401
13402
13403
13404
13405
13406
13407
13408
13409
13410# Check whether --with-pic was given.
13411if test "${with_pic+set}" = set; then :
cristy99bd5232011-12-07 14:38:20 +000013412 withval=$with_pic; lt_p=${PACKAGE-default}
13413 case $withval in
13414 yes|no) pic_mode=$withval ;;
13415 *)
13416 pic_mode=default
13417 # Look at the argument we got. We use all the common list separators.
13418 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13419 for lt_pkg in $withval; do
13420 IFS="$lt_save_ifs"
13421 if test "X$lt_pkg" = "X$lt_p"; then
13422 pic_mode=yes
13423 fi
13424 done
13425 IFS="$lt_save_ifs"
13426 ;;
13427 esac
cristy73bd4a52010-10-05 11:24:23 +000013428else
13429 pic_mode=default
13430fi
13431
13432
13433test -z "$pic_mode" && pic_mode=default
13434
13435
13436
13437
13438
13439
13440
13441 # Check whether --enable-fast-install was given.
13442if test "${enable_fast_install+set}" = set; then :
13443 enableval=$enable_fast_install; p=${PACKAGE-default}
13444 case $enableval in
13445 yes) enable_fast_install=yes ;;
13446 no) enable_fast_install=no ;;
13447 *)
13448 enable_fast_install=no
13449 # Look at the argument we got. We use all the common list separators.
13450 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13451 for pkg in $enableval; do
13452 IFS="$lt_save_ifs"
13453 if test "X$pkg" = "X$p"; then
13454 enable_fast_install=yes
13455 fi
13456 done
13457 IFS="$lt_save_ifs"
13458 ;;
13459 esac
13460else
13461 enable_fast_install=yes
13462fi
13463
13464
13465
13466
13467
13468
13469
13470
13471
13472
13473
13474# This can be used to rebuild libtool when needed
13475LIBTOOL_DEPS="$ltmain"
13476
13477# Always use our own libtool.
13478LIBTOOL='$(SHELL) $(top_builddir)/libtool'
13479
13480
13481
13482
13483
13484
13485
13486
13487
13488
13489
13490
13491
13492
13493
13494
13495
13496
13497
13498
13499
13500
13501
13502
13503
cristy0c60a692010-11-04 01:09:47 +000013504
cristy99bd5232011-12-07 14:38:20 +000013505
13506
13507
13508
cristy73bd4a52010-10-05 11:24:23 +000013509test -z "$LN_S" && LN_S="ln -s"
13510
13511
13512
13513
13514
13515
13516
13517
13518
13519
13520
13521
13522
13523
13524if test -n "${ZSH_VERSION+set}" ; then
13525 setopt NO_GLOB_SUBST
13526fi
13527
13528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
13529$as_echo_n "checking for objdir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013530if ${lt_cv_objdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013531 $as_echo_n "(cached) " >&6
13532else
13533 rm -f .libs 2>/dev/null
13534mkdir .libs 2>/dev/null
13535if test -d .libs; then
13536 lt_cv_objdir=.libs
13537else
13538 # MS-DOS does not allow filenames that begin with a dot.
13539 lt_cv_objdir=_libs
13540fi
13541rmdir .libs 2>/dev/null
13542fi
13543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
13544$as_echo "$lt_cv_objdir" >&6; }
13545objdir=$lt_cv_objdir
13546
13547
13548
13549
13550
13551cat >>confdefs.h <<_ACEOF
13552#define LT_OBJDIR "$lt_cv_objdir/"
13553_ACEOF
13554
13555
13556
13557
cristy73bd4a52010-10-05 11:24:23 +000013558case $host_os in
13559aix3*)
13560 # AIX sometimes has problems with the GCC collect2 program. For some
13561 # reason, if we set the COLLECT_NAMES environment variable, the problems
13562 # vanish in a puff of smoke.
13563 if test "X${COLLECT_NAMES+set}" != Xset; then
13564 COLLECT_NAMES=
13565 export COLLECT_NAMES
13566 fi
13567 ;;
13568esac
13569
cristy73bd4a52010-10-05 11:24:23 +000013570# Global variables:
13571ofile=libtool
13572can_build_shared=yes
13573
13574# All known linkers require a `.a' archive for static linking (except MSVC,
13575# which needs '.lib').
13576libext=a
13577
13578with_gnu_ld="$lt_cv_prog_gnu_ld"
13579
13580old_CC="$CC"
13581old_CFLAGS="$CFLAGS"
13582
13583# Set sane defaults for various variables
13584test -z "$CC" && CC=cc
13585test -z "$LTCC" && LTCC=$CC
13586test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13587test -z "$LD" && LD=ld
13588test -z "$ac_objext" && ac_objext=o
13589
13590for cc_temp in $compiler""; do
13591 case $cc_temp in
13592 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13593 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13594 \-*) ;;
13595 *) break;;
13596 esac
13597done
cristy0c60a692010-11-04 01:09:47 +000013598cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000013599
13600
13601# Only perform the check for file, if the check method requires it
13602test -z "$MAGIC_CMD" && MAGIC_CMD=file
13603case $deplibs_check_method in
13604file_magic*)
13605 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
13606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
13607$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013608if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013609 $as_echo_n "(cached) " >&6
13610else
13611 case $MAGIC_CMD in
13612[\\/*] | ?:[\\/]*)
13613 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13614 ;;
13615*)
13616 lt_save_MAGIC_CMD="$MAGIC_CMD"
13617 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13618 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13619 for ac_dir in $ac_dummy; do
13620 IFS="$lt_save_ifs"
13621 test -z "$ac_dir" && ac_dir=.
13622 if test -f $ac_dir/${ac_tool_prefix}file; then
13623 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
13624 if test -n "$file_magic_test_file"; then
13625 case $deplibs_check_method in
13626 "file_magic "*)
13627 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13628 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13629 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13630 $EGREP "$file_magic_regex" > /dev/null; then
13631 :
13632 else
13633 cat <<_LT_EOF 1>&2
13634
13635*** Warning: the command libtool uses to detect shared libraries,
13636*** $file_magic_cmd, produces output that libtool cannot recognize.
13637*** The result is that libtool may fail to recognize shared libraries
13638*** as such. This will affect the creation of libtool libraries that
13639*** depend on shared libraries, but programs linked with such libtool
13640*** libraries will work regardless of this problem. Nevertheless, you
13641*** may want to report the problem to your system manager and/or to
13642*** bug-libtool@gnu.org
13643
13644_LT_EOF
13645 fi ;;
13646 esac
13647 fi
13648 break
13649 fi
13650 done
13651 IFS="$lt_save_ifs"
13652 MAGIC_CMD="$lt_save_MAGIC_CMD"
13653 ;;
13654esac
13655fi
13656
13657MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13658if test -n "$MAGIC_CMD"; then
13659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13660$as_echo "$MAGIC_CMD" >&6; }
13661else
13662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13663$as_echo "no" >&6; }
13664fi
13665
13666
13667
13668
13669
13670if test -z "$lt_cv_path_MAGIC_CMD"; then
13671 if test -n "$ac_tool_prefix"; then
13672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
13673$as_echo_n "checking for file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013674if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013675 $as_echo_n "(cached) " >&6
13676else
13677 case $MAGIC_CMD in
13678[\\/*] | ?:[\\/]*)
13679 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13680 ;;
13681*)
13682 lt_save_MAGIC_CMD="$MAGIC_CMD"
13683 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13684 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13685 for ac_dir in $ac_dummy; do
13686 IFS="$lt_save_ifs"
13687 test -z "$ac_dir" && ac_dir=.
13688 if test -f $ac_dir/file; then
13689 lt_cv_path_MAGIC_CMD="$ac_dir/file"
13690 if test -n "$file_magic_test_file"; then
13691 case $deplibs_check_method in
13692 "file_magic "*)
13693 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13694 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13695 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13696 $EGREP "$file_magic_regex" > /dev/null; then
13697 :
13698 else
13699 cat <<_LT_EOF 1>&2
13700
13701*** Warning: the command libtool uses to detect shared libraries,
13702*** $file_magic_cmd, produces output that libtool cannot recognize.
13703*** The result is that libtool may fail to recognize shared libraries
13704*** as such. This will affect the creation of libtool libraries that
13705*** depend on shared libraries, but programs linked with such libtool
13706*** libraries will work regardless of this problem. Nevertheless, you
13707*** may want to report the problem to your system manager and/or to
13708*** bug-libtool@gnu.org
13709
13710_LT_EOF
13711 fi ;;
13712 esac
13713 fi
13714 break
13715 fi
13716 done
13717 IFS="$lt_save_ifs"
13718 MAGIC_CMD="$lt_save_MAGIC_CMD"
13719 ;;
13720esac
13721fi
13722
13723MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13724if test -n "$MAGIC_CMD"; then
13725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13726$as_echo "$MAGIC_CMD" >&6; }
13727else
13728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13729$as_echo "no" >&6; }
13730fi
13731
13732
13733 else
13734 MAGIC_CMD=:
13735 fi
13736fi
13737
13738 fi
13739 ;;
13740esac
13741
13742# Use C for the default configuration in the libtool script
13743
13744lt_save_CC="$CC"
13745ac_ext=c
13746ac_cpp='$CPP $CPPFLAGS'
13747ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13748ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13749ac_compiler_gnu=$ac_cv_c_compiler_gnu
13750
13751
13752# Source file extension for C test sources.
13753ac_ext=c
13754
13755# Object file extension for compiled C test sources.
13756objext=o
13757objext=$objext
13758
13759# Code to be used in simple compile tests
13760lt_simple_compile_test_code="int some_variable = 0;"
13761
13762# Code to be used in simple link tests
13763lt_simple_link_test_code='int main(){return(0);}'
13764
13765
13766
13767
13768
13769
13770
13771# If no C compiler was specified, use CC.
13772LTCC=${LTCC-"$CC"}
13773
13774# If no C compiler flags were specified, use CFLAGS.
13775LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13776
13777# Allow CC to be a program name with arguments.
13778compiler=$CC
13779
13780# Save the default compiler, since it gets overwritten when the other
13781# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
13782compiler_DEFAULT=$CC
13783
13784# save warnings/boilerplate of simple test code
13785ac_outfile=conftest.$ac_objext
13786echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13787eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13788_lt_compiler_boilerplate=`cat conftest.err`
13789$RM conftest*
13790
13791ac_outfile=conftest.$ac_objext
13792echo "$lt_simple_link_test_code" >conftest.$ac_ext
13793eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13794_lt_linker_boilerplate=`cat conftest.err`
13795$RM -r conftest*
13796
13797
13798## CAVEAT EMPTOR:
13799## There is no encapsulation within the following macros, do not change
13800## the running order or otherwise move them around unless you know exactly
13801## what you are doing...
13802if test -n "$compiler"; then
13803
13804lt_prog_compiler_no_builtin_flag=
13805
13806if test "$GCC" = yes; then
cristy0c60a692010-11-04 01:09:47 +000013807 case $cc_basename in
13808 nvcc*)
13809 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
13810 *)
13811 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
13812 esac
cristy73bd4a52010-10-05 11:24:23 +000013813
13814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
13815$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013816if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013817 $as_echo_n "(cached) " >&6
13818else
13819 lt_cv_prog_compiler_rtti_exceptions=no
13820 ac_outfile=conftest.$ac_objext
13821 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13822 lt_compiler_flag="-fno-rtti -fno-exceptions"
13823 # Insert the option either (1) after the last *FLAGS variable, or
13824 # (2) before a word containing "conftest.", or (3) at the end.
13825 # Note that $ac_compile itself does not contain backslashes and begins
13826 # with a dollar sign (not a hyphen), so the echo should work correctly.
13827 # The option is referenced via a variable to avoid confusing sed.
13828 lt_compile=`echo "$ac_compile" | $SED \
13829 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13830 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13831 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000013832 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000013833 (eval "$lt_compile" 2>conftest.err)
13834 ac_status=$?
13835 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000013836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000013837 if (exit $ac_status) && test -s "$ac_outfile"; then
13838 # The compiler can only warn and ignore the option if not recognized
13839 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000013840 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000013841 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13842 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13843 lt_cv_prog_compiler_rtti_exceptions=yes
13844 fi
13845 fi
13846 $RM conftest*
13847
13848fi
13849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
13850$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
13851
13852if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
13853 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
13854else
13855 :
13856fi
13857
13858fi
13859
13860
13861
13862
13863
13864
13865 lt_prog_compiler_wl=
13866lt_prog_compiler_pic=
13867lt_prog_compiler_static=
13868
cristy73bd4a52010-10-05 11:24:23 +000013869
13870 if test "$GCC" = yes; then
13871 lt_prog_compiler_wl='-Wl,'
13872 lt_prog_compiler_static='-static'
13873
13874 case $host_os in
13875 aix*)
13876 # All AIX code is PIC.
13877 if test "$host_cpu" = ia64; then
13878 # AIX 5 now supports IA64 processor
13879 lt_prog_compiler_static='-Bstatic'
13880 fi
13881 ;;
13882
13883 amigaos*)
13884 case $host_cpu in
13885 powerpc)
13886 # see comment about AmigaOS4 .so support
13887 lt_prog_compiler_pic='-fPIC'
13888 ;;
13889 m68k)
13890 # FIXME: we need at least 68020 code to build shared libraries, but
13891 # adding the `-m68020' flag to GCC prevents building anything better,
13892 # like `-m68040'.
13893 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
13894 ;;
13895 esac
13896 ;;
13897
13898 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13899 # PIC is the default for these OSes.
13900 ;;
13901
13902 mingw* | cygwin* | pw32* | os2* | cegcc*)
13903 # This hack is so that the source file can tell whether it is being
13904 # built for inclusion in a dll (and should export symbols for example).
13905 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13906 # (--disable-auto-import) libraries
13907 lt_prog_compiler_pic='-DDLL_EXPORT'
13908 ;;
13909
13910 darwin* | rhapsody*)
13911 # PIC is the default on this platform
13912 # Common symbols not allowed in MH_DYLIB files
13913 lt_prog_compiler_pic='-fno-common'
13914 ;;
13915
cristy0c60a692010-11-04 01:09:47 +000013916 haiku*)
13917 # PIC is the default for Haiku.
13918 # The "-static" flag exists, but is broken.
13919 lt_prog_compiler_static=
13920 ;;
13921
cristy73bd4a52010-10-05 11:24:23 +000013922 hpux*)
13923 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13924 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13925 # sets the default TLS model and affects inlining.
13926 case $host_cpu in
13927 hppa*64*)
13928 # +Z the default
13929 ;;
13930 *)
13931 lt_prog_compiler_pic='-fPIC'
13932 ;;
13933 esac
13934 ;;
13935
13936 interix[3-9]*)
13937 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13938 # Instead, we relocate shared libraries at runtime.
13939 ;;
13940
13941 msdosdjgpp*)
13942 # Just because we use GCC doesn't mean we suddenly get shared libraries
13943 # on systems that don't support them.
13944 lt_prog_compiler_can_build_shared=no
13945 enable_shared=no
13946 ;;
13947
13948 *nto* | *qnx*)
13949 # QNX uses GNU C++, but need to define -shared option too, otherwise
13950 # it will coredump.
13951 lt_prog_compiler_pic='-fPIC -shared'
13952 ;;
13953
13954 sysv4*MP*)
13955 if test -d /usr/nec; then
13956 lt_prog_compiler_pic=-Kconform_pic
13957 fi
13958 ;;
13959
13960 *)
13961 lt_prog_compiler_pic='-fPIC'
13962 ;;
13963 esac
cristy0c60a692010-11-04 01:09:47 +000013964
13965 case $cc_basename in
13966 nvcc*) # Cuda Compiler Driver 2.2
13967 lt_prog_compiler_wl='-Xlinker '
cristy99bd5232011-12-07 14:38:20 +000013968 if test -n "$lt_prog_compiler_pic"; then
13969 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
13970 fi
cristy0c60a692010-11-04 01:09:47 +000013971 ;;
13972 esac
cristy73bd4a52010-10-05 11:24:23 +000013973 else
13974 # PORTME Check for flag to pass linker flags through the system compiler.
13975 case $host_os in
13976 aix*)
13977 lt_prog_compiler_wl='-Wl,'
13978 if test "$host_cpu" = ia64; then
13979 # AIX 5 now supports IA64 processor
13980 lt_prog_compiler_static='-Bstatic'
13981 else
13982 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
13983 fi
13984 ;;
13985
13986 mingw* | cygwin* | pw32* | os2* | cegcc*)
13987 # This hack is so that the source file can tell whether it is being
13988 # built for inclusion in a dll (and should export symbols for example).
13989 lt_prog_compiler_pic='-DDLL_EXPORT'
13990 ;;
13991
13992 hpux9* | hpux10* | hpux11*)
13993 lt_prog_compiler_wl='-Wl,'
13994 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13995 # not for PA HP-UX.
13996 case $host_cpu in
13997 hppa*64*|ia64*)
13998 # +Z the default
13999 ;;
14000 *)
14001 lt_prog_compiler_pic='+Z'
14002 ;;
14003 esac
14004 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14005 lt_prog_compiler_static='${wl}-a ${wl}archive'
14006 ;;
14007
14008 irix5* | irix6* | nonstopux*)
14009 lt_prog_compiler_wl='-Wl,'
14010 # PIC (with -KPIC) is the default.
14011 lt_prog_compiler_static='-non_shared'
14012 ;;
14013
cristy0c60a692010-11-04 01:09:47 +000014014 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000014015 case $cc_basename in
14016 # old Intel for x86_64 which still supported -KPIC.
14017 ecc*)
14018 lt_prog_compiler_wl='-Wl,'
14019 lt_prog_compiler_pic='-KPIC'
14020 lt_prog_compiler_static='-static'
14021 ;;
14022 # icc used to be incompatible with GCC.
14023 # ICC 10 doesn't accept -KPIC any more.
14024 icc* | ifort*)
14025 lt_prog_compiler_wl='-Wl,'
14026 lt_prog_compiler_pic='-fPIC'
14027 lt_prog_compiler_static='-static'
14028 ;;
14029 # Lahey Fortran 8.1.
14030 lf95*)
14031 lt_prog_compiler_wl='-Wl,'
14032 lt_prog_compiler_pic='--shared'
14033 lt_prog_compiler_static='--static'
14034 ;;
cristyda16f162011-02-19 23:52:17 +000014035 nagfor*)
14036 # NAG Fortran compiler
14037 lt_prog_compiler_wl='-Wl,-Wl,,'
14038 lt_prog_compiler_pic='-PIC'
14039 lt_prog_compiler_static='-Bstatic'
14040 ;;
cristy0c60a692010-11-04 01:09:47 +000014041 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
cristy73bd4a52010-10-05 11:24:23 +000014042 # Portland Group compilers (*not* the Pentium gcc compiler,
14043 # which looks to be a dead project)
14044 lt_prog_compiler_wl='-Wl,'
14045 lt_prog_compiler_pic='-fpic'
14046 lt_prog_compiler_static='-Bstatic'
14047 ;;
14048 ccc*)
14049 lt_prog_compiler_wl='-Wl,'
14050 # All Alpha code is PIC.
14051 lt_prog_compiler_static='-non_shared'
14052 ;;
cristy0c60a692010-11-04 01:09:47 +000014053 xl* | bgxl* | bgf* | mpixl*)
14054 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000014055 lt_prog_compiler_wl='-Wl,'
14056 lt_prog_compiler_pic='-qpic'
14057 lt_prog_compiler_static='-qstaticlink'
14058 ;;
14059 *)
14060 case `$CC -V 2>&1 | sed 5q` in
cristy99bd5232011-12-07 14:38:20 +000014061 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
cristy0c60a692010-11-04 01:09:47 +000014062 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14063 lt_prog_compiler_pic='-KPIC'
14064 lt_prog_compiler_static='-Bstatic'
14065 lt_prog_compiler_wl=''
14066 ;;
cristy99bd5232011-12-07 14:38:20 +000014067 *Sun\ F* | *Sun*Fortran*)
14068 lt_prog_compiler_pic='-KPIC'
14069 lt_prog_compiler_static='-Bstatic'
14070 lt_prog_compiler_wl='-Qoption ld '
14071 ;;
cristy73bd4a52010-10-05 11:24:23 +000014072 *Sun\ C*)
14073 # Sun C 5.9
14074 lt_prog_compiler_pic='-KPIC'
14075 lt_prog_compiler_static='-Bstatic'
14076 lt_prog_compiler_wl='-Wl,'
14077 ;;
cristy99bd5232011-12-07 14:38:20 +000014078 *Intel*\ [CF]*Compiler*)
14079 lt_prog_compiler_wl='-Wl,'
14080 lt_prog_compiler_pic='-fPIC'
14081 lt_prog_compiler_static='-static'
14082 ;;
14083 *Portland\ Group*)
14084 lt_prog_compiler_wl='-Wl,'
14085 lt_prog_compiler_pic='-fpic'
14086 lt_prog_compiler_static='-Bstatic'
14087 ;;
cristy73bd4a52010-10-05 11:24:23 +000014088 esac
14089 ;;
14090 esac
14091 ;;
14092
14093 newsos6)
14094 lt_prog_compiler_pic='-KPIC'
14095 lt_prog_compiler_static='-Bstatic'
14096 ;;
14097
14098 *nto* | *qnx*)
14099 # QNX uses GNU C++, but need to define -shared option too, otherwise
14100 # it will coredump.
14101 lt_prog_compiler_pic='-fPIC -shared'
14102 ;;
14103
14104 osf3* | osf4* | osf5*)
14105 lt_prog_compiler_wl='-Wl,'
14106 # All OSF/1 code is PIC.
14107 lt_prog_compiler_static='-non_shared'
14108 ;;
14109
14110 rdos*)
14111 lt_prog_compiler_static='-non_shared'
14112 ;;
14113
14114 solaris*)
14115 lt_prog_compiler_pic='-KPIC'
14116 lt_prog_compiler_static='-Bstatic'
14117 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000014118 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
cristy73bd4a52010-10-05 11:24:23 +000014119 lt_prog_compiler_wl='-Qoption ld ';;
14120 *)
14121 lt_prog_compiler_wl='-Wl,';;
14122 esac
14123 ;;
14124
14125 sunos4*)
14126 lt_prog_compiler_wl='-Qoption ld '
14127 lt_prog_compiler_pic='-PIC'
14128 lt_prog_compiler_static='-Bstatic'
14129 ;;
14130
14131 sysv4 | sysv4.2uw2* | sysv4.3*)
14132 lt_prog_compiler_wl='-Wl,'
14133 lt_prog_compiler_pic='-KPIC'
14134 lt_prog_compiler_static='-Bstatic'
14135 ;;
14136
14137 sysv4*MP*)
14138 if test -d /usr/nec ;then
14139 lt_prog_compiler_pic='-Kconform_pic'
14140 lt_prog_compiler_static='-Bstatic'
14141 fi
14142 ;;
14143
14144 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14145 lt_prog_compiler_wl='-Wl,'
14146 lt_prog_compiler_pic='-KPIC'
14147 lt_prog_compiler_static='-Bstatic'
14148 ;;
14149
14150 unicos*)
14151 lt_prog_compiler_wl='-Wl,'
14152 lt_prog_compiler_can_build_shared=no
14153 ;;
14154
14155 uts4*)
14156 lt_prog_compiler_pic='-pic'
14157 lt_prog_compiler_static='-Bstatic'
14158 ;;
14159
14160 *)
14161 lt_prog_compiler_can_build_shared=no
14162 ;;
14163 esac
14164 fi
14165
14166case $host_os in
14167 # For platforms which do not support PIC, -DPIC is meaningless:
14168 *djgpp*)
14169 lt_prog_compiler_pic=
14170 ;;
14171 *)
14172 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14173 ;;
14174esac
cristy73bd4a52010-10-05 11:24:23 +000014175
cristyda16f162011-02-19 23:52:17 +000014176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14177$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14178if ${lt_cv_prog_compiler_pic+:} false; then :
14179 $as_echo_n "(cached) " >&6
14180else
14181 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
14182fi
14183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
14184$as_echo "$lt_cv_prog_compiler_pic" >&6; }
14185lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
cristy73bd4a52010-10-05 11:24:23 +000014186
14187#
14188# Check to make sure the PIC flag actually works.
14189#
14190if test -n "$lt_prog_compiler_pic"; then
14191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14192$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014193if ${lt_cv_prog_compiler_pic_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014194 $as_echo_n "(cached) " >&6
14195else
14196 lt_cv_prog_compiler_pic_works=no
14197 ac_outfile=conftest.$ac_objext
14198 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14199 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14200 # Insert the option either (1) after the last *FLAGS variable, or
14201 # (2) before a word containing "conftest.", or (3) at the end.
14202 # Note that $ac_compile itself does not contain backslashes and begins
14203 # with a dollar sign (not a hyphen), so the echo should work correctly.
14204 # The option is referenced via a variable to avoid confusing sed.
14205 lt_compile=`echo "$ac_compile" | $SED \
14206 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14207 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14208 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014209 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014210 (eval "$lt_compile" 2>conftest.err)
14211 ac_status=$?
14212 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014214 if (exit $ac_status) && test -s "$ac_outfile"; then
14215 # The compiler can only warn and ignore the option if not recognized
14216 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000014217 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014218 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14219 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14220 lt_cv_prog_compiler_pic_works=yes
14221 fi
14222 fi
14223 $RM conftest*
14224
14225fi
14226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14227$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14228
14229if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
14230 case $lt_prog_compiler_pic in
14231 "" | " "*) ;;
14232 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14233 esac
14234else
14235 lt_prog_compiler_pic=
14236 lt_prog_compiler_can_build_shared=no
14237fi
14238
14239fi
14240
14241
14242
14243
14244
14245
cristyda16f162011-02-19 23:52:17 +000014246
14247
14248
14249
14250
cristy73bd4a52010-10-05 11:24:23 +000014251#
14252# Check to make sure the static flag actually works.
14253#
14254wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14256$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014257if ${lt_cv_prog_compiler_static_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014258 $as_echo_n "(cached) " >&6
14259else
14260 lt_cv_prog_compiler_static_works=no
14261 save_LDFLAGS="$LDFLAGS"
14262 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14263 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14264 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14265 # The linker can only warn and ignore the option if not recognized
14266 # So say no if there are warnings
14267 if test -s conftest.err; then
14268 # Append any errors to the config.log.
14269 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000014270 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014271 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14272 if diff conftest.exp conftest.er2 >/dev/null; then
14273 lt_cv_prog_compiler_static_works=yes
14274 fi
14275 else
14276 lt_cv_prog_compiler_static_works=yes
14277 fi
14278 fi
14279 $RM -r conftest*
14280 LDFLAGS="$save_LDFLAGS"
14281
14282fi
14283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14284$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
14285
14286if test x"$lt_cv_prog_compiler_static_works" = xyes; then
14287 :
14288else
14289 lt_prog_compiler_static=
14290fi
14291
14292
14293
14294
14295
14296
14297
14298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14299$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014300if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014301 $as_echo_n "(cached) " >&6
14302else
14303 lt_cv_prog_compiler_c_o=no
14304 $RM -r conftest 2>/dev/null
14305 mkdir conftest
14306 cd conftest
14307 mkdir out
14308 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14309
14310 lt_compiler_flag="-o out/conftest2.$ac_objext"
14311 # Insert the option either (1) after the last *FLAGS variable, or
14312 # (2) before a word containing "conftest.", or (3) at the end.
14313 # Note that $ac_compile itself does not contain backslashes and begins
14314 # with a dollar sign (not a hyphen), so the echo should work correctly.
14315 lt_compile=`echo "$ac_compile" | $SED \
14316 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14317 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14318 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014319 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014320 (eval "$lt_compile" 2>out/conftest.err)
14321 ac_status=$?
14322 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014324 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14325 then
14326 # The compiler can only warn and ignore the option if not recognized
14327 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000014328 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014329 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14330 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14331 lt_cv_prog_compiler_c_o=yes
14332 fi
14333 fi
14334 chmod u+w . 2>&5
14335 $RM conftest*
14336 # SGI C++ compiler will create directory out/ii_files/ for
14337 # template instantiation
14338 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14339 $RM out/* && rmdir out
14340 cd ..
14341 $RM -r conftest
14342 $RM conftest*
14343
14344fi
14345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14346$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14347
14348
14349
14350
14351
14352
14353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14354$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014355if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014356 $as_echo_n "(cached) " >&6
14357else
14358 lt_cv_prog_compiler_c_o=no
14359 $RM -r conftest 2>/dev/null
14360 mkdir conftest
14361 cd conftest
14362 mkdir out
14363 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14364
14365 lt_compiler_flag="-o out/conftest2.$ac_objext"
14366 # Insert the option either (1) after the last *FLAGS variable, or
14367 # (2) before a word containing "conftest.", or (3) at the end.
14368 # Note that $ac_compile itself does not contain backslashes and begins
14369 # with a dollar sign (not a hyphen), so the echo should work correctly.
14370 lt_compile=`echo "$ac_compile" | $SED \
14371 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14372 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14373 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014374 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014375 (eval "$lt_compile" 2>out/conftest.err)
14376 ac_status=$?
14377 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014379 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14380 then
14381 # The compiler can only warn and ignore the option if not recognized
14382 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000014383 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014384 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14385 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14386 lt_cv_prog_compiler_c_o=yes
14387 fi
14388 fi
14389 chmod u+w . 2>&5
14390 $RM conftest*
14391 # SGI C++ compiler will create directory out/ii_files/ for
14392 # template instantiation
14393 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14394 $RM out/* && rmdir out
14395 cd ..
14396 $RM -r conftest
14397 $RM conftest*
14398
14399fi
14400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14401$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14402
14403
14404
14405
14406hard_links="nottested"
14407if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14408 # do not overwrite the value of need_locks provided by the user
14409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14410$as_echo_n "checking if we can lock with hard links... " >&6; }
14411 hard_links=yes
14412 $RM conftest*
14413 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14414 touch conftest.a
14415 ln conftest.a conftest.b 2>&5 || hard_links=no
14416 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14418$as_echo "$hard_links" >&6; }
14419 if test "$hard_links" = no; then
14420 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14421$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14422 need_locks=warn
14423 fi
14424else
14425 need_locks=no
14426fi
14427
14428
14429
14430
14431
14432
14433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14434$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14435
14436 runpath_var=
14437 allow_undefined_flag=
14438 always_export_symbols=no
14439 archive_cmds=
14440 archive_expsym_cmds=
14441 compiler_needs_object=no
14442 enable_shared_with_static_runtimes=no
14443 export_dynamic_flag_spec=
14444 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14445 hardcode_automatic=no
14446 hardcode_direct=no
14447 hardcode_direct_absolute=no
14448 hardcode_libdir_flag_spec=
cristy73bd4a52010-10-05 11:24:23 +000014449 hardcode_libdir_separator=
14450 hardcode_minus_L=no
14451 hardcode_shlibpath_var=unsupported
14452 inherit_rpath=no
14453 link_all_deplibs=unknown
14454 module_cmds=
14455 module_expsym_cmds=
14456 old_archive_from_new_cmds=
14457 old_archive_from_expsyms_cmds=
14458 thread_safe_flag_spec=
14459 whole_archive_flag_spec=
14460 # include_expsyms should be a list of space-separated symbols to be *always*
14461 # included in the symbol list
14462 include_expsyms=
14463 # exclude_expsyms can be an extended regexp of symbols to exclude
14464 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14465 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14466 # as well as any symbol that contains `d'.
14467 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14468 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14469 # platforms (ab)use it in PIC code, but their linkers get confused if
14470 # the symbol is explicitly referenced. Since portable code cannot
14471 # rely on this symbol name, it's probably fine to never include it in
14472 # preloaded symbol tables.
14473 # Exclude shared library initialization/finalization symbols.
14474 extract_expsyms_cmds=
14475
14476 case $host_os in
14477 cygwin* | mingw* | pw32* | cegcc*)
14478 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14479 # When not using gcc, we currently assume that we are using
14480 # Microsoft Visual C++.
14481 if test "$GCC" != yes; then
14482 with_gnu_ld=no
14483 fi
14484 ;;
14485 interix*)
14486 # we just hope/assume this is gcc and not c89 (= MSVC++)
14487 with_gnu_ld=yes
14488 ;;
14489 openbsd*)
14490 with_gnu_ld=no
14491 ;;
14492 esac
14493
14494 ld_shlibs=yes
cristy0c60a692010-11-04 01:09:47 +000014495
14496 # On some targets, GNU ld is compatible enough with the native linker
14497 # that we're better off using the native interface for both.
14498 lt_use_gnu_ld_interface=no
cristy73bd4a52010-10-05 11:24:23 +000014499 if test "$with_gnu_ld" = yes; then
cristy0c60a692010-11-04 01:09:47 +000014500 case $host_os in
14501 aix*)
14502 # The AIX port of GNU ld has always aspired to compatibility
14503 # with the native linker. However, as the warning in the GNU ld
14504 # block says, versions before 2.19.5* couldn't really create working
14505 # shared libraries, regardless of the interface used.
14506 case `$LD -v 2>&1` in
14507 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
14508 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
14509 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
14510 *)
14511 lt_use_gnu_ld_interface=yes
14512 ;;
14513 esac
14514 ;;
14515 *)
14516 lt_use_gnu_ld_interface=yes
14517 ;;
14518 esac
14519 fi
14520
14521 if test "$lt_use_gnu_ld_interface" = yes; then
cristy73bd4a52010-10-05 11:24:23 +000014522 # If archive_cmds runs LD, not CC, wlarc should be empty
14523 wlarc='${wl}'
14524
14525 # Set some defaults for GNU ld with shared library support. These
14526 # are reset later if shared libraries are not supported. Putting them
14527 # here allows them to be overridden if necessary.
14528 runpath_var=LD_RUN_PATH
14529 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14530 export_dynamic_flag_spec='${wl}--export-dynamic'
14531 # ancient GNU ld didn't support --whole-archive et. al.
14532 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
14533 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14534 else
14535 whole_archive_flag_spec=
14536 fi
14537 supports_anon_versioning=no
14538 case `$LD -v 2>&1` in
cristy0c60a692010-11-04 01:09:47 +000014539 *GNU\ gold*) supports_anon_versioning=yes ;;
cristy73bd4a52010-10-05 11:24:23 +000014540 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14541 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14542 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14543 *\ 2.11.*) ;; # other 2.11 versions
14544 *) supports_anon_versioning=yes ;;
14545 esac
14546
14547 # See if GNU ld supports shared libraries.
14548 case $host_os in
14549 aix[3-9]*)
14550 # On AIX/PPC, the GNU linker is very broken
14551 if test "$host_cpu" != ia64; then
14552 ld_shlibs=no
14553 cat <<_LT_EOF 1>&2
14554
cristy0c60a692010-11-04 01:09:47 +000014555*** Warning: the GNU linker, at least up to release 2.19, is reported
cristy73bd4a52010-10-05 11:24:23 +000014556*** to be unable to reliably create shared libraries on AIX.
14557*** Therefore, libtool is disabling shared libraries support. If you
cristy0c60a692010-11-04 01:09:47 +000014558*** really care for shared libraries, you may want to install binutils
14559*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
14560*** You will then need to restart the configuration process.
cristy73bd4a52010-10-05 11:24:23 +000014561
14562_LT_EOF
14563 fi
14564 ;;
14565
14566 amigaos*)
14567 case $host_cpu in
14568 powerpc)
14569 # see comment about AmigaOS4 .so support
14570 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14571 archive_expsym_cmds=''
14572 ;;
14573 m68k)
14574 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)'
14575 hardcode_libdir_flag_spec='-L$libdir'
14576 hardcode_minus_L=yes
14577 ;;
14578 esac
14579 ;;
14580
14581 beos*)
14582 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14583 allow_undefined_flag=unsupported
14584 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14585 # support --undefined. This deserves some investigation. FIXME
14586 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14587 else
14588 ld_shlibs=no
14589 fi
14590 ;;
14591
14592 cygwin* | mingw* | pw32* | cegcc*)
14593 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14594 # as there is no search path for DLLs.
14595 hardcode_libdir_flag_spec='-L$libdir'
cristy0c60a692010-11-04 01:09:47 +000014596 export_dynamic_flag_spec='${wl}--export-all-symbols'
cristy73bd4a52010-10-05 11:24:23 +000014597 allow_undefined_flag=unsupported
14598 always_export_symbols=no
14599 enable_shared_with_static_runtimes=yes
cristyda16f162011-02-19 23:52:17 +000014600 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
14601 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
cristy73bd4a52010-10-05 11:24:23 +000014602
14603 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14604 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14605 # If the export-symbols file already is a .def file (1st line
14606 # is EXPORTS), use it as is; otherwise, prepend...
14607 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14608 cp $export_symbols $output_objdir/$soname.def;
14609 else
14610 echo EXPORTS > $output_objdir/$soname.def;
14611 cat $export_symbols >> $output_objdir/$soname.def;
14612 fi~
14613 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14614 else
14615 ld_shlibs=no
14616 fi
14617 ;;
14618
cristy0c60a692010-11-04 01:09:47 +000014619 haiku*)
14620 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14621 link_all_deplibs=yes
14622 ;;
14623
cristy73bd4a52010-10-05 11:24:23 +000014624 interix[3-9]*)
14625 hardcode_direct=no
14626 hardcode_shlibpath_var=no
14627 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14628 export_dynamic_flag_spec='${wl}-E'
14629 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14630 # Instead, shared libraries are loaded at an image base (0x10000000 by
14631 # default) and relocated if they conflict, which is a slow very memory
14632 # consuming and fragmenting process. To avoid this, we pick a random,
14633 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14634 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14635 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14636 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'
14637 ;;
14638
cristy0c60a692010-11-04 01:09:47 +000014639 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000014640 tmp_diet=no
14641 if test "$host_os" = linux-dietlibc; then
14642 case $cc_basename in
14643 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
14644 esac
14645 fi
14646 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
14647 && test "$tmp_diet" = no
14648 then
cristyda16f162011-02-19 23:52:17 +000014649 tmp_addflag=' $pic_flag'
cristy73bd4a52010-10-05 11:24:23 +000014650 tmp_sharedflag='-shared'
14651 case $cc_basename,$host_cpu in
14652 pgcc*) # Portland Group C compiler
cristy0c60a692010-11-04 01:09:47 +000014653 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
cristy73bd4a52010-10-05 11:24:23 +000014654 tmp_addflag=' $pic_flag'
14655 ;;
cristy0c60a692010-11-04 01:09:47 +000014656 pgf77* | pgf90* | pgf95* | pgfortran*)
14657 # Portland Group f77 and f90 compilers
14658 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
cristy73bd4a52010-10-05 11:24:23 +000014659 tmp_addflag=' $pic_flag -Mnomain' ;;
14660 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14661 tmp_addflag=' -i_dynamic' ;;
14662 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14663 tmp_addflag=' -i_dynamic -nofor_main' ;;
14664 ifc* | ifort*) # Intel Fortran compiler
14665 tmp_addflag=' -nofor_main' ;;
14666 lf95*) # Lahey Fortran 8.1
14667 whole_archive_flag_spec=
14668 tmp_sharedflag='--shared' ;;
cristy0c60a692010-11-04 01:09:47 +000014669 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
cristy73bd4a52010-10-05 11:24:23 +000014670 tmp_sharedflag='-qmkshrobj'
14671 tmp_addflag= ;;
cristy0c60a692010-11-04 01:09:47 +000014672 nvcc*) # Cuda Compiler Driver 2.2
14673 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
14674 compiler_needs_object=yes
14675 ;;
cristy73bd4a52010-10-05 11:24:23 +000014676 esac
14677 case `$CC -V 2>&1 | sed 5q` in
14678 *Sun\ C*) # Sun C 5.9
cristy0c60a692010-11-04 01:09:47 +000014679 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
cristy73bd4a52010-10-05 11:24:23 +000014680 compiler_needs_object=yes
14681 tmp_sharedflag='-G' ;;
14682 *Sun\ F*) # Sun Fortran 8.3
14683 tmp_sharedflag='-G' ;;
14684 esac
14685 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14686
14687 if test "x$supports_anon_versioning" = xyes; then
14688 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14689 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14690 echo "local: *; };" >> $output_objdir/$libname.ver~
14691 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14692 fi
14693
14694 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000014695 xlf* | bgf* | bgxlf* | mpixlf*)
cristy73bd4a52010-10-05 11:24:23 +000014696 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
14697 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
cristy99bd5232011-12-07 14:38:20 +000014698 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
cristy0c60a692010-11-04 01:09:47 +000014699 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000014700 if test "x$supports_anon_versioning" = xyes; then
14701 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14702 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14703 echo "local: *; };" >> $output_objdir/$libname.ver~
cristy0c60a692010-11-04 01:09:47 +000014704 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000014705 fi
14706 ;;
14707 esac
14708 else
14709 ld_shlibs=no
14710 fi
14711 ;;
14712
14713 netbsd*)
14714 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14715 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14716 wlarc=
14717 else
cristyda16f162011-02-19 23:52:17 +000014718 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14719 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000014720 fi
14721 ;;
14722
14723 solaris*)
14724 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
14725 ld_shlibs=no
14726 cat <<_LT_EOF 1>&2
14727
14728*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14729*** create shared libraries on Solaris systems. Therefore, libtool
14730*** is disabling shared libraries support. We urge you to upgrade GNU
14731*** binutils to release 2.9.1 or newer. Another option is to modify
14732*** your PATH or compiler configuration so that the native linker is
14733*** used, and then restart.
14734
14735_LT_EOF
14736 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000014737 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14738 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000014739 else
14740 ld_shlibs=no
14741 fi
14742 ;;
14743
14744 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14745 case `$LD -v 2>&1` in
14746 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14747 ld_shlibs=no
14748 cat <<_LT_EOF 1>&2
14749
14750*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14751*** reliably create shared libraries on SCO systems. Therefore, libtool
14752*** is disabling shared libraries support. We urge you to upgrade GNU
14753*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14754*** your PATH or compiler configuration so that the native linker is
14755*** used, and then restart.
14756
14757_LT_EOF
14758 ;;
14759 *)
14760 # For security reasons, it is highly recommended that you always
14761 # use absolute paths for naming shared libraries, and exclude the
14762 # DT_RUNPATH tag from executables and libraries. But doing so
14763 # requires that you compile everything twice, which is a pain.
14764 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14765 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14766 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14767 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14768 else
14769 ld_shlibs=no
14770 fi
14771 ;;
14772 esac
14773 ;;
14774
14775 sunos4*)
14776 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14777 wlarc=
14778 hardcode_direct=yes
14779 hardcode_shlibpath_var=no
14780 ;;
14781
14782 *)
14783 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000014784 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14785 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000014786 else
14787 ld_shlibs=no
14788 fi
14789 ;;
14790 esac
14791
14792 if test "$ld_shlibs" = no; then
14793 runpath_var=
14794 hardcode_libdir_flag_spec=
14795 export_dynamic_flag_spec=
14796 whole_archive_flag_spec=
14797 fi
14798 else
14799 # PORTME fill in a description of your system's linker (not GNU ld)
14800 case $host_os in
14801 aix3*)
14802 allow_undefined_flag=unsupported
14803 always_export_symbols=yes
14804 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'
14805 # Note: this linker hardcodes the directories in LIBPATH if there
14806 # are no directories specified by -L.
14807 hardcode_minus_L=yes
14808 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14809 # Neither direct hardcoding nor static linking is supported with a
14810 # broken collect2.
14811 hardcode_direct=unsupported
14812 fi
14813 ;;
14814
14815 aix[4-9]*)
14816 if test "$host_cpu" = ia64; then
14817 # On IA64, the linker does run time linking by default, so we don't
14818 # have to do anything special.
14819 aix_use_runtimelinking=no
14820 exp_sym_flag='-Bexport'
14821 no_entry_flag=""
14822 else
14823 # If we're using GNU nm, then we don't want the "-C" option.
14824 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000014825 # Also, AIX nm treats weak defined symbols like other global
14826 # defined symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000014827 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000014828 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
cristy73bd4a52010-10-05 11:24:23 +000014829 else
14830 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'
14831 fi
14832 aix_use_runtimelinking=no
14833
14834 # Test if we are trying to use run time linking or normal
14835 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14836 # need to do runtime linking.
14837 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14838 for ld_flag in $LDFLAGS; do
14839 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14840 aix_use_runtimelinking=yes
14841 break
14842 fi
14843 done
14844 ;;
14845 esac
14846
14847 exp_sym_flag='-bexport'
14848 no_entry_flag='-bnoentry'
14849 fi
14850
14851 # When large executables or shared objects are built, AIX ld can
14852 # have problems creating the table of contents. If linking a library
14853 # or program results in "error TOC overflow" add -mminimal-toc to
14854 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14855 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14856
14857 archive_cmds=''
14858 hardcode_direct=yes
14859 hardcode_direct_absolute=yes
14860 hardcode_libdir_separator=':'
14861 link_all_deplibs=yes
14862 file_list_spec='${wl}-f,'
14863
14864 if test "$GCC" = yes; then
14865 case $host_os in aix4.[012]|aix4.[012].*)
14866 # We only want to do this on AIX 4.2 and lower, the check
14867 # below for broken collect2 doesn't work under 4.3+
14868 collect2name=`${CC} -print-prog-name=collect2`
14869 if test -f "$collect2name" &&
14870 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14871 then
14872 # We have reworked collect2
14873 :
14874 else
14875 # We have old collect2
14876 hardcode_direct=unsupported
14877 # It fails to find uninstalled libraries when the uninstalled
14878 # path is not listed in the libpath. Setting hardcode_minus_L
14879 # to unsupported forces relinking
14880 hardcode_minus_L=yes
14881 hardcode_libdir_flag_spec='-L$libdir'
14882 hardcode_libdir_separator=
14883 fi
14884 ;;
14885 esac
14886 shared_flag='-shared'
14887 if test "$aix_use_runtimelinking" = yes; then
14888 shared_flag="$shared_flag "'${wl}-G'
14889 fi
14890 else
14891 # not using gcc
14892 if test "$host_cpu" = ia64; then
14893 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14894 # chokes on -Wl,-G. The following line is correct:
14895 shared_flag='-G'
14896 else
14897 if test "$aix_use_runtimelinking" = yes; then
14898 shared_flag='${wl}-G'
14899 else
14900 shared_flag='${wl}-bM:SRE'
14901 fi
14902 fi
14903 fi
14904
14905 export_dynamic_flag_spec='${wl}-bexpall'
14906 # It seems that -bexpall does not export symbols beginning with
14907 # underscore (_), so it is better to generate a list of symbols to export.
14908 always_export_symbols=yes
14909 if test "$aix_use_runtimelinking" = yes; then
14910 # Warning - without using the other runtime loading flags (-brtl),
14911 # -berok will link without error, but may produce a broken library.
14912 allow_undefined_flag='-berok'
14913 # Determine the default libpath from the value encoded in an
14914 # empty executable.
cristyda16f162011-02-19 23:52:17 +000014915 if test "${lt_cv_aix_libpath+set}" = set; then
14916 aix_libpath=$lt_cv_aix_libpath
14917else
14918 if ${lt_cv_aix_libpath_+:} false; then :
14919 $as_echo_n "(cached) " >&6
14920else
14921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000014922/* end confdefs.h. */
14923
14924int
14925main ()
14926{
14927
14928 ;
14929 return 0;
14930}
14931_ACEOF
14932if ac_fn_c_try_link "$LINENO"; then :
14933
cristyda16f162011-02-19 23:52:17 +000014934 lt_aix_libpath_sed='
14935 /Import File Strings/,/^$/ {
14936 /^0/ {
14937 s/^0 *\([^ ]*\) *$/\1/
14938 p
14939 }
14940 }'
14941 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14942 # Check for a 64-bit object if we didn't find anything.
14943 if test -z "$lt_cv_aix_libpath_"; then
14944 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14945 fi
cristy73bd4a52010-10-05 11:24:23 +000014946fi
14947rm -f core conftest.err conftest.$ac_objext \
14948 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000014949 if test -z "$lt_cv_aix_libpath_"; then
14950 lt_cv_aix_libpath_="/usr/lib:/lib"
14951 fi
14952
14953fi
14954
14955 aix_libpath=$lt_cv_aix_libpath_
14956fi
cristy73bd4a52010-10-05 11:24:23 +000014957
14958 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
cristy0c60a692010-11-04 01:09:47 +000014959 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
cristy73bd4a52010-10-05 11:24:23 +000014960 else
14961 if test "$host_cpu" = ia64; then
14962 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
14963 allow_undefined_flag="-z nodefs"
14964 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"
14965 else
14966 # Determine the default libpath from the value encoded in an
14967 # empty executable.
cristyda16f162011-02-19 23:52:17 +000014968 if test "${lt_cv_aix_libpath+set}" = set; then
14969 aix_libpath=$lt_cv_aix_libpath
14970else
14971 if ${lt_cv_aix_libpath_+:} false; then :
14972 $as_echo_n "(cached) " >&6
14973else
14974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000014975/* end confdefs.h. */
14976
14977int
14978main ()
14979{
14980
14981 ;
14982 return 0;
14983}
14984_ACEOF
14985if ac_fn_c_try_link "$LINENO"; then :
14986
cristyda16f162011-02-19 23:52:17 +000014987 lt_aix_libpath_sed='
14988 /Import File Strings/,/^$/ {
14989 /^0/ {
14990 s/^0 *\([^ ]*\) *$/\1/
14991 p
14992 }
14993 }'
14994 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14995 # Check for a 64-bit object if we didn't find anything.
14996 if test -z "$lt_cv_aix_libpath_"; then
14997 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14998 fi
cristy73bd4a52010-10-05 11:24:23 +000014999fi
15000rm -f core conftest.err conftest.$ac_objext \
15001 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000015002 if test -z "$lt_cv_aix_libpath_"; then
15003 lt_cv_aix_libpath_="/usr/lib:/lib"
15004 fi
15005
15006fi
15007
15008 aix_libpath=$lt_cv_aix_libpath_
15009fi
cristy73bd4a52010-10-05 11:24:23 +000015010
15011 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15012 # Warning - without using the other run time loading flags,
15013 # -berok will link without error, but may produce a broken library.
15014 no_undefined_flag=' ${wl}-bernotok'
15015 allow_undefined_flag=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000015016 if test "$with_gnu_ld" = yes; then
15017 # We only use this code for GNU lds that support --whole-archive.
15018 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15019 else
15020 # Exported symbols can be pulled into shared objects from archives
15021 whole_archive_flag_spec='$convenience'
15022 fi
cristy73bd4a52010-10-05 11:24:23 +000015023 archive_cmds_need_lc=yes
15024 # This is similar to how AIX traditionally builds its shared libraries.
15025 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'
15026 fi
15027 fi
15028 ;;
15029
15030 amigaos*)
15031 case $host_cpu in
15032 powerpc)
15033 # see comment about AmigaOS4 .so support
15034 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15035 archive_expsym_cmds=''
15036 ;;
15037 m68k)
15038 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)'
15039 hardcode_libdir_flag_spec='-L$libdir'
15040 hardcode_minus_L=yes
15041 ;;
15042 esac
15043 ;;
15044
15045 bsdi[45]*)
15046 export_dynamic_flag_spec=-rdynamic
15047 ;;
15048
15049 cygwin* | mingw* | pw32* | cegcc*)
15050 # When not using gcc, we currently assume that we are using
15051 # Microsoft Visual C++.
15052 # hardcode_libdir_flag_spec is actually meaningless, as there is
15053 # no search path for DLLs.
cristyda16f162011-02-19 23:52:17 +000015054 case $cc_basename in
15055 cl*)
15056 # Native MSVC
15057 hardcode_libdir_flag_spec=' '
15058 allow_undefined_flag=unsupported
15059 always_export_symbols=yes
15060 file_list_spec='@'
15061 # Tell ltmain to make .lib files, not .a files.
15062 libext=lib
15063 # Tell ltmain to make .dll files, not .so files.
15064 shrext_cmds=".dll"
15065 # FIXME: Setting linknames here is a bad hack.
15066 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
15067 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15068 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
15069 else
15070 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
15071 fi~
15072 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15073 linknames='
15074 # The linker will not automatically build a static lib if we build a DLL.
15075 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
15076 enable_shared_with_static_runtimes=yes
cristy99bd5232011-12-07 14:38:20 +000015077 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
cristyda16f162011-02-19 23:52:17 +000015078 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15079 # Don't use ranlib
15080 old_postinstall_cmds='chmod 644 $oldlib'
15081 postlink_cmds='lt_outputfile="@OUTPUT@"~
15082 lt_tool_outputfile="@TOOL_OUTPUT@"~
15083 case $lt_outputfile in
15084 *.exe|*.EXE) ;;
15085 *)
15086 lt_outputfile="$lt_outputfile.exe"
15087 lt_tool_outputfile="$lt_tool_outputfile.exe"
15088 ;;
15089 esac~
15090 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
15091 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15092 $RM "$lt_outputfile.manifest";
15093 fi'
15094 ;;
15095 *)
15096 # Assume MSVC wrapper
15097 hardcode_libdir_flag_spec=' '
15098 allow_undefined_flag=unsupported
15099 # Tell ltmain to make .lib files, not .a files.
15100 libext=lib
15101 # Tell ltmain to make .dll files, not .so files.
15102 shrext_cmds=".dll"
15103 # FIXME: Setting linknames here is a bad hack.
15104 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15105 # The linker will automatically build a .lib file if we build a DLL.
15106 old_archive_from_new_cmds='true'
15107 # FIXME: Should let the user specify the lib program.
15108 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15109 enable_shared_with_static_runtimes=yes
15110 ;;
15111 esac
cristy73bd4a52010-10-05 11:24:23 +000015112 ;;
15113
15114 darwin* | rhapsody*)
15115
15116
15117 archive_cmds_need_lc=no
15118 hardcode_direct=no
15119 hardcode_automatic=yes
15120 hardcode_shlibpath_var=unsupported
cristy0c60a692010-11-04 01:09:47 +000015121 if test "$lt_cv_ld_force_load" = "yes"; then
15122 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
cristy99bd5232011-12-07 14:38:20 +000015123
cristy0c60a692010-11-04 01:09:47 +000015124 else
15125 whole_archive_flag_spec=''
15126 fi
cristy73bd4a52010-10-05 11:24:23 +000015127 link_all_deplibs=yes
15128 allow_undefined_flag="$_lt_dar_allow_undefined"
15129 case $cc_basename in
15130 ifort*) _lt_dar_can_shared=yes ;;
15131 *) _lt_dar_can_shared=$GCC ;;
15132 esac
15133 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000015134 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000015135 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15136 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15137 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}"
15138 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}"
15139
15140 else
15141 ld_shlibs=no
15142 fi
15143
15144 ;;
15145
15146 dgux*)
15147 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15148 hardcode_libdir_flag_spec='-L$libdir'
15149 hardcode_shlibpath_var=no
15150 ;;
15151
cristy73bd4a52010-10-05 11:24:23 +000015152 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15153 # support. Future versions do this automatically, but an explicit c++rt0.o
15154 # does not break anything, and helps significantly (at the cost of a little
15155 # extra space).
15156 freebsd2.2*)
15157 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15158 hardcode_libdir_flag_spec='-R$libdir'
15159 hardcode_direct=yes
15160 hardcode_shlibpath_var=no
15161 ;;
15162
15163 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
cristy99bd5232011-12-07 14:38:20 +000015164 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000015165 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15166 hardcode_direct=yes
15167 hardcode_minus_L=yes
15168 hardcode_shlibpath_var=no
15169 ;;
15170
15171 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15172 freebsd* | dragonfly*)
cristyda16f162011-02-19 23:52:17 +000015173 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000015174 hardcode_libdir_flag_spec='-R$libdir'
15175 hardcode_direct=yes
15176 hardcode_shlibpath_var=no
15177 ;;
15178
15179 hpux9*)
15180 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000015181 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
cristy73bd4a52010-10-05 11:24:23 +000015182 else
15183 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'
15184 fi
15185 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15186 hardcode_libdir_separator=:
15187 hardcode_direct=yes
15188
15189 # hardcode_minus_L: Not really in the search PATH,
15190 # but as the default location of the library.
15191 hardcode_minus_L=yes
15192 export_dynamic_flag_spec='${wl}-E'
15193 ;;
15194
15195 hpux10*)
cristy0c60a692010-11-04 01:09:47 +000015196 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000015197 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000015198 else
15199 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15200 fi
15201 if test "$with_gnu_ld" = no; then
15202 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
cristy73bd4a52010-10-05 11:24:23 +000015203 hardcode_libdir_separator=:
15204 hardcode_direct=yes
15205 hardcode_direct_absolute=yes
15206 export_dynamic_flag_spec='${wl}-E'
15207 # hardcode_minus_L: Not really in the search PATH,
15208 # but as the default location of the library.
15209 hardcode_minus_L=yes
15210 fi
15211 ;;
15212
15213 hpux11*)
cristy0c60a692010-11-04 01:09:47 +000015214 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristy73bd4a52010-10-05 11:24:23 +000015215 case $host_cpu in
15216 hppa*64*)
15217 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15218 ;;
15219 ia64*)
cristyda16f162011-02-19 23:52:17 +000015220 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000015221 ;;
15222 *)
cristyda16f162011-02-19 23:52:17 +000015223 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000015224 ;;
15225 esac
15226 else
15227 case $host_cpu in
15228 hppa*64*)
15229 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15230 ;;
15231 ia64*)
15232 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15233 ;;
15234 *)
cristy0c60a692010-11-04 01:09:47 +000015235
15236 # Older versions of the 11.00 compiler do not understand -b yet
15237 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
15238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
15239$as_echo_n "checking if $CC understands -b... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015240if ${lt_cv_prog_compiler__b+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000015241 $as_echo_n "(cached) " >&6
15242else
15243 lt_cv_prog_compiler__b=no
15244 save_LDFLAGS="$LDFLAGS"
15245 LDFLAGS="$LDFLAGS -b"
15246 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15247 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15248 # The linker can only warn and ignore the option if not recognized
15249 # So say no if there are warnings
15250 if test -s conftest.err; then
15251 # Append any errors to the config.log.
15252 cat conftest.err 1>&5
15253 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15254 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15255 if diff conftest.exp conftest.er2 >/dev/null; then
15256 lt_cv_prog_compiler__b=yes
15257 fi
15258 else
15259 lt_cv_prog_compiler__b=yes
15260 fi
15261 fi
15262 $RM -r conftest*
15263 LDFLAGS="$save_LDFLAGS"
15264
15265fi
15266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
15267$as_echo "$lt_cv_prog_compiler__b" >&6; }
15268
15269if test x"$lt_cv_prog_compiler__b" = xyes; then
15270 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15271else
15272 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15273fi
15274
cristy73bd4a52010-10-05 11:24:23 +000015275 ;;
15276 esac
15277 fi
15278 if test "$with_gnu_ld" = no; then
15279 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15280 hardcode_libdir_separator=:
15281
15282 case $host_cpu in
15283 hppa*64*|ia64*)
15284 hardcode_direct=no
15285 hardcode_shlibpath_var=no
15286 ;;
15287 *)
15288 hardcode_direct=yes
15289 hardcode_direct_absolute=yes
15290 export_dynamic_flag_spec='${wl}-E'
15291
15292 # hardcode_minus_L: Not really in the search PATH,
15293 # but as the default location of the library.
15294 hardcode_minus_L=yes
15295 ;;
15296 esac
15297 fi
15298 ;;
15299
15300 irix5* | irix6* | nonstopux*)
15301 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000015302 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000015303 # Try to use the -exported_symbol ld option, if it does not
15304 # work, assume that -exports_file does not work either and
15305 # implicitly export all symbols.
cristyda16f162011-02-19 23:52:17 +000015306 # This should be the same for all languages, so no per-tag cache variable.
15307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
15308$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
15309if ${lt_cv_irix_exported_symbol+:} false; then :
15310 $as_echo_n "(cached) " >&6
15311else
15312 save_LDFLAGS="$LDFLAGS"
15313 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
15314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015315/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000015316int foo (void) { return 0; }
cristy73bd4a52010-10-05 11:24:23 +000015317_ACEOF
15318if ac_fn_c_try_link "$LINENO"; then :
cristyda16f162011-02-19 23:52:17 +000015319 lt_cv_irix_exported_symbol=yes
15320else
15321 lt_cv_irix_exported_symbol=no
cristy73bd4a52010-10-05 11:24:23 +000015322fi
15323rm -f core conftest.err conftest.$ac_objext \
15324 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000015325 LDFLAGS="$save_LDFLAGS"
15326fi
15327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
15328$as_echo "$lt_cv_irix_exported_symbol" >&6; }
15329 if test "$lt_cv_irix_exported_symbol" = yes; then
15330 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
15331 fi
cristy73bd4a52010-10-05 11:24:23 +000015332 else
cristy0c60a692010-11-04 01:09:47 +000015333 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
15334 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000015335 fi
15336 archive_cmds_need_lc='no'
15337 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15338 hardcode_libdir_separator=:
15339 inherit_rpath=yes
15340 link_all_deplibs=yes
15341 ;;
15342
15343 netbsd*)
15344 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15345 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15346 else
15347 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15348 fi
15349 hardcode_libdir_flag_spec='-R$libdir'
15350 hardcode_direct=yes
15351 hardcode_shlibpath_var=no
15352 ;;
15353
15354 newsos6)
15355 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15356 hardcode_direct=yes
15357 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15358 hardcode_libdir_separator=:
15359 hardcode_shlibpath_var=no
15360 ;;
15361
15362 *nto* | *qnx*)
15363 ;;
15364
15365 openbsd*)
15366 if test -f /usr/libexec/ld.so; then
15367 hardcode_direct=yes
15368 hardcode_shlibpath_var=no
15369 hardcode_direct_absolute=yes
15370 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15371 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15372 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15373 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15374 export_dynamic_flag_spec='${wl}-E'
15375 else
15376 case $host_os in
15377 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15378 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15379 hardcode_libdir_flag_spec='-R$libdir'
15380 ;;
15381 *)
15382 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15383 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15384 ;;
15385 esac
15386 fi
15387 else
15388 ld_shlibs=no
15389 fi
15390 ;;
15391
15392 os2*)
15393 hardcode_libdir_flag_spec='-L$libdir'
15394 hardcode_minus_L=yes
15395 allow_undefined_flag=unsupported
cristy0c60a692010-11-04 01:09:47 +000015396 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'
cristy73bd4a52010-10-05 11:24:23 +000015397 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15398 ;;
15399
15400 osf3*)
15401 if test "$GCC" = yes; then
15402 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000015403 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000015404 else
15405 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000015406 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000015407 fi
15408 archive_cmds_need_lc='no'
15409 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15410 hardcode_libdir_separator=:
15411 ;;
15412
15413 osf4* | osf5*) # as osf3* with the addition of -msym flag
15414 if test "$GCC" = yes; then
15415 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristyda16f162011-02-19 23:52:17 +000015416 archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000015417 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15418 else
15419 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000015420 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000015421 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~
cristy0c60a692010-11-04 01:09:47 +000015422 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
cristy73bd4a52010-10-05 11:24:23 +000015423
15424 # Both c and cxx compiler support -rpath directly
15425 hardcode_libdir_flag_spec='-rpath $libdir'
15426 fi
15427 archive_cmds_need_lc='no'
15428 hardcode_libdir_separator=:
15429 ;;
15430
15431 solaris*)
15432 no_undefined_flag=' -z defs'
15433 if test "$GCC" = yes; then
15434 wlarc='${wl}'
cristyda16f162011-02-19 23:52:17 +000015435 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000015436 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
cristyda16f162011-02-19 23:52:17 +000015437 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
cristy73bd4a52010-10-05 11:24:23 +000015438 else
15439 case `$CC -V 2>&1` in
15440 *"Compilers 5.0"*)
15441 wlarc=''
15442 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15443 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15444 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
15445 ;;
15446 *)
15447 wlarc='${wl}'
15448 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
15449 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15450 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15451 ;;
15452 esac
15453 fi
15454 hardcode_libdir_flag_spec='-R$libdir'
15455 hardcode_shlibpath_var=no
15456 case $host_os in
15457 solaris2.[0-5] | solaris2.[0-5].*) ;;
15458 *)
15459 # The compiler driver will combine and reorder linker options,
15460 # but understands `-z linker_flag'. GCC discards it without `$wl',
15461 # but is careful enough not to reorder.
15462 # Supported since Solaris 2.6 (maybe 2.5.1?)
15463 if test "$GCC" = yes; then
15464 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15465 else
15466 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
15467 fi
15468 ;;
15469 esac
15470 link_all_deplibs=yes
15471 ;;
15472
15473 sunos4*)
15474 if test "x$host_vendor" = xsequent; then
15475 # Use $CC to link under sequent, because it throws in some extra .o
15476 # files that make .init and .fini sections work.
15477 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15478 else
15479 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15480 fi
15481 hardcode_libdir_flag_spec='-L$libdir'
15482 hardcode_direct=yes
15483 hardcode_minus_L=yes
15484 hardcode_shlibpath_var=no
15485 ;;
15486
15487 sysv4)
15488 case $host_vendor in
15489 sni)
15490 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15491 hardcode_direct=yes # is this really true???
15492 ;;
15493 siemens)
15494 ## LD is ld it makes a PLAMLIB
15495 ## CC just makes a GrossModule.
15496 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15497 reload_cmds='$CC -r -o $output$reload_objs'
15498 hardcode_direct=no
15499 ;;
15500 motorola)
15501 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15502 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15503 ;;
15504 esac
15505 runpath_var='LD_RUN_PATH'
15506 hardcode_shlibpath_var=no
15507 ;;
15508
15509 sysv4.3*)
15510 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15511 hardcode_shlibpath_var=no
15512 export_dynamic_flag_spec='-Bexport'
15513 ;;
15514
15515 sysv4*MP*)
15516 if test -d /usr/nec; then
15517 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15518 hardcode_shlibpath_var=no
15519 runpath_var=LD_RUN_PATH
15520 hardcode_runpath_var=yes
15521 ld_shlibs=yes
15522 fi
15523 ;;
15524
15525 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15526 no_undefined_flag='${wl}-z,text'
15527 archive_cmds_need_lc=no
15528 hardcode_shlibpath_var=no
15529 runpath_var='LD_RUN_PATH'
15530
15531 if test "$GCC" = yes; then
15532 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15533 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15534 else
15535 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15536 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15537 fi
15538 ;;
15539
15540 sysv5* | sco3.2v5* | sco5v6*)
15541 # Note: We can NOT use -z defs as we might desire, because we do not
15542 # link with -lc, and that would cause any symbols used from libc to
15543 # always be unresolved, which means just about no library would
15544 # ever link correctly. If we're not using GNU ld we use -z text
15545 # though, which does catch some bad symbols but isn't as heavy-handed
15546 # as -z defs.
15547 no_undefined_flag='${wl}-z,text'
15548 allow_undefined_flag='${wl}-z,nodefs'
15549 archive_cmds_need_lc=no
15550 hardcode_shlibpath_var=no
15551 hardcode_libdir_flag_spec='${wl}-R,$libdir'
15552 hardcode_libdir_separator=':'
15553 link_all_deplibs=yes
15554 export_dynamic_flag_spec='${wl}-Bexport'
15555 runpath_var='LD_RUN_PATH'
15556
15557 if test "$GCC" = yes; then
15558 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15559 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15560 else
15561 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15562 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15563 fi
15564 ;;
15565
15566 uts4*)
15567 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15568 hardcode_libdir_flag_spec='-L$libdir'
15569 hardcode_shlibpath_var=no
15570 ;;
15571
15572 *)
15573 ld_shlibs=no
15574 ;;
15575 esac
15576
15577 if test x$host_vendor = xsni; then
15578 case $host in
15579 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15580 export_dynamic_flag_spec='${wl}-Blargedynsym'
15581 ;;
15582 esac
15583 fi
15584 fi
15585
15586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
15587$as_echo "$ld_shlibs" >&6; }
15588test "$ld_shlibs" = no && can_build_shared=no
15589
15590with_gnu_ld=$with_gnu_ld
15591
15592
15593
15594
15595
15596
15597
15598
15599
15600
15601
15602
15603
15604
15605
15606#
15607# Do we need to explicitly link libc?
15608#
15609case "x$archive_cmds_need_lc" in
15610x|xyes)
15611 # Assume -lc should be added
15612 archive_cmds_need_lc=yes
15613
15614 if test "$enable_shared" = yes && test "$GCC" = yes; then
15615 case $archive_cmds in
15616 *'~'*)
15617 # FIXME: we may have to deal with multi-command sequences.
15618 ;;
15619 '$CC '*)
15620 # Test whether the compiler implicitly links with -lc since on some
15621 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15622 # to ld, don't add -lc before -lgcc.
15623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15624$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015625if ${lt_cv_archive_cmds_need_lc+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000015626 $as_echo_n "(cached) " >&6
15627else
15628 $RM conftest*
15629 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015630
cristy0c60a692010-11-04 01:09:47 +000015631 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000015632 (eval $ac_compile) 2>&5
15633 ac_status=$?
15634 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15635 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000015636 soname=conftest
15637 lib=conftest
15638 libobjs=conftest.$ac_objext
15639 deplibs=
15640 wl=$lt_prog_compiler_wl
15641 pic_flag=$lt_prog_compiler_pic
15642 compiler_flags=-v
15643 linker_flags=-v
15644 verstring=
15645 output_objdir=.
15646 libname=conftest
15647 lt_save_allow_undefined_flag=$allow_undefined_flag
15648 allow_undefined_flag=
15649 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000015650 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15651 ac_status=$?
15652 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15653 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000015654 then
15655 lt_cv_archive_cmds_need_lc=no
15656 else
15657 lt_cv_archive_cmds_need_lc=yes
15658 fi
15659 allow_undefined_flag=$lt_save_allow_undefined_flag
15660 else
15661 cat conftest.err 1>&5
15662 fi
15663 $RM conftest*
15664
15665fi
15666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
15667$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
15668 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
cristy73bd4a52010-10-05 11:24:23 +000015669 ;;
15670 esac
15671 fi
15672 ;;
15673esac
15674
15675
15676
15677
15678
15679
15680
15681
15682
15683
15684
15685
15686
15687
15688
15689
15690
15691
15692
15693
15694
15695
15696
15697
15698
15699
15700
15701
15702
15703
15704
15705
15706
15707
15708
15709
15710
15711
15712
15713
15714
15715
15716
15717
15718
15719
15720
15721
15722
15723
15724
15725
15726
15727
15728
15729
15730
15731
15732
15733
15734
15735
15736
15737
15738
15739
15740
15741
15742
15743
15744
15745
15746
15747
15748
15749
15750
15751
15752
15753
15754
15755
15756
15757
15758
15759
15760
15761
15762
15763
15764
15765
15766
15767
15768
15769
15770
15771
15772
15773
15774
15775
15776
15777
15778
15779
15780
15781
15782
15783
15784
15785
15786
15787
15788
15789
15790
15791
15792
15793
15794
15795
15796
15797
15798
15799
15800
15801
15802
15803
15804
15805
15806
15807
15808
15809
15810
15811
15812
15813
15814
15815
15816
15817
15818
15819
15820
15821
15822
15823
15824
15825
cristy73bd4a52010-10-05 11:24:23 +000015826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15827$as_echo_n "checking dynamic linker characteristics... " >&6; }
15828
15829if test "$GCC" = yes; then
15830 case $host_os in
15831 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
15832 *) lt_awk_arg="/^libraries:/" ;;
15833 esac
cristy0c60a692010-11-04 01:09:47 +000015834 case $host_os in
15835 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
15836 *) lt_sed_strip_eq="s,=/,/,g" ;;
15837 esac
15838 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
15839 case $lt_search_path_spec in
15840 *\;*)
cristy73bd4a52010-10-05 11:24:23 +000015841 # if the path contains ";" then we assume it to be the separator
15842 # otherwise default to the standard path separator (i.e. ":") - it is
15843 # assumed that no part of a normal pathname contains ";" but that should
15844 # okay in the real world where ";" in dirpaths is itself problematic.
cristy0c60a692010-11-04 01:09:47 +000015845 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
15846 ;;
15847 *)
15848 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
15849 ;;
15850 esac
cristy73bd4a52010-10-05 11:24:23 +000015851 # Ok, now we have the path, separated by spaces, we can step through it
15852 # and add multilib dir if necessary.
15853 lt_tmp_lt_search_path_spec=
15854 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
15855 for lt_sys_path in $lt_search_path_spec; do
15856 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
15857 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
15858 else
15859 test -d "$lt_sys_path" && \
15860 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
15861 fi
15862 done
cristy0c60a692010-11-04 01:09:47 +000015863 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
cristy73bd4a52010-10-05 11:24:23 +000015864BEGIN {RS=" "; FS="/|\n";} {
15865 lt_foo="";
15866 lt_count=0;
15867 for (lt_i = NF; lt_i > 0; lt_i--) {
15868 if ($lt_i != "" && $lt_i != ".") {
15869 if ($lt_i == "..") {
15870 lt_count++;
15871 } else {
15872 if (lt_count == 0) {
15873 lt_foo="/" $lt_i lt_foo;
15874 } else {
15875 lt_count--;
15876 }
15877 }
15878 }
15879 }
15880 if (lt_foo != "") { lt_freq[lt_foo]++; }
15881 if (lt_freq[lt_foo] == 1) { print lt_foo; }
15882}'`
cristy0c60a692010-11-04 01:09:47 +000015883 # AWK program above erroneously prepends '/' to C:/dos/paths
15884 # for these hosts.
15885 case $host_os in
15886 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
15887 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
15888 esac
15889 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
cristy73bd4a52010-10-05 11:24:23 +000015890else
15891 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15892fi
15893library_names_spec=
15894libname_spec='lib$name'
15895soname_spec=
15896shrext_cmds=".so"
15897postinstall_cmds=
15898postuninstall_cmds=
15899finish_cmds=
15900finish_eval=
15901shlibpath_var=
15902shlibpath_overrides_runpath=unknown
15903version_type=none
15904dynamic_linker="$host_os ld.so"
15905sys_lib_dlsearch_path_spec="/lib /usr/lib"
15906need_lib_prefix=unknown
15907hardcode_into_libs=no
15908
15909# when you set need_version to no, make sure it does not cause -set_version
15910# flags to be left without arguments
15911need_version=unknown
15912
15913case $host_os in
15914aix3*)
cristy99bd5232011-12-07 14:38:20 +000015915 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000015916 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15917 shlibpath_var=LIBPATH
15918
15919 # AIX 3 has no versioning support, so we append a major version to the name.
15920 soname_spec='${libname}${release}${shared_ext}$major'
15921 ;;
15922
15923aix[4-9]*)
cristy99bd5232011-12-07 14:38:20 +000015924 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000015925 need_lib_prefix=no
15926 need_version=no
15927 hardcode_into_libs=yes
15928 if test "$host_cpu" = ia64; then
15929 # AIX 5 supports IA64
15930 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15931 shlibpath_var=LD_LIBRARY_PATH
15932 else
15933 # With GCC up to 2.95.x, collect2 would create an import file
15934 # for dependence libraries. The import file would start with
15935 # the line `#! .'. This would cause the generated library to
15936 # depend on `.', always an invalid library. This was fixed in
15937 # development snapshots of GCC prior to 3.0.
15938 case $host_os in
15939 aix4 | aix4.[01] | aix4.[01].*)
15940 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15941 echo ' yes '
15942 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15943 :
15944 else
15945 can_build_shared=no
15946 fi
15947 ;;
15948 esac
15949 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15950 # soname into executable. Probably we can add versioning support to
15951 # collect2, so additional links can be useful in future.
15952 if test "$aix_use_runtimelinking" = yes; then
15953 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15954 # instead of lib<name>.a to let people know that these are not
15955 # typical AIX shared libraries.
15956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15957 else
15958 # We preserve .a as extension for shared libraries through AIX4.2
15959 # and later when we are not doing run time linking.
15960 library_names_spec='${libname}${release}.a $libname.a'
15961 soname_spec='${libname}${release}${shared_ext}$major'
15962 fi
15963 shlibpath_var=LIBPATH
15964 fi
15965 ;;
15966
15967amigaos*)
15968 case $host_cpu in
15969 powerpc)
15970 # Since July 2007 AmigaOS4 officially supports .so libraries.
15971 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15973 ;;
15974 m68k)
15975 library_names_spec='$libname.ixlibrary $libname.a'
15976 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000015977 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
cristy73bd4a52010-10-05 11:24:23 +000015978 ;;
15979 esac
15980 ;;
15981
15982beos*)
15983 library_names_spec='${libname}${shared_ext}'
15984 dynamic_linker="$host_os ld.so"
15985 shlibpath_var=LIBRARY_PATH
15986 ;;
15987
15988bsdi[45]*)
cristy99bd5232011-12-07 14:38:20 +000015989 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000015990 need_version=no
15991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15992 soname_spec='${libname}${release}${shared_ext}$major'
15993 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15994 shlibpath_var=LD_LIBRARY_PATH
15995 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15996 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15997 # the default ld.so.conf also contains /usr/contrib/lib and
15998 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15999 # libtool to hard-code these into programs
16000 ;;
16001
16002cygwin* | mingw* | pw32* | cegcc*)
16003 version_type=windows
16004 shrext_cmds=".dll"
16005 need_version=no
16006 need_lib_prefix=no
16007
cristyda16f162011-02-19 23:52:17 +000016008 case $GCC,$cc_basename in
16009 yes,*)
16010 # gcc
cristy73bd4a52010-10-05 11:24:23 +000016011 library_names_spec='$libname.dll.a'
16012 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16013 postinstall_cmds='base_file=`basename \${file}`~
16014 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16015 dldir=$destdir/`dirname \$dlpath`~
16016 test -d \$dldir || mkdir -p \$dldir~
16017 $install_prog $dir/$dlname \$dldir/$dlname~
16018 chmod a+x \$dldir/$dlname~
16019 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16020 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16021 fi'
16022 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16023 dlpath=$dir/\$dldll~
16024 $RM \$dlpath'
16025 shlibpath_overrides_runpath=yes
16026
16027 case $host_os in
16028 cygwin*)
16029 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16030 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000016031
16032 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
cristy73bd4a52010-10-05 11:24:23 +000016033 ;;
16034 mingw* | cegcc*)
16035 # MinGW DLLs use traditional 'lib' prefix
16036 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000016037 ;;
16038 pw32*)
16039 # pw32 DLLs use 'pw' prefix rather than 'lib'
16040 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16041 ;;
16042 esac
cristyda16f162011-02-19 23:52:17 +000016043 dynamic_linker='Win32 ld.exe'
16044 ;;
16045
16046 *,cl*)
16047 # Native MSVC
16048 libname_spec='$name'
16049 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16050 library_names_spec='${libname}.dll.lib'
16051
16052 case $build_os in
16053 mingw*)
16054 sys_lib_search_path_spec=
16055 lt_save_ifs=$IFS
16056 IFS=';'
16057 for lt_path in $LIB
16058 do
16059 IFS=$lt_save_ifs
16060 # Let DOS variable expansion print the short 8.3 style file name.
16061 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16062 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16063 done
16064 IFS=$lt_save_ifs
16065 # Convert to MSYS style.
16066 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16067 ;;
16068 cygwin*)
16069 # Convert to unix form, then to dos form, then back to unix form
16070 # but this time dos style (no spaces!) so that the unix form looks
16071 # like /cygdrive/c/PROGRA~1:/cygdr...
16072 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16073 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16074 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16075 ;;
16076 *)
16077 sys_lib_search_path_spec="$LIB"
16078 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16079 # It is most probably a Windows format PATH.
16080 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16081 else
16082 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16083 fi
16084 # FIXME: find the short name or the path components, as spaces are
16085 # common. (e.g. "Program Files" -> "PROGRA~1")
16086 ;;
16087 esac
16088
16089 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16090 postinstall_cmds='base_file=`basename \${file}`~
16091 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16092 dldir=$destdir/`dirname \$dlpath`~
16093 test -d \$dldir || mkdir -p \$dldir~
16094 $install_prog $dir/$dlname \$dldir/$dlname'
16095 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16096 dlpath=$dir/\$dldll~
16097 $RM \$dlpath'
16098 shlibpath_overrides_runpath=yes
16099 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000016100 ;;
16101
16102 *)
cristyda16f162011-02-19 23:52:17 +000016103 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000016104 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000016105 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000016106 ;;
16107 esac
cristy73bd4a52010-10-05 11:24:23 +000016108 # FIXME: first we should search . and the directory the executable is in
16109 shlibpath_var=PATH
16110 ;;
16111
16112darwin* | rhapsody*)
16113 dynamic_linker="$host_os dyld"
16114 version_type=darwin
16115 need_lib_prefix=no
16116 need_version=no
16117 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16118 soname_spec='${libname}${release}${major}$shared_ext'
16119 shlibpath_overrides_runpath=yes
16120 shlibpath_var=DYLD_LIBRARY_PATH
16121 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16122
16123 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16124 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16125 ;;
16126
16127dgux*)
cristy99bd5232011-12-07 14:38:20 +000016128 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016129 need_lib_prefix=no
16130 need_version=no
16131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16132 soname_spec='${libname}${release}${shared_ext}$major'
16133 shlibpath_var=LD_LIBRARY_PATH
16134 ;;
16135
cristy73bd4a52010-10-05 11:24:23 +000016136freebsd* | dragonfly*)
16137 # DragonFly does not have aout. When/if they implement a new
16138 # versioning mechanism, adjust this.
16139 if test -x /usr/bin/objformat; then
16140 objformat=`/usr/bin/objformat`
16141 else
16142 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000016143 freebsd[23].*) objformat=aout ;;
cristy73bd4a52010-10-05 11:24:23 +000016144 *) objformat=elf ;;
16145 esac
16146 fi
16147 version_type=freebsd-$objformat
16148 case $version_type in
16149 freebsd-elf*)
16150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16151 need_version=no
16152 need_lib_prefix=no
16153 ;;
16154 freebsd-*)
16155 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16156 need_version=yes
16157 ;;
16158 esac
16159 shlibpath_var=LD_LIBRARY_PATH
16160 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000016161 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000016162 shlibpath_overrides_runpath=yes
16163 ;;
16164 freebsd3.[01]* | freebsdelf3.[01]*)
16165 shlibpath_overrides_runpath=yes
16166 hardcode_into_libs=yes
16167 ;;
16168 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16169 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16170 shlibpath_overrides_runpath=no
16171 hardcode_into_libs=yes
16172 ;;
16173 *) # from 4.6 on, and DragonFly
16174 shlibpath_overrides_runpath=yes
16175 hardcode_into_libs=yes
16176 ;;
16177 esac
16178 ;;
16179
16180gnu*)
cristy99bd5232011-12-07 14:38:20 +000016181 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016182 need_lib_prefix=no
16183 need_version=no
16184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16185 soname_spec='${libname}${release}${shared_ext}$major'
16186 shlibpath_var=LD_LIBRARY_PATH
cristy99bd5232011-12-07 14:38:20 +000016187 shlibpath_overrides_runpath=no
cristy73bd4a52010-10-05 11:24:23 +000016188 hardcode_into_libs=yes
16189 ;;
16190
cristy0c60a692010-11-04 01:09:47 +000016191haiku*)
cristy99bd5232011-12-07 14:38:20 +000016192 version_type=linux # correct to gnu/linux during the next big refactor
cristy0c60a692010-11-04 01:09:47 +000016193 need_lib_prefix=no
16194 need_version=no
16195 dynamic_linker="$host_os runtime_loader"
16196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16197 soname_spec='${libname}${release}${shared_ext}$major'
16198 shlibpath_var=LIBRARY_PATH
16199 shlibpath_overrides_runpath=yes
16200 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16201 hardcode_into_libs=yes
16202 ;;
16203
cristy73bd4a52010-10-05 11:24:23 +000016204hpux9* | hpux10* | hpux11*)
16205 # Give a soname corresponding to the major version so that dld.sl refuses to
16206 # link against other versions.
16207 version_type=sunos
16208 need_lib_prefix=no
16209 need_version=no
16210 case $host_cpu in
16211 ia64*)
16212 shrext_cmds='.so'
16213 hardcode_into_libs=yes
16214 dynamic_linker="$host_os dld.so"
16215 shlibpath_var=LD_LIBRARY_PATH
16216 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16218 soname_spec='${libname}${release}${shared_ext}$major'
16219 if test "X$HPUX_IA64_MODE" = X32; then
16220 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16221 else
16222 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16223 fi
16224 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16225 ;;
16226 hppa*64*)
16227 shrext_cmds='.sl'
16228 hardcode_into_libs=yes
16229 dynamic_linker="$host_os dld.sl"
16230 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16231 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16233 soname_spec='${libname}${release}${shared_ext}$major'
16234 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16235 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16236 ;;
16237 *)
16238 shrext_cmds='.sl'
16239 dynamic_linker="$host_os dld.sl"
16240 shlibpath_var=SHLIB_PATH
16241 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16243 soname_spec='${libname}${release}${shared_ext}$major'
16244 ;;
16245 esac
cristy0c60a692010-11-04 01:09:47 +000016246 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000016247 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000016248 # or fails outright, so override atomically:
16249 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000016250 ;;
16251
16252interix[3-9]*)
cristy99bd5232011-12-07 14:38:20 +000016253 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016254 need_lib_prefix=no
16255 need_version=no
16256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16257 soname_spec='${libname}${release}${shared_ext}$major'
16258 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16259 shlibpath_var=LD_LIBRARY_PATH
16260 shlibpath_overrides_runpath=no
16261 hardcode_into_libs=yes
16262 ;;
16263
16264irix5* | irix6* | nonstopux*)
16265 case $host_os in
16266 nonstopux*) version_type=nonstopux ;;
16267 *)
16268 if test "$lt_cv_prog_gnu_ld" = yes; then
cristy99bd5232011-12-07 14:38:20 +000016269 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016270 else
16271 version_type=irix
16272 fi ;;
16273 esac
16274 need_lib_prefix=no
16275 need_version=no
16276 soname_spec='${libname}${release}${shared_ext}$major'
16277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16278 case $host_os in
16279 irix5* | nonstopux*)
16280 libsuff= shlibsuff=
16281 ;;
16282 *)
16283 case $LD in # libtool.m4 will add one of these switches to LD
16284 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16285 libsuff= shlibsuff= libmagic=32-bit;;
16286 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16287 libsuff=32 shlibsuff=N32 libmagic=N32;;
16288 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16289 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16290 *) libsuff= shlibsuff= libmagic=never-match;;
16291 esac
16292 ;;
16293 esac
16294 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16295 shlibpath_overrides_runpath=no
16296 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16297 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16298 hardcode_into_libs=yes
16299 ;;
16300
16301# No shared lib support for Linux oldld, aout, or coff.
16302linux*oldld* | linux*aout* | linux*coff*)
16303 dynamic_linker=no
16304 ;;
16305
cristy99bd5232011-12-07 14:38:20 +000016306# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000016307linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy99bd5232011-12-07 14:38:20 +000016308 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016309 need_lib_prefix=no
16310 need_version=no
16311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16312 soname_spec='${libname}${release}${shared_ext}$major'
16313 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16314 shlibpath_var=LD_LIBRARY_PATH
16315 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000016316
cristy73bd4a52010-10-05 11:24:23 +000016317 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000016318 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000016319 $as_echo_n "(cached) " >&6
16320else
16321 lt_cv_shlibpath_overrides_runpath=no
16322 save_LDFLAGS=$LDFLAGS
16323 save_libdir=$libdir
16324 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
16325 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
16326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000016327/* end confdefs.h. */
16328
16329int
16330main ()
16331{
16332
16333 ;
16334 return 0;
16335}
16336_ACEOF
16337if ac_fn_c_try_link "$LINENO"; then :
16338 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000016339 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000016340fi
16341fi
16342rm -f core conftest.err conftest.$ac_objext \
16343 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016344 LDFLAGS=$save_LDFLAGS
16345 libdir=$save_libdir
16346
16347fi
16348
16349 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000016350
16351 # This implies no fast_install, which is unacceptable.
16352 # Some rework will be needed to allow for fast_install
16353 # before this can be enabled.
16354 hardcode_into_libs=yes
16355
16356 # Add ABI-specific directories to the system library path.
16357 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
16358
16359 # Append ld.so.conf contents to the search path
16360 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000016361 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;s/"//g;/^$/d' | tr '\n' ' '`
cristy73bd4a52010-10-05 11:24:23 +000016362 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000016363
cristy73bd4a52010-10-05 11:24:23 +000016364 fi
16365
16366 # We used to test for /lib/ld.so.1 and disable shared libraries on
16367 # powerpc, because MkLinux only supported shared libraries with the
16368 # GNU dynamic linker. Since this was broken with cross compilers,
16369 # most powerpc-linux boxes support dynamic linking these days and
16370 # people can always --disable-shared, the test was removed, and we
16371 # assume the GNU/Linux dynamic linker is in use.
16372 dynamic_linker='GNU/Linux ld.so'
16373 ;;
16374
16375netbsd*)
16376 version_type=sunos
16377 need_lib_prefix=no
16378 need_version=no
16379 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16381 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16382 dynamic_linker='NetBSD (a.out) ld.so'
16383 else
16384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16385 soname_spec='${libname}${release}${shared_ext}$major'
16386 dynamic_linker='NetBSD ld.elf_so'
16387 fi
16388 shlibpath_var=LD_LIBRARY_PATH
16389 shlibpath_overrides_runpath=yes
16390 hardcode_into_libs=yes
16391 ;;
16392
16393newsos6)
cristy99bd5232011-12-07 14:38:20 +000016394 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16396 shlibpath_var=LD_LIBRARY_PATH
16397 shlibpath_overrides_runpath=yes
16398 ;;
16399
16400*nto* | *qnx*)
16401 version_type=qnx
16402 need_lib_prefix=no
16403 need_version=no
16404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16405 soname_spec='${libname}${release}${shared_ext}$major'
16406 shlibpath_var=LD_LIBRARY_PATH
16407 shlibpath_overrides_runpath=no
16408 hardcode_into_libs=yes
16409 dynamic_linker='ldqnx.so'
16410 ;;
16411
16412openbsd*)
16413 version_type=sunos
16414 sys_lib_dlsearch_path_spec="/usr/lib"
16415 need_lib_prefix=no
16416 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16417 case $host_os in
16418 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16419 *) need_version=no ;;
16420 esac
16421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16422 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16423 shlibpath_var=LD_LIBRARY_PATH
16424 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16425 case $host_os in
16426 openbsd2.[89] | openbsd2.[89].*)
16427 shlibpath_overrides_runpath=no
16428 ;;
16429 *)
16430 shlibpath_overrides_runpath=yes
16431 ;;
16432 esac
16433 else
16434 shlibpath_overrides_runpath=yes
16435 fi
16436 ;;
16437
16438os2*)
16439 libname_spec='$name'
16440 shrext_cmds=".dll"
16441 need_lib_prefix=no
16442 library_names_spec='$libname${shared_ext} $libname.a'
16443 dynamic_linker='OS/2 ld.exe'
16444 shlibpath_var=LIBPATH
16445 ;;
16446
16447osf3* | osf4* | osf5*)
16448 version_type=osf
16449 need_lib_prefix=no
16450 need_version=no
16451 soname_spec='${libname}${release}${shared_ext}$major'
16452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16453 shlibpath_var=LD_LIBRARY_PATH
16454 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16455 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16456 ;;
16457
16458rdos*)
16459 dynamic_linker=no
16460 ;;
16461
16462solaris*)
cristy99bd5232011-12-07 14:38:20 +000016463 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016464 need_lib_prefix=no
16465 need_version=no
16466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16467 soname_spec='${libname}${release}${shared_ext}$major'
16468 shlibpath_var=LD_LIBRARY_PATH
16469 shlibpath_overrides_runpath=yes
16470 hardcode_into_libs=yes
16471 # ldd complains unless libraries are executable
16472 postinstall_cmds='chmod +x $lib'
16473 ;;
16474
16475sunos4*)
16476 version_type=sunos
16477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16478 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16479 shlibpath_var=LD_LIBRARY_PATH
16480 shlibpath_overrides_runpath=yes
16481 if test "$with_gnu_ld" = yes; then
16482 need_lib_prefix=no
16483 fi
16484 need_version=yes
16485 ;;
16486
16487sysv4 | sysv4.3*)
cristy99bd5232011-12-07 14:38:20 +000016488 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16490 soname_spec='${libname}${release}${shared_ext}$major'
16491 shlibpath_var=LD_LIBRARY_PATH
16492 case $host_vendor in
16493 sni)
16494 shlibpath_overrides_runpath=no
16495 need_lib_prefix=no
16496 runpath_var=LD_RUN_PATH
16497 ;;
16498 siemens)
16499 need_lib_prefix=no
16500 ;;
16501 motorola)
16502 need_lib_prefix=no
16503 need_version=no
16504 shlibpath_overrides_runpath=no
16505 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16506 ;;
16507 esac
16508 ;;
16509
16510sysv4*MP*)
16511 if test -d /usr/nec ;then
cristy99bd5232011-12-07 14:38:20 +000016512 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016513 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16514 soname_spec='$libname${shared_ext}.$major'
16515 shlibpath_var=LD_LIBRARY_PATH
16516 fi
16517 ;;
16518
16519sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16520 version_type=freebsd-elf
16521 need_lib_prefix=no
16522 need_version=no
16523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16524 soname_spec='${libname}${release}${shared_ext}$major'
16525 shlibpath_var=LD_LIBRARY_PATH
16526 shlibpath_overrides_runpath=yes
16527 hardcode_into_libs=yes
16528 if test "$with_gnu_ld" = yes; then
16529 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16530 else
16531 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16532 case $host_os in
16533 sco3.2v5*)
16534 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16535 ;;
16536 esac
16537 fi
16538 sys_lib_dlsearch_path_spec='/usr/lib'
16539 ;;
16540
16541tpf*)
16542 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
cristy99bd5232011-12-07 14:38:20 +000016543 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016544 need_lib_prefix=no
16545 need_version=no
16546 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16547 shlibpath_var=LD_LIBRARY_PATH
16548 shlibpath_overrides_runpath=no
16549 hardcode_into_libs=yes
16550 ;;
16551
16552uts4*)
cristy99bd5232011-12-07 14:38:20 +000016553 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16555 soname_spec='${libname}${release}${shared_ext}$major'
16556 shlibpath_var=LD_LIBRARY_PATH
16557 ;;
16558
16559*)
16560 dynamic_linker=no
16561 ;;
16562esac
16563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16564$as_echo "$dynamic_linker" >&6; }
16565test "$dynamic_linker" = no && can_build_shared=no
16566
16567variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16568if test "$GCC" = yes; then
16569 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16570fi
16571
16572if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16573 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16574fi
16575if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16576 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16577fi
16578
16579
16580
16581
16582
16583
16584
16585
16586
16587
16588
16589
16590
16591
16592
16593
16594
16595
16596
16597
16598
16599
16600
16601
16602
16603
16604
16605
16606
16607
16608
16609
16610
16611
16612
16613
16614
16615
16616
16617
16618
16619
16620
16621
16622
16623
16624
16625
16626
16627
16628
16629
16630
16631
16632
16633
16634
16635
16636
16637
16638
16639
16640
16641
16642
16643
16644
16645
16646
16647
16648
16649
16650
16651
16652
16653
16654
16655
16656
16657
16658
16659
16660
16661
16662
16663
16664
cristy0c60a692010-11-04 01:09:47 +000016665
16666
16667
16668
16669
cristy73bd4a52010-10-05 11:24:23 +000016670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16671$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16672hardcode_action=
16673if test -n "$hardcode_libdir_flag_spec" ||
16674 test -n "$runpath_var" ||
16675 test "X$hardcode_automatic" = "Xyes" ; then
16676
16677 # We can hardcode non-existent directories.
16678 if test "$hardcode_direct" != no &&
16679 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16680 # have to relink, otherwise we might link with an installed library
16681 # when we should be linking with a yet-to-be-installed one
16682 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
16683 test "$hardcode_minus_L" != no; then
16684 # Linking always hardcodes the temporary library directory.
16685 hardcode_action=relink
16686 else
16687 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16688 hardcode_action=immediate
16689 fi
16690else
16691 # We cannot hardcode anything, or else we can only hardcode existing
16692 # directories.
16693 hardcode_action=unsupported
16694fi
16695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
16696$as_echo "$hardcode_action" >&6; }
16697
16698if test "$hardcode_action" = relink ||
16699 test "$inherit_rpath" = yes; then
16700 # Fast installation is not supported
16701 enable_fast_install=no
16702elif test "$shlibpath_overrides_runpath" = yes ||
16703 test "$enable_shared" = no; then
16704 # Fast installation is not necessary
16705 enable_fast_install=needless
16706fi
16707
16708
16709
16710
16711
16712
16713 if test "x$enable_dlopen" != xyes; then
16714 enable_dlopen=unknown
16715 enable_dlopen_self=unknown
16716 enable_dlopen_self_static=unknown
16717else
16718 lt_cv_dlopen=no
16719 lt_cv_dlopen_libs=
16720
16721 case $host_os in
16722 beos*)
16723 lt_cv_dlopen="load_add_on"
16724 lt_cv_dlopen_libs=
16725 lt_cv_dlopen_self=yes
16726 ;;
16727
16728 mingw* | pw32* | cegcc*)
16729 lt_cv_dlopen="LoadLibrary"
16730 lt_cv_dlopen_libs=
16731 ;;
16732
16733 cygwin*)
16734 lt_cv_dlopen="dlopen"
16735 lt_cv_dlopen_libs=
16736 ;;
16737
16738 darwin*)
16739 # if libdl is installed we need to link against it
16740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16741$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016742if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016743 $as_echo_n "(cached) " >&6
16744else
16745 ac_check_lib_save_LIBS=$LIBS
16746LIBS="-ldl $LIBS"
16747cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16748/* end confdefs.h. */
16749
16750/* Override any GCC internal prototype to avoid an error.
16751 Use char because int might match the return type of a GCC
16752 builtin and then its argument prototype would still apply. */
16753#ifdef __cplusplus
16754extern "C"
16755#endif
16756char dlopen ();
16757int
16758main ()
16759{
16760return dlopen ();
16761 ;
16762 return 0;
16763}
16764_ACEOF
16765if ac_fn_c_try_link "$LINENO"; then :
16766 ac_cv_lib_dl_dlopen=yes
16767else
16768 ac_cv_lib_dl_dlopen=no
16769fi
16770rm -f core conftest.err conftest.$ac_objext \
16771 conftest$ac_exeext conftest.$ac_ext
16772LIBS=$ac_check_lib_save_LIBS
16773fi
16774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16775$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000016776if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016777 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16778else
16779
16780 lt_cv_dlopen="dyld"
16781 lt_cv_dlopen_libs=
16782 lt_cv_dlopen_self=yes
16783
16784fi
16785
16786 ;;
16787
16788 *)
16789 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
cristyda16f162011-02-19 23:52:17 +000016790if test "x$ac_cv_func_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016791 lt_cv_dlopen="shl_load"
16792else
16793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
16794$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016795if ${ac_cv_lib_dld_shl_load+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016796 $as_echo_n "(cached) " >&6
16797else
16798 ac_check_lib_save_LIBS=$LIBS
16799LIBS="-ldld $LIBS"
16800cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16801/* end confdefs.h. */
16802
16803/* Override any GCC internal prototype to avoid an error.
16804 Use char because int might match the return type of a GCC
16805 builtin and then its argument prototype would still apply. */
16806#ifdef __cplusplus
16807extern "C"
16808#endif
16809char shl_load ();
16810int
16811main ()
16812{
16813return shl_load ();
16814 ;
16815 return 0;
16816}
16817_ACEOF
16818if ac_fn_c_try_link "$LINENO"; then :
16819 ac_cv_lib_dld_shl_load=yes
16820else
16821 ac_cv_lib_dld_shl_load=no
16822fi
16823rm -f core conftest.err conftest.$ac_objext \
16824 conftest$ac_exeext conftest.$ac_ext
16825LIBS=$ac_check_lib_save_LIBS
16826fi
16827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
16828$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristyda16f162011-02-19 23:52:17 +000016829if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016830 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
16831else
16832 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
cristyda16f162011-02-19 23:52:17 +000016833if test "x$ac_cv_func_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016834 lt_cv_dlopen="dlopen"
16835else
16836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16837$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016838if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016839 $as_echo_n "(cached) " >&6
16840else
16841 ac_check_lib_save_LIBS=$LIBS
16842LIBS="-ldl $LIBS"
16843cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16844/* end confdefs.h. */
16845
16846/* Override any GCC internal prototype to avoid an error.
16847 Use char because int might match the return type of a GCC
16848 builtin and then its argument prototype would still apply. */
16849#ifdef __cplusplus
16850extern "C"
16851#endif
16852char dlopen ();
16853int
16854main ()
16855{
16856return dlopen ();
16857 ;
16858 return 0;
16859}
16860_ACEOF
16861if ac_fn_c_try_link "$LINENO"; then :
16862 ac_cv_lib_dl_dlopen=yes
16863else
16864 ac_cv_lib_dl_dlopen=no
16865fi
16866rm -f core conftest.err conftest.$ac_objext \
16867 conftest$ac_exeext conftest.$ac_ext
16868LIBS=$ac_check_lib_save_LIBS
16869fi
16870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16871$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000016872if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016873 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16874else
16875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
16876$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016877if ${ac_cv_lib_svld_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016878 $as_echo_n "(cached) " >&6
16879else
16880 ac_check_lib_save_LIBS=$LIBS
16881LIBS="-lsvld $LIBS"
16882cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16883/* end confdefs.h. */
16884
16885/* Override any GCC internal prototype to avoid an error.
16886 Use char because int might match the return type of a GCC
16887 builtin and then its argument prototype would still apply. */
16888#ifdef __cplusplus
16889extern "C"
16890#endif
16891char dlopen ();
16892int
16893main ()
16894{
16895return dlopen ();
16896 ;
16897 return 0;
16898}
16899_ACEOF
16900if ac_fn_c_try_link "$LINENO"; then :
16901 ac_cv_lib_svld_dlopen=yes
16902else
16903 ac_cv_lib_svld_dlopen=no
16904fi
16905rm -f core conftest.err conftest.$ac_objext \
16906 conftest$ac_exeext conftest.$ac_ext
16907LIBS=$ac_check_lib_save_LIBS
16908fi
16909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
16910$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000016911if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016912 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16913else
16914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
16915$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016916if ${ac_cv_lib_dld_dld_link+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016917 $as_echo_n "(cached) " >&6
16918else
16919 ac_check_lib_save_LIBS=$LIBS
16920LIBS="-ldld $LIBS"
16921cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16922/* end confdefs.h. */
16923
16924/* Override any GCC internal prototype to avoid an error.
16925 Use char because int might match the return type of a GCC
16926 builtin and then its argument prototype would still apply. */
16927#ifdef __cplusplus
16928extern "C"
16929#endif
16930char dld_link ();
16931int
16932main ()
16933{
16934return dld_link ();
16935 ;
16936 return 0;
16937}
16938_ACEOF
16939if ac_fn_c_try_link "$LINENO"; then :
16940 ac_cv_lib_dld_dld_link=yes
16941else
16942 ac_cv_lib_dld_dld_link=no
16943fi
16944rm -f core conftest.err conftest.$ac_objext \
16945 conftest$ac_exeext conftest.$ac_ext
16946LIBS=$ac_check_lib_save_LIBS
16947fi
16948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
16949$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristyda16f162011-02-19 23:52:17 +000016950if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016951 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
16952fi
16953
16954
16955fi
16956
16957
16958fi
16959
16960
16961fi
16962
16963
16964fi
16965
16966
16967fi
16968
16969 ;;
16970 esac
16971
16972 if test "x$lt_cv_dlopen" != xno; then
16973 enable_dlopen=yes
16974 else
16975 enable_dlopen=no
16976 fi
16977
16978 case $lt_cv_dlopen in
16979 dlopen)
16980 save_CPPFLAGS="$CPPFLAGS"
16981 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16982
16983 save_LDFLAGS="$LDFLAGS"
16984 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16985
16986 save_LIBS="$LIBS"
16987 LIBS="$lt_cv_dlopen_libs $LIBS"
16988
16989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
16990$as_echo_n "checking whether a program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016991if ${lt_cv_dlopen_self+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016992 $as_echo_n "(cached) " >&6
16993else
16994 if test "$cross_compiling" = yes; then :
16995 lt_cv_dlopen_self=cross
16996else
16997 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16998 lt_status=$lt_dlunknown
16999 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000017000#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000017001#include "confdefs.h"
17002
17003#if HAVE_DLFCN_H
17004#include <dlfcn.h>
17005#endif
17006
17007#include <stdio.h>
17008
17009#ifdef RTLD_GLOBAL
17010# define LT_DLGLOBAL RTLD_GLOBAL
17011#else
17012# ifdef DL_GLOBAL
17013# define LT_DLGLOBAL DL_GLOBAL
17014# else
17015# define LT_DLGLOBAL 0
17016# endif
17017#endif
17018
17019/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17020 find out it does not work in some platform. */
17021#ifndef LT_DLLAZY_OR_NOW
17022# ifdef RTLD_LAZY
17023# define LT_DLLAZY_OR_NOW RTLD_LAZY
17024# else
17025# ifdef DL_LAZY
17026# define LT_DLLAZY_OR_NOW DL_LAZY
17027# else
17028# ifdef RTLD_NOW
17029# define LT_DLLAZY_OR_NOW RTLD_NOW
17030# else
17031# ifdef DL_NOW
17032# define LT_DLLAZY_OR_NOW DL_NOW
17033# else
17034# define LT_DLLAZY_OR_NOW 0
17035# endif
17036# endif
17037# endif
17038# endif
17039#endif
17040
cristy0c60a692010-11-04 01:09:47 +000017041/* When -fvisbility=hidden is used, assume the code has been annotated
17042 correspondingly for the symbols needed. */
17043#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000017044int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000017045#endif
17046
cristyda16f162011-02-19 23:52:17 +000017047int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000017048int main ()
17049{
17050 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17051 int status = $lt_dlunknown;
17052
17053 if (self)
17054 {
17055 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000017056 else
17057 {
17058 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17059 else puts (dlerror ());
17060 }
cristy73bd4a52010-10-05 11:24:23 +000017061 /* dlclose (self); */
17062 }
17063 else
17064 puts (dlerror ());
17065
17066 return status;
17067}
17068_LT_EOF
17069 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17070 (eval $ac_link) 2>&5
17071 ac_status=$?
17072 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17073 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17074 (./conftest; exit; ) >&5 2>/dev/null
17075 lt_status=$?
17076 case x$lt_status in
17077 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17078 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17079 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17080 esac
17081 else :
17082 # compilation failed
17083 lt_cv_dlopen_self=no
17084 fi
17085fi
17086rm -fr conftest*
17087
17088
17089fi
17090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17091$as_echo "$lt_cv_dlopen_self" >&6; }
17092
17093 if test "x$lt_cv_dlopen_self" = xyes; then
17094 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17096$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017097if ${lt_cv_dlopen_self_static+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017098 $as_echo_n "(cached) " >&6
17099else
17100 if test "$cross_compiling" = yes; then :
17101 lt_cv_dlopen_self_static=cross
17102else
17103 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17104 lt_status=$lt_dlunknown
17105 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000017106#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000017107#include "confdefs.h"
17108
17109#if HAVE_DLFCN_H
17110#include <dlfcn.h>
17111#endif
17112
17113#include <stdio.h>
17114
17115#ifdef RTLD_GLOBAL
17116# define LT_DLGLOBAL RTLD_GLOBAL
17117#else
17118# ifdef DL_GLOBAL
17119# define LT_DLGLOBAL DL_GLOBAL
17120# else
17121# define LT_DLGLOBAL 0
17122# endif
17123#endif
17124
17125/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17126 find out it does not work in some platform. */
17127#ifndef LT_DLLAZY_OR_NOW
17128# ifdef RTLD_LAZY
17129# define LT_DLLAZY_OR_NOW RTLD_LAZY
17130# else
17131# ifdef DL_LAZY
17132# define LT_DLLAZY_OR_NOW DL_LAZY
17133# else
17134# ifdef RTLD_NOW
17135# define LT_DLLAZY_OR_NOW RTLD_NOW
17136# else
17137# ifdef DL_NOW
17138# define LT_DLLAZY_OR_NOW DL_NOW
17139# else
17140# define LT_DLLAZY_OR_NOW 0
17141# endif
17142# endif
17143# endif
17144# endif
17145#endif
17146
cristy0c60a692010-11-04 01:09:47 +000017147/* When -fvisbility=hidden is used, assume the code has been annotated
17148 correspondingly for the symbols needed. */
17149#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000017150int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000017151#endif
17152
cristyda16f162011-02-19 23:52:17 +000017153int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000017154int main ()
17155{
17156 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17157 int status = $lt_dlunknown;
17158
17159 if (self)
17160 {
17161 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000017162 else
17163 {
17164 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17165 else puts (dlerror ());
17166 }
cristy73bd4a52010-10-05 11:24:23 +000017167 /* dlclose (self); */
17168 }
17169 else
17170 puts (dlerror ());
17171
17172 return status;
17173}
17174_LT_EOF
17175 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17176 (eval $ac_link) 2>&5
17177 ac_status=$?
17178 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17179 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17180 (./conftest; exit; ) >&5 2>/dev/null
17181 lt_status=$?
17182 case x$lt_status in
17183 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17184 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17185 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17186 esac
17187 else :
17188 # compilation failed
17189 lt_cv_dlopen_self_static=no
17190 fi
17191fi
17192rm -fr conftest*
17193
17194
17195fi
17196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17197$as_echo "$lt_cv_dlopen_self_static" >&6; }
17198 fi
17199
17200 CPPFLAGS="$save_CPPFLAGS"
17201 LDFLAGS="$save_LDFLAGS"
17202 LIBS="$save_LIBS"
17203 ;;
17204 esac
17205
17206 case $lt_cv_dlopen_self in
17207 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17208 *) enable_dlopen_self=unknown ;;
17209 esac
17210
17211 case $lt_cv_dlopen_self_static in
17212 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17213 *) enable_dlopen_self_static=unknown ;;
17214 esac
17215fi
17216
17217
17218
17219
17220
17221
17222
17223
17224
17225
17226
17227
17228
17229
17230
17231
17232
17233striplib=
17234old_striplib=
17235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17236$as_echo_n "checking whether stripping libraries is possible... " >&6; }
17237if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
17238 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17239 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17241$as_echo "yes" >&6; }
17242else
17243# FIXME - insert some real tests, host_os isn't really good enough
17244 case $host_os in
17245 darwin*)
17246 if test -n "$STRIP" ; then
17247 striplib="$STRIP -x"
17248 old_striplib="$STRIP -S"
17249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17250$as_echo "yes" >&6; }
17251 else
17252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17253$as_echo "no" >&6; }
17254 fi
17255 ;;
17256 *)
17257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17258$as_echo "no" >&6; }
17259 ;;
17260 esac
17261fi
17262
17263
17264
17265
17266
17267
17268
17269
17270
17271
17272
17273
17274 # Report which library types will actually be built
17275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17276$as_echo_n "checking if libtool supports shared libraries... " >&6; }
17277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17278$as_echo "$can_build_shared" >&6; }
17279
17280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17281$as_echo_n "checking whether to build shared libraries... " >&6; }
17282 test "$can_build_shared" = "no" && enable_shared=no
17283
17284 # On AIX, shared libraries and static libraries use the same namespace, and
17285 # are all built from PIC.
17286 case $host_os in
17287 aix3*)
17288 test "$enable_shared" = yes && enable_static=no
17289 if test -n "$RANLIB"; then
17290 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17291 postinstall_cmds='$RANLIB $lib'
17292 fi
17293 ;;
17294
17295 aix[4-9]*)
17296 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17297 test "$enable_shared" = yes && enable_static=no
17298 fi
17299 ;;
17300 esac
17301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17302$as_echo "$enable_shared" >&6; }
17303
17304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17305$as_echo_n "checking whether to build static libraries... " >&6; }
17306 # Make sure either enable_shared or enable_static is yes.
17307 test "$enable_shared" = yes || enable_static=yes
17308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17309$as_echo "$enable_static" >&6; }
17310
17311
17312
17313
17314fi
17315ac_ext=c
17316ac_cpp='$CPP $CPPFLAGS'
17317ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17318ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17319ac_compiler_gnu=$ac_cv_c_compiler_gnu
17320
17321CC="$lt_save_CC"
17322
cristy0c60a692010-11-04 01:09:47 +000017323 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17324 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17325 (test "X$CXX" != "Xg++"))) ; then
17326 ac_ext=cpp
17327ac_cpp='$CXXCPP $CPPFLAGS'
17328ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17329ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17330ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
17332$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
17333if test -z "$CXXCPP"; then
cristyda16f162011-02-19 23:52:17 +000017334 if ${ac_cv_prog_CXXCPP+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000017335 $as_echo_n "(cached) " >&6
17336else
17337 # Double quotes because CXXCPP needs to be expanded
17338 for CXXCPP in "$CXX -E" "/lib/cpp"
17339 do
17340 ac_preproc_ok=false
17341for ac_cxx_preproc_warn_flag in '' yes
17342do
17343 # Use a header file that comes with gcc, so configuring glibc
17344 # with a fresh cross-compiler works.
17345 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17346 # <limits.h> exists even on freestanding compilers.
17347 # On the NeXT, cc -E runs the code through the compiler's parser,
17348 # not just through cpp. "Syntax error" is here to catch this case.
17349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17350/* end confdefs.h. */
17351#ifdef __STDC__
17352# include <limits.h>
17353#else
17354# include <assert.h>
17355#endif
17356 Syntax error
17357_ACEOF
17358if ac_fn_cxx_try_cpp "$LINENO"; then :
17359
17360else
17361 # Broken: fails on valid input.
17362continue
17363fi
cristyda16f162011-02-19 23:52:17 +000017364rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017365
17366 # OK, works on sane cases. Now check whether nonexistent headers
17367 # can be detected and how.
17368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17369/* end confdefs.h. */
17370#include <ac_nonexistent.h>
17371_ACEOF
17372if ac_fn_cxx_try_cpp "$LINENO"; then :
17373 # Broken: success on invalid input.
17374continue
17375else
17376 # Passes both tests.
17377ac_preproc_ok=:
17378break
17379fi
cristyda16f162011-02-19 23:52:17 +000017380rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017381
17382done
17383# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000017384rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017385if $ac_preproc_ok; then :
17386 break
17387fi
17388
17389 done
17390 ac_cv_prog_CXXCPP=$CXXCPP
17391
17392fi
17393 CXXCPP=$ac_cv_prog_CXXCPP
17394else
17395 ac_cv_prog_CXXCPP=$CXXCPP
17396fi
17397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
17398$as_echo "$CXXCPP" >&6; }
17399ac_preproc_ok=false
17400for ac_cxx_preproc_warn_flag in '' yes
17401do
17402 # Use a header file that comes with gcc, so configuring glibc
17403 # with a fresh cross-compiler works.
17404 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17405 # <limits.h> exists even on freestanding compilers.
17406 # On the NeXT, cc -E runs the code through the compiler's parser,
17407 # not just through cpp. "Syntax error" is here to catch this case.
17408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17409/* end confdefs.h. */
17410#ifdef __STDC__
17411# include <limits.h>
17412#else
17413# include <assert.h>
17414#endif
17415 Syntax error
17416_ACEOF
17417if ac_fn_cxx_try_cpp "$LINENO"; then :
17418
17419else
17420 # Broken: fails on valid input.
17421continue
17422fi
cristyda16f162011-02-19 23:52:17 +000017423rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017424
17425 # OK, works on sane cases. Now check whether nonexistent headers
17426 # can be detected and how.
17427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17428/* end confdefs.h. */
17429#include <ac_nonexistent.h>
17430_ACEOF
17431if ac_fn_cxx_try_cpp "$LINENO"; then :
17432 # Broken: success on invalid input.
17433continue
17434else
17435 # Passes both tests.
17436ac_preproc_ok=:
17437break
17438fi
cristyda16f162011-02-19 23:52:17 +000017439rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017440
17441done
17442# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000017443rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017444if $ac_preproc_ok; then :
17445
17446else
17447 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17448$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17449as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
17450See \`config.log' for more details" "$LINENO" 5; }
17451fi
17452
17453ac_ext=c
17454ac_cpp='$CPP $CPPFLAGS'
17455ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17456ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17457ac_compiler_gnu=$ac_cv_c_compiler_gnu
17458
17459else
17460 _lt_caught_CXX_error=yes
17461fi
cristy73bd4a52010-10-05 11:24:23 +000017462
17463ac_ext=cpp
17464ac_cpp='$CXXCPP $CPPFLAGS'
17465ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17466ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17467ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17468
17469archive_cmds_need_lc_CXX=no
17470allow_undefined_flag_CXX=
17471always_export_symbols_CXX=no
17472archive_expsym_cmds_CXX=
17473compiler_needs_object_CXX=no
17474export_dynamic_flag_spec_CXX=
17475hardcode_direct_CXX=no
17476hardcode_direct_absolute_CXX=no
17477hardcode_libdir_flag_spec_CXX=
cristy73bd4a52010-10-05 11:24:23 +000017478hardcode_libdir_separator_CXX=
17479hardcode_minus_L_CXX=no
17480hardcode_shlibpath_var_CXX=unsupported
17481hardcode_automatic_CXX=no
17482inherit_rpath_CXX=no
17483module_cmds_CXX=
17484module_expsym_cmds_CXX=
17485link_all_deplibs_CXX=unknown
17486old_archive_cmds_CXX=$old_archive_cmds
cristy0c60a692010-11-04 01:09:47 +000017487reload_flag_CXX=$reload_flag
17488reload_cmds_CXX=$reload_cmds
cristy73bd4a52010-10-05 11:24:23 +000017489no_undefined_flag_CXX=
17490whole_archive_flag_spec_CXX=
17491enable_shared_with_static_runtimes_CXX=no
17492
17493# Source file extension for C++ test sources.
17494ac_ext=cpp
17495
17496# Object file extension for compiled C++ test sources.
17497objext=o
17498objext_CXX=$objext
17499
17500# No sense in running all these tests if we already determined that
17501# the CXX compiler isn't working. Some variables (like enable_shared)
17502# are currently assumed to apply to all compilers on this platform,
17503# and will be corrupted by setting them based on a non-working compiler.
17504if test "$_lt_caught_CXX_error" != yes; then
17505 # Code to be used in simple compile tests
17506 lt_simple_compile_test_code="int some_variable = 0;"
17507
17508 # Code to be used in simple link tests
17509 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
17510
17511 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17512
17513
17514
17515
17516
17517
17518# If no C compiler was specified, use CC.
17519LTCC=${LTCC-"$CC"}
17520
17521# If no C compiler flags were specified, use CFLAGS.
17522LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17523
17524# Allow CC to be a program name with arguments.
17525compiler=$CC
17526
17527
17528 # save warnings/boilerplate of simple test code
17529 ac_outfile=conftest.$ac_objext
17530echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17531eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17532_lt_compiler_boilerplate=`cat conftest.err`
17533$RM conftest*
17534
17535 ac_outfile=conftest.$ac_objext
17536echo "$lt_simple_link_test_code" >conftest.$ac_ext
17537eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17538_lt_linker_boilerplate=`cat conftest.err`
17539$RM -r conftest*
17540
17541
17542 # Allow CC to be a program name with arguments.
17543 lt_save_CC=$CC
cristyda16f162011-02-19 23:52:17 +000017544 lt_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000017545 lt_save_LD=$LD
17546 lt_save_GCC=$GCC
17547 GCC=$GXX
17548 lt_save_with_gnu_ld=$with_gnu_ld
17549 lt_save_path_LD=$lt_cv_path_LD
17550 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
17551 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
17552 else
17553 $as_unset lt_cv_prog_gnu_ld
17554 fi
17555 if test -n "${lt_cv_path_LDCXX+set}"; then
17556 lt_cv_path_LD=$lt_cv_path_LDCXX
17557 else
17558 $as_unset lt_cv_path_LD
17559 fi
17560 test -z "${LDCXX+set}" || LD=$LDCXX
17561 CC=${CXX-"c++"}
cristyda16f162011-02-19 23:52:17 +000017562 CFLAGS=$CXXFLAGS
cristy73bd4a52010-10-05 11:24:23 +000017563 compiler=$CC
17564 compiler_CXX=$CC
17565 for cc_temp in $compiler""; do
17566 case $cc_temp in
17567 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17568 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17569 \-*) ;;
17570 *) break;;
17571 esac
17572done
cristy0c60a692010-11-04 01:09:47 +000017573cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000017574
17575
17576 if test -n "$compiler"; then
17577 # We don't want -fno-exception when compiling C++ code, so set the
17578 # no_builtin_flag separately
17579 if test "$GXX" = yes; then
17580 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
17581 else
17582 lt_prog_compiler_no_builtin_flag_CXX=
17583 fi
17584
17585 if test "$GXX" = yes; then
17586 # Set up default GNU C++ configuration
17587
17588
17589
17590# Check whether --with-gnu-ld was given.
17591if test "${with_gnu_ld+set}" = set; then :
17592 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17593else
17594 with_gnu_ld=no
17595fi
17596
17597ac_prog=ld
17598if test "$GCC" = yes; then
17599 # Check if gcc -print-prog-name=ld gives a path.
17600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
17601$as_echo_n "checking for ld used by $CC... " >&6; }
17602 case $host in
17603 *-*-mingw*)
17604 # gcc leaves a trailing carriage return which upsets mingw
17605 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17606 *)
17607 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17608 esac
17609 case $ac_prog in
17610 # Accept absolute paths.
17611 [\\/]* | ?:[\\/]*)
17612 re_direlt='/[^/][^/]*/\.\./'
17613 # Canonicalize the pathname of ld
17614 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
17615 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
17616 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
17617 done
17618 test -z "$LD" && LD="$ac_prog"
17619 ;;
17620 "")
17621 # If it fails, then pretend we aren't using GCC.
17622 ac_prog=ld
17623 ;;
17624 *)
17625 # If it is relative, then search for the first ld in PATH.
17626 with_gnu_ld=unknown
17627 ;;
17628 esac
17629elif test "$with_gnu_ld" = yes; then
17630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17631$as_echo_n "checking for GNU ld... " >&6; }
17632else
17633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17634$as_echo_n "checking for non-GNU ld... " >&6; }
17635fi
cristyda16f162011-02-19 23:52:17 +000017636if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017637 $as_echo_n "(cached) " >&6
17638else
17639 if test -z "$LD"; then
17640 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17641 for ac_dir in $PATH; do
17642 IFS="$lt_save_ifs"
17643 test -z "$ac_dir" && ac_dir=.
17644 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17645 lt_cv_path_LD="$ac_dir/$ac_prog"
17646 # Check to see if the program is GNU ld. I'd rather use --version,
17647 # but apparently some variants of GNU ld only accept -v.
17648 # Break only if it was the GNU/non-GNU ld that we prefer.
17649 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17650 *GNU* | *'with BFD'*)
17651 test "$with_gnu_ld" != no && break
17652 ;;
17653 *)
17654 test "$with_gnu_ld" != yes && break
17655 ;;
17656 esac
17657 fi
17658 done
17659 IFS="$lt_save_ifs"
17660else
17661 lt_cv_path_LD="$LD" # Let the user override the test with a path.
17662fi
17663fi
17664
17665LD="$lt_cv_path_LD"
17666if test -n "$LD"; then
17667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17668$as_echo "$LD" >&6; }
17669else
17670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17671$as_echo "no" >&6; }
17672fi
cristy98dddb52010-11-04 00:30:15 +000017673test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000017674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17675$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017676if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017677 $as_echo_n "(cached) " >&6
17678else
17679 # I'd rather use --version here, but apparently some GNU lds only accept -v.
17680case `$LD -v 2>&1 </dev/null` in
17681*GNU* | *'with BFD'*)
17682 lt_cv_prog_gnu_ld=yes
17683 ;;
17684*)
17685 lt_cv_prog_gnu_ld=no
17686 ;;
17687esac
17688fi
17689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
17690$as_echo "$lt_cv_prog_gnu_ld" >&6; }
17691with_gnu_ld=$lt_cv_prog_gnu_ld
17692
17693
17694
17695
17696
17697
17698
17699 # Check if GNU C++ uses GNU ld as the underlying linker, since the
17700 # archiving commands below assume that GNU ld is being used.
17701 if test "$with_gnu_ld" = yes; then
cristyda16f162011-02-19 23:52:17 +000017702 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17703 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000017704
17705 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17706 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17707
17708 # If archive_cmds runs LD, not CC, wlarc should be empty
17709 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
17710 # investigate it a little bit more. (MM)
17711 wlarc='${wl}'
17712
17713 # ancient GNU ld didn't support --whole-archive et. al.
17714 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
17715 $GREP 'no-whole-archive' > /dev/null; then
17716 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17717 else
17718 whole_archive_flag_spec_CXX=
17719 fi
17720 else
17721 with_gnu_ld=no
17722 wlarc=
17723
17724 # A generic and very simple default shared library creation
17725 # command for GNU C++ for the case where it uses the native
17726 # linker, instead of GNU ld. If possible, this setting should
17727 # overridden to take advantage of the native linker features on
17728 # the platform it is being used on.
17729 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17730 fi
17731
17732 # Commands to make compiler produce verbose output that lists
17733 # what "hidden" libraries, object files and flags are used when
17734 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000017735 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000017736
17737 else
17738 GXX=no
17739 with_gnu_ld=no
17740 wlarc=
17741 fi
17742
17743 # PORTME: fill in a description of your system's C++ link characteristics
17744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17745$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17746 ld_shlibs_CXX=yes
17747 case $host_os in
17748 aix3*)
17749 # FIXME: insert proper C++ library support
17750 ld_shlibs_CXX=no
17751 ;;
17752 aix[4-9]*)
17753 if test "$host_cpu" = ia64; then
17754 # On IA64, the linker does run time linking by default, so we don't
17755 # have to do anything special.
17756 aix_use_runtimelinking=no
17757 exp_sym_flag='-Bexport'
17758 no_entry_flag=""
17759 else
17760 aix_use_runtimelinking=no
17761
17762 # Test if we are trying to use run time linking or normal
17763 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17764 # need to do runtime linking.
17765 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17766 for ld_flag in $LDFLAGS; do
17767 case $ld_flag in
17768 *-brtl*)
17769 aix_use_runtimelinking=yes
17770 break
17771 ;;
17772 esac
17773 done
17774 ;;
17775 esac
17776
17777 exp_sym_flag='-bexport'
17778 no_entry_flag='-bnoentry'
17779 fi
17780
17781 # When large executables or shared objects are built, AIX ld can
17782 # have problems creating the table of contents. If linking a library
17783 # or program results in "error TOC overflow" add -mminimal-toc to
17784 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17785 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17786
17787 archive_cmds_CXX=''
17788 hardcode_direct_CXX=yes
17789 hardcode_direct_absolute_CXX=yes
17790 hardcode_libdir_separator_CXX=':'
17791 link_all_deplibs_CXX=yes
17792 file_list_spec_CXX='${wl}-f,'
17793
17794 if test "$GXX" = yes; then
17795 case $host_os in aix4.[012]|aix4.[012].*)
17796 # We only want to do this on AIX 4.2 and lower, the check
17797 # below for broken collect2 doesn't work under 4.3+
17798 collect2name=`${CC} -print-prog-name=collect2`
17799 if test -f "$collect2name" &&
17800 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
17801 then
17802 # We have reworked collect2
17803 :
17804 else
17805 # We have old collect2
17806 hardcode_direct_CXX=unsupported
17807 # It fails to find uninstalled libraries when the uninstalled
17808 # path is not listed in the libpath. Setting hardcode_minus_L
17809 # to unsupported forces relinking
17810 hardcode_minus_L_CXX=yes
17811 hardcode_libdir_flag_spec_CXX='-L$libdir'
17812 hardcode_libdir_separator_CXX=
17813 fi
17814 esac
17815 shared_flag='-shared'
17816 if test "$aix_use_runtimelinking" = yes; then
17817 shared_flag="$shared_flag "'${wl}-G'
17818 fi
17819 else
17820 # not using gcc
17821 if test "$host_cpu" = ia64; then
17822 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17823 # chokes on -Wl,-G. The following line is correct:
17824 shared_flag='-G'
17825 else
17826 if test "$aix_use_runtimelinking" = yes; then
17827 shared_flag='${wl}-G'
17828 else
17829 shared_flag='${wl}-bM:SRE'
17830 fi
17831 fi
17832 fi
17833
17834 export_dynamic_flag_spec_CXX='${wl}-bexpall'
17835 # It seems that -bexpall does not export symbols beginning with
17836 # underscore (_), so it is better to generate a list of symbols to
17837 # export.
17838 always_export_symbols_CXX=yes
17839 if test "$aix_use_runtimelinking" = yes; then
17840 # Warning - without using the other runtime loading flags (-brtl),
17841 # -berok will link without error, but may produce a broken library.
17842 allow_undefined_flag_CXX='-berok'
17843 # Determine the default libpath from the value encoded in an empty
17844 # executable.
cristyda16f162011-02-19 23:52:17 +000017845 if test "${lt_cv_aix_libpath+set}" = set; then
17846 aix_libpath=$lt_cv_aix_libpath
17847else
17848 if ${lt_cv_aix_libpath__CXX+:} false; then :
17849 $as_echo_n "(cached) " >&6
17850else
17851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000017852/* end confdefs.h. */
17853
17854int
17855main ()
17856{
17857
17858 ;
17859 return 0;
17860}
17861_ACEOF
17862if ac_fn_cxx_try_link "$LINENO"; then :
17863
cristyda16f162011-02-19 23:52:17 +000017864 lt_aix_libpath_sed='
17865 /Import File Strings/,/^$/ {
17866 /^0/ {
17867 s/^0 *\([^ ]*\) *$/\1/
17868 p
17869 }
17870 }'
17871 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17872 # Check for a 64-bit object if we didn't find anything.
17873 if test -z "$lt_cv_aix_libpath__CXX"; then
17874 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17875 fi
cristy73bd4a52010-10-05 11:24:23 +000017876fi
17877rm -f core conftest.err conftest.$ac_objext \
17878 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000017879 if test -z "$lt_cv_aix_libpath__CXX"; then
17880 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
17881 fi
17882
17883fi
17884
17885 aix_libpath=$lt_cv_aix_libpath__CXX
17886fi
cristy73bd4a52010-10-05 11:24:23 +000017887
17888 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17889
cristy0c60a692010-11-04 01:09:47 +000017890 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 func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
cristy73bd4a52010-10-05 11:24:23 +000017891 else
17892 if test "$host_cpu" = ia64; then
17893 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
17894 allow_undefined_flag_CXX="-z nodefs"
17895 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"
17896 else
17897 # Determine the default libpath from the value encoded in an
17898 # empty executable.
cristyda16f162011-02-19 23:52:17 +000017899 if test "${lt_cv_aix_libpath+set}" = set; then
17900 aix_libpath=$lt_cv_aix_libpath
17901else
17902 if ${lt_cv_aix_libpath__CXX+:} false; then :
17903 $as_echo_n "(cached) " >&6
17904else
17905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000017906/* end confdefs.h. */
17907
17908int
17909main ()
17910{
17911
17912 ;
17913 return 0;
17914}
17915_ACEOF
17916if ac_fn_cxx_try_link "$LINENO"; then :
17917
cristyda16f162011-02-19 23:52:17 +000017918 lt_aix_libpath_sed='
17919 /Import File Strings/,/^$/ {
17920 /^0/ {
17921 s/^0 *\([^ ]*\) *$/\1/
17922 p
17923 }
17924 }'
17925 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17926 # Check for a 64-bit object if we didn't find anything.
17927 if test -z "$lt_cv_aix_libpath__CXX"; then
17928 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17929 fi
cristy73bd4a52010-10-05 11:24:23 +000017930fi
17931rm -f core conftest.err conftest.$ac_objext \
17932 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000017933 if test -z "$lt_cv_aix_libpath__CXX"; then
17934 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
17935 fi
17936
17937fi
17938
17939 aix_libpath=$lt_cv_aix_libpath__CXX
17940fi
cristy73bd4a52010-10-05 11:24:23 +000017941
17942 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17943 # Warning - without using the other run time loading flags,
17944 # -berok will link without error, but may produce a broken library.
17945 no_undefined_flag_CXX=' ${wl}-bernotok'
17946 allow_undefined_flag_CXX=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000017947 if test "$with_gnu_ld" = yes; then
17948 # We only use this code for GNU lds that support --whole-archive.
17949 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17950 else
17951 # Exported symbols can be pulled into shared objects from archives
17952 whole_archive_flag_spec_CXX='$convenience'
17953 fi
cristy73bd4a52010-10-05 11:24:23 +000017954 archive_cmds_need_lc_CXX=yes
17955 # This is similar to how AIX traditionally builds its shared
17956 # libraries.
17957 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'
17958 fi
17959 fi
17960 ;;
17961
17962 beos*)
17963 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17964 allow_undefined_flag_CXX=unsupported
17965 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17966 # support --undefined. This deserves some investigation. FIXME
17967 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17968 else
17969 ld_shlibs_CXX=no
17970 fi
17971 ;;
17972
17973 chorus*)
17974 case $cc_basename in
17975 *)
17976 # FIXME: insert proper C++ library support
17977 ld_shlibs_CXX=no
17978 ;;
17979 esac
17980 ;;
17981
17982 cygwin* | mingw* | pw32* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000017983 case $GXX,$cc_basename in
17984 ,cl* | no,cl*)
17985 # Native MSVC
17986 # hardcode_libdir_flag_spec is actually meaningless, as there is
17987 # no search path for DLLs.
17988 hardcode_libdir_flag_spec_CXX=' '
17989 allow_undefined_flag_CXX=unsupported
17990 always_export_symbols_CXX=yes
17991 file_list_spec_CXX='@'
17992 # Tell ltmain to make .lib files, not .a files.
17993 libext=lib
17994 # Tell ltmain to make .dll files, not .so files.
17995 shrext_cmds=".dll"
17996 # FIXME: Setting linknames here is a bad hack.
17997 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
17998 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17999 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
18000 else
18001 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
18002 fi~
18003 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
18004 linknames='
18005 # The linker will not automatically build a static lib if we build a DLL.
18006 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
18007 enable_shared_with_static_runtimes_CXX=yes
18008 # Don't use ranlib
18009 old_postinstall_cmds_CXX='chmod 644 $oldlib'
18010 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
18011 lt_tool_outputfile="@TOOL_OUTPUT@"~
18012 case $lt_outputfile in
18013 *.exe|*.EXE) ;;
18014 *)
18015 lt_outputfile="$lt_outputfile.exe"
18016 lt_tool_outputfile="$lt_tool_outputfile.exe"
18017 ;;
18018 esac~
18019 func_to_tool_file "$lt_outputfile"~
18020 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
18021 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
18022 $RM "$lt_outputfile.manifest";
18023 fi'
18024 ;;
18025 *)
18026 # g++
18027 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18028 # as there is no search path for DLLs.
18029 hardcode_libdir_flag_spec_CXX='-L$libdir'
18030 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
18031 allow_undefined_flag_CXX=unsupported
18032 always_export_symbols_CXX=no
18033 enable_shared_with_static_runtimes_CXX=yes
cristy73bd4a52010-10-05 11:24:23 +000018034
cristyda16f162011-02-19 23:52:17 +000018035 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18036 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'
18037 # If the export-symbols file already is a .def file (1st line
18038 # is EXPORTS), use it as is; otherwise, prepend...
18039 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18040 cp $export_symbols $output_objdir/$soname.def;
18041 else
18042 echo EXPORTS > $output_objdir/$soname.def;
18043 cat $export_symbols >> $output_objdir/$soname.def;
18044 fi~
18045 $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'
18046 else
18047 ld_shlibs_CXX=no
18048 fi
18049 ;;
18050 esac
18051 ;;
cristy73bd4a52010-10-05 11:24:23 +000018052 darwin* | rhapsody*)
18053
18054
18055 archive_cmds_need_lc_CXX=no
18056 hardcode_direct_CXX=no
18057 hardcode_automatic_CXX=yes
18058 hardcode_shlibpath_var_CXX=unsupported
cristy0c60a692010-11-04 01:09:47 +000018059 if test "$lt_cv_ld_force_load" = "yes"; then
18060 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
cristy99bd5232011-12-07 14:38:20 +000018061
cristy0c60a692010-11-04 01:09:47 +000018062 else
18063 whole_archive_flag_spec_CXX=''
18064 fi
cristy73bd4a52010-10-05 11:24:23 +000018065 link_all_deplibs_CXX=yes
18066 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
18067 case $cc_basename in
18068 ifort*) _lt_dar_can_shared=yes ;;
18069 *) _lt_dar_can_shared=$GCC ;;
18070 esac
18071 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000018072 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000018073 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}"
18074 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18075 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}"
18076 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}"
18077 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18078 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}"
18079 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}"
18080 fi
18081
18082 else
18083 ld_shlibs_CXX=no
18084 fi
18085
18086 ;;
18087
18088 dgux*)
18089 case $cc_basename in
18090 ec++*)
18091 # FIXME: insert proper C++ library support
18092 ld_shlibs_CXX=no
18093 ;;
18094 ghcx*)
18095 # Green Hills C++ Compiler
18096 # FIXME: insert proper C++ library support
18097 ld_shlibs_CXX=no
18098 ;;
18099 *)
18100 # FIXME: insert proper C++ library support
18101 ld_shlibs_CXX=no
18102 ;;
18103 esac
18104 ;;
18105
cristy99bd5232011-12-07 14:38:20 +000018106 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000018107 # C++ shared libraries reported to be fairly broken before
18108 # switch to ELF
18109 ld_shlibs_CXX=no
18110 ;;
18111
18112 freebsd-elf*)
18113 archive_cmds_need_lc_CXX=no
18114 ;;
18115
18116 freebsd* | dragonfly*)
18117 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18118 # conventions
18119 ld_shlibs_CXX=yes
18120 ;;
18121
18122 gnu*)
18123 ;;
18124
cristy0c60a692010-11-04 01:09:47 +000018125 haiku*)
18126 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18127 link_all_deplibs_CXX=yes
18128 ;;
18129
cristy73bd4a52010-10-05 11:24:23 +000018130 hpux9*)
18131 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18132 hardcode_libdir_separator_CXX=:
18133 export_dynamic_flag_spec_CXX='${wl}-E'
18134 hardcode_direct_CXX=yes
18135 hardcode_minus_L_CXX=yes # Not in the search PATH,
18136 # but as the default
18137 # location of the library.
18138
18139 case $cc_basename in
18140 CC*)
18141 # FIXME: insert proper C++ library support
18142 ld_shlibs_CXX=no
18143 ;;
18144 aCC*)
18145 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'
18146 # Commands to make compiler produce verbose output that lists
18147 # what "hidden" libraries, object files and flags are used when
18148 # linking a shared library.
18149 #
18150 # There doesn't appear to be a way to prevent this compiler from
18151 # explicitly linking system object files so we need to strip them
18152 # from the output so that they don't get included in the library
18153 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018154 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; func_echo_all "$list"'
cristy73bd4a52010-10-05 11:24:23 +000018155 ;;
18156 *)
18157 if test "$GXX" = yes; then
cristyda16f162011-02-19 23:52:17 +000018158 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${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'
cristy73bd4a52010-10-05 11:24:23 +000018159 else
18160 # FIXME: insert proper C++ library support
18161 ld_shlibs_CXX=no
18162 fi
18163 ;;
18164 esac
18165 ;;
18166
18167 hpux10*|hpux11*)
18168 if test $with_gnu_ld = no; then
18169 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18170 hardcode_libdir_separator_CXX=:
18171
18172 case $host_cpu in
18173 hppa*64*|ia64*)
18174 ;;
18175 *)
18176 export_dynamic_flag_spec_CXX='${wl}-E'
18177 ;;
18178 esac
18179 fi
18180 case $host_cpu in
18181 hppa*64*|ia64*)
18182 hardcode_direct_CXX=no
18183 hardcode_shlibpath_var_CXX=no
18184 ;;
18185 *)
18186 hardcode_direct_CXX=yes
18187 hardcode_direct_absolute_CXX=yes
18188 hardcode_minus_L_CXX=yes # Not in the search PATH,
18189 # but as the default
18190 # location of the library.
18191 ;;
18192 esac
18193
18194 case $cc_basename in
18195 CC*)
18196 # FIXME: insert proper C++ library support
18197 ld_shlibs_CXX=no
18198 ;;
18199 aCC*)
18200 case $host_cpu in
18201 hppa*64*)
18202 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18203 ;;
18204 ia64*)
18205 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18206 ;;
18207 *)
18208 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18209 ;;
18210 esac
18211 # Commands to make compiler produce verbose output that lists
18212 # what "hidden" libraries, object files and flags are used when
18213 # linking a shared library.
18214 #
18215 # There doesn't appear to be a way to prevent this compiler from
18216 # explicitly linking system object files so we need to strip them
18217 # from the output so that they don't get included in the library
18218 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018219 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; func_echo_all "$list"'
cristy73bd4a52010-10-05 11:24:23 +000018220 ;;
18221 *)
18222 if test "$GXX" = yes; then
18223 if test $with_gnu_ld = no; then
18224 case $host_cpu in
18225 hppa*64*)
18226 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18227 ;;
18228 ia64*)
cristyda16f162011-02-19 23:52:17 +000018229 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000018230 ;;
18231 *)
cristyda16f162011-02-19 23:52:17 +000018232 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000018233 ;;
18234 esac
18235 fi
18236 else
18237 # FIXME: insert proper C++ library support
18238 ld_shlibs_CXX=no
18239 fi
18240 ;;
18241 esac
18242 ;;
18243
18244 interix[3-9]*)
18245 hardcode_direct_CXX=no
18246 hardcode_shlibpath_var_CXX=no
18247 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18248 export_dynamic_flag_spec_CXX='${wl}-E'
18249 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18250 # Instead, shared libraries are loaded at an image base (0x10000000 by
18251 # default) and relocated if they conflict, which is a slow very memory
18252 # consuming and fragmenting process. To avoid this, we pick a random,
18253 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18254 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18255 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'
18256 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'
18257 ;;
18258 irix5* | irix6*)
18259 case $cc_basename in
18260 CC*)
18261 # SGI C++
cristy0c60a692010-11-04 01:09:47 +000018262 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000018263
18264 # Archives containing C++ object files must be created using
18265 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18266 # necessary to make sure instantiated templates are included
18267 # in the archive.
18268 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18269 ;;
18270 *)
18271 if test "$GXX" = yes; then
18272 if test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000018273 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000018274 else
cristyda16f162011-02-19 23:52:17 +000018275 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000018276 fi
18277 fi
18278 link_all_deplibs_CXX=yes
18279 ;;
18280 esac
18281 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18282 hardcode_libdir_separator_CXX=:
18283 inherit_rpath_CXX=yes
18284 ;;
18285
cristy0c60a692010-11-04 01:09:47 +000018286 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000018287 case $cc_basename in
18288 KCC*)
18289 # Kuck and Associates, Inc. (KAI) C++ Compiler
18290
18291 # KCC will only create a shared library if the output file
18292 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18293 # to its proper name (with version) after linking.
18294 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'
18295 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'
18296 # Commands to make compiler produce verbose output that lists
18297 # what "hidden" libraries, object files and flags are used when
18298 # linking a shared library.
18299 #
18300 # There doesn't appear to be a way to prevent this compiler from
18301 # explicitly linking system object files so we need to strip them
18302 # from the output so that they don't get included in the library
18303 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018304 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; func_echo_all "$list"'
cristy73bd4a52010-10-05 11:24:23 +000018305
18306 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18307 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18308
18309 # Archives containing C++ object files must be created using
18310 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18311 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18312 ;;
18313 icpc* | ecpc* )
18314 # Intel C++
18315 with_gnu_ld=yes
18316 # version 8.0 and above of icpc choke on multiply defined symbols
18317 # if we add $predep_objects and $postdep_objects, however 7.1 and
18318 # earlier do not add the objects themselves.
18319 case `$CC -V 2>&1` in
18320 *"Version 7."*)
18321 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18322 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'
18323 ;;
18324 *) # Version 8.0 or newer
18325 tmp_idyn=
18326 case $host_cpu in
18327 ia64*) tmp_idyn=' -i_dynamic';;
18328 esac
18329 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18330 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'
18331 ;;
18332 esac
18333 archive_cmds_need_lc_CXX=no
18334 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18335 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18336 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18337 ;;
18338 pgCC* | pgcpp*)
18339 # Portland Group C++ compiler
18340 case `$CC -V` in
cristy0c60a692010-11-04 01:09:47 +000018341 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
cristy73bd4a52010-10-05 11:24:23 +000018342 prelink_cmds_CXX='tpldir=Template.dir~
18343 rm -rf $tpldir~
18344 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
cristy0c60a692010-11-04 01:09:47 +000018345 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
cristy73bd4a52010-10-05 11:24:23 +000018346 old_archive_cmds_CXX='tpldir=Template.dir~
18347 rm -rf $tpldir~
18348 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
cristy0c60a692010-11-04 01:09:47 +000018349 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
cristy73bd4a52010-10-05 11:24:23 +000018350 $RANLIB $oldlib'
18351 archive_cmds_CXX='tpldir=Template.dir~
18352 rm -rf $tpldir~
18353 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000018354 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000018355 archive_expsym_cmds_CXX='tpldir=Template.dir~
18356 rm -rf $tpldir~
18357 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000018358 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000018359 ;;
cristy0c60a692010-11-04 01:09:47 +000018360 *) # Version 6 and above use weak symbols
cristy73bd4a52010-10-05 11:24:23 +000018361 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18362 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'
18363 ;;
18364 esac
18365
18366 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18367 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
cristy0c60a692010-11-04 01:09:47 +000018368 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
cristy73bd4a52010-10-05 11:24:23 +000018369 ;;
18370 cxx*)
18371 # Compaq C++
18372 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18373 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'
18374
18375 runpath_var=LD_RUN_PATH
18376 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18377 hardcode_libdir_separator_CXX=:
18378
18379 # Commands to make compiler produce verbose output that lists
18380 # what "hidden" libraries, object files and flags are used when
18381 # linking a shared library.
18382 #
18383 # There doesn't appear to be a way to prevent this compiler from
18384 # explicitly linking system object files so we need to strip them
18385 # from the output so that they don't get included in the library
18386 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018387 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
cristy73bd4a52010-10-05 11:24:23 +000018388 ;;
cristy0c60a692010-11-04 01:09:47 +000018389 xl* | mpixl* | bgxl*)
cristy73bd4a52010-10-05 11:24:23 +000018390 # IBM XL 8.0 on PPC, with GNU ld
18391 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18392 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18393 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18394 if test "x$supports_anon_versioning" = xyes; then
18395 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
18396 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18397 echo "local: *; };" >> $output_objdir/$libname.ver~
18398 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18399 fi
18400 ;;
18401 *)
18402 case `$CC -V 2>&1 | sed 5q` in
18403 *Sun\ C*)
18404 # Sun C++ 5.9
18405 no_undefined_flag_CXX=' -zdefs'
18406 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18407 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'
18408 hardcode_libdir_flag_spec_CXX='-R$libdir'
cristy0c60a692010-11-04 01:09:47 +000018409 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
cristy73bd4a52010-10-05 11:24:23 +000018410 compiler_needs_object_CXX=yes
18411
18412 # Not sure whether something based on
18413 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
18414 # would be better.
cristy0c60a692010-11-04 01:09:47 +000018415 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000018416
18417 # Archives containing C++ object files must be created using
18418 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18419 # necessary to make sure instantiated templates are included
18420 # in the archive.
18421 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18422 ;;
18423 esac
18424 ;;
18425 esac
18426 ;;
18427
18428 lynxos*)
18429 # FIXME: insert proper C++ library support
18430 ld_shlibs_CXX=no
18431 ;;
18432
18433 m88k*)
18434 # FIXME: insert proper C++ library support
18435 ld_shlibs_CXX=no
18436 ;;
18437
18438 mvs*)
18439 case $cc_basename in
18440 cxx*)
18441 # FIXME: insert proper C++ library support
18442 ld_shlibs_CXX=no
18443 ;;
18444 *)
18445 # FIXME: insert proper C++ library support
18446 ld_shlibs_CXX=no
18447 ;;
18448 esac
18449 ;;
18450
18451 netbsd*)
18452 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18453 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18454 wlarc=
18455 hardcode_libdir_flag_spec_CXX='-R$libdir'
18456 hardcode_direct_CXX=yes
18457 hardcode_shlibpath_var_CXX=no
18458 fi
18459 # Workaround some broken pre-1.5 toolchains
18460 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18461 ;;
18462
18463 *nto* | *qnx*)
18464 ld_shlibs_CXX=yes
18465 ;;
18466
18467 openbsd2*)
18468 # C++ shared libraries are fairly broken
18469 ld_shlibs_CXX=no
18470 ;;
18471
18472 openbsd*)
18473 if test -f /usr/libexec/ld.so; then
18474 hardcode_direct_CXX=yes
18475 hardcode_shlibpath_var_CXX=no
18476 hardcode_direct_absolute_CXX=yes
18477 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18478 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18479 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18480 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18481 export_dynamic_flag_spec_CXX='${wl}-E'
18482 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18483 fi
cristy0c60a692010-11-04 01:09:47 +000018484 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000018485 else
18486 ld_shlibs_CXX=no
18487 fi
18488 ;;
18489
18490 osf3* | osf4* | osf5*)
18491 case $cc_basename in
18492 KCC*)
18493 # Kuck and Associates, Inc. (KAI) C++ Compiler
18494
18495 # KCC will only create a shared library if the output file
18496 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18497 # to its proper name (with version) after linking.
18498 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'
18499
18500 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18501 hardcode_libdir_separator_CXX=:
18502
18503 # Archives containing C++ object files must be created using
18504 # the KAI C++ compiler.
18505 case $host in
18506 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
18507 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
18508 esac
18509 ;;
18510 RCC*)
18511 # Rational C++ 2.4.1
18512 # FIXME: insert proper C++ library support
18513 ld_shlibs_CXX=no
18514 ;;
18515 cxx*)
18516 case $host in
18517 osf3*)
18518 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000018519 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000018520 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18521 ;;
18522 *)
18523 allow_undefined_flag_CXX=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000018524 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000018525 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18526 echo "-hidden">> $lib.exp~
cristy0c60a692010-11-04 01:09:47 +000018527 $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 "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
cristy73bd4a52010-10-05 11:24:23 +000018528 $RM $lib.exp'
18529 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18530 ;;
18531 esac
18532
18533 hardcode_libdir_separator_CXX=:
18534
18535 # Commands to make compiler produce verbose output that lists
18536 # what "hidden" libraries, object files and flags are used when
18537 # linking a shared library.
18538 #
18539 # There doesn't appear to be a way to prevent this compiler from
18540 # explicitly linking system object files so we need to strip them
18541 # from the output so that they don't get included in the library
18542 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018543 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
cristy73bd4a52010-10-05 11:24:23 +000018544 ;;
18545 *)
18546 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18547 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18548 case $host in
18549 osf3*)
cristy0c60a692010-11-04 01:09:47 +000018550 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000018551 ;;
18552 *)
cristyda16f162011-02-19 23:52:17 +000018553 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000018554 ;;
18555 esac
18556
18557 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18558 hardcode_libdir_separator_CXX=:
18559
18560 # Commands to make compiler produce verbose output that lists
18561 # what "hidden" libraries, object files and flags are used when
18562 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018563 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018564
18565 else
18566 # FIXME: insert proper C++ library support
18567 ld_shlibs_CXX=no
18568 fi
18569 ;;
18570 esac
18571 ;;
18572
18573 psos*)
18574 # FIXME: insert proper C++ library support
18575 ld_shlibs_CXX=no
18576 ;;
18577
18578 sunos4*)
18579 case $cc_basename in
18580 CC*)
18581 # Sun C++ 4.x
18582 # FIXME: insert proper C++ library support
18583 ld_shlibs_CXX=no
18584 ;;
18585 lcc*)
18586 # Lucid
18587 # FIXME: insert proper C++ library support
18588 ld_shlibs_CXX=no
18589 ;;
18590 *)
18591 # FIXME: insert proper C++ library support
18592 ld_shlibs_CXX=no
18593 ;;
18594 esac
18595 ;;
18596
18597 solaris*)
18598 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000018599 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000018600 # Sun C++ 4.2, 5.x and Centerline C++
18601 archive_cmds_need_lc_CXX=yes
18602 no_undefined_flag_CXX=' -zdefs'
18603 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18604 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18605 $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'
18606
18607 hardcode_libdir_flag_spec_CXX='-R$libdir'
18608 hardcode_shlibpath_var_CXX=no
18609 case $host_os in
18610 solaris2.[0-5] | solaris2.[0-5].*) ;;
18611 *)
18612 # The compiler driver will combine and reorder linker options,
18613 # but understands `-z linker_flag'.
18614 # Supported since Solaris 2.6 (maybe 2.5.1?)
18615 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
18616 ;;
18617 esac
18618 link_all_deplibs_CXX=yes
18619
cristy0c60a692010-11-04 01:09:47 +000018620 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000018621
18622 # Archives containing C++ object files must be created using
18623 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18624 # necessary to make sure instantiated templates are included
18625 # in the archive.
18626 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18627 ;;
18628 gcx*)
18629 # Green Hills C++ Compiler
18630 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18631
18632 # The C++ compiler must be used to create the archive.
18633 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18634 ;;
18635 *)
18636 # GNU C++ compiler with Solaris linker
18637 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18638 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
18639 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000018640 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000018641 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
cristyda16f162011-02-19 23:52:17 +000018642 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
cristy73bd4a52010-10-05 11:24:23 +000018643
18644 # Commands to make compiler produce verbose output that lists
18645 # what "hidden" libraries, object files and flags are used when
18646 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018647 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018648 else
18649 # g++ 2.7 appears to require `-G' NOT `-shared' on this
18650 # platform.
18651 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18652 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18653 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
18654
18655 # Commands to make compiler produce verbose output that lists
18656 # what "hidden" libraries, object files and flags are used when
18657 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018658 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018659 fi
18660
18661 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
18662 case $host_os in
18663 solaris2.[0-5] | solaris2.[0-5].*) ;;
18664 *)
18665 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18666 ;;
18667 esac
18668 fi
18669 ;;
18670 esac
18671 ;;
18672
18673 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18674 no_undefined_flag_CXX='${wl}-z,text'
18675 archive_cmds_need_lc_CXX=no
18676 hardcode_shlibpath_var_CXX=no
18677 runpath_var='LD_RUN_PATH'
18678
18679 case $cc_basename in
18680 CC*)
18681 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18682 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18683 ;;
18684 *)
18685 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18686 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18687 ;;
18688 esac
18689 ;;
18690
18691 sysv5* | sco3.2v5* | sco5v6*)
18692 # Note: We can NOT use -z defs as we might desire, because we do not
18693 # link with -lc, and that would cause any symbols used from libc to
18694 # always be unresolved, which means just about no library would
18695 # ever link correctly. If we're not using GNU ld we use -z text
18696 # though, which does catch some bad symbols but isn't as heavy-handed
18697 # as -z defs.
18698 no_undefined_flag_CXX='${wl}-z,text'
18699 allow_undefined_flag_CXX='${wl}-z,nodefs'
18700 archive_cmds_need_lc_CXX=no
18701 hardcode_shlibpath_var_CXX=no
18702 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
18703 hardcode_libdir_separator_CXX=':'
18704 link_all_deplibs_CXX=yes
18705 export_dynamic_flag_spec_CXX='${wl}-Bexport'
18706 runpath_var='LD_RUN_PATH'
18707
18708 case $cc_basename in
18709 CC*)
18710 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18711 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
cristy0c60a692010-11-04 01:09:47 +000018712 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
18713 '"$old_archive_cmds_CXX"
18714 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
18715 '"$reload_cmds_CXX"
cristy73bd4a52010-10-05 11:24:23 +000018716 ;;
18717 *)
18718 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18719 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18720 ;;
18721 esac
18722 ;;
18723
18724 tandem*)
18725 case $cc_basename in
18726 NCC*)
18727 # NonStop-UX NCC 3.20
18728 # FIXME: insert proper C++ library support
18729 ld_shlibs_CXX=no
18730 ;;
18731 *)
18732 # FIXME: insert proper C++ library support
18733 ld_shlibs_CXX=no
18734 ;;
18735 esac
18736 ;;
18737
18738 vxworks*)
18739 # FIXME: insert proper C++ library support
18740 ld_shlibs_CXX=no
18741 ;;
18742
18743 *)
18744 # FIXME: insert proper C++ library support
18745 ld_shlibs_CXX=no
18746 ;;
18747 esac
18748
18749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18750$as_echo "$ld_shlibs_CXX" >&6; }
18751 test "$ld_shlibs_CXX" = no && can_build_shared=no
18752
18753 GCC_CXX="$GXX"
18754 LD_CXX="$LD"
18755
18756 ## CAVEAT EMPTOR:
18757 ## There is no encapsulation within the following macros, do not change
18758 ## the running order or otherwise move them around unless you know exactly
18759 ## what you are doing...
18760 # Dependencies to place before and after the object being linked:
18761predep_objects_CXX=
18762postdep_objects_CXX=
18763predeps_CXX=
18764postdeps_CXX=
18765compiler_lib_search_path_CXX=
18766
18767cat > conftest.$ac_ext <<_LT_EOF
18768class Foo
18769{
18770public:
18771 Foo (void) { a = 0; }
18772private:
18773 int a;
18774};
18775_LT_EOF
18776
cristyda16f162011-02-19 23:52:17 +000018777
18778_lt_libdeps_save_CFLAGS=$CFLAGS
18779case "$CC $CFLAGS " in #(
18780*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
18781*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
cristy99bd5232011-12-07 14:38:20 +000018782*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
cristyda16f162011-02-19 23:52:17 +000018783esac
18784
cristy73bd4a52010-10-05 11:24:23 +000018785if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18786 (eval $ac_compile) 2>&5
18787 ac_status=$?
18788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18789 test $ac_status = 0; }; then
18790 # Parse the compiler output and extract the necessary
18791 # objects, libraries and library flags.
18792
18793 # Sentinel used to keep track of whether or not we are before
18794 # the conftest object file.
18795 pre_test_object_deps_done=no
18796
18797 for p in `eval "$output_verbose_link_cmd"`; do
cristyda16f162011-02-19 23:52:17 +000018798 case ${prev}${p} in
cristy73bd4a52010-10-05 11:24:23 +000018799
18800 -L* | -R* | -l*)
18801 # Some compilers place space between "-{L,R}" and the path.
18802 # Remove the space.
18803 if test $p = "-L" ||
18804 test $p = "-R"; then
18805 prev=$p
18806 continue
cristy73bd4a52010-10-05 11:24:23 +000018807 fi
18808
cristyda16f162011-02-19 23:52:17 +000018809 # Expand the sysroot to ease extracting the directories later.
18810 if test -z "$prev"; then
18811 case $p in
18812 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
18813 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
18814 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
18815 esac
18816 fi
18817 case $p in
18818 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
18819 esac
cristy73bd4a52010-10-05 11:24:23 +000018820 if test "$pre_test_object_deps_done" = no; then
cristyda16f162011-02-19 23:52:17 +000018821 case ${prev} in
18822 -L | -R)
cristy73bd4a52010-10-05 11:24:23 +000018823 # Internal compiler library paths should come after those
18824 # provided the user. The postdeps already come after the
18825 # user supplied libs so there is no need to process them.
18826 if test -z "$compiler_lib_search_path_CXX"; then
18827 compiler_lib_search_path_CXX="${prev}${p}"
18828 else
18829 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
18830 fi
18831 ;;
18832 # The "-l" case would never come before the object being
18833 # linked, so don't bother handling this case.
18834 esac
18835 else
18836 if test -z "$postdeps_CXX"; then
18837 postdeps_CXX="${prev}${p}"
18838 else
18839 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
18840 fi
18841 fi
cristyda16f162011-02-19 23:52:17 +000018842 prev=
cristy73bd4a52010-10-05 11:24:23 +000018843 ;;
18844
cristyda16f162011-02-19 23:52:17 +000018845 *.lto.$objext) ;; # Ignore GCC LTO objects
cristy73bd4a52010-10-05 11:24:23 +000018846 *.$objext)
18847 # This assumes that the test object file only shows up
18848 # once in the compiler output.
18849 if test "$p" = "conftest.$objext"; then
18850 pre_test_object_deps_done=yes
18851 continue
18852 fi
18853
18854 if test "$pre_test_object_deps_done" = no; then
18855 if test -z "$predep_objects_CXX"; then
18856 predep_objects_CXX="$p"
18857 else
18858 predep_objects_CXX="$predep_objects_CXX $p"
18859 fi
18860 else
18861 if test -z "$postdep_objects_CXX"; then
18862 postdep_objects_CXX="$p"
18863 else
18864 postdep_objects_CXX="$postdep_objects_CXX $p"
18865 fi
18866 fi
18867 ;;
18868
18869 *) ;; # Ignore the rest.
18870
18871 esac
18872 done
18873
18874 # Clean up.
18875 rm -f a.out a.exe
18876else
18877 echo "libtool.m4: error: problem compiling CXX test program"
18878fi
18879
18880$RM -f confest.$objext
cristyda16f162011-02-19 23:52:17 +000018881CFLAGS=$_lt_libdeps_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000018882
18883# PORTME: override above test on systems where it is broken
18884case $host_os in
18885interix[3-9]*)
18886 # Interix 3.5 installs completely hosed .la files for C++, so rather than
18887 # hack all around it, let's just trust "g++" to DTRT.
18888 predep_objects_CXX=
18889 postdep_objects_CXX=
18890 postdeps_CXX=
18891 ;;
18892
18893linux*)
18894 case `$CC -V 2>&1 | sed 5q` in
18895 *Sun\ C*)
18896 # Sun C++ 5.9
18897
18898 # The more standards-conforming stlport4 library is
18899 # incompatible with the Cstd library. Avoid specifying
18900 # it if it's in CXXFLAGS. Ignore libCrun as
18901 # -library=stlport4 depends on it.
18902 case " $CXX $CXXFLAGS " in
18903 *" -library=stlport4 "*)
18904 solaris_use_stlport4=yes
18905 ;;
18906 esac
18907
18908 if test "$solaris_use_stlport4" != yes; then
18909 postdeps_CXX='-library=Cstd -library=Crun'
18910 fi
18911 ;;
18912 esac
18913 ;;
18914
18915solaris*)
18916 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000018917 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000018918 # The more standards-conforming stlport4 library is
18919 # incompatible with the Cstd library. Avoid specifying
18920 # it if it's in CXXFLAGS. Ignore libCrun as
18921 # -library=stlport4 depends on it.
18922 case " $CXX $CXXFLAGS " in
18923 *" -library=stlport4 "*)
18924 solaris_use_stlport4=yes
18925 ;;
18926 esac
18927
18928 # Adding this requires a known-good setup of shared libraries for
18929 # Sun compiler versions before 5.6, else PIC objects from an old
18930 # archive will be linked into the output, leading to subtle bugs.
18931 if test "$solaris_use_stlport4" != yes; then
18932 postdeps_CXX='-library=Cstd -library=Crun'
18933 fi
18934 ;;
18935 esac
18936 ;;
18937esac
18938
18939
18940case " $postdeps_CXX " in
18941*" -lc "*) archive_cmds_need_lc_CXX=no ;;
18942esac
18943 compiler_lib_search_dirs_CXX=
18944if test -n "${compiler_lib_search_path_CXX}"; then
18945 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
18946fi
18947
18948
18949
18950
18951
18952
18953
18954
18955
18956
18957
18958
18959
18960
18961
18962
18963
18964
18965
18966
18967
18968
18969
18970
18971
18972
18973
18974
18975
18976
18977
18978 lt_prog_compiler_wl_CXX=
18979lt_prog_compiler_pic_CXX=
18980lt_prog_compiler_static_CXX=
18981
cristy73bd4a52010-10-05 11:24:23 +000018982
18983 # C++ specific cases for pic, static, wl, etc.
18984 if test "$GXX" = yes; then
18985 lt_prog_compiler_wl_CXX='-Wl,'
18986 lt_prog_compiler_static_CXX='-static'
18987
18988 case $host_os in
18989 aix*)
18990 # All AIX code is PIC.
18991 if test "$host_cpu" = ia64; then
18992 # AIX 5 now supports IA64 processor
18993 lt_prog_compiler_static_CXX='-Bstatic'
18994 fi
18995 ;;
18996
18997 amigaos*)
18998 case $host_cpu in
18999 powerpc)
19000 # see comment about AmigaOS4 .so support
19001 lt_prog_compiler_pic_CXX='-fPIC'
19002 ;;
19003 m68k)
19004 # FIXME: we need at least 68020 code to build shared libraries, but
19005 # adding the `-m68020' flag to GCC prevents building anything better,
19006 # like `-m68040'.
19007 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19008 ;;
19009 esac
19010 ;;
19011
19012 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19013 # PIC is the default for these OSes.
19014 ;;
19015 mingw* | cygwin* | os2* | pw32* | cegcc*)
19016 # This hack is so that the source file can tell whether it is being
19017 # built for inclusion in a dll (and should export symbols for example).
19018 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19019 # (--disable-auto-import) libraries
19020 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19021 ;;
19022 darwin* | rhapsody*)
19023 # PIC is the default on this platform
19024 # Common symbols not allowed in MH_DYLIB files
19025 lt_prog_compiler_pic_CXX='-fno-common'
19026 ;;
19027 *djgpp*)
19028 # DJGPP does not support shared libraries at all
19029 lt_prog_compiler_pic_CXX=
19030 ;;
cristy0c60a692010-11-04 01:09:47 +000019031 haiku*)
19032 # PIC is the default for Haiku.
19033 # The "-static" flag exists, but is broken.
19034 lt_prog_compiler_static_CXX=
19035 ;;
cristy73bd4a52010-10-05 11:24:23 +000019036 interix[3-9]*)
19037 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19038 # Instead, we relocate shared libraries at runtime.
19039 ;;
19040 sysv4*MP*)
19041 if test -d /usr/nec; then
19042 lt_prog_compiler_pic_CXX=-Kconform_pic
19043 fi
19044 ;;
19045 hpux*)
19046 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19047 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19048 # sets the default TLS model and affects inlining.
19049 case $host_cpu in
19050 hppa*64*)
19051 ;;
19052 *)
19053 lt_prog_compiler_pic_CXX='-fPIC'
19054 ;;
19055 esac
19056 ;;
19057 *qnx* | *nto*)
19058 # QNX uses GNU C++, but need to define -shared option too, otherwise
19059 # it will coredump.
19060 lt_prog_compiler_pic_CXX='-fPIC -shared'
19061 ;;
19062 *)
19063 lt_prog_compiler_pic_CXX='-fPIC'
19064 ;;
19065 esac
19066 else
19067 case $host_os in
19068 aix[4-9]*)
19069 # All AIX code is PIC.
19070 if test "$host_cpu" = ia64; then
19071 # AIX 5 now supports IA64 processor
19072 lt_prog_compiler_static_CXX='-Bstatic'
19073 else
19074 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19075 fi
19076 ;;
19077 chorus*)
19078 case $cc_basename in
19079 cxch68*)
19080 # Green Hills C++ Compiler
19081 # _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"
19082 ;;
19083 esac
19084 ;;
cristyda16f162011-02-19 23:52:17 +000019085 mingw* | cygwin* | os2* | pw32* | cegcc*)
19086 # This hack is so that the source file can tell whether it is being
19087 # built for inclusion in a dll (and should export symbols for example).
19088 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19089 ;;
cristy73bd4a52010-10-05 11:24:23 +000019090 dgux*)
19091 case $cc_basename in
19092 ec++*)
19093 lt_prog_compiler_pic_CXX='-KPIC'
19094 ;;
19095 ghcx*)
19096 # Green Hills C++ Compiler
19097 lt_prog_compiler_pic_CXX='-pic'
19098 ;;
19099 *)
19100 ;;
19101 esac
19102 ;;
19103 freebsd* | dragonfly*)
19104 # FreeBSD uses GNU C++
19105 ;;
19106 hpux9* | hpux10* | hpux11*)
19107 case $cc_basename in
19108 CC*)
19109 lt_prog_compiler_wl_CXX='-Wl,'
19110 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19111 if test "$host_cpu" != ia64; then
19112 lt_prog_compiler_pic_CXX='+Z'
19113 fi
19114 ;;
19115 aCC*)
19116 lt_prog_compiler_wl_CXX='-Wl,'
19117 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19118 case $host_cpu in
19119 hppa*64*|ia64*)
19120 # +Z the default
19121 ;;
19122 *)
19123 lt_prog_compiler_pic_CXX='+Z'
19124 ;;
19125 esac
19126 ;;
19127 *)
19128 ;;
19129 esac
19130 ;;
19131 interix*)
19132 # This is c89, which is MS Visual C++ (no shared libs)
19133 # Anyone wants to do a port?
19134 ;;
19135 irix5* | irix6* | nonstopux*)
19136 case $cc_basename in
19137 CC*)
19138 lt_prog_compiler_wl_CXX='-Wl,'
19139 lt_prog_compiler_static_CXX='-non_shared'
19140 # CC pic flag -KPIC is the default.
19141 ;;
19142 *)
19143 ;;
19144 esac
19145 ;;
cristy0c60a692010-11-04 01:09:47 +000019146 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000019147 case $cc_basename in
19148 KCC*)
19149 # KAI C++ Compiler
19150 lt_prog_compiler_wl_CXX='--backend -Wl,'
19151 lt_prog_compiler_pic_CXX='-fPIC'
19152 ;;
19153 ecpc* )
19154 # old Intel C++ for x86_64 which still supported -KPIC.
19155 lt_prog_compiler_wl_CXX='-Wl,'
19156 lt_prog_compiler_pic_CXX='-KPIC'
19157 lt_prog_compiler_static_CXX='-static'
19158 ;;
19159 icpc* )
19160 # Intel C++, used to be incompatible with GCC.
19161 # ICC 10 doesn't accept -KPIC any more.
19162 lt_prog_compiler_wl_CXX='-Wl,'
19163 lt_prog_compiler_pic_CXX='-fPIC'
19164 lt_prog_compiler_static_CXX='-static'
19165 ;;
19166 pgCC* | pgcpp*)
19167 # Portland Group C++ compiler
19168 lt_prog_compiler_wl_CXX='-Wl,'
19169 lt_prog_compiler_pic_CXX='-fpic'
19170 lt_prog_compiler_static_CXX='-Bstatic'
19171 ;;
19172 cxx*)
19173 # Compaq C++
19174 # Make sure the PIC flag is empty. It appears that all Alpha
19175 # Linux and Compaq Tru64 Unix objects are PIC.
19176 lt_prog_compiler_pic_CXX=
19177 lt_prog_compiler_static_CXX='-non_shared'
19178 ;;
cristy0c60a692010-11-04 01:09:47 +000019179 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
19180 # IBM XL 8.0, 9.0 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000019181 lt_prog_compiler_wl_CXX='-Wl,'
19182 lt_prog_compiler_pic_CXX='-qpic'
19183 lt_prog_compiler_static_CXX='-qstaticlink'
19184 ;;
19185 *)
19186 case `$CC -V 2>&1 | sed 5q` in
19187 *Sun\ C*)
19188 # Sun C++ 5.9
19189 lt_prog_compiler_pic_CXX='-KPIC'
19190 lt_prog_compiler_static_CXX='-Bstatic'
19191 lt_prog_compiler_wl_CXX='-Qoption ld '
19192 ;;
19193 esac
19194 ;;
19195 esac
19196 ;;
19197 lynxos*)
19198 ;;
19199 m88k*)
19200 ;;
19201 mvs*)
19202 case $cc_basename in
19203 cxx*)
19204 lt_prog_compiler_pic_CXX='-W c,exportall'
19205 ;;
19206 *)
19207 ;;
19208 esac
19209 ;;
19210 netbsd*)
19211 ;;
19212 *qnx* | *nto*)
19213 # QNX uses GNU C++, but need to define -shared option too, otherwise
19214 # it will coredump.
19215 lt_prog_compiler_pic_CXX='-fPIC -shared'
19216 ;;
19217 osf3* | osf4* | osf5*)
19218 case $cc_basename in
19219 KCC*)
19220 lt_prog_compiler_wl_CXX='--backend -Wl,'
19221 ;;
19222 RCC*)
19223 # Rational C++ 2.4.1
19224 lt_prog_compiler_pic_CXX='-pic'
19225 ;;
19226 cxx*)
19227 # Digital/Compaq C++
19228 lt_prog_compiler_wl_CXX='-Wl,'
19229 # Make sure the PIC flag is empty. It appears that all Alpha
19230 # Linux and Compaq Tru64 Unix objects are PIC.
19231 lt_prog_compiler_pic_CXX=
19232 lt_prog_compiler_static_CXX='-non_shared'
19233 ;;
19234 *)
19235 ;;
19236 esac
19237 ;;
19238 psos*)
19239 ;;
19240 solaris*)
19241 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000019242 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000019243 # Sun C++ 4.2, 5.x and Centerline C++
19244 lt_prog_compiler_pic_CXX='-KPIC'
19245 lt_prog_compiler_static_CXX='-Bstatic'
19246 lt_prog_compiler_wl_CXX='-Qoption ld '
19247 ;;
19248 gcx*)
19249 # Green Hills C++ Compiler
19250 lt_prog_compiler_pic_CXX='-PIC'
19251 ;;
19252 *)
19253 ;;
19254 esac
19255 ;;
19256 sunos4*)
19257 case $cc_basename in
19258 CC*)
19259 # Sun C++ 4.x
19260 lt_prog_compiler_pic_CXX='-pic'
19261 lt_prog_compiler_static_CXX='-Bstatic'
19262 ;;
19263 lcc*)
19264 # Lucid
19265 lt_prog_compiler_pic_CXX='-pic'
19266 ;;
19267 *)
19268 ;;
19269 esac
19270 ;;
19271 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19272 case $cc_basename in
19273 CC*)
19274 lt_prog_compiler_wl_CXX='-Wl,'
19275 lt_prog_compiler_pic_CXX='-KPIC'
19276 lt_prog_compiler_static_CXX='-Bstatic'
19277 ;;
19278 esac
19279 ;;
19280 tandem*)
19281 case $cc_basename in
19282 NCC*)
19283 # NonStop-UX NCC 3.20
19284 lt_prog_compiler_pic_CXX='-KPIC'
19285 ;;
19286 *)
19287 ;;
19288 esac
19289 ;;
19290 vxworks*)
19291 ;;
19292 *)
19293 lt_prog_compiler_can_build_shared_CXX=no
19294 ;;
19295 esac
19296 fi
19297
19298case $host_os in
19299 # For platforms which do not support PIC, -DPIC is meaningless:
19300 *djgpp*)
19301 lt_prog_compiler_pic_CXX=
19302 ;;
19303 *)
19304 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19305 ;;
19306esac
cristy73bd4a52010-10-05 11:24:23 +000019307
cristyda16f162011-02-19 23:52:17 +000019308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19309$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19310if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
19311 $as_echo_n "(cached) " >&6
19312else
19313 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
19314fi
19315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
19316$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
19317lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
cristy73bd4a52010-10-05 11:24:23 +000019318
19319#
19320# Check to make sure the PIC flag actually works.
19321#
19322if test -n "$lt_prog_compiler_pic_CXX"; then
19323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19324$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019325if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019326 $as_echo_n "(cached) " >&6
19327else
19328 lt_cv_prog_compiler_pic_works_CXX=no
19329 ac_outfile=conftest.$ac_objext
19330 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19331 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19332 # Insert the option either (1) after the last *FLAGS variable, or
19333 # (2) before a word containing "conftest.", or (3) at the end.
19334 # Note that $ac_compile itself does not contain backslashes and begins
19335 # with a dollar sign (not a hyphen), so the echo should work correctly.
19336 # The option is referenced via a variable to avoid confusing sed.
19337 lt_compile=`echo "$ac_compile" | $SED \
19338 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19339 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19340 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000019341 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000019342 (eval "$lt_compile" 2>conftest.err)
19343 ac_status=$?
19344 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000019345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000019346 if (exit $ac_status) && test -s "$ac_outfile"; then
19347 # The compiler can only warn and ignore the option if not recognized
19348 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000019349 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019350 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19351 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19352 lt_cv_prog_compiler_pic_works_CXX=yes
19353 fi
19354 fi
19355 $RM conftest*
19356
19357fi
19358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
19359$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
19360
19361if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
19362 case $lt_prog_compiler_pic_CXX in
19363 "" | " "*) ;;
19364 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19365 esac
19366else
19367 lt_prog_compiler_pic_CXX=
19368 lt_prog_compiler_can_build_shared_CXX=no
19369fi
19370
19371fi
19372
19373
19374
cristyda16f162011-02-19 23:52:17 +000019375
19376
cristy73bd4a52010-10-05 11:24:23 +000019377#
19378# Check to make sure the static flag actually works.
19379#
19380wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19382$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019383if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019384 $as_echo_n "(cached) " >&6
19385else
19386 lt_cv_prog_compiler_static_works_CXX=no
19387 save_LDFLAGS="$LDFLAGS"
19388 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19389 echo "$lt_simple_link_test_code" > conftest.$ac_ext
19390 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19391 # The linker can only warn and ignore the option if not recognized
19392 # So say no if there are warnings
19393 if test -s conftest.err; then
19394 # Append any errors to the config.log.
19395 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000019396 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019397 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19398 if diff conftest.exp conftest.er2 >/dev/null; then
19399 lt_cv_prog_compiler_static_works_CXX=yes
19400 fi
19401 else
19402 lt_cv_prog_compiler_static_works_CXX=yes
19403 fi
19404 fi
19405 $RM -r conftest*
19406 LDFLAGS="$save_LDFLAGS"
19407
19408fi
19409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
19410$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
19411
19412if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
19413 :
19414else
19415 lt_prog_compiler_static_CXX=
19416fi
19417
19418
19419
19420
19421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19422$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019423if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019424 $as_echo_n "(cached) " >&6
19425else
19426 lt_cv_prog_compiler_c_o_CXX=no
19427 $RM -r conftest 2>/dev/null
19428 mkdir conftest
19429 cd conftest
19430 mkdir out
19431 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19432
19433 lt_compiler_flag="-o out/conftest2.$ac_objext"
19434 # Insert the option either (1) after the last *FLAGS variable, or
19435 # (2) before a word containing "conftest.", or (3) at the end.
19436 # Note that $ac_compile itself does not contain backslashes and begins
19437 # with a dollar sign (not a hyphen), so the echo should work correctly.
19438 lt_compile=`echo "$ac_compile" | $SED \
19439 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19440 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19441 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000019442 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000019443 (eval "$lt_compile" 2>out/conftest.err)
19444 ac_status=$?
19445 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000019446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000019447 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19448 then
19449 # The compiler can only warn and ignore the option if not recognized
19450 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000019451 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019452 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19453 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19454 lt_cv_prog_compiler_c_o_CXX=yes
19455 fi
19456 fi
19457 chmod u+w . 2>&5
19458 $RM conftest*
19459 # SGI C++ compiler will create directory out/ii_files/ for
19460 # template instantiation
19461 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19462 $RM out/* && rmdir out
19463 cd ..
19464 $RM -r conftest
19465 $RM conftest*
19466
19467fi
19468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19469$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19470
19471
19472
19473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19474$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019475if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019476 $as_echo_n "(cached) " >&6
19477else
19478 lt_cv_prog_compiler_c_o_CXX=no
19479 $RM -r conftest 2>/dev/null
19480 mkdir conftest
19481 cd conftest
19482 mkdir out
19483 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19484
19485 lt_compiler_flag="-o out/conftest2.$ac_objext"
19486 # Insert the option either (1) after the last *FLAGS variable, or
19487 # (2) before a word containing "conftest.", or (3) at the end.
19488 # Note that $ac_compile itself does not contain backslashes and begins
19489 # with a dollar sign (not a hyphen), so the echo should work correctly.
19490 lt_compile=`echo "$ac_compile" | $SED \
19491 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19492 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19493 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000019494 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000019495 (eval "$lt_compile" 2>out/conftest.err)
19496 ac_status=$?
19497 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000019498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000019499 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19500 then
19501 # The compiler can only warn and ignore the option if not recognized
19502 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000019503 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019504 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19505 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19506 lt_cv_prog_compiler_c_o_CXX=yes
19507 fi
19508 fi
19509 chmod u+w . 2>&5
19510 $RM conftest*
19511 # SGI C++ compiler will create directory out/ii_files/ for
19512 # template instantiation
19513 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19514 $RM out/* && rmdir out
19515 cd ..
19516 $RM -r conftest
19517 $RM conftest*
19518
19519fi
19520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19521$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19522
19523
19524
19525
19526hard_links="nottested"
19527if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19528 # do not overwrite the value of need_locks provided by the user
19529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
19530$as_echo_n "checking if we can lock with hard links... " >&6; }
19531 hard_links=yes
19532 $RM conftest*
19533 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19534 touch conftest.a
19535 ln conftest.a conftest.b 2>&5 || hard_links=no
19536 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
19538$as_echo "$hard_links" >&6; }
19539 if test "$hard_links" = no; then
19540 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19541$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19542 need_locks=warn
19543 fi
19544else
19545 need_locks=no
19546fi
19547
19548
19549
19550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19551$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19552
19553 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000019554 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
cristy73bd4a52010-10-05 11:24:23 +000019555 case $host_os in
19556 aix[4-9]*)
19557 # If we're using GNU nm, then we don't want the "-C" option.
19558 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000019559 # Also, AIX nm treats weak defined symbols like other global defined
19560 # symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000019561 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000019562 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
cristy73bd4a52010-10-05 11:24:23 +000019563 else
19564 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'
19565 fi
19566 ;;
19567 pw32*)
19568 export_symbols_cmds_CXX="$ltdll_cmds"
cristyda16f162011-02-19 23:52:17 +000019569 ;;
cristy73bd4a52010-10-05 11:24:23 +000019570 cygwin* | mingw* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000019571 case $cc_basename in
cristy99bd5232011-12-07 14:38:20 +000019572 cl*)
19573 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
19574 ;;
cristyda16f162011-02-19 23:52:17 +000019575 *)
19576 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
19577 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
19578 ;;
19579 esac
19580 ;;
cristy73bd4a52010-10-05 11:24:23 +000019581 *)
19582 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000019583 ;;
cristy73bd4a52010-10-05 11:24:23 +000019584 esac
cristy73bd4a52010-10-05 11:24:23 +000019585
19586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19587$as_echo "$ld_shlibs_CXX" >&6; }
19588test "$ld_shlibs_CXX" = no && can_build_shared=no
19589
19590with_gnu_ld_CXX=$with_gnu_ld
19591
19592
19593
19594
19595
19596
19597#
19598# Do we need to explicitly link libc?
19599#
19600case "x$archive_cmds_need_lc_CXX" in
19601x|xyes)
19602 # Assume -lc should be added
19603 archive_cmds_need_lc_CXX=yes
19604
19605 if test "$enable_shared" = yes && test "$GCC" = yes; then
19606 case $archive_cmds_CXX in
19607 *'~'*)
19608 # FIXME: we may have to deal with multi-command sequences.
19609 ;;
19610 '$CC '*)
19611 # Test whether the compiler implicitly links with -lc since on some
19612 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19613 # to ld, don't add -lc before -lgcc.
19614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
19615$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019616if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000019617 $as_echo_n "(cached) " >&6
19618else
19619 $RM conftest*
19620 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000019621
cristy0c60a692010-11-04 01:09:47 +000019622 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000019623 (eval $ac_compile) 2>&5
19624 ac_status=$?
19625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19626 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000019627 soname=conftest
19628 lib=conftest
19629 libobjs=conftest.$ac_objext
19630 deplibs=
19631 wl=$lt_prog_compiler_wl_CXX
19632 pic_flag=$lt_prog_compiler_pic_CXX
19633 compiler_flags=-v
19634 linker_flags=-v
19635 verstring=
19636 output_objdir=.
19637 libname=conftest
19638 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19639 allow_undefined_flag_CXX=
19640 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000019641 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
19642 ac_status=$?
19643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19644 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000019645 then
19646 lt_cv_archive_cmds_need_lc_CXX=no
19647 else
19648 lt_cv_archive_cmds_need_lc_CXX=yes
19649 fi
19650 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19651 else
19652 cat conftest.err 1>&5
19653 fi
19654 $RM conftest*
19655
19656fi
19657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
19658$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
19659 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
cristy73bd4a52010-10-05 11:24:23 +000019660 ;;
19661 esac
19662 fi
19663 ;;
19664esac
19665
19666
19667
19668
19669
19670
19671
19672
19673
19674
19675
19676
19677
19678
19679
19680
19681
19682
19683
19684
19685
19686
19687
19688
19689
19690
19691
19692
19693
19694
19695
19696
19697
19698
19699
19700
19701
19702
19703
19704
19705
19706
19707
19708
19709
19710
19711
19712
19713
19714
19715
19716
19717
19718
19719
19720
19721
19722
19723
19724
19725
19726
cristy73bd4a52010-10-05 11:24:23 +000019727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
19728$as_echo_n "checking dynamic linker characteristics... " >&6; }
19729
19730library_names_spec=
19731libname_spec='lib$name'
19732soname_spec=
19733shrext_cmds=".so"
19734postinstall_cmds=
19735postuninstall_cmds=
19736finish_cmds=
19737finish_eval=
19738shlibpath_var=
19739shlibpath_overrides_runpath=unknown
19740version_type=none
19741dynamic_linker="$host_os ld.so"
19742sys_lib_dlsearch_path_spec="/lib /usr/lib"
19743need_lib_prefix=unknown
19744hardcode_into_libs=no
19745
19746# when you set need_version to no, make sure it does not cause -set_version
19747# flags to be left without arguments
19748need_version=unknown
19749
19750case $host_os in
19751aix3*)
cristy99bd5232011-12-07 14:38:20 +000019752 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019753 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19754 shlibpath_var=LIBPATH
19755
19756 # AIX 3 has no versioning support, so we append a major version to the name.
19757 soname_spec='${libname}${release}${shared_ext}$major'
19758 ;;
19759
19760aix[4-9]*)
cristy99bd5232011-12-07 14:38:20 +000019761 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019762 need_lib_prefix=no
19763 need_version=no
19764 hardcode_into_libs=yes
19765 if test "$host_cpu" = ia64; then
19766 # AIX 5 supports IA64
19767 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19768 shlibpath_var=LD_LIBRARY_PATH
19769 else
19770 # With GCC up to 2.95.x, collect2 would create an import file
19771 # for dependence libraries. The import file would start with
19772 # the line `#! .'. This would cause the generated library to
19773 # depend on `.', always an invalid library. This was fixed in
19774 # development snapshots of GCC prior to 3.0.
19775 case $host_os in
19776 aix4 | aix4.[01] | aix4.[01].*)
19777 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19778 echo ' yes '
19779 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
19780 :
19781 else
19782 can_build_shared=no
19783 fi
19784 ;;
19785 esac
19786 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19787 # soname into executable. Probably we can add versioning support to
19788 # collect2, so additional links can be useful in future.
19789 if test "$aix_use_runtimelinking" = yes; then
19790 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19791 # instead of lib<name>.a to let people know that these are not
19792 # typical AIX shared libraries.
19793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19794 else
19795 # We preserve .a as extension for shared libraries through AIX4.2
19796 # and later when we are not doing run time linking.
19797 library_names_spec='${libname}${release}.a $libname.a'
19798 soname_spec='${libname}${release}${shared_ext}$major'
19799 fi
19800 shlibpath_var=LIBPATH
19801 fi
19802 ;;
19803
19804amigaos*)
19805 case $host_cpu in
19806 powerpc)
19807 # Since July 2007 AmigaOS4 officially supports .so libraries.
19808 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
19809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19810 ;;
19811 m68k)
19812 library_names_spec='$libname.ixlibrary $libname.a'
19813 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000019814 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
cristy73bd4a52010-10-05 11:24:23 +000019815 ;;
19816 esac
19817 ;;
19818
19819beos*)
19820 library_names_spec='${libname}${shared_ext}'
19821 dynamic_linker="$host_os ld.so"
19822 shlibpath_var=LIBRARY_PATH
19823 ;;
19824
19825bsdi[45]*)
cristy99bd5232011-12-07 14:38:20 +000019826 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019827 need_version=no
19828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19829 soname_spec='${libname}${release}${shared_ext}$major'
19830 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19831 shlibpath_var=LD_LIBRARY_PATH
19832 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19833 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19834 # the default ld.so.conf also contains /usr/contrib/lib and
19835 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19836 # libtool to hard-code these into programs
19837 ;;
19838
19839cygwin* | mingw* | pw32* | cegcc*)
19840 version_type=windows
19841 shrext_cmds=".dll"
19842 need_version=no
19843 need_lib_prefix=no
19844
cristyda16f162011-02-19 23:52:17 +000019845 case $GCC,$cc_basename in
19846 yes,*)
19847 # gcc
cristy73bd4a52010-10-05 11:24:23 +000019848 library_names_spec='$libname.dll.a'
19849 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19850 postinstall_cmds='base_file=`basename \${file}`~
19851 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
19852 dldir=$destdir/`dirname \$dlpath`~
19853 test -d \$dldir || mkdir -p \$dldir~
19854 $install_prog $dir/$dlname \$dldir/$dlname~
19855 chmod a+x \$dldir/$dlname~
19856 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
19857 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
19858 fi'
19859 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19860 dlpath=$dir/\$dldll~
19861 $RM \$dlpath'
19862 shlibpath_overrides_runpath=yes
19863
19864 case $host_os in
19865 cygwin*)
19866 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19867 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000019868
cristy73bd4a52010-10-05 11:24:23 +000019869 ;;
19870 mingw* | cegcc*)
19871 # MinGW DLLs use traditional 'lib' prefix
19872 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000019873 ;;
19874 pw32*)
19875 # pw32 DLLs use 'pw' prefix rather than 'lib'
19876 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19877 ;;
19878 esac
cristyda16f162011-02-19 23:52:17 +000019879 dynamic_linker='Win32 ld.exe'
19880 ;;
19881
19882 *,cl*)
19883 # Native MSVC
19884 libname_spec='$name'
19885 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19886 library_names_spec='${libname}.dll.lib'
19887
19888 case $build_os in
19889 mingw*)
19890 sys_lib_search_path_spec=
19891 lt_save_ifs=$IFS
19892 IFS=';'
19893 for lt_path in $LIB
19894 do
19895 IFS=$lt_save_ifs
19896 # Let DOS variable expansion print the short 8.3 style file name.
19897 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
19898 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
19899 done
19900 IFS=$lt_save_ifs
19901 # Convert to MSYS style.
19902 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
19903 ;;
19904 cygwin*)
19905 # Convert to unix form, then to dos form, then back to unix form
19906 # but this time dos style (no spaces!) so that the unix form looks
19907 # like /cygdrive/c/PROGRA~1:/cygdr...
19908 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
19909 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
19910 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19911 ;;
19912 *)
19913 sys_lib_search_path_spec="$LIB"
19914 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
19915 # It is most probably a Windows format PATH.
19916 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19917 else
19918 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19919 fi
19920 # FIXME: find the short name or the path components, as spaces are
19921 # common. (e.g. "Program Files" -> "PROGRA~1")
19922 ;;
19923 esac
19924
19925 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19926 postinstall_cmds='base_file=`basename \${file}`~
19927 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
19928 dldir=$destdir/`dirname \$dlpath`~
19929 test -d \$dldir || mkdir -p \$dldir~
19930 $install_prog $dir/$dlname \$dldir/$dlname'
19931 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19932 dlpath=$dir/\$dldll~
19933 $RM \$dlpath'
19934 shlibpath_overrides_runpath=yes
19935 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000019936 ;;
19937
19938 *)
cristyda16f162011-02-19 23:52:17 +000019939 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000019940 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000019941 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000019942 ;;
19943 esac
cristy73bd4a52010-10-05 11:24:23 +000019944 # FIXME: first we should search . and the directory the executable is in
19945 shlibpath_var=PATH
19946 ;;
19947
19948darwin* | rhapsody*)
19949 dynamic_linker="$host_os dyld"
19950 version_type=darwin
19951 need_lib_prefix=no
19952 need_version=no
19953 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19954 soname_spec='${libname}${release}${major}$shared_ext'
19955 shlibpath_overrides_runpath=yes
19956 shlibpath_var=DYLD_LIBRARY_PATH
19957 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19958
19959 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19960 ;;
19961
19962dgux*)
cristy99bd5232011-12-07 14:38:20 +000019963 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019964 need_lib_prefix=no
19965 need_version=no
19966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19967 soname_spec='${libname}${release}${shared_ext}$major'
19968 shlibpath_var=LD_LIBRARY_PATH
19969 ;;
19970
cristy73bd4a52010-10-05 11:24:23 +000019971freebsd* | dragonfly*)
19972 # DragonFly does not have aout. When/if they implement a new
19973 # versioning mechanism, adjust this.
19974 if test -x /usr/bin/objformat; then
19975 objformat=`/usr/bin/objformat`
19976 else
19977 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000019978 freebsd[23].*) objformat=aout ;;
cristy73bd4a52010-10-05 11:24:23 +000019979 *) objformat=elf ;;
19980 esac
19981 fi
19982 version_type=freebsd-$objformat
19983 case $version_type in
19984 freebsd-elf*)
19985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19986 need_version=no
19987 need_lib_prefix=no
19988 ;;
19989 freebsd-*)
19990 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19991 need_version=yes
19992 ;;
19993 esac
19994 shlibpath_var=LD_LIBRARY_PATH
19995 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000019996 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000019997 shlibpath_overrides_runpath=yes
19998 ;;
19999 freebsd3.[01]* | freebsdelf3.[01]*)
20000 shlibpath_overrides_runpath=yes
20001 hardcode_into_libs=yes
20002 ;;
20003 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20004 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20005 shlibpath_overrides_runpath=no
20006 hardcode_into_libs=yes
20007 ;;
20008 *) # from 4.6 on, and DragonFly
20009 shlibpath_overrides_runpath=yes
20010 hardcode_into_libs=yes
20011 ;;
20012 esac
20013 ;;
20014
20015gnu*)
cristy99bd5232011-12-07 14:38:20 +000020016 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020017 need_lib_prefix=no
20018 need_version=no
20019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20020 soname_spec='${libname}${release}${shared_ext}$major'
20021 shlibpath_var=LD_LIBRARY_PATH
cristy99bd5232011-12-07 14:38:20 +000020022 shlibpath_overrides_runpath=no
cristy73bd4a52010-10-05 11:24:23 +000020023 hardcode_into_libs=yes
20024 ;;
20025
cristy0c60a692010-11-04 01:09:47 +000020026haiku*)
cristy99bd5232011-12-07 14:38:20 +000020027 version_type=linux # correct to gnu/linux during the next big refactor
cristy0c60a692010-11-04 01:09:47 +000020028 need_lib_prefix=no
20029 need_version=no
20030 dynamic_linker="$host_os runtime_loader"
20031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20032 soname_spec='${libname}${release}${shared_ext}$major'
20033 shlibpath_var=LIBRARY_PATH
20034 shlibpath_overrides_runpath=yes
20035 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
20036 hardcode_into_libs=yes
20037 ;;
20038
cristy73bd4a52010-10-05 11:24:23 +000020039hpux9* | hpux10* | hpux11*)
20040 # Give a soname corresponding to the major version so that dld.sl refuses to
20041 # link against other versions.
20042 version_type=sunos
20043 need_lib_prefix=no
20044 need_version=no
20045 case $host_cpu in
20046 ia64*)
20047 shrext_cmds='.so'
20048 hardcode_into_libs=yes
20049 dynamic_linker="$host_os dld.so"
20050 shlibpath_var=LD_LIBRARY_PATH
20051 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20053 soname_spec='${libname}${release}${shared_ext}$major'
20054 if test "X$HPUX_IA64_MODE" = X32; then
20055 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20056 else
20057 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20058 fi
20059 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20060 ;;
20061 hppa*64*)
20062 shrext_cmds='.sl'
20063 hardcode_into_libs=yes
20064 dynamic_linker="$host_os dld.sl"
20065 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20066 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20068 soname_spec='${libname}${release}${shared_ext}$major'
20069 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20070 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20071 ;;
20072 *)
20073 shrext_cmds='.sl'
20074 dynamic_linker="$host_os dld.sl"
20075 shlibpath_var=SHLIB_PATH
20076 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20078 soname_spec='${libname}${release}${shared_ext}$major'
20079 ;;
20080 esac
cristy0c60a692010-11-04 01:09:47 +000020081 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000020082 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000020083 # or fails outright, so override atomically:
20084 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000020085 ;;
20086
20087interix[3-9]*)
cristy99bd5232011-12-07 14:38:20 +000020088 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020089 need_lib_prefix=no
20090 need_version=no
20091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20092 soname_spec='${libname}${release}${shared_ext}$major'
20093 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20094 shlibpath_var=LD_LIBRARY_PATH
20095 shlibpath_overrides_runpath=no
20096 hardcode_into_libs=yes
20097 ;;
20098
20099irix5* | irix6* | nonstopux*)
20100 case $host_os in
20101 nonstopux*) version_type=nonstopux ;;
20102 *)
20103 if test "$lt_cv_prog_gnu_ld" = yes; then
cristy99bd5232011-12-07 14:38:20 +000020104 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020105 else
20106 version_type=irix
20107 fi ;;
20108 esac
20109 need_lib_prefix=no
20110 need_version=no
20111 soname_spec='${libname}${release}${shared_ext}$major'
20112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20113 case $host_os in
20114 irix5* | nonstopux*)
20115 libsuff= shlibsuff=
20116 ;;
20117 *)
20118 case $LD in # libtool.m4 will add one of these switches to LD
20119 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20120 libsuff= shlibsuff= libmagic=32-bit;;
20121 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20122 libsuff=32 shlibsuff=N32 libmagic=N32;;
20123 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20124 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20125 *) libsuff= shlibsuff= libmagic=never-match;;
20126 esac
20127 ;;
20128 esac
20129 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20130 shlibpath_overrides_runpath=no
20131 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20132 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20133 hardcode_into_libs=yes
20134 ;;
20135
20136# No shared lib support for Linux oldld, aout, or coff.
20137linux*oldld* | linux*aout* | linux*coff*)
20138 dynamic_linker=no
20139 ;;
20140
cristy99bd5232011-12-07 14:38:20 +000020141# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000020142linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy99bd5232011-12-07 14:38:20 +000020143 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020144 need_lib_prefix=no
20145 need_version=no
20146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20147 soname_spec='${libname}${release}${shared_ext}$major'
20148 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20149 shlibpath_var=LD_LIBRARY_PATH
20150 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000020151
cristy73bd4a52010-10-05 11:24:23 +000020152 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000020153 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000020154 $as_echo_n "(cached) " >&6
20155else
20156 lt_cv_shlibpath_overrides_runpath=no
20157 save_LDFLAGS=$LDFLAGS
20158 save_libdir=$libdir
20159 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20160 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000020162/* end confdefs.h. */
20163
20164int
20165main ()
20166{
20167
20168 ;
20169 return 0;
20170}
20171_ACEOF
20172if ac_fn_cxx_try_link "$LINENO"; then :
20173 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000020174 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000020175fi
20176fi
20177rm -f core conftest.err conftest.$ac_objext \
20178 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000020179 LDFLAGS=$save_LDFLAGS
20180 libdir=$save_libdir
20181
20182fi
20183
20184 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000020185
20186 # This implies no fast_install, which is unacceptable.
20187 # Some rework will be needed to allow for fast_install
20188 # before this can be enabled.
20189 hardcode_into_libs=yes
20190
20191 # Add ABI-specific directories to the system library path.
20192 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
20193
20194 # Append ld.so.conf contents to the search path
20195 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000020196 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;s/"//g;/^$/d' | tr '\n' ' '`
cristy73bd4a52010-10-05 11:24:23 +000020197 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000020198
cristy73bd4a52010-10-05 11:24:23 +000020199 fi
20200
20201 # We used to test for /lib/ld.so.1 and disable shared libraries on
20202 # powerpc, because MkLinux only supported shared libraries with the
20203 # GNU dynamic linker. Since this was broken with cross compilers,
20204 # most powerpc-linux boxes support dynamic linking these days and
20205 # people can always --disable-shared, the test was removed, and we
20206 # assume the GNU/Linux dynamic linker is in use.
20207 dynamic_linker='GNU/Linux ld.so'
20208 ;;
20209
20210netbsd*)
20211 version_type=sunos
20212 need_lib_prefix=no
20213 need_version=no
20214 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20216 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20217 dynamic_linker='NetBSD (a.out) ld.so'
20218 else
20219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20220 soname_spec='${libname}${release}${shared_ext}$major'
20221 dynamic_linker='NetBSD ld.elf_so'
20222 fi
20223 shlibpath_var=LD_LIBRARY_PATH
20224 shlibpath_overrides_runpath=yes
20225 hardcode_into_libs=yes
20226 ;;
20227
20228newsos6)
cristy99bd5232011-12-07 14:38:20 +000020229 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20231 shlibpath_var=LD_LIBRARY_PATH
20232 shlibpath_overrides_runpath=yes
20233 ;;
20234
20235*nto* | *qnx*)
20236 version_type=qnx
20237 need_lib_prefix=no
20238 need_version=no
20239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20240 soname_spec='${libname}${release}${shared_ext}$major'
20241 shlibpath_var=LD_LIBRARY_PATH
20242 shlibpath_overrides_runpath=no
20243 hardcode_into_libs=yes
20244 dynamic_linker='ldqnx.so'
20245 ;;
20246
20247openbsd*)
20248 version_type=sunos
20249 sys_lib_dlsearch_path_spec="/usr/lib"
20250 need_lib_prefix=no
20251 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20252 case $host_os in
20253 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20254 *) need_version=no ;;
20255 esac
20256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20257 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20258 shlibpath_var=LD_LIBRARY_PATH
20259 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20260 case $host_os in
20261 openbsd2.[89] | openbsd2.[89].*)
20262 shlibpath_overrides_runpath=no
20263 ;;
20264 *)
20265 shlibpath_overrides_runpath=yes
20266 ;;
20267 esac
20268 else
20269 shlibpath_overrides_runpath=yes
20270 fi
20271 ;;
20272
20273os2*)
20274 libname_spec='$name'
20275 shrext_cmds=".dll"
20276 need_lib_prefix=no
20277 library_names_spec='$libname${shared_ext} $libname.a'
20278 dynamic_linker='OS/2 ld.exe'
20279 shlibpath_var=LIBPATH
20280 ;;
20281
20282osf3* | osf4* | osf5*)
20283 version_type=osf
20284 need_lib_prefix=no
20285 need_version=no
20286 soname_spec='${libname}${release}${shared_ext}$major'
20287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20288 shlibpath_var=LD_LIBRARY_PATH
20289 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20290 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20291 ;;
20292
20293rdos*)
20294 dynamic_linker=no
20295 ;;
20296
20297solaris*)
cristy99bd5232011-12-07 14:38:20 +000020298 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020299 need_lib_prefix=no
20300 need_version=no
20301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20302 soname_spec='${libname}${release}${shared_ext}$major'
20303 shlibpath_var=LD_LIBRARY_PATH
20304 shlibpath_overrides_runpath=yes
20305 hardcode_into_libs=yes
20306 # ldd complains unless libraries are executable
20307 postinstall_cmds='chmod +x $lib'
20308 ;;
20309
20310sunos4*)
20311 version_type=sunos
20312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20313 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20314 shlibpath_var=LD_LIBRARY_PATH
20315 shlibpath_overrides_runpath=yes
20316 if test "$with_gnu_ld" = yes; then
20317 need_lib_prefix=no
20318 fi
20319 need_version=yes
20320 ;;
20321
20322sysv4 | sysv4.3*)
cristy99bd5232011-12-07 14:38:20 +000020323 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20325 soname_spec='${libname}${release}${shared_ext}$major'
20326 shlibpath_var=LD_LIBRARY_PATH
20327 case $host_vendor in
20328 sni)
20329 shlibpath_overrides_runpath=no
20330 need_lib_prefix=no
20331 runpath_var=LD_RUN_PATH
20332 ;;
20333 siemens)
20334 need_lib_prefix=no
20335 ;;
20336 motorola)
20337 need_lib_prefix=no
20338 need_version=no
20339 shlibpath_overrides_runpath=no
20340 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20341 ;;
20342 esac
20343 ;;
20344
20345sysv4*MP*)
20346 if test -d /usr/nec ;then
cristy99bd5232011-12-07 14:38:20 +000020347 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020348 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20349 soname_spec='$libname${shared_ext}.$major'
20350 shlibpath_var=LD_LIBRARY_PATH
20351 fi
20352 ;;
20353
20354sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20355 version_type=freebsd-elf
20356 need_lib_prefix=no
20357 need_version=no
20358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20359 soname_spec='${libname}${release}${shared_ext}$major'
20360 shlibpath_var=LD_LIBRARY_PATH
20361 shlibpath_overrides_runpath=yes
20362 hardcode_into_libs=yes
20363 if test "$with_gnu_ld" = yes; then
20364 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20365 else
20366 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20367 case $host_os in
20368 sco3.2v5*)
20369 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20370 ;;
20371 esac
20372 fi
20373 sys_lib_dlsearch_path_spec='/usr/lib'
20374 ;;
20375
20376tpf*)
20377 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
cristy99bd5232011-12-07 14:38:20 +000020378 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020379 need_lib_prefix=no
20380 need_version=no
20381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20382 shlibpath_var=LD_LIBRARY_PATH
20383 shlibpath_overrides_runpath=no
20384 hardcode_into_libs=yes
20385 ;;
20386
20387uts4*)
cristy99bd5232011-12-07 14:38:20 +000020388 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20390 soname_spec='${libname}${release}${shared_ext}$major'
20391 shlibpath_var=LD_LIBRARY_PATH
20392 ;;
20393
20394*)
20395 dynamic_linker=no
20396 ;;
20397esac
20398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
20399$as_echo "$dynamic_linker" >&6; }
20400test "$dynamic_linker" = no && can_build_shared=no
20401
20402variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20403if test "$GCC" = yes; then
20404 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20405fi
20406
20407if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
20408 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
20409fi
20410if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
20411 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
20412fi
20413
20414
20415
20416
20417
20418
20419
20420
20421
20422
20423
20424
20425
20426
20427
20428
20429
20430
20431
20432
20433
20434
20435
20436
20437
20438
20439
20440
20441
20442
20443
20444
20445
20446
20447
20448
cristy0c60a692010-11-04 01:09:47 +000020449
20450
cristy73bd4a52010-10-05 11:24:23 +000020451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
20452$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
20453hardcode_action_CXX=
20454if test -n "$hardcode_libdir_flag_spec_CXX" ||
20455 test -n "$runpath_var_CXX" ||
20456 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20457
20458 # We can hardcode non-existent directories.
20459 if test "$hardcode_direct_CXX" != no &&
20460 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20461 # have to relink, otherwise we might link with an installed library
20462 # when we should be linking with a yet-to-be-installed one
20463 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20464 test "$hardcode_minus_L_CXX" != no; then
20465 # Linking always hardcodes the temporary library directory.
20466 hardcode_action_CXX=relink
20467 else
20468 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20469 hardcode_action_CXX=immediate
20470 fi
20471else
20472 # We cannot hardcode anything, or else we can only hardcode existing
20473 # directories.
20474 hardcode_action_CXX=unsupported
20475fi
20476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
20477$as_echo "$hardcode_action_CXX" >&6; }
20478
20479if test "$hardcode_action_CXX" = relink ||
20480 test "$inherit_rpath_CXX" = yes; then
20481 # Fast installation is not supported
20482 enable_fast_install=no
20483elif test "$shlibpath_overrides_runpath" = yes ||
20484 test "$enable_shared" = no; then
20485 # Fast installation is not necessary
20486 enable_fast_install=needless
20487fi
20488
20489
20490
20491
20492
20493
20494
20495 fi # test -n "$compiler"
20496
20497 CC=$lt_save_CC
cristyda16f162011-02-19 23:52:17 +000020498 CFLAGS=$lt_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000020499 LDCXX=$LD
20500 LD=$lt_save_LD
20501 GCC=$lt_save_GCC
20502 with_gnu_ld=$lt_save_with_gnu_ld
20503 lt_cv_path_LDCXX=$lt_cv_path_LD
20504 lt_cv_path_LD=$lt_save_path_LD
20505 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20506 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20507fi # test "$_lt_caught_CXX_error" != yes
20508
20509ac_ext=c
20510ac_cpp='$CPP $CPPFLAGS'
20511ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20512ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20513ac_compiler_gnu=$ac_cv_c_compiler_gnu
20514
20515
20516
20517
20518
20519
20520
20521
20522
20523
20524
20525
20526
cristy99bd5232011-12-07 14:38:20 +000020527
20528
cristy73bd4a52010-10-05 11:24:23 +000020529 ac_config_commands="$ac_config_commands libtool"
20530
20531
20532
20533
20534# Only expand once:
20535
20536
20537
cristy3ed852e2009-09-05 21:47:34 +000020538
20539
20540# Configure libltdl
cristy73bd4a52010-10-05 11:24:23 +000020541
20542
20543
20544
20545
20546
20547
cristy73bd4a52010-10-05 11:24:23 +000020548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
20549$as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020550if ${libltdl_cv_shlibext+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020551 $as_echo_n "(cached) " >&6
20552else
20553
20554module=yes
20555eval libltdl_cv_shlibext=$shrext_cmds
cristy99bd5232011-12-07 14:38:20 +000020556module=no
20557eval libltdl_cv_shrext=$shrext_cmds
cristy73bd4a52010-10-05 11:24:23 +000020558
20559fi
20560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
20561$as_echo "$libltdl_cv_shlibext" >&6; }
20562if test -n "$libltdl_cv_shlibext"; then
20563
20564cat >>confdefs.h <<_ACEOF
20565#define LT_MODULE_EXT "$libltdl_cv_shlibext"
20566_ACEOF
20567
20568fi
cristy99bd5232011-12-07 14:38:20 +000020569if test "$libltdl_cv_shrext" != "$libltdl_cv_shlibext"; then
20570
20571cat >>confdefs.h <<_ACEOF
20572#define LT_SHARED_EXT "$libltdl_cv_shrext"
20573_ACEOF
20574
20575fi
cristy73bd4a52010-10-05 11:24:23 +000020576
20577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
20578$as_echo_n "checking which variable specifies run-time module search path... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020579if ${lt_cv_module_path_var+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020580 $as_echo_n "(cached) " >&6
20581else
20582 lt_cv_module_path_var="$shlibpath_var"
20583fi
20584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
20585$as_echo "$lt_cv_module_path_var" >&6; }
20586if test -n "$lt_cv_module_path_var"; then
20587
20588cat >>confdefs.h <<_ACEOF
20589#define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
20590_ACEOF
20591
20592fi
20593
20594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
20595$as_echo_n "checking for the default library search path... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020596if ${lt_cv_sys_dlsearch_path+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020597 $as_echo_n "(cached) " >&6
20598else
20599 lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
20600fi
20601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
20602$as_echo "$lt_cv_sys_dlsearch_path" >&6; }
20603if test -n "$lt_cv_sys_dlsearch_path"; then
20604 sys_dlsearch_path=
20605 for dir in $lt_cv_sys_dlsearch_path; do
20606 if test -z "$sys_dlsearch_path"; then
20607 sys_dlsearch_path="$dir"
20608 else
20609 sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
20610 fi
20611 done
20612
20613cat >>confdefs.h <<_ACEOF
20614#define LT_DLSEARCH_PATH "$sys_dlsearch_path"
20615_ACEOF
20616
20617fi
20618
20619
20620LT_DLLOADERS=
20621
20622
20623ac_ext=c
20624ac_cpp='$CPP $CPPFLAGS'
20625ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20626ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20627ac_compiler_gnu=$ac_cv_c_compiler_gnu
20628
20629
20630LIBADD_DLOPEN=
20631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
20632$as_echo_n "checking for library containing dlopen... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020633if ${ac_cv_search_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020634 $as_echo_n "(cached) " >&6
20635else
20636 ac_func_search_save_LIBS=$LIBS
20637cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20638/* end confdefs.h. */
20639
20640/* Override any GCC internal prototype to avoid an error.
20641 Use char because int might match the return type of a GCC
20642 builtin and then its argument prototype would still apply. */
20643#ifdef __cplusplus
20644extern "C"
20645#endif
20646char dlopen ();
20647int
20648main ()
20649{
20650return dlopen ();
20651 ;
20652 return 0;
20653}
20654_ACEOF
20655for ac_lib in '' dl; do
20656 if test -z "$ac_lib"; then
20657 ac_res="none required"
20658 else
20659 ac_res=-l$ac_lib
20660 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20661 fi
20662 if ac_fn_c_try_link "$LINENO"; then :
20663 ac_cv_search_dlopen=$ac_res
20664fi
20665rm -f core conftest.err conftest.$ac_objext \
20666 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000020667 if ${ac_cv_search_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020668 break
20669fi
20670done
cristyda16f162011-02-19 23:52:17 +000020671if ${ac_cv_search_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020672
20673else
20674 ac_cv_search_dlopen=no
20675fi
20676rm conftest.$ac_ext
20677LIBS=$ac_func_search_save_LIBS
20678fi
20679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
20680$as_echo "$ac_cv_search_dlopen" >&6; }
20681ac_res=$ac_cv_search_dlopen
20682if test "$ac_res" != no; then :
20683 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20684
20685$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
20686
20687 if test "$ac_cv_search_dlopen" != "none required" ; then
20688 LIBADD_DLOPEN="-ldl"
20689 fi
20690 libltdl_cv_lib_dl_dlopen="yes"
20691 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
20692else
20693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20694/* end confdefs.h. */
20695#if HAVE_DLFCN_H
20696# include <dlfcn.h>
20697#endif
20698
20699int
20700main ()
20701{
20702dlopen(0, 0);
20703 ;
20704 return 0;
20705}
20706_ACEOF
20707if ac_fn_c_try_link "$LINENO"; then :
20708
20709$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
20710
20711 libltdl_cv_func_dlopen="yes"
20712 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
20713else
20714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
20715$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020716if ${ac_cv_lib_svld_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020717 $as_echo_n "(cached) " >&6
20718else
20719 ac_check_lib_save_LIBS=$LIBS
20720LIBS="-lsvld $LIBS"
20721cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20722/* end confdefs.h. */
20723
20724/* Override any GCC internal prototype to avoid an error.
20725 Use char because int might match the return type of a GCC
20726 builtin and then its argument prototype would still apply. */
20727#ifdef __cplusplus
20728extern "C"
20729#endif
20730char dlopen ();
20731int
20732main ()
20733{
20734return dlopen ();
20735 ;
20736 return 0;
20737}
20738_ACEOF
20739if ac_fn_c_try_link "$LINENO"; then :
20740 ac_cv_lib_svld_dlopen=yes
20741else
20742 ac_cv_lib_svld_dlopen=no
20743fi
20744rm -f core conftest.err conftest.$ac_objext \
20745 conftest$ac_exeext conftest.$ac_ext
20746LIBS=$ac_check_lib_save_LIBS
20747fi
20748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
20749$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000020750if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020751
20752$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
20753
20754 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
20755 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
20756fi
20757
20758fi
20759rm -f core conftest.err conftest.$ac_objext \
20760 conftest$ac_exeext conftest.$ac_ext
20761fi
20762
20763if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
20764then
20765 lt_save_LIBS="$LIBS"
20766 LIBS="$LIBS $LIBADD_DLOPEN"
20767 for ac_func in dlerror
20768do :
20769 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
cristyda16f162011-02-19 23:52:17 +000020770if test "x$ac_cv_func_dlerror" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020771 cat >>confdefs.h <<_ACEOF
20772#define HAVE_DLERROR 1
20773_ACEOF
20774
20775fi
20776done
20777
20778 LIBS="$lt_save_LIBS"
20779fi
20780
20781
20782LIBADD_SHL_LOAD=
20783ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
cristyda16f162011-02-19 23:52:17 +000020784if test "x$ac_cv_func_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020785
20786$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
20787
20788 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
20789else
20790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
20791$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020792if ${ac_cv_lib_dld_shl_load+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020793 $as_echo_n "(cached) " >&6
20794else
20795 ac_check_lib_save_LIBS=$LIBS
20796LIBS="-ldld $LIBS"
20797cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20798/* end confdefs.h. */
20799
20800/* Override any GCC internal prototype to avoid an error.
20801 Use char because int might match the return type of a GCC
20802 builtin and then its argument prototype would still apply. */
20803#ifdef __cplusplus
20804extern "C"
20805#endif
20806char shl_load ();
20807int
20808main ()
20809{
20810return shl_load ();
20811 ;
20812 return 0;
20813}
20814_ACEOF
20815if ac_fn_c_try_link "$LINENO"; then :
20816 ac_cv_lib_dld_shl_load=yes
20817else
20818 ac_cv_lib_dld_shl_load=no
20819fi
20820rm -f core conftest.err conftest.$ac_objext \
20821 conftest$ac_exeext conftest.$ac_ext
20822LIBS=$ac_check_lib_save_LIBS
20823fi
20824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
20825$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristyda16f162011-02-19 23:52:17 +000020826if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020827
20828$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
20829
20830 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
20831 LIBADD_SHL_LOAD="-ldld"
20832fi
20833
20834fi
20835
20836
20837
20838case $host_os in
20839darwin[1567].*)
20840# We only want this for pre-Mac OS X 10.4.
20841 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
cristyda16f162011-02-19 23:52:17 +000020842if test "x$ac_cv_func__dyld_func_lookup" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020843
20844$as_echo "#define HAVE_DYLD 1" >>confdefs.h
20845
20846 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
20847fi
20848
20849 ;;
20850beos*)
20851 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
20852 ;;
20853cygwin* | mingw* | os2* | pw32*)
20854 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
20855"
cristyda16f162011-02-19 23:52:17 +000020856if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020857 ac_have_decl=1
20858else
20859 ac_have_decl=0
20860fi
20861
20862cat >>confdefs.h <<_ACEOF
20863#define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
20864_ACEOF
20865
20866 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
20867 ;;
20868esac
20869
20870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
20871$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020872if ${ac_cv_lib_dld_dld_link+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020873 $as_echo_n "(cached) " >&6
20874else
20875 ac_check_lib_save_LIBS=$LIBS
20876LIBS="-ldld $LIBS"
20877cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20878/* end confdefs.h. */
20879
20880/* Override any GCC internal prototype to avoid an error.
20881 Use char because int might match the return type of a GCC
20882 builtin and then its argument prototype would still apply. */
20883#ifdef __cplusplus
20884extern "C"
20885#endif
20886char dld_link ();
20887int
20888main ()
20889{
20890return dld_link ();
20891 ;
20892 return 0;
20893}
20894_ACEOF
20895if ac_fn_c_try_link "$LINENO"; then :
20896 ac_cv_lib_dld_dld_link=yes
20897else
20898 ac_cv_lib_dld_dld_link=no
20899fi
20900rm -f core conftest.err conftest.$ac_objext \
20901 conftest$ac_exeext conftest.$ac_ext
20902LIBS=$ac_check_lib_save_LIBS
20903fi
20904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
20905$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristyda16f162011-02-19 23:52:17 +000020906if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020907
20908$as_echo "#define HAVE_DLD 1" >>confdefs.h
20909
20910 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
20911fi
20912
20913
20914
20915
20916LT_DLPREOPEN=
20917if test -n "$LT_DLLOADERS"
20918then
20919 for lt_loader in $LT_DLLOADERS; do
20920 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
20921 done
20922
20923$as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
20924
20925fi
20926
20927
20928LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
20929
20930
20931ac_ext=c
20932ac_cpp='$CPP $CPPFLAGS'
20933ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20934ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20935ac_compiler_gnu=$ac_cv_c_compiler_gnu
20936
20937
20938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
20939$as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020940if ${lt_cv_sys_symbol_underscore+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020941 $as_echo_n "(cached) " >&6
20942else
20943 lt_cv_sys_symbol_underscore=no
20944 cat > conftest.$ac_ext <<_LT_EOF
20945void nm_test_func(){}
20946int main(){nm_test_func;return 0;}
20947_LT_EOF
20948 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20949 (eval $ac_compile) 2>&5
20950 ac_status=$?
20951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20952 test $ac_status = 0; }; then
20953 # Now try to grab the symbols.
20954 ac_nlist=conftest.nm
20955 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
20956 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
20957 ac_status=$?
20958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20959 test $ac_status = 0; } && test -s "$ac_nlist"; then
20960 # See whether the symbols have a leading underscore.
20961 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
20962 lt_cv_sys_symbol_underscore=yes
20963 else
20964 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
20965 :
20966 else
20967 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
20968 fi
20969 fi
20970 else
20971 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
20972 fi
20973 else
20974 echo "configure: failed program was:" >&5
20975 cat conftest.c >&5
20976 fi
20977 rm -rf conftest*
20978
20979fi
20980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
20981$as_echo "$lt_cv_sys_symbol_underscore" >&6; }
20982 sys_symbol_underscore=$lt_cv_sys_symbol_underscore
20983
20984
20985if test x"$lt_cv_sys_symbol_underscore" = xyes; then
20986 if test x"$libltdl_cv_func_dlopen" = xyes ||
20987 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
20988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
20989$as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020990if ${libltdl_cv_need_uscore+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020991 $as_echo_n "(cached) " >&6
20992else
20993 libltdl_cv_need_uscore=unknown
20994 save_LIBS="$LIBS"
20995 LIBS="$LIBS $LIBADD_DLOPEN"
20996 if test "$cross_compiling" = yes; then :
20997 libltdl_cv_need_uscore=cross
20998else
20999 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
21000 lt_status=$lt_dlunknown
21001 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000021002#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000021003#include "confdefs.h"
21004
21005#if HAVE_DLFCN_H
21006#include <dlfcn.h>
21007#endif
21008
21009#include <stdio.h>
21010
21011#ifdef RTLD_GLOBAL
21012# define LT_DLGLOBAL RTLD_GLOBAL
21013#else
21014# ifdef DL_GLOBAL
21015# define LT_DLGLOBAL DL_GLOBAL
21016# else
21017# define LT_DLGLOBAL 0
21018# endif
21019#endif
21020
21021/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
21022 find out it does not work in some platform. */
21023#ifndef LT_DLLAZY_OR_NOW
21024# ifdef RTLD_LAZY
21025# define LT_DLLAZY_OR_NOW RTLD_LAZY
21026# else
21027# ifdef DL_LAZY
21028# define LT_DLLAZY_OR_NOW DL_LAZY
21029# else
21030# ifdef RTLD_NOW
21031# define LT_DLLAZY_OR_NOW RTLD_NOW
21032# else
21033# ifdef DL_NOW
21034# define LT_DLLAZY_OR_NOW DL_NOW
21035# else
21036# define LT_DLLAZY_OR_NOW 0
21037# endif
21038# endif
21039# endif
21040# endif
21041#endif
21042
cristy0c60a692010-11-04 01:09:47 +000021043/* When -fvisbility=hidden is used, assume the code has been annotated
21044 correspondingly for the symbols needed. */
21045#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000021046int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000021047#endif
21048
cristyda16f162011-02-19 23:52:17 +000021049int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000021050int main ()
21051{
21052 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
21053 int status = $lt_dlunknown;
21054
21055 if (self)
21056 {
21057 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000021058 else
21059 {
21060 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
21061 else puts (dlerror ());
21062 }
cristy73bd4a52010-10-05 11:24:23 +000021063 /* dlclose (self); */
21064 }
21065 else
21066 puts (dlerror ());
21067
21068 return status;
21069}
21070_LT_EOF
21071 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
21072 (eval $ac_link) 2>&5
21073 ac_status=$?
21074 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21075 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
21076 (./conftest; exit; ) >&5 2>/dev/null
21077 lt_status=$?
21078 case x$lt_status in
21079 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
21080 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
21081 x$lt_dlunknown|x*) ;;
21082 esac
21083 else :
21084 # compilation failed
21085
21086 fi
21087fi
21088rm -fr conftest*
21089
21090 LIBS="$save_LIBS"
21091
21092fi
21093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
21094$as_echo "$libltdl_cv_need_uscore" >&6; }
21095 fi
21096fi
21097
21098if test x"$libltdl_cv_need_uscore" = xyes; then
21099
21100$as_echo "#define NEED_USCORE 1" >>confdefs.h
21101
21102fi
21103
21104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
21105$as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021106if ${lt_cv_sys_dlopen_deplibs+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000021107 $as_echo_n "(cached) " >&6
21108else
21109 # PORTME does your system automatically load deplibs for dlopen?
21110 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
21111 # For now, we just catch OSes we know something about -- in the
21112 # future, we'll try test this programmatically.
21113 lt_cv_sys_dlopen_deplibs=unknown
21114 case $host_os in
21115 aix3*|aix4.1.*|aix4.2.*)
21116 # Unknown whether this is true for these versions of AIX, but
21117 # we want this `case' here to explicitly catch those versions.
21118 lt_cv_sys_dlopen_deplibs=unknown
21119 ;;
21120 aix[4-9]*)
21121 lt_cv_sys_dlopen_deplibs=yes
21122 ;;
21123 amigaos*)
21124 case $host_cpu in
21125 powerpc)
21126 lt_cv_sys_dlopen_deplibs=no
21127 ;;
21128 esac
21129 ;;
21130 darwin*)
21131 # Assuming the user has installed a libdl from somewhere, this is true
21132 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
21133 lt_cv_sys_dlopen_deplibs=yes
21134 ;;
21135 freebsd* | dragonfly*)
21136 lt_cv_sys_dlopen_deplibs=yes
21137 ;;
cristy0c60a692010-11-04 01:09:47 +000021138 gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000021139 # GNU and its variants, using gnu ld.so (Glibc)
21140 lt_cv_sys_dlopen_deplibs=yes
21141 ;;
21142 hpux10*|hpux11*)
21143 lt_cv_sys_dlopen_deplibs=yes
21144 ;;
21145 interix*)
21146 lt_cv_sys_dlopen_deplibs=yes
21147 ;;
21148 irix[12345]*|irix6.[01]*)
21149 # Catch all versions of IRIX before 6.2, and indicate that we don't
21150 # know how it worked for any of those versions.
21151 lt_cv_sys_dlopen_deplibs=unknown
21152 ;;
21153 irix*)
21154 # The case above catches anything before 6.2, and it's known that
21155 # at 6.2 and later dlopen does load deplibs.
21156 lt_cv_sys_dlopen_deplibs=yes
21157 ;;
21158 netbsd*)
21159 lt_cv_sys_dlopen_deplibs=yes
21160 ;;
21161 openbsd*)
21162 lt_cv_sys_dlopen_deplibs=yes
21163 ;;
21164 osf[1234]*)
21165 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
21166 # it did *not* use an RPATH in a shared library to find objects the
21167 # library depends on, so we explicitly say `no'.
21168 lt_cv_sys_dlopen_deplibs=no
21169 ;;
21170 osf5.0|osf5.0a|osf5.1)
21171 # dlopen *does* load deplibs and with the right loader patch applied
21172 # it even uses RPATH in a shared library to search for shared objects
21173 # that the library depends on, but there's no easy way to know if that
21174 # patch is installed. Since this is the case, all we can really
21175 # say is unknown -- it depends on the patch being installed. If
21176 # it is, this changes to `yes'. Without it, it would be `no'.
21177 lt_cv_sys_dlopen_deplibs=unknown
21178 ;;
21179 osf*)
21180 # the two cases above should catch all versions of osf <= 5.1. Read
21181 # the comments above for what we know about them.
21182 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
21183 # is used to find them so we can finally say `yes'.
21184 lt_cv_sys_dlopen_deplibs=yes
21185 ;;
21186 qnx*)
21187 lt_cv_sys_dlopen_deplibs=yes
21188 ;;
21189 solaris*)
21190 lt_cv_sys_dlopen_deplibs=yes
21191 ;;
21192 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21193 libltdl_cv_sys_dlopen_deplibs=yes
21194 ;;
21195 esac
21196
21197fi
21198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
21199$as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
21200if test "$lt_cv_sys_dlopen_deplibs" != yes; then
21201
21202$as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
21203
21204fi
21205
21206:
21207
21208for ac_header in argz.h
21209do :
21210 ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
21211"
cristyda16f162011-02-19 23:52:17 +000021212if test "x$ac_cv_header_argz_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000021213 cat >>confdefs.h <<_ACEOF
21214#define HAVE_ARGZ_H 1
21215_ACEOF
21216
21217fi
21218
21219done
21220
21221
21222ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
21223# include <argz.h>
21224#endif
21225"
cristyda16f162011-02-19 23:52:17 +000021226if test "x$ac_cv_type_error_t" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000021227
21228cat >>confdefs.h <<_ACEOF
21229#define HAVE_ERROR_T 1
21230_ACEOF
21231
21232
21233else
21234
21235$as_echo "#define error_t int" >>confdefs.h
21236
21237
21238$as_echo "#define __error_t_defined 1" >>confdefs.h
21239
21240fi
21241
21242
21243ARGZ_H=
21244for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
21245 argz_next argz_stringify
21246do :
21247 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21248ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000021249if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000021250 cat >>confdefs.h <<_ACEOF
21251#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21252_ACEOF
21253
21254else
21255 ARGZ_H=argz.h;
21256
21257 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
21258
21259fi
21260done
21261
21262
21263if test -z "$ARGZ_H"; then :
21264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
21265$as_echo_n "checking if argz actually works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021266if ${lt_cv_sys_argz_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000021267 $as_echo_n "(cached) " >&6
21268else
21269 case $host_os in #(
21270 *cygwin*)
21271 lt_cv_sys_argz_works=no
21272 if test "$cross_compiling" != no; then
21273 lt_cv_sys_argz_works="guessing no"
21274 else
21275 lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
21276 save_IFS=$IFS
21277 IFS=-.
21278 set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
21279 IFS=$save_IFS
21280 lt_os_major=${2-0}
21281 lt_os_minor=${3-0}
21282 lt_os_micro=${4-0}
21283 if test "$lt_os_major" -gt 1 \
21284 || { test "$lt_os_major" -eq 1 \
21285 && { test "$lt_os_minor" -gt 5 \
21286 || { test "$lt_os_minor" -eq 5 \
21287 && test "$lt_os_micro" -gt 24; }; }; }; then
21288 lt_cv_sys_argz_works=yes
21289 fi
21290 fi
21291 ;; #(
21292 *) lt_cv_sys_argz_works=yes ;;
21293 esac
21294fi
21295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
21296$as_echo "$lt_cv_sys_argz_works" >&6; }
cristyda16f162011-02-19 23:52:17 +000021297 if test "$lt_cv_sys_argz_works" = yes; then :
cristy73bd4a52010-10-05 11:24:23 +000021298
21299$as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
21300
21301else
21302 ARGZ_H=argz.h
21303
21304
21305 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
21306
21307fi
21308fi
21309
21310
21311
21312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
21313$as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021314if ${libltdl_cv_preloaded_symbols+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000021315 $as_echo_n "(cached) " >&6
21316else
21317 if test -n "$lt_cv_sys_global_symbol_pipe"; then
21318 libltdl_cv_preloaded_symbols=yes
21319 else
21320 libltdl_cv_preloaded_symbols=no
21321 fi
21322
21323fi
21324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
21325$as_echo "$libltdl_cv_preloaded_symbols" >&6; }
21326if test x"$libltdl_cv_preloaded_symbols" = xyes; then
21327
21328$as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
21329
21330fi
21331
21332# Set options
21333
21334
21335
21336
21337
21338
21339
21340
21341
21342
21343
21344# Check whether --with-included_ltdl was given.
21345if test "${with_included_ltdl+set}" = set; then :
21346 withval=$with_included_ltdl;
21347fi
21348
21349
21350if test "x$with_included_ltdl" != xyes; then
21351 # We are not being forced to use the included libltdl sources, so
21352 # decide whether there is a useful installed version we can use.
21353 ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
21354
21355"
cristyda16f162011-02-19 23:52:17 +000021356if test "x$ac_cv_header_ltdl_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000021357 ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default
21358 #include <ltdl.h>
21359"
cristyda16f162011-02-19 23:52:17 +000021360if test "x$ac_cv_have_decl_lt_dlinterface_register" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000021361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
21362$as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021363if ${ac_cv_lib_ltdl_lt_dladvise_preload+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000021364 $as_echo_n "(cached) " >&6
21365else
21366 ac_check_lib_save_LIBS=$LIBS
21367LIBS="-lltdl $LIBS"
21368cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21369/* end confdefs.h. */
21370
21371/* Override any GCC internal prototype to avoid an error.
21372 Use char because int might match the return type of a GCC
21373 builtin and then its argument prototype would still apply. */
21374#ifdef __cplusplus
21375extern "C"
21376#endif
21377char lt_dladvise_preload ();
21378int
21379main ()
21380{
21381return lt_dladvise_preload ();
21382 ;
21383 return 0;
21384}
21385_ACEOF
21386if ac_fn_c_try_link "$LINENO"; then :
21387 ac_cv_lib_ltdl_lt_dladvise_preload=yes
21388else
21389 ac_cv_lib_ltdl_lt_dladvise_preload=no
21390fi
21391rm -f core conftest.err conftest.$ac_objext \
21392 conftest$ac_exeext conftest.$ac_ext
21393LIBS=$ac_check_lib_save_LIBS
21394fi
21395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
21396$as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
cristyda16f162011-02-19 23:52:17 +000021397if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000021398 with_included_ltdl=no
21399else
21400 with_included_ltdl=yes
21401fi
21402
21403else
21404 with_included_ltdl=yes
21405fi
21406
21407else
21408 with_included_ltdl=yes
21409fi
21410
21411
21412fi
21413
21414
21415
21416
21417# Check whether --with-ltdl_include was given.
21418if test "${with_ltdl_include+set}" = set; then :
21419 withval=$with_ltdl_include;
21420fi
21421
21422
21423if test -n "$with_ltdl_include"; then
21424 if test -f "$with_ltdl_include/ltdl.h"; then :
21425 else
cristy98dddb52010-11-04 00:30:15 +000021426 as_fn_error $? "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000021427 fi
21428else
21429 with_ltdl_include=no
21430fi
21431
21432
21433# Check whether --with-ltdl_lib was given.
21434if test "${with_ltdl_lib+set}" = set; then :
21435 withval=$with_ltdl_lib;
21436fi
21437
21438
21439if test -n "$with_ltdl_lib"; then
21440 if test -f "$with_ltdl_lib/libltdl.la"; then :
21441 else
cristy98dddb52010-11-04 00:30:15 +000021442 as_fn_error $? "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000021443 fi
21444else
21445 with_ltdl_lib=no
21446fi
21447
21448case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
21449 ,yes,no,no,)
21450 case $enable_ltdl_convenience in
cristy98dddb52010-11-04 00:30:15 +000021451 no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;;
cristy73bd4a52010-10-05 11:24:23 +000021452 "") enable_ltdl_convenience=yes
21453 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
21454esac
21455LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
21456LTDLDEPS=$LIBLTDL
21457LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
21458
21459
21460
21461
21462
21463# For backwards non-gettext consistent compatibility...
21464INCLTDL="$LTDLINCL"
21465
21466
21467 ;;
21468 ,no,no,no,)
21469 # If the included ltdl is not to be used, then use the
21470 # preinstalled libltdl we found.
21471
21472$as_echo "#define HAVE_LTDL 1" >>confdefs.h
21473
21474 LIBLTDL=-lltdl
21475 LTDLDEPS=
21476 LTDLINCL=
21477 ;;
21478 ,no*,no,*)
cristy98dddb52010-11-04 00:30:15 +000021479 as_fn_error $? "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000021480 ;;
21481 *) with_included_ltdl=no
21482 LIBLTDL="-L$with_ltdl_lib -lltdl"
21483 LTDLDEPS=
21484 LTDLINCL="-I$with_ltdl_include"
21485 ;;
21486esac
21487INCLTDL="$LTDLINCL"
21488
21489# Report our decision...
21490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
21491$as_echo_n "checking where to find libltdl headers... " >&6; }
21492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
21493$as_echo "$LTDLINCL" >&6; }
21494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
21495$as_echo_n "checking where to find libltdl library... " >&6; }
21496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
21497$as_echo "$LIBLTDL" >&6; }
21498
21499
21500
21501# Check whether --enable-ltdl-install was given.
21502if test "${enable_ltdl_install+set}" = set; then :
21503 enableval=$enable_ltdl_install;
21504fi
21505
21506
21507case ,${enable_ltdl_install},${enable_ltdl_convenience} in
21508 *yes*) ;;
21509 *) enable_ltdl_convenience=yes ;;
21510esac
21511
21512 if test x"${enable_ltdl_install-no}" != xno; then
21513 INSTALL_LTDL_TRUE=
21514 INSTALL_LTDL_FALSE='#'
21515else
21516 INSTALL_LTDL_TRUE='#'
21517 INSTALL_LTDL_FALSE=
21518fi
21519
21520 if test x"${enable_ltdl_convenience-no}" != xno; then
21521 CONVENIENCE_LTDL_TRUE=
21522 CONVENIENCE_LTDL_FALSE='#'
21523else
21524 CONVENIENCE_LTDL_TRUE='#'
21525 CONVENIENCE_LTDL_FALSE=
21526fi
21527
21528
21529
21530
21531
21532
cristy73bd4a52010-10-05 11:24:23 +000021533# In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
21534# the user used. This is so that ltdl.h can pick up the parent projects
21535# config.h file, The first file in AC_CONFIG_HEADERS must contain the
21536# definitions required by ltdl.c.
21537# FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
21538
21539
21540
21541for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
21542do :
21543 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21544ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
21545"
cristy98dddb52010-11-04 00:30:15 +000021546if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000021547 cat >>confdefs.h <<_ACEOF
21548#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21549_ACEOF
21550
21551fi
21552
21553done
21554
21555
21556for ac_func in closedir opendir readdir
21557do :
21558 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21559ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000021560if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000021561 cat >>confdefs.h <<_ACEOF
21562#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21563_ACEOF
21564
21565else
21566
21567
21568 _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
21569
21570fi
21571done
21572
21573for ac_func in strlcat strlcpy
21574do :
21575 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21576ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000021577if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000021578 cat >>confdefs.h <<_ACEOF
21579#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21580_ACEOF
21581
21582else
21583
21584
21585 _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
21586
21587fi
21588done
21589
21590
21591
21592cat >>confdefs.h <<_ACEOF
21593#define LT_LIBEXT "$libext"
21594_ACEOF
21595
21596
cristyda16f162011-02-19 23:52:17 +000021597name=
21598eval "lt_libprefix=\"$libname_spec\""
21599
21600cat >>confdefs.h <<_ACEOF
21601#define LT_LIBPREFIX "$lt_libprefix"
21602_ACEOF
21603
21604
cristy73bd4a52010-10-05 11:24:23 +000021605name=ltdl
cristyda16f162011-02-19 23:52:17 +000021606eval "LTDLOPEN=\"$libname_spec\""
cristy73bd4a52010-10-05 11:24:23 +000021607
21608
21609
21610
21611
21612
21613
21614
21615# Only expand once:
21616
21617
cristy3ed852e2009-09-05 21:47:34 +000021618
21619# Check to see if building shared libraries
21620libtool_build_shared_libs='no'
21621if test "$enable_shared" = 'yes'; then
21622 libtool_build_shared_libs='yes'
21623fi
21624
21625# Check to see if building static libraries
21626libtool_build_static_libs='no'
21627if test "$enable_static" = 'yes'; then
21628 libtool_build_static_libs='yes'
21629fi
21630
cristy73bd4a52010-10-05 11:24:23 +000021631 if test "${libtool_build_shared_libs}" = 'yes'; then
21632 WITH_SHARED_LIBS_TRUE=
21633 WITH_SHARED_LIBS_FALSE='#'
21634else
21635 WITH_SHARED_LIBS_TRUE='#'
21636 WITH_SHARED_LIBS_FALSE=
21637fi
21638
cristy3ed852e2009-09-05 21:47:34 +000021639#
21640# Enable support for building loadable modules
21641#
21642
21643# Check whether --with-modules was given.
cristy8b350f62009-11-15 23:12:43 +000021644if test "${with_modules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021645 withval=$with_modules; with_modules=$withval
21646else
cristy5a1cefd2010-01-06 20:42:35 +000021647 with_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000021648fi
21649
21650
21651# Only allow building loadable modules if we are building shared libraries
21652if test "$with_modules" != 'no' ; then
21653 if test "$libtool_build_shared_libs" = 'no'; then
cristy8b350f62009-11-15 23:12:43 +000021654 { $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 +000021655$as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
21656 with_modules='no'
21657 fi
21658fi
21659if test "$with_modules" != 'no'; then
21660
cristy8b350f62009-11-15 23:12:43 +000021661$as_echo "#define BUILD_MODULES 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021662
21663fi
cristy73bd4a52010-10-05 11:24:23 +000021664 if test "$with_modules" != 'no'; then
21665 WITH_MODULES_TRUE=
21666 WITH_MODULES_FALSE='#'
21667else
21668 WITH_MODULES_TRUE='#'
21669 WITH_MODULES_FALSE=
21670fi
21671
cristy3ed852e2009-09-05 21:47:34 +000021672
21673# Enable building/use of libltdl if we are building shared libraries regardless
21674# of whether modules are built or not.
21675with_ltdl='no'
21676if test "$libtool_build_shared_libs" != 'no'; then
21677 with_ltdl='yes'
21678fi
21679
cristy73bd4a52010-10-05 11:24:23 +000021680 if test "$with_ltdl" != 'no'; then
21681 WITH_LTDL_TRUE=
21682 WITH_LTDL_FALSE='#'
21683else
21684 WITH_LTDL_TRUE='#'
21685 WITH_LTDL_FALSE=
21686fi
21687
cristy3ed852e2009-09-05 21:47:34 +000021688if test "$with_ltdl" != 'no'; then
21689
cristy8b350f62009-11-15 23:12:43 +000021690$as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021691
21692
21693 # Set DLLDFLAGS
21694 if test X"$enable_shared" = Xyes; then
21695 DLLDFLAGS=-export-dynamic
21696
21697 fi
21698fi
21699
21700# Enable build using delegate libraries built in subdirectories rather than installed
cristyfbb0ef02010-12-19 02:32:11 +000021701# delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms lzma png tiff ttf wmf xml zlib)
cristy3ed852e2009-09-05 21:47:34 +000021702# Check whether --enable-delegate-build was given.
cristy8b350f62009-11-15 23:12:43 +000021703if test "${enable_delegate_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021704 enableval=$enable_delegate_build; enable_delegate_build=$enableval
21705else
21706 enable_delegate_build='no'
21707fi
21708
21709
21710# Check whether --enable-deprecated was given.
cristy8b350f62009-11-15 23:12:43 +000021711if test "${enable_deprecated+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021712 enableval=$enable_deprecated; enable_deprecated=$enableval
21713else
21714 enable_deprecated='no'
21715fi
21716
21717
21718if test "$enable_deprecated" = 'yes'; then
21719
cristy8b350f62009-11-15 23:12:43 +000021720$as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021721
21722else
21723 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
21724fi
21725
21726# Build a version of ImageMagick which operates uninstalled.
21727# Used to build distributions located via MAGICK_HOME / executable path
21728# Check whether --enable-installed was given.
cristy8b350f62009-11-15 23:12:43 +000021729if test "${enable_installed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021730 enableval=$enable_installed; enable_installed=$enableval
21731else
21732 enable_installed='yes'
21733fi
21734
21735
21736if test "$enable_installed" = 'yes'; then
21737
cristy8b350f62009-11-15 23:12:43 +000021738$as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021739
21740else
21741 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
21742fi
21743
21744# Permit enciphering and deciphering image pixels.
21745# Check whether --enable-cipher was given.
cristy8b350f62009-11-15 23:12:43 +000021746if test "${enable_cipher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021747 enableval=$enable_cipher; enable_cipher=$enableval
21748else
21749 enable_cipher='yes'
21750fi
21751
21752
21753if test "$enable_cipher" = 'yes'; then
21754
cristy8b350f62009-11-15 23:12:43 +000021755$as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021756
21757fi
21758
cristy6e3607c2011-09-13 13:59:17 +000021759# Build a zero-configuration version of ImageMagick.
21760# Check whether --enable-zero-configuration was given.
21761if test "${enable_zero_configuration+set}" = set; then :
21762 enableval=$enable_zero_configuration; enable_zero_configuration=$enableval
cristy3ed852e2009-09-05 21:47:34 +000021763else
cristy6e3607c2011-09-13 13:59:17 +000021764 enable_zero_configuration='no'
cristy3ed852e2009-09-05 21:47:34 +000021765fi
21766
21767
cristy6e3607c2011-09-13 13:59:17 +000021768if test "$enable_zero_configuration" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000021769
cristy6e3607c2011-09-13 13:59:17 +000021770$as_echo "#define ZERO_CONFIGURATION_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021771
cristy81af5702011-09-13 14:20:58 +000021772 MAGICK_FEATURES="Zero-Configuration $MAGICK_FEATURES"
cristy3ed852e2009-09-05 21:47:34 +000021773fi
21774
21775# Build a high dynamic range version of ImageMagick.
21776# Check whether --enable-hdri was given.
cristy8b350f62009-11-15 23:12:43 +000021777if test "${enable_hdri+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021778 enableval=$enable_hdri; enable_hdri=$enableval
21779else
21780 enable_hdri='no'
21781fi
21782
21783
21784MAGICK_HDRI=""
21785if test "$enable_hdri" = 'yes'; then
21786 MAGICK_HDRI="HDRI"
21787
cristy8b350f62009-11-15 23:12:43 +000021788$as_echo "#define HDRI_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021789
cristyfd9dcd42010-08-08 18:07:02 +000021790 MAGICK_FEATURES="HDRI $MAGICK_FEATURES"
cristy3ed852e2009-09-05 21:47:34 +000021791fi
21792
cristy3ed852e2009-09-05 21:47:34 +000021793# Build a version of ImageMagick with assert statements.
21794# Check whether --enable-assert was given.
cristy8b350f62009-11-15 23:12:43 +000021795if test "${enable_assert+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021796 enableval=$enable_assert; enable_assert=$enableval
21797else
21798 enable_assert='yes'
21799fi
21800
21801
21802if test "$enable_assert" = 'no'; then
21803
cristy8b350f62009-11-15 23:12:43 +000021804$as_echo "#define NDEBUG 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021805
21806fi
21807
cristya448bd22011-10-14 12:38:13 +000021808# Don't emit "rebuild rules" for configure, Makefile.ins, etc.
cristy73bd4a52010-10-05 11:24:23 +000021809
21810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
21811$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
21812 # Check whether --enable-maintainer-mode was given.
21813if test "${enable_maintainer_mode+set}" = set; then :
21814 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
21815else
21816 USE_MAINTAINER_MODE=no
21817fi
21818
21819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
21820$as_echo "$USE_MAINTAINER_MODE" >&6; }
21821 if test $USE_MAINTAINER_MODE = yes; then
21822 MAINTAINER_MODE_TRUE=
21823 MAINTAINER_MODE_FALSE='#'
21824else
21825 MAINTAINER_MODE_TRUE='#'
21826 MAINTAINER_MODE_FALSE=
21827fi
21828
21829 MAINT=$MAINTAINER_MODE_TRUE
21830
21831
cristy3ed852e2009-09-05 21:47:34 +000021832
cristy3ed852e2009-09-05 21:47:34 +000021833# Enable ccmalloc memory debugging support
21834# Check whether --enable-ccmalloc was given.
cristy8b350f62009-11-15 23:12:43 +000021835if test "${enable_ccmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021836 enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
21837else
21838 enable_ccmalloc='no'
21839fi
21840
21841
21842# Enable Electric Fence memory debugging support
21843# Check whether --enable-efence was given.
cristy8b350f62009-11-15 23:12:43 +000021844if test "${enable_efence+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021845 enableval=$enable_efence; enable_efence=$enableval
21846else
21847 enable_efence='no'
21848fi
21849
21850
21851# Enable prof-based profiling support
21852# Check whether --enable-prof was given.
cristy8b350f62009-11-15 23:12:43 +000021853if test "${enable_prof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021854 enableval=$enable_prof; enable_prof=$enableval
21855else
21856 enable_prof='no'
21857fi
21858
21859
21860# Enable gprof-based profiling support
21861# Check whether --enable-gprof was given.
cristy8b350f62009-11-15 23:12:43 +000021862if test "${enable_gprof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021863 enableval=$enable_gprof; enable_gprof=$enableval
21864else
21865 enable_gprof='no'
21866fi
21867
21868
21869# Enable gcov-based profiling support
21870# Check whether --enable-gcov was given.
cristy8b350f62009-11-15 23:12:43 +000021871if test "${enable_gcov+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021872 enableval=$enable_gcov; enable_gcov=$enableval
21873else
21874 enable_gcov='no'
21875fi
21876
21877
21878enable_profiling='no'
21879if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
21880 enable_profiling='yes'
21881 if test "$libtool_build_shared_libs" = 'yes'; then
21882 echo "Warning: Can not profile code using shared libraries"
21883 fi
21884fi
21885
21886# Magick API method prefix
21887
21888# Check whether --with-method-prefix was given.
cristy8b350f62009-11-15 23:12:43 +000021889if test "${with_method_prefix+set}" = set; then :
cristyfc3d0222012-02-07 15:05:57 +000021890 withval=$with_method_prefix; with_method_prefix=$withval
cristy3ed852e2009-09-05 21:47:34 +000021891else
cristyfc3d0222012-02-07 15:05:57 +000021892 with_method_prefix='no'
cristy3ed852e2009-09-05 21:47:34 +000021893fi
21894
21895
cristyfc3d0222012-02-07 15:05:57 +000021896if test "$with_method_prefix" != 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000021897
21898cat >>confdefs.h <<_ACEOF
21899#define NAMESPACE_PREFIX $with_method_prefix
21900_ACEOF
21901
cristyfc3d0222012-02-07 15:05:57 +000021902 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-method-prefix "
cristy3ed852e2009-09-05 21:47:34 +000021903fi
21904
cristy71d8c202012-03-20 17:05:01 +000021905# Enable legacy support (default no)
21906# Check whether --enable-legacy-support was given.
21907if test "${enable_legacy_support+set}" = set; then :
21908 enableval=$enable_legacy_support; with_legacy_support=$enableval
21909else
21910 with_legacy_support='no'
21911fi
21912
21913 if test "$with_legacy_support" != 'no'; then
21914 LEGACY_SUPPORT_TRUE=
21915 LEGACY_SUPPORT_FALSE='#'
21916else
21917 LEGACY_SUPPORT_TRUE='#'
21918 LEGACY_SUPPORT_FALSE=
21919fi
21920
21921
cristy3ed852e2009-09-05 21:47:34 +000021922# Number of bits in a Quantum
21923
21924# Check whether --with-quantum-depth was given.
cristy8b350f62009-11-15 23:12:43 +000021925if test "${with_quantum_depth+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021926 withval=$with_quantum_depth; with_quantum_depth=$withval
21927else
21928 with_quantum_depth=16
21929fi
21930
21931
21932if test "$with_quantum_depth" != '8'; then
21933 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
21934fi
21935
21936case "${with_quantum_depth}" in
21937 8 ) ;;
21938 16 ) ;;
21939 32 ) ;;
21940 64 ) ;;
cristy98dddb52010-11-04 00:30:15 +000021941 * ) as_fn_error 16 "\"Pixel quantum depth must have value of 8" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000021942esac
21943QUANTUM_DEPTH="$with_quantum_depth"
21944
21945cat >>confdefs.h <<_ACEOF
21946#define QUANTUM_DEPTH $QUANTUM_DEPTH
21947_ACEOF
21948
21949
21950# Set pixel cache threshold
21951
21952# Check whether --with-cache was given.
cristy8b350f62009-11-15 23:12:43 +000021953if test "${with_cache+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021954 withval=$with_cache; with_cache=$withval
21955else
21956 with_cache=''
21957fi
21958
21959
21960if test "$with_cache" != ''; then
21961
21962cat >>confdefs.h <<_ACEOF
21963#define PixelCacheThreshold $with_cache
21964_ACEOF
21965
21966 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
21967fi
21968
21969# Disable/Enable support for full delegate paths
21970
21971# Check whether --with-frozenpaths was given.
cristy8b350f62009-11-15 23:12:43 +000021972if test "${with_frozenpaths+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021973 withval=$with_frozenpaths; with_frozenpaths=$withval
21974else
21975 with_frozenpaths='no'
21976fi
21977
21978
21979# Enable build/install of Magick++
21980
21981# Check whether --with-magick-plus-plus was given.
cristy8b350f62009-11-15 23:12:43 +000021982if test "${with_magick_plus_plus+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021983 withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
21984else
21985 with_magick_plus_plus='yes'
21986fi
21987
21988
21989# Disable build/install of PerlMagick.
21990
21991# Check whether --with-perl was given.
cristy8b350f62009-11-15 23:12:43 +000021992if test "${with_perl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021993 withval=$with_perl; with_perl=$withval
21994else
cristyb5f4e2f2010-04-25 00:49:11 +000021995 with_perl='no'
cristy3ed852e2009-09-05 21:47:34 +000021996fi
21997
21998
21999# Options to pass when configuring PerlMagick
22000
22001# Check whether --with-perl-options was given.
cristy8b350f62009-11-15 23:12:43 +000022002if test "${with_perl_options+set}" = set; then :
cristy949301e2010-01-06 01:38:40 +000022003 withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
cristy3ed852e2009-09-05 21:47:34 +000022004fi
22005
22006
cristy3ed852e2009-09-05 21:47:34 +000022007
22008# Enable umem, object-caching memory allocation library.
22009
22010# Check whether --with-umem was given.
cristy8b350f62009-11-15 23:12:43 +000022011if test "${with_umem+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022012 withval=$with_umem; with_umem=$withval
22013else
22014 with_umem='no'
22015fi
22016
22017if test "$with_umem" != 'yes' ; then
22018 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
22019fi
22020
22021#
22022# Specify path to shared libstdc++ if not in normal location
22023#
22024
22025# Check whether --with-libstdc was given.
cristy8b350f62009-11-15 23:12:43 +000022026if test "${with_libstdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022027 withval=$with_libstdc; with_libstdc=$withval
22028else
22029 with_libstdc=''
22030fi
22031
22032
22033if test "$with_libstdc" != ''; then
22034 if test -d "$with_libstdc"; then
22035 LIBSTDCLDFLAGS="-L$with_libstdc"
22036 fi
22037fi
22038
22039
22040# Does gcc required -traditional?
22041if test $ac_cv_c_compiler_gnu = yes; then
cristy8b350f62009-11-15 23:12:43 +000022042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000022043$as_echo_n "checking whether $CC needs -traditional... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022044if ${ac_cv_prog_gcc_traditional+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022045 $as_echo_n "(cached) " >&6
22046else
22047 ac_pattern="Autoconf.*'x'"
cristy8b350f62009-11-15 23:12:43 +000022048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022049/* end confdefs.h. */
22050#include <sgtty.h>
22051Autoconf TIOCGETP
22052_ACEOF
22053if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000022054 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000022055 ac_cv_prog_gcc_traditional=yes
22056else
22057 ac_cv_prog_gcc_traditional=no
22058fi
22059rm -f conftest*
22060
22061
22062 if test $ac_cv_prog_gcc_traditional = no; then
cristy8b350f62009-11-15 23:12:43 +000022063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022064/* end confdefs.h. */
22065#include <termio.h>
22066Autoconf TCGETA
22067_ACEOF
22068if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000022069 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000022070 ac_cv_prog_gcc_traditional=yes
22071fi
22072rm -f conftest*
22073
22074 fi
22075fi
cristy8b350f62009-11-15 23:12:43 +000022076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000022077$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
22078 if test $ac_cv_prog_gcc_traditional = yes; then
22079 CC="$CC -traditional"
22080 fi
22081fi
22082
22083
22084########
22085#
22086# Set defines required to build DLLs and modules using MinGW
22087#
22088########
22089# These options are set for multi-thread DLL module build
22090# libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_
22091# module: _DLL
22092# executable/Magick++: _DLL _MAGICKMOD_
22093MODULE_EXTRA_CPPFLAGS=''
22094LIBRARY_EXTRA_CPPFLAGS=''
22095if test "${native_win32_build}" = 'yes'; then
22096 if test "${libtool_build_shared_libs}" = 'yes'; then
22097 CPPFLAGS="$CPPFLAGS -D_DLL"
22098 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
22099 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
22100 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
22101 if test "$with_modules" = 'yes'; then
22102 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
22103 else
22104 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
22105 fi
22106 else
22107 CPPFLAGS="$CPPFLAGS -D_LIB"
22108 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
22109 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
22110 fi
22111 if test "$with_threads" = 'yes'; then
22112 CPPFLAGS="$CPPFLAGS -D_MT"
22113 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
22114 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
22115 fi
22116fi
22117
22118
22119
22120# Check standard headers
cristy8b350f62009-11-15 23:12:43 +000022121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
cristy3ed852e2009-09-05 21:47:34 +000022122$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022123if ${ac_cv_header_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022124 $as_echo_n "(cached) " >&6
22125else
cristy8b350f62009-11-15 23:12:43 +000022126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022127/* end confdefs.h. */
22128#include <stdlib.h>
22129#include <stdarg.h>
22130#include <string.h>
22131#include <float.h>
22132
22133int
22134main ()
22135{
22136
22137 ;
22138 return 0;
22139}
22140_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022141if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022142 ac_cv_header_stdc=yes
22143else
cristy8b350f62009-11-15 23:12:43 +000022144 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000022145fi
cristy3ed852e2009-09-05 21:47:34 +000022146rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22147
22148if test $ac_cv_header_stdc = yes; then
22149 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000022150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022151/* end confdefs.h. */
22152#include <string.h>
22153
22154_ACEOF
22155if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000022156 $EGREP "memchr" >/dev/null 2>&1; then :
22157
cristy3ed852e2009-09-05 21:47:34 +000022158else
22159 ac_cv_header_stdc=no
22160fi
22161rm -f conftest*
22162
22163fi
22164
22165if test $ac_cv_header_stdc = yes; then
22166 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000022167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022168/* end confdefs.h. */
22169#include <stdlib.h>
22170
22171_ACEOF
22172if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000022173 $EGREP "free" >/dev/null 2>&1; then :
22174
cristy3ed852e2009-09-05 21:47:34 +000022175else
22176 ac_cv_header_stdc=no
22177fi
22178rm -f conftest*
22179
22180fi
22181
22182if test $ac_cv_header_stdc = yes; then
22183 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cristy8b350f62009-11-15 23:12:43 +000022184 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022185 :
22186else
cristy8b350f62009-11-15 23:12:43 +000022187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022188/* end confdefs.h. */
22189#include <ctype.h>
22190#include <stdlib.h>
22191#if ((' ' & 0x0FF) == 0x020)
22192# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
22193# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
22194#else
22195# define ISLOWER(c) \
22196 (('a' <= (c) && (c) <= 'i') \
22197 || ('j' <= (c) && (c) <= 'r') \
22198 || ('s' <= (c) && (c) <= 'z'))
22199# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
22200#endif
22201
22202#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
22203int
22204main ()
22205{
22206 int i;
22207 for (i = 0; i < 256; i++)
22208 if (XOR (islower (i), ISLOWER (i))
22209 || toupper (i) != TOUPPER (i))
22210 return 2;
22211 return 0;
22212}
22213_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022214if ac_fn_c_try_run "$LINENO"; then :
22215
cristy3ed852e2009-09-05 21:47:34 +000022216else
cristy8b350f62009-11-15 23:12:43 +000022217 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000022218fi
cristy8b350f62009-11-15 23:12:43 +000022219rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22220 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022221fi
22222
cristy3ed852e2009-09-05 21:47:34 +000022223fi
22224fi
cristy8b350f62009-11-15 23:12:43 +000022225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +000022226$as_echo "$ac_cv_header_stdc" >&6; }
22227if test $ac_cv_header_stdc = yes; then
22228
cristy8b350f62009-11-15 23:12:43 +000022229$as_echo "#define STDC_HEADERS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022230
22231fi
22232
22233if ! test x"$ac_cv_header_stdc" = x"yes"; then
cristy8b350f62009-11-15 23:12:43 +000022234 { $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 +000022235 header files. Compilation cannot proceed. Please install the ANSI C
22236 headers and rerun this script." >&5
22237$as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
22238 header files. Compilation cannot proceed. Please install the ANSI C
22239 headers and rerun this script." >&2;};
22240fi
cristya0b81c32010-01-22 02:54:33 +000022241
22242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
22243$as_echo_n "checking whether to enable assertions... " >&6; }
22244 # Check whether --enable-assert was given.
22245if test "${enable_assert+set}" = set; then :
22246 enableval=$enable_assert; ac_enable_assert=$enableval
22247 if test "x$enableval" = xno; then :
22248
22249$as_echo "#define NDEBUG 1" >>confdefs.h
22250
22251elif test "x$enableval" != xyes; then :
22252 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
22253$as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
22254 ac_enable_assert=yes
22255fi
22256else
22257 ac_enable_assert=yes
22258fi
22259
22260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
22261$as_echo "$ac_enable_assert" >&6; }
22262
cristy3ed852e2009-09-05 21:47:34 +000022263ac_header_dirent=no
22264for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
22265 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
cristy8b350f62009-11-15 23:12:43 +000022266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
cristy3ed852e2009-09-05 21:47:34 +000022267$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022268if eval \${$as_ac_Header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022269 $as_echo_n "(cached) " >&6
22270else
cristy8b350f62009-11-15 23:12:43 +000022271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022272/* end confdefs.h. */
22273#include <sys/types.h>
22274#include <$ac_hdr>
22275
22276int
22277main ()
22278{
22279if ((DIR *) 0)
22280return 0;
22281 ;
22282 return 0;
22283}
22284_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022285if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022286 eval "$as_ac_Header=yes"
22287else
cristy8b350f62009-11-15 23:12:43 +000022288 eval "$as_ac_Header=no"
cristy3ed852e2009-09-05 21:47:34 +000022289fi
cristy3ed852e2009-09-05 21:47:34 +000022290rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22291fi
cristy8b350f62009-11-15 23:12:43 +000022292eval ac_res=\$$as_ac_Header
22293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cristy3ed852e2009-09-05 21:47:34 +000022294$as_echo "$ac_res" >&6; }
cristy98dddb52010-11-04 00:30:15 +000022295if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000022296 cat >>confdefs.h <<_ACEOF
22297#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
22298_ACEOF
22299
22300ac_header_dirent=$ac_hdr; break
22301fi
22302
22303done
22304# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
22305if test $ac_header_dirent = dirent.h; then
cristy8b350f62009-11-15 23:12:43 +000022306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000022307$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022308if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022309 $as_echo_n "(cached) " >&6
22310else
22311 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000022312cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022313/* end confdefs.h. */
22314
22315/* Override any GCC internal prototype to avoid an error.
22316 Use char because int might match the return type of a GCC
22317 builtin and then its argument prototype would still apply. */
22318#ifdef __cplusplus
22319extern "C"
22320#endif
22321char opendir ();
22322int
22323main ()
22324{
22325return opendir ();
22326 ;
22327 return 0;
22328}
22329_ACEOF
22330for ac_lib in '' dir; do
22331 if test -z "$ac_lib"; then
22332 ac_res="none required"
22333 else
22334 ac_res=-l$ac_lib
22335 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22336 fi
cristy8b350f62009-11-15 23:12:43 +000022337 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022338 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000022339fi
cristy8b350f62009-11-15 23:12:43 +000022340rm -f core conftest.err conftest.$ac_objext \
22341 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000022342 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022343 break
22344fi
22345done
cristyda16f162011-02-19 23:52:17 +000022346if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000022347
cristy3ed852e2009-09-05 21:47:34 +000022348else
22349 ac_cv_search_opendir=no
22350fi
22351rm conftest.$ac_ext
22352LIBS=$ac_func_search_save_LIBS
22353fi
cristy8b350f62009-11-15 23:12:43 +000022354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000022355$as_echo "$ac_cv_search_opendir" >&6; }
22356ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000022357if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000022358 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22359
22360fi
22361
22362else
cristy8b350f62009-11-15 23:12:43 +000022363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000022364$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022365if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022366 $as_echo_n "(cached) " >&6
22367else
22368 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000022369cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022370/* end confdefs.h. */
22371
22372/* Override any GCC internal prototype to avoid an error.
22373 Use char because int might match the return type of a GCC
22374 builtin and then its argument prototype would still apply. */
22375#ifdef __cplusplus
22376extern "C"
22377#endif
22378char opendir ();
22379int
22380main ()
22381{
22382return opendir ();
22383 ;
22384 return 0;
22385}
22386_ACEOF
22387for ac_lib in '' x; do
22388 if test -z "$ac_lib"; then
22389 ac_res="none required"
22390 else
22391 ac_res=-l$ac_lib
22392 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22393 fi
cristy8b350f62009-11-15 23:12:43 +000022394 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022395 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000022396fi
cristy8b350f62009-11-15 23:12:43 +000022397rm -f core conftest.err conftest.$ac_objext \
22398 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000022399 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022400 break
22401fi
22402done
cristyda16f162011-02-19 23:52:17 +000022403if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000022404
cristy3ed852e2009-09-05 21:47:34 +000022405else
22406 ac_cv_search_opendir=no
22407fi
22408rm conftest.$ac_ext
22409LIBS=$ac_func_search_save_LIBS
22410fi
cristy8b350f62009-11-15 23:12:43 +000022411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000022412$as_echo "$ac_cv_search_opendir" >&6; }
22413ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000022414if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000022415 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22416
22417fi
22418
22419fi
22420
22421
22422# Check additional headers
cristya8549b12011-05-18 19:05:08 +000022423for 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 xlocale.h
cristy8b350f62009-11-15 23:12:43 +000022424do :
22425 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22426ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000022427if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000022428 cat >>confdefs.h <<_ACEOF
22429#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22430_ACEOF
22431
22432fi
22433
22434done
22435
22436
22437########
22438#
22439# Checks for typedefs, structures, and compiler characteristics.
22440#
22441########
22442
cristy8b350f62009-11-15 23:12:43 +000022443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
cristy3ed852e2009-09-05 21:47:34 +000022444$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022445if ${ac_cv_header_stdbool_h+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022446 $as_echo_n "(cached) " >&6
22447else
cristy8b350f62009-11-15 23:12:43 +000022448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022449/* end confdefs.h. */
22450
cristy14fefe52012-05-21 00:59:18 +000022451 #include <stdbool.h>
22452 #ifndef bool
22453 "error: bool is not defined"
22454 #endif
22455 #ifndef false
22456 "error: false is not defined"
22457 #endif
22458 #if false
22459 "error: false is not 0"
22460 #endif
22461 #ifndef true
22462 "error: true is not defined"
22463 #endif
22464 #if true != 1
22465 "error: true is not 1"
22466 #endif
22467 #ifndef __bool_true_false_are_defined
22468 "error: __bool_true_false_are_defined is not defined"
22469 #endif
cristy3ed852e2009-09-05 21:47:34 +000022470
cristy14fefe52012-05-21 00:59:18 +000022471 struct s { _Bool s: 1; _Bool t; } s;
cristy3ed852e2009-09-05 21:47:34 +000022472
cristy14fefe52012-05-21 00:59:18 +000022473 char a[true == 1 ? 1 : -1];
22474 char b[false == 0 ? 1 : -1];
22475 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
22476 char d[(bool) 0.5 == true ? 1 : -1];
22477 /* See body of main program for 'e'. */
22478 char f[(_Bool) 0.0 == false ? 1 : -1];
22479 char g[true];
22480 char h[sizeof (_Bool)];
22481 char i[sizeof s.t];
22482 enum { j = false, k = true, l = false * true, m = true * 256 };
22483 /* The following fails for
22484 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
22485 _Bool n[m];
22486 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
22487 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
22488 /* Catch a bug in an HP-UX C compiler. See
22489 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
22490 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
22491 */
22492 _Bool q = true;
22493 _Bool *pq = &q;
cristy3ed852e2009-09-05 21:47:34 +000022494
22495int
22496main ()
22497{
22498
cristy14fefe52012-05-21 00:59:18 +000022499 bool e = &s;
22500 *pq |= q;
22501 *pq |= ! q;
22502 /* Refer to every declared value, to avoid compiler optimizations. */
22503 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
22504 + !m + !n + !o + !p + !q + !pq);
cristy3ed852e2009-09-05 21:47:34 +000022505
22506 ;
22507 return 0;
22508}
22509_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022510if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022511 ac_cv_header_stdbool_h=yes
22512else
cristy8b350f62009-11-15 23:12:43 +000022513 ac_cv_header_stdbool_h=no
cristy3ed852e2009-09-05 21:47:34 +000022514fi
cristy3ed852e2009-09-05 21:47:34 +000022515rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22516fi
cristy8b350f62009-11-15 23:12:43 +000022517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
cristy3ed852e2009-09-05 21:47:34 +000022518$as_echo "$ac_cv_header_stdbool_h" >&6; }
cristy14fefe52012-05-21 00:59:18 +000022519 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000022520if test "x$ac_cv_type__Bool" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000022521
22522cat >>confdefs.h <<_ACEOF
22523#define HAVE__BOOL 1
22524_ACEOF
22525
22526
22527fi
22528
cristy14fefe52012-05-21 00:59:18 +000022529
cristy3ed852e2009-09-05 21:47:34 +000022530if test $ac_cv_header_stdbool_h = yes; then
22531
cristy8b350f62009-11-15 23:12:43 +000022532$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022533
22534fi
22535
cristy8b350f62009-11-15 23:12:43 +000022536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000022537$as_echo_n "checking for working volatile... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022538if ${ac_cv_c_volatile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022539 $as_echo_n "(cached) " >&6
22540else
cristy8b350f62009-11-15 23:12:43 +000022541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022542/* end confdefs.h. */
22543
22544int
22545main ()
22546{
22547
22548volatile int x;
22549int * volatile y = (int *) 0;
22550return !x && !y;
22551 ;
22552 return 0;
22553}
22554_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022555if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022556 ac_cv_c_volatile=yes
22557else
cristy8b350f62009-11-15 23:12:43 +000022558 ac_cv_c_volatile=no
cristy3ed852e2009-09-05 21:47:34 +000022559fi
cristy3ed852e2009-09-05 21:47:34 +000022560rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22561fi
cristy8b350f62009-11-15 23:12:43 +000022562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000022563$as_echo "$ac_cv_c_volatile" >&6; }
22564if test $ac_cv_c_volatile = no; then
22565
cristy8b350f62009-11-15 23:12:43 +000022566$as_echo "#define volatile /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022567
22568fi
22569
cristy8b350f62009-11-15 23:12:43 +000022570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
cristy3ed852e2009-09-05 21:47:34 +000022571$as_echo_n "checking for preprocessor stringizing operator... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022572if ${ac_cv_c_stringize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022573 $as_echo_n "(cached) " >&6
22574else
cristy8b350f62009-11-15 23:12:43 +000022575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022576/* end confdefs.h. */
22577#define x(y) #y
22578
22579char *s = x(teststring);
22580_ACEOF
22581if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000022582 $EGREP "#teststring" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000022583 ac_cv_c_stringize=no
22584else
22585 ac_cv_c_stringize=yes
22586fi
22587rm -f conftest*
22588
22589fi
cristy8b350f62009-11-15 23:12:43 +000022590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
cristy3ed852e2009-09-05 21:47:34 +000022591$as_echo "$ac_cv_c_stringize" >&6; }
22592if test $ac_cv_c_stringize = yes; then
22593
cristy8b350f62009-11-15 23:12:43 +000022594$as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022595
22596fi
22597
cristy8b350f62009-11-15 23:12:43 +000022598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000022599$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022600if ${ac_cv_header_stat_broken+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022601 $as_echo_n "(cached) " >&6
22602else
cristy8b350f62009-11-15 23:12:43 +000022603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022604/* end confdefs.h. */
22605#include <sys/types.h>
22606#include <sys/stat.h>
22607
22608#if defined S_ISBLK && defined S_IFDIR
22609extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
22610#endif
22611
22612#if defined S_ISBLK && defined S_IFCHR
22613extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
22614#endif
22615
22616#if defined S_ISLNK && defined S_IFREG
22617extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
22618#endif
22619
22620#if defined S_ISSOCK && defined S_IFREG
22621extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
22622#endif
22623
22624_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022625if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022626 ac_cv_header_stat_broken=no
22627else
cristy8b350f62009-11-15 23:12:43 +000022628 ac_cv_header_stat_broken=yes
cristy3ed852e2009-09-05 21:47:34 +000022629fi
cristy3ed852e2009-09-05 21:47:34 +000022630rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22631fi
cristy8b350f62009-11-15 23:12:43 +000022632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000022633$as_echo "$ac_cv_header_stat_broken" >&6; }
22634if test $ac_cv_header_stat_broken = yes; then
22635
cristy8b350f62009-11-15 23:12:43 +000022636$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022637
22638fi
22639
cristy8b350f62009-11-15 23:12:43 +000022640{ $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 +000022641$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022642if ${ac_cv_header_time+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022643 $as_echo_n "(cached) " >&6
22644else
cristy8b350f62009-11-15 23:12:43 +000022645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022646/* end confdefs.h. */
22647#include <sys/types.h>
22648#include <sys/time.h>
22649#include <time.h>
22650
22651int
22652main ()
22653{
22654if ((struct tm *) 0)
22655return 0;
22656 ;
22657 return 0;
22658}
22659_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022660if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022661 ac_cv_header_time=yes
22662else
cristy8b350f62009-11-15 23:12:43 +000022663 ac_cv_header_time=no
cristy3ed852e2009-09-05 21:47:34 +000022664fi
cristy3ed852e2009-09-05 21:47:34 +000022665rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22666fi
cristy8b350f62009-11-15 23:12:43 +000022667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
cristy3ed852e2009-09-05 21:47:34 +000022668$as_echo "$ac_cv_header_time" >&6; }
22669if test $ac_cv_header_time = yes; then
22670
cristy8b350f62009-11-15 23:12:43 +000022671$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022672
22673fi
22674
cristy8b350f62009-11-15 23:12:43 +000022675{ $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 +000022676$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022677if ${ac_cv_struct_tm+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022678 $as_echo_n "(cached) " >&6
22679else
cristy8b350f62009-11-15 23:12:43 +000022680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022681/* end confdefs.h. */
22682#include <sys/types.h>
22683#include <time.h>
22684
22685int
22686main ()
22687{
22688struct tm tm;
22689 int *p = &tm.tm_sec;
22690 return !p;
22691 ;
22692 return 0;
22693}
22694_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022695if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022696 ac_cv_struct_tm=time.h
22697else
cristy8b350f62009-11-15 23:12:43 +000022698 ac_cv_struct_tm=sys/time.h
cristy3ed852e2009-09-05 21:47:34 +000022699fi
cristy3ed852e2009-09-05 21:47:34 +000022700rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22701fi
cristy8b350f62009-11-15 23:12:43 +000022702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
cristy3ed852e2009-09-05 21:47:34 +000022703$as_echo "$ac_cv_struct_tm" >&6; }
22704if test $ac_cv_struct_tm = sys/time.h; then
22705
cristy8b350f62009-11-15 23:12:43 +000022706$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022707
22708fi
22709
cristy92703d82010-04-26 00:18:18 +000022710ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
22711#include <$ac_cv_struct_tm>
22712
22713"
cristyda16f162011-02-19 23:52:17 +000022714if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000022715
22716cat >>confdefs.h <<_ACEOF
22717#define HAVE_STRUCT_TM_TM_ZONE 1
22718_ACEOF
22719
22720
22721fi
22722
22723if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
22724
22725$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
22726
22727else
22728 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
22729"
cristyda16f162011-02-19 23:52:17 +000022730if test "x$ac_cv_have_decl_tzname" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000022731 ac_have_decl=1
22732else
22733 ac_have_decl=0
22734fi
22735
22736cat >>confdefs.h <<_ACEOF
22737#define HAVE_DECL_TZNAME $ac_have_decl
22738_ACEOF
22739
22740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
22741$as_echo_n "checking for tzname... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022742if ${ac_cv_var_tzname+:} false; then :
cristy92703d82010-04-26 00:18:18 +000022743 $as_echo_n "(cached) " >&6
22744else
22745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22746/* end confdefs.h. */
22747#include <time.h>
22748#if !HAVE_DECL_TZNAME
22749extern char *tzname[];
22750#endif
22751
22752int
22753main ()
22754{
22755return tzname[0][0];
22756 ;
22757 return 0;
22758}
22759_ACEOF
22760if ac_fn_c_try_link "$LINENO"; then :
22761 ac_cv_var_tzname=yes
22762else
22763 ac_cv_var_tzname=no
22764fi
22765rm -f core conftest.err conftest.$ac_objext \
22766 conftest$ac_exeext conftest.$ac_ext
22767fi
22768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
22769$as_echo "$ac_cv_var_tzname" >&6; }
22770 if test $ac_cv_var_tzname = yes; then
22771
22772$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
22773
22774 fi
22775fi
22776
cristy8b350f62009-11-15 23:12:43 +000022777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
cristy3ed852e2009-09-05 21:47:34 +000022778$as_echo_n "checking whether #! works in shell scripts... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022779if ${ac_cv_sys_interpreter+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022780 $as_echo_n "(cached) " >&6
22781else
22782 echo '#! /bin/cat
22783exit 69
22784' >conftest
22785chmod u+x conftest
22786(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
22787if test $? -ne 69; then
22788 ac_cv_sys_interpreter=yes
22789else
22790 ac_cv_sys_interpreter=no
22791fi
22792rm -f conftest
22793fi
cristy8b350f62009-11-15 23:12:43 +000022794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
cristy3ed852e2009-09-05 21:47:34 +000022795$as_echo "$ac_cv_sys_interpreter" >&6; }
22796interpval=$ac_cv_sys_interpreter
22797
22798
cristy3ed852e2009-09-05 21:47:34 +000022799# If the C compiler supports the keyword inline, do nothing. Otherwise
22800# define inline to __inline__ or __inline if it accepts one of those,
22801# otherwise define inline to be empty.
cristy8b350f62009-11-15 23:12:43 +000022802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000022803$as_echo_n "checking for inline... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022804if ${ac_cv_c_inline+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022805 $as_echo_n "(cached) " >&6
22806else
22807 ac_cv_c_inline=no
22808for ac_kw in inline __inline__ __inline; do
cristy8b350f62009-11-15 23:12:43 +000022809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022810/* end confdefs.h. */
22811#ifndef __cplusplus
22812typedef int foo_t;
22813static $ac_kw foo_t static_foo () {return 0; }
22814$ac_kw foo_t foo () {return 0; }
22815#endif
22816
22817_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022818if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022819 ac_cv_c_inline=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000022820fi
cristy3ed852e2009-09-05 21:47:34 +000022821rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22822 test "$ac_cv_c_inline" != no && break
22823done
22824
22825fi
cristy8b350f62009-11-15 23:12:43 +000022826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000022827$as_echo "$ac_cv_c_inline" >&6; }
22828
cristy3ed852e2009-09-05 21:47:34 +000022829case $ac_cv_c_inline in
22830 inline | yes) ;;
22831 *)
22832 case $ac_cv_c_inline in
22833 no) ac_val=;;
22834 *) ac_val=$ac_cv_c_inline;;
22835 esac
22836 cat >>confdefs.h <<_ACEOF
22837#ifndef __cplusplus
22838#define inline $ac_val
22839#endif
22840_ACEOF
22841 ;;
22842esac
22843
22844
22845# If the C compiler supports the keyword restrict, do nothing. Otherwise
22846# define restrict to __restrict__ or __restrict if it accepts one of those,
22847# otherwise define restrict to be empty.
cristy8b350f62009-11-15 23:12:43 +000022848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
cristy3ed852e2009-09-05 21:47:34 +000022849$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022850if ${ac_cv_c_restrict+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022851 $as_echo_n "(cached) " >&6
22852else
22853 ac_cv_c_restrict=no
22854 # The order here caters to the fact that C++ does not require restrict.
22855 for ac_kw in __restrict __restrict__ _Restrict restrict; do
cristy8b350f62009-11-15 23:12:43 +000022856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022857/* end confdefs.h. */
22858typedef int * int_ptr;
22859 int foo (int_ptr $ac_kw ip) {
22860 return ip[0];
22861 }
22862int
22863main ()
22864{
22865int s[1];
22866 int * $ac_kw t = s;
22867 t[0] = 0;
22868 return foo(t)
22869 ;
22870 return 0;
22871}
22872_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022873if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022874 ac_cv_c_restrict=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000022875fi
cristy3ed852e2009-09-05 21:47:34 +000022876rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22877 test "$ac_cv_c_restrict" != no && break
22878 done
22879
22880fi
cristy8b350f62009-11-15 23:12:43 +000022881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
cristy3ed852e2009-09-05 21:47:34 +000022882$as_echo "$ac_cv_c_restrict" >&6; }
22883
cristy3ed852e2009-09-05 21:47:34 +000022884 case $ac_cv_c_restrict in
22885 restrict) ;;
cristy8b350f62009-11-15 23:12:43 +000022886 no) $as_echo "#define restrict /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022887 ;;
22888 *) cat >>confdefs.h <<_ACEOF
22889#define restrict $ac_cv_c_restrict
22890_ACEOF
22891 ;;
22892 esac
22893
22894
22895# If words are stored with the most significant byte first (like
22896# Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
cristy8b350f62009-11-15 23:12:43 +000022897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000022898$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022899if ${ac_cv_c_bigendian+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022900 $as_echo_n "(cached) " >&6
22901else
22902 ac_cv_c_bigendian=unknown
22903 # See if we're dealing with a universal compiler.
cristy8b350f62009-11-15 23:12:43 +000022904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022905/* end confdefs.h. */
22906#ifndef __APPLE_CC__
22907 not a universal capable compiler
22908 #endif
22909 typedef int dummy;
22910
22911_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022912if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022913
22914 # Check for potential -arch flags. It is not universal unless
cristy8b350f62009-11-15 23:12:43 +000022915 # there are at least two -arch flags with different values.
22916 ac_arch=
22917 ac_prev=
22918 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
22919 if test -n "$ac_prev"; then
22920 case $ac_word in
22921 i?86 | x86_64 | ppc | ppc64)
22922 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
22923 ac_arch=$ac_word
22924 else
22925 ac_cv_c_bigendian=universal
22926 break
22927 fi
22928 ;;
22929 esac
22930 ac_prev=
22931 elif test "x$ac_word" = "x-arch"; then
22932 ac_prev=arch
22933 fi
22934 done
cristy3ed852e2009-09-05 21:47:34 +000022935fi
cristy3ed852e2009-09-05 21:47:34 +000022936rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22937 if test $ac_cv_c_bigendian = unknown; then
22938 # See if sys/param.h defines the BYTE_ORDER macro.
cristy8b350f62009-11-15 23:12:43 +000022939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022940/* end confdefs.h. */
22941#include <sys/types.h>
22942 #include <sys/param.h>
22943
22944int
22945main ()
22946{
22947#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
22948 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
22949 && LITTLE_ENDIAN)
22950 bogus endian macros
22951 #endif
22952
22953 ;
22954 return 0;
22955}
22956_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022957if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022958 # It does; now see whether it defined to BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000022959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022960/* end confdefs.h. */
22961#include <sys/types.h>
22962 #include <sys/param.h>
22963
22964int
22965main ()
22966{
22967#if BYTE_ORDER != BIG_ENDIAN
22968 not big endian
22969 #endif
22970
22971 ;
22972 return 0;
22973}
22974_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022975if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022976 ac_cv_c_bigendian=yes
22977else
cristy8b350f62009-11-15 23:12:43 +000022978 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000022979fi
cristy3ed852e2009-09-05 21:47:34 +000022980rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022981fi
cristy3ed852e2009-09-05 21:47:34 +000022982rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22983 fi
22984 if test $ac_cv_c_bigendian = unknown; then
22985 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
cristy8b350f62009-11-15 23:12:43 +000022986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022987/* end confdefs.h. */
22988#include <limits.h>
22989
22990int
22991main ()
22992{
22993#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
22994 bogus endian macros
22995 #endif
22996
22997 ;
22998 return 0;
22999}
23000_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023001if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023002 # It does; now see whether it defined to _BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000023003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023004/* end confdefs.h. */
23005#include <limits.h>
23006
23007int
23008main ()
23009{
23010#ifndef _BIG_ENDIAN
23011 not big endian
23012 #endif
23013
23014 ;
23015 return 0;
23016}
23017_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023018if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023019 ac_cv_c_bigendian=yes
23020else
cristy8b350f62009-11-15 23:12:43 +000023021 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000023022fi
cristy3ed852e2009-09-05 21:47:34 +000023023rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023024fi
cristy3ed852e2009-09-05 21:47:34 +000023025rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23026 fi
23027 if test $ac_cv_c_bigendian = unknown; then
23028 # Compile a test program.
cristy8b350f62009-11-15 23:12:43 +000023029 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023030 # Try to guess by grepping values from an object file.
cristy8b350f62009-11-15 23:12:43 +000023031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023032/* end confdefs.h. */
23033short int ascii_mm[] =
23034 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
23035 short int ascii_ii[] =
23036 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
23037 int use_ascii (int i) {
23038 return ascii_mm[i] + ascii_ii[i];
23039 }
23040 short int ebcdic_ii[] =
23041 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
23042 short int ebcdic_mm[] =
23043 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
23044 int use_ebcdic (int i) {
23045 return ebcdic_mm[i] + ebcdic_ii[i];
23046 }
23047 extern int foo;
23048
23049int
23050main ()
23051{
23052return use_ascii (foo) == use_ebcdic (foo);
23053 ;
23054 return 0;
23055}
23056_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023057if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023058 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
23059 ac_cv_c_bigendian=yes
23060 fi
23061 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
23062 if test "$ac_cv_c_bigendian" = unknown; then
23063 ac_cv_c_bigendian=no
23064 else
23065 # finding both strings is unlikely to happen, but who knows?
23066 ac_cv_c_bigendian=unknown
23067 fi
23068 fi
cristy3ed852e2009-09-05 21:47:34 +000023069fi
cristy3ed852e2009-09-05 21:47:34 +000023070rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23071else
cristy8b350f62009-11-15 23:12:43 +000023072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023073/* end confdefs.h. */
23074$ac_includes_default
23075int
23076main ()
23077{
23078
23079 /* Are we little or big endian? From Harbison&Steele. */
23080 union
23081 {
23082 long int l;
23083 char c[sizeof (long int)];
23084 } u;
23085 u.l = 1;
23086 return u.c[sizeof (long int) - 1] == 1;
23087
23088 ;
23089 return 0;
23090}
23091_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023092if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023093 ac_cv_c_bigendian=no
23094else
cristy8b350f62009-11-15 23:12:43 +000023095 ac_cv_c_bigendian=yes
cristy3ed852e2009-09-05 21:47:34 +000023096fi
cristy8b350f62009-11-15 23:12:43 +000023097rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23098 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023099fi
23100
cristy3ed852e2009-09-05 21:47:34 +000023101 fi
23102fi
cristy8b350f62009-11-15 23:12:43 +000023103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000023104$as_echo "$ac_cv_c_bigendian" >&6; }
23105 case $ac_cv_c_bigendian in #(
23106 yes)
cristy8b350f62009-11-15 23:12:43 +000023107 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023108;; #(
23109 no)
23110 ;; #(
23111 universal)
23112
cristy8b350f62009-11-15 23:12:43 +000023113$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023114
23115 ;; #(
23116 *)
cristy98dddb52010-11-04 00:30:15 +000023117 as_fn_error $? "unknown endianness
cristy8b350f62009-11-15 23:12:43 +000023118 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000023119 esac
23120
23121
cristy501c8042011-05-26 17:46:28 +000023122# Define to a suitable type, if standard headers do not define it.
23123ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
23124case $ac_cv_c_int8_t in #(
23125 no|yes) ;; #(
23126 *)
cristy3ed852e2009-09-05 21:47:34 +000023127
23128cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000023129#define int8_t $ac_cv_c_int8_t
23130_ACEOF
23131;;
23132esac
23133
23134ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
23135case $ac_cv_c_int16_t in #(
23136 no|yes) ;; #(
23137 *)
23138
23139cat >>confdefs.h <<_ACEOF
23140#define int16_t $ac_cv_c_int16_t
23141_ACEOF
23142;;
23143esac
23144
23145ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
23146case $ac_cv_c_int32_t in #(
23147 no|yes) ;; #(
23148 *)
23149
23150cat >>confdefs.h <<_ACEOF
23151#define int32_t $ac_cv_c_int32_t
23152_ACEOF
23153;;
23154esac
23155
23156ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
23157case $ac_cv_c_int64_t in #(
23158 no|yes) ;; #(
23159 *)
23160
23161cat >>confdefs.h <<_ACEOF
23162#define int64_t $ac_cv_c_int64_t
23163_ACEOF
23164;;
23165esac
23166
23167
23168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
23169$as_echo_n "checking for long long int... " >&6; }
23170if ${ac_cv_type_long_long_int+:} false; then :
23171 $as_echo_n "(cached) " >&6
23172else
23173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23174/* end confdefs.h. */
23175
23176 /* For now, do not test the preprocessor; as of 2007 there are too many
23177 implementations with broken preprocessors. Perhaps this can
23178 be revisited in 2012. In the meantime, code should not expect
23179 #if to work with literals wider than 32 bits. */
23180 /* Test literals. */
23181 long long int ll = 9223372036854775807ll;
23182 long long int nll = -9223372036854775807LL;
23183 unsigned long long int ull = 18446744073709551615ULL;
23184 /* Test constant expressions. */
23185 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
23186 ? 1 : -1)];
23187 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
23188 ? 1 : -1)];
23189 int i = 63;
23190int
23191main ()
23192{
23193/* Test availability of runtime routines for shift and division. */
23194 long long int llmax = 9223372036854775807ll;
23195 unsigned long long int ullmax = 18446744073709551615ull;
23196 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
23197 | (llmax / ll) | (llmax % ll)
23198 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23199 | (ullmax / ull) | (ullmax % ull));
23200 ;
23201 return 0;
23202}
23203
23204_ACEOF
23205if ac_fn_c_try_link "$LINENO"; then :
23206 if test "$cross_compiling" = yes; then :
23207 ac_cv_type_long_long_int=yes
23208else
23209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23210/* end confdefs.h. */
23211#include <limits.h>
23212 #ifndef LLONG_MAX
23213 # define HALF \
23214 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
23215 # define LLONG_MAX (HALF - 1 + HALF)
23216 #endif
23217int
23218main ()
23219{
23220long long int n = 1;
23221 int i;
23222 for (i = 0; ; i++)
23223 {
23224 long long int m = n << i;
23225 if (m >> i != n)
23226 return 1;
23227 if (LLONG_MAX / 2 < m)
23228 break;
23229 }
23230 return 0;
23231 ;
23232 return 0;
23233}
23234_ACEOF
23235if ac_fn_c_try_run "$LINENO"; then :
23236 ac_cv_type_long_long_int=yes
23237else
23238 ac_cv_type_long_long_int=no
23239fi
23240rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23241 conftest.$ac_objext conftest.beam conftest.$ac_ext
23242fi
23243
23244else
23245 ac_cv_type_long_long_int=no
23246fi
23247rm -f core conftest.err conftest.$ac_objext \
23248 conftest$ac_exeext conftest.$ac_ext
23249fi
23250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
23251$as_echo "$ac_cv_type_long_long_int" >&6; }
23252 if test $ac_cv_type_long_long_int = yes; then
23253
23254$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
23255
23256 fi
23257
23258
23259
23260 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
23261if test "x$ac_cv_type_intmax_t" = xyes; then :
23262
23263$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
23264
23265else
23266 test $ac_cv_type_long_long_int = yes \
23267 && ac_type='long long int' \
23268 || ac_type='long int'
23269
23270cat >>confdefs.h <<_ACEOF
23271#define intmax_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000023272_ACEOF
23273
23274fi
23275
23276
cristy501c8042011-05-26 17:46:28 +000023277
23278 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
23279if test "x$ac_cv_type_intptr_t" = xyes; then :
23280
23281$as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023282
cristy3ed852e2009-09-05 21:47:34 +000023283else
cristy501c8042011-05-26 17:46:28 +000023284 for ac_type in 'int' 'long int' 'long long int'; do
23285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23286/* end confdefs.h. */
23287$ac_includes_default
23288int
23289main ()
23290{
23291static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
cristy14fefe52012-05-21 00:59:18 +000023292test_array [0] = 0;
23293return test_array [0];
cristy501c8042011-05-26 17:46:28 +000023294
23295 ;
23296 return 0;
23297}
23298_ACEOF
23299if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023300
23301cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000023302#define intptr_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000023303_ACEOF
23304
cristy501c8042011-05-26 17:46:28 +000023305 ac_type=
23306fi
23307rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23308 test -z "$ac_type" && break
23309 done
cristy3ed852e2009-09-05 21:47:34 +000023310fi
23311
23312
cristy3ed852e2009-09-05 21:47:34 +000023313
cristy501c8042011-05-26 17:46:28 +000023314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
23315$as_echo_n "checking for long double... " >&6; }
23316if ${ac_cv_type_long_double+:} false; then :
23317 $as_echo_n "(cached) " >&6
cristy3ed852e2009-09-05 21:47:34 +000023318else
cristy501c8042011-05-26 17:46:28 +000023319 if test "$GCC" = yes; then
23320 ac_cv_type_long_double=yes
23321 else
23322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23323/* end confdefs.h. */
23324/* The Stardent Vistra knows sizeof (long double), but does
23325 not support it. */
23326 long double foo = 0.0L;
23327int
23328main ()
23329{
23330static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8. */
23331 sizeof (double) <= sizeof (long double))];
cristy14fefe52012-05-21 00:59:18 +000023332test_array [0] = 0;
23333return test_array [0];
cristy3ed852e2009-09-05 21:47:34 +000023334
cristy501c8042011-05-26 17:46:28 +000023335 ;
23336 return 0;
23337}
cristy3ed852e2009-09-05 21:47:34 +000023338_ACEOF
cristy501c8042011-05-26 17:46:28 +000023339if ac_fn_c_try_compile "$LINENO"; then :
23340 ac_cv_type_long_double=yes
cristy3ed852e2009-09-05 21:47:34 +000023341else
cristy501c8042011-05-26 17:46:28 +000023342 ac_cv_type_long_double=no
cristy3ed852e2009-09-05 21:47:34 +000023343fi
cristy501c8042011-05-26 17:46:28 +000023344rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23345 fi
cristy3ed852e2009-09-05 21:47:34 +000023346fi
cristy501c8042011-05-26 17:46:28 +000023347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
23348$as_echo "$ac_cv_type_long_double" >&6; }
23349 if test $ac_cv_type_long_double = yes; then
cristy3ed852e2009-09-05 21:47:34 +000023350
cristy501c8042011-05-26 17:46:28 +000023351$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023352
cristy501c8042011-05-26 17:46:28 +000023353 fi
23354
cristy3ed852e2009-09-05 21:47:34 +000023355
cristy8b350f62009-11-15 23:12:43 +000023356 { $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 +000023357$as_echo_n "checking for long double with more range or precision than double... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023358if ${ac_cv_type_long_double_wider+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023359 $as_echo_n "(cached) " >&6
23360else
cristy8b350f62009-11-15 23:12:43 +000023361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023362/* end confdefs.h. */
23363#include <float.h>
23364 long double const a[] =
23365 {
23366 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
23367 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
23368 };
23369 long double
23370 f (long double x)
23371 {
23372 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
23373 + (x ? f (x) : 'c'));
23374 }
23375
23376int
23377main ()
23378{
23379static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
23380 + (DBL_MANT_DIG < LDBL_MANT_DIG)
23381 - (LDBL_MAX_EXP < DBL_MAX_EXP)
23382 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
23383 && (int) LDBL_EPSILON == 0
23384 )];
cristy14fefe52012-05-21 00:59:18 +000023385test_array [0] = 0;
23386return test_array [0];
cristy3ed852e2009-09-05 21:47:34 +000023387
23388 ;
23389 return 0;
23390}
23391_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023392if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023393 ac_cv_type_long_double_wider=yes
23394else
cristy8b350f62009-11-15 23:12:43 +000023395 ac_cv_type_long_double_wider=no
cristy3ed852e2009-09-05 21:47:34 +000023396fi
cristy3ed852e2009-09-05 21:47:34 +000023397rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23398fi
cristy8b350f62009-11-15 23:12:43 +000023399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
cristy3ed852e2009-09-05 21:47:34 +000023400$as_echo "$ac_cv_type_long_double_wider" >&6; }
23401 if test $ac_cv_type_long_double_wider = yes; then
23402
cristy8b350f62009-11-15 23:12:43 +000023403$as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023404
23405 fi
23406
23407
cristy501c8042011-05-26 17:46:28 +000023408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
23409$as_echo_n "checking for long long int... " >&6; }
23410if ${ac_cv_type_long_long_int+:} false; then :
23411 $as_echo_n "(cached) " >&6
23412else
23413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23414/* end confdefs.h. */
23415
23416 /* For now, do not test the preprocessor; as of 2007 there are too many
23417 implementations with broken preprocessors. Perhaps this can
23418 be revisited in 2012. In the meantime, code should not expect
23419 #if to work with literals wider than 32 bits. */
23420 /* Test literals. */
23421 long long int ll = 9223372036854775807ll;
23422 long long int nll = -9223372036854775807LL;
23423 unsigned long long int ull = 18446744073709551615ULL;
23424 /* Test constant expressions. */
23425 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
23426 ? 1 : -1)];
23427 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
23428 ? 1 : -1)];
23429 int i = 63;
23430int
23431main ()
23432{
23433/* Test availability of runtime routines for shift and division. */
23434 long long int llmax = 9223372036854775807ll;
23435 unsigned long long int ullmax = 18446744073709551615ull;
23436 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
23437 | (llmax / ll) | (llmax % ll)
23438 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23439 | (ullmax / ull) | (ullmax % ull));
23440 ;
23441 return 0;
23442}
23443
23444_ACEOF
23445if ac_fn_c_try_link "$LINENO"; then :
23446 if test "$cross_compiling" = yes; then :
23447 ac_cv_type_long_long_int=yes
23448else
23449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23450/* end confdefs.h. */
23451#include <limits.h>
23452 #ifndef LLONG_MAX
23453 # define HALF \
23454 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
23455 # define LLONG_MAX (HALF - 1 + HALF)
23456 #endif
23457int
23458main ()
23459{
23460long long int n = 1;
23461 int i;
23462 for (i = 0; ; i++)
23463 {
23464 long long int m = n << i;
23465 if (m >> i != n)
23466 return 1;
23467 if (LLONG_MAX / 2 < m)
23468 break;
23469 }
23470 return 0;
23471 ;
23472 return 0;
23473}
23474_ACEOF
23475if ac_fn_c_try_run "$LINENO"; then :
23476 ac_cv_type_long_long_int=yes
23477else
23478 ac_cv_type_long_long_int=no
23479fi
23480rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23481 conftest.$ac_objext conftest.beam conftest.$ac_ext
23482fi
23483
23484else
23485 ac_cv_type_long_long_int=no
23486fi
23487rm -f core conftest.err conftest.$ac_objext \
23488 conftest$ac_exeext conftest.$ac_ext
23489fi
23490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
23491$as_echo "$ac_cv_type_long_long_int" >&6; }
23492 if test $ac_cv_type_long_long_int = yes; then
23493
23494$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
23495
23496 fi
23497
23498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
23499$as_echo_n "checking for mbstate_t... " >&6; }
23500if ${ac_cv_type_mbstate_t+:} false; then :
23501 $as_echo_n "(cached) " >&6
23502else
23503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23504/* end confdefs.h. */
23505$ac_includes_default
23506# include <wchar.h>
23507int
23508main ()
23509{
23510mbstate_t x; return sizeof x;
23511 ;
23512 return 0;
23513}
23514_ACEOF
23515if ac_fn_c_try_compile "$LINENO"; then :
23516 ac_cv_type_mbstate_t=yes
23517else
23518 ac_cv_type_mbstate_t=no
23519fi
23520rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23521fi
23522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
23523$as_echo "$ac_cv_type_mbstate_t" >&6; }
23524 if test $ac_cv_type_mbstate_t = yes; then
23525
23526$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
23527
23528 else
23529
23530$as_echo "#define mbstate_t int" >>confdefs.h
23531
23532 fi
23533ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
23534if test "x$ac_cv_type_mode_t" = xyes; then :
23535
23536else
23537
23538cat >>confdefs.h <<_ACEOF
23539#define mode_t int
23540_ACEOF
23541
23542fi
23543
23544ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
23545if test "x$ac_cv_type_off_t" = xyes; then :
23546
23547else
23548
23549cat >>confdefs.h <<_ACEOF
23550#define off_t long int
23551_ACEOF
23552
23553fi
23554
23555ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
23556if test "x$ac_cv_type_pid_t" = xyes; then :
23557
23558else
23559
23560cat >>confdefs.h <<_ACEOF
23561#define pid_t int
23562_ACEOF
23563
23564fi
23565
23566ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
23567if test "x$ac_cv_type_size_t" = xyes; then :
23568
23569else
23570
23571cat >>confdefs.h <<_ACEOF
23572#define size_t unsigned int
23573_ACEOF
23574
23575fi
23576
23577ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
23578if test "x$ac_cv_type_ssize_t" = xyes; then :
23579
23580else
23581
23582cat >>confdefs.h <<_ACEOF
23583#define ssize_t int
23584_ACEOF
23585
23586fi
23587
23588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
23589$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
23590if ${ac_cv_type_uid_t+:} false; then :
23591 $as_echo_n "(cached) " >&6
23592else
23593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23594/* end confdefs.h. */
23595#include <sys/types.h>
23596
23597_ACEOF
23598if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23599 $EGREP "uid_t" >/dev/null 2>&1; then :
23600 ac_cv_type_uid_t=yes
23601else
23602 ac_cv_type_uid_t=no
23603fi
23604rm -f conftest*
23605
23606fi
23607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
23608$as_echo "$ac_cv_type_uid_t" >&6; }
23609if test $ac_cv_type_uid_t = no; then
23610
23611$as_echo "#define uid_t int" >>confdefs.h
23612
23613
23614$as_echo "#define gid_t int" >>confdefs.h
23615
23616fi
23617
23618ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
23619case $ac_cv_c_uint8_t in #(
23620 no|yes) ;; #(
23621 *)
23622
23623$as_echo "#define _UINT8_T 1" >>confdefs.h
23624
23625
23626cat >>confdefs.h <<_ACEOF
23627#define uint8_t $ac_cv_c_uint8_t
23628_ACEOF
23629;;
23630 esac
23631
23632ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
23633case $ac_cv_c_uint16_t in #(
23634 no|yes) ;; #(
23635 *)
23636
23637
23638cat >>confdefs.h <<_ACEOF
23639#define uint16_t $ac_cv_c_uint16_t
23640_ACEOF
23641;;
23642 esac
23643
23644ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
23645case $ac_cv_c_uint32_t in #(
23646 no|yes) ;; #(
23647 *)
23648
23649$as_echo "#define _UINT32_T 1" >>confdefs.h
23650
23651
23652cat >>confdefs.h <<_ACEOF
23653#define uint32_t $ac_cv_c_uint32_t
23654_ACEOF
23655;;
23656 esac
23657
23658ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
23659case $ac_cv_c_uint64_t in #(
23660 no|yes) ;; #(
23661 *)
23662
23663$as_echo "#define _UINT64_T 1" >>confdefs.h
23664
23665
23666cat >>confdefs.h <<_ACEOF
23667#define uint64_t $ac_cv_c_uint64_t
23668_ACEOF
23669;;
23670 esac
23671
23672
23673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
23674$as_echo_n "checking for unsigned long long int... " >&6; }
23675if ${ac_cv_type_unsigned_long_long_int+:} false; then :
23676 $as_echo_n "(cached) " >&6
23677else
23678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23679/* end confdefs.h. */
23680
23681 /* For now, do not test the preprocessor; as of 2007 there are too many
23682 implementations with broken preprocessors. Perhaps this can
23683 be revisited in 2012. In the meantime, code should not expect
23684 #if to work with literals wider than 32 bits. */
23685 /* Test literals. */
23686 long long int ll = 9223372036854775807ll;
23687 long long int nll = -9223372036854775807LL;
23688 unsigned long long int ull = 18446744073709551615ULL;
23689 /* Test constant expressions. */
23690 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
23691 ? 1 : -1)];
23692 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
23693 ? 1 : -1)];
23694 int i = 63;
23695int
23696main ()
23697{
23698/* Test availability of runtime routines for shift and division. */
23699 long long int llmax = 9223372036854775807ll;
23700 unsigned long long int ullmax = 18446744073709551615ull;
23701 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
23702 | (llmax / ll) | (llmax % ll)
23703 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23704 | (ullmax / ull) | (ullmax % ull));
23705 ;
23706 return 0;
23707}
23708
23709_ACEOF
23710if ac_fn_c_try_link "$LINENO"; then :
23711 ac_cv_type_unsigned_long_long_int=yes
23712else
23713 ac_cv_type_unsigned_long_long_int=no
23714fi
23715rm -f core conftest.err conftest.$ac_objext \
23716 conftest$ac_exeext conftest.$ac_ext
23717fi
23718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
23719$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
23720 if test $ac_cv_type_unsigned_long_long_int = yes; then
23721
23722$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
23723
23724 fi
23725
23726
23727
23728 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
23729if test "x$ac_cv_type_uintmax_t" = xyes; then :
23730
23731$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
23732
23733else
23734 test $ac_cv_type_unsigned_long_long_int = yes \
23735 && ac_type='unsigned long long int' \
23736 || ac_type='unsigned long int'
23737
23738cat >>confdefs.h <<_ACEOF
23739#define uintmax_t $ac_type
23740_ACEOF
23741
23742fi
23743
23744
23745
23746 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
23747if test "x$ac_cv_type_uintptr_t" = xyes; then :
23748
23749$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
23750
23751else
23752 for ac_type in 'unsigned int' 'unsigned long int' \
23753 'unsigned long long int'; do
23754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23755/* end confdefs.h. */
23756$ac_includes_default
23757int
23758main ()
23759{
23760static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
cristy14fefe52012-05-21 00:59:18 +000023761test_array [0] = 0;
23762return test_array [0];
cristy501c8042011-05-26 17:46:28 +000023763
23764 ;
23765 return 0;
23766}
23767_ACEOF
23768if ac_fn_c_try_compile "$LINENO"; then :
23769
23770cat >>confdefs.h <<_ACEOF
23771#define uintptr_t $ac_type
23772_ACEOF
23773
23774 ac_type=
23775fi
23776rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23777 test -z "$ac_type" && break
23778 done
23779fi
23780
23781
23782
23783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
23784$as_echo_n "checking for unsigned long long int... " >&6; }
23785if ${ac_cv_type_unsigned_long_long_int+:} false; then :
23786 $as_echo_n "(cached) " >&6
23787else
23788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23789/* end confdefs.h. */
23790
23791 /* For now, do not test the preprocessor; as of 2007 there are too many
23792 implementations with broken preprocessors. Perhaps this can
23793 be revisited in 2012. In the meantime, code should not expect
23794 #if to work with literals wider than 32 bits. */
23795 /* Test literals. */
23796 long long int ll = 9223372036854775807ll;
23797 long long int nll = -9223372036854775807LL;
23798 unsigned long long int ull = 18446744073709551615ULL;
23799 /* Test constant expressions. */
23800 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
23801 ? 1 : -1)];
23802 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
23803 ? 1 : -1)];
23804 int i = 63;
23805int
23806main ()
23807{
23808/* Test availability of runtime routines for shift and division. */
23809 long long int llmax = 9223372036854775807ll;
23810 unsigned long long int ullmax = 18446744073709551615ull;
23811 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
23812 | (llmax / ll) | (llmax % ll)
23813 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23814 | (ullmax / ull) | (ullmax % ull));
23815 ;
23816 return 0;
23817}
23818
23819_ACEOF
23820if ac_fn_c_try_link "$LINENO"; then :
23821 ac_cv_type_unsigned_long_long_int=yes
23822else
23823 ac_cv_type_unsigned_long_long_int=no
23824fi
23825rm -f core conftest.err conftest.$ac_objext \
23826 conftest$ac_exeext conftest.$ac_ext
23827fi
23828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
23829$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
23830 if test $ac_cv_type_unsigned_long_long_int = yes; then
23831
23832$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
23833
23834 fi
23835
23836
cristy3ed852e2009-09-05 21:47:34 +000023837# If the C type char is unsigned, define __CHAR_UNSIGNED__, unless the
23838# C compiler predefines it.
cristy8b350f62009-11-15 23:12:43 +000023839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000023840$as_echo_n "checking whether char is unsigned... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023841if ${ac_cv_c_char_unsigned+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023842 $as_echo_n "(cached) " >&6
23843else
cristy8b350f62009-11-15 23:12:43 +000023844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023845/* end confdefs.h. */
23846$ac_includes_default
23847int
23848main ()
23849{
23850static int test_array [1 - 2 * !(((char) -1) < 0)];
cristy14fefe52012-05-21 00:59:18 +000023851test_array [0] = 0;
23852return test_array [0];
cristy3ed852e2009-09-05 21:47:34 +000023853
23854 ;
23855 return 0;
23856}
23857_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023858if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023859 ac_cv_c_char_unsigned=no
23860else
cristy8b350f62009-11-15 23:12:43 +000023861 ac_cv_c_char_unsigned=yes
cristy3ed852e2009-09-05 21:47:34 +000023862fi
cristy3ed852e2009-09-05 21:47:34 +000023863rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23864fi
cristy8b350f62009-11-15 23:12:43 +000023865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000023866$as_echo "$ac_cv_c_char_unsigned" >&6; }
23867if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
cristy8b350f62009-11-15 23:12:43 +000023868 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023869
23870fi
23871
23872
23873# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
23874# The cast to long int works around a bug in the HP C Compiler
23875# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23876# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23877# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023879$as_echo_n "checking size of signed short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023880if ${ac_cv_sizeof_signed_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023881 $as_echo_n "(cached) " >&6
23882else
cristy8b350f62009-11-15 23:12:43 +000023883 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 +000023884
cristy3ed852e2009-09-05 21:47:34 +000023885else
cristy8b350f62009-11-15 23:12:43 +000023886 if test "$ac_cv_type_signed_short" = yes; then
23887 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023888$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023889as_fn_error 77 "cannot compute sizeof (signed short)
23890See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023891 else
23892 ac_cv_sizeof_signed_short=0
23893 fi
23894fi
cristy8b350f62009-11-15 23:12:43 +000023895
cristy3ed852e2009-09-05 21:47:34 +000023896fi
cristy8b350f62009-11-15 23:12:43 +000023897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023898$as_echo "$ac_cv_sizeof_signed_short" >&6; }
23899
23900
23901
23902cat >>confdefs.h <<_ACEOF
23903#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
23904_ACEOF
23905
23906
23907
23908# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
23909# The cast to long int works around a bug in the HP C Compiler
23910# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23911# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23912# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023914$as_echo_n "checking size of unsigned short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023915if ${ac_cv_sizeof_unsigned_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023916 $as_echo_n "(cached) " >&6
23917else
cristy8b350f62009-11-15 23:12:43 +000023918 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 +000023919
cristy3ed852e2009-09-05 21:47:34 +000023920else
cristy8b350f62009-11-15 23:12:43 +000023921 if test "$ac_cv_type_unsigned_short" = yes; then
23922 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023923$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023924as_fn_error 77 "cannot compute sizeof (unsigned short)
23925See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023926 else
23927 ac_cv_sizeof_unsigned_short=0
23928 fi
23929fi
cristy8b350f62009-11-15 23:12:43 +000023930
cristy3ed852e2009-09-05 21:47:34 +000023931fi
cristy8b350f62009-11-15 23:12:43 +000023932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023933$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
23934
23935
23936
23937cat >>confdefs.h <<_ACEOF
23938#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
23939_ACEOF
23940
23941
23942
23943# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
23944# The cast to long int works around a bug in the HP C Compiler
23945# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23946# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23947# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023949$as_echo_n "checking size of signed int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023950if ${ac_cv_sizeof_signed_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023951 $as_echo_n "(cached) " >&6
23952else
cristy8b350f62009-11-15 23:12:43 +000023953 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 +000023954
cristy3ed852e2009-09-05 21:47:34 +000023955else
cristy8b350f62009-11-15 23:12:43 +000023956 if test "$ac_cv_type_signed_int" = yes; then
23957 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023958$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023959as_fn_error 77 "cannot compute sizeof (signed int)
23960See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023961 else
23962 ac_cv_sizeof_signed_int=0
23963 fi
23964fi
cristy8b350f62009-11-15 23:12:43 +000023965
cristy3ed852e2009-09-05 21:47:34 +000023966fi
cristy8b350f62009-11-15 23:12:43 +000023967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023968$as_echo "$ac_cv_sizeof_signed_int" >&6; }
23969
23970
23971
23972cat >>confdefs.h <<_ACEOF
23973#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
23974_ACEOF
23975
23976
23977
23978# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
23979# The cast to long int works around a bug in the HP C Compiler
23980# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23981# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23982# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023984$as_echo_n "checking size of unsigned int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023985if ${ac_cv_sizeof_unsigned_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023986 $as_echo_n "(cached) " >&6
23987else
cristy8b350f62009-11-15 23:12:43 +000023988 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 +000023989
cristy3ed852e2009-09-05 21:47:34 +000023990else
cristy8b350f62009-11-15 23:12:43 +000023991 if test "$ac_cv_type_unsigned_int" = yes; then
23992 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023993$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023994as_fn_error 77 "cannot compute sizeof (unsigned int)
23995See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023996 else
23997 ac_cv_sizeof_unsigned_int=0
23998 fi
23999fi
cristy8b350f62009-11-15 23:12:43 +000024000
cristy3ed852e2009-09-05 21:47:34 +000024001fi
cristy8b350f62009-11-15 23:12:43 +000024002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000024003$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
24004
24005
24006
24007cat >>confdefs.h <<_ACEOF
24008#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
24009_ACEOF
24010
24011
24012
24013# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
24014# The cast to long int works around a bug in the HP C Compiler
24015# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24016# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24017# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024019$as_echo_n "checking size of signed long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024020if ${ac_cv_sizeof_signed_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024021 $as_echo_n "(cached) " >&6
24022else
cristy8b350f62009-11-15 23:12:43 +000024023 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 +000024024
cristy3ed852e2009-09-05 21:47:34 +000024025else
cristy8b350f62009-11-15 23:12:43 +000024026 if test "$ac_cv_type_signed_long" = yes; then
24027 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024028$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024029as_fn_error 77 "cannot compute sizeof (signed long)
24030See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024031 else
24032 ac_cv_sizeof_signed_long=0
24033 fi
24034fi
cristy8b350f62009-11-15 23:12:43 +000024035
cristy3ed852e2009-09-05 21:47:34 +000024036fi
cristy8b350f62009-11-15 23:12:43 +000024037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024038$as_echo "$ac_cv_sizeof_signed_long" >&6; }
24039
24040
24041
24042cat >>confdefs.h <<_ACEOF
24043#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
24044_ACEOF
24045
24046
24047
24048# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
24049# The cast to long int works around a bug in the HP C Compiler
24050# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24051# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24052# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024054$as_echo_n "checking size of unsigned long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024055if ${ac_cv_sizeof_unsigned_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024056 $as_echo_n "(cached) " >&6
24057else
cristy8b350f62009-11-15 23:12:43 +000024058 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 +000024059
cristy3ed852e2009-09-05 21:47:34 +000024060else
cristy8b350f62009-11-15 23:12:43 +000024061 if test "$ac_cv_type_unsigned_long" = yes; then
24062 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024063$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024064as_fn_error 77 "cannot compute sizeof (unsigned long)
24065See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024066 else
24067 ac_cv_sizeof_unsigned_long=0
24068 fi
24069fi
cristy8b350f62009-11-15 23:12:43 +000024070
cristy3ed852e2009-09-05 21:47:34 +000024071fi
cristy8b350f62009-11-15 23:12:43 +000024072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024073$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
24074
24075
24076
24077cat >>confdefs.h <<_ACEOF
24078#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
24079_ACEOF
24080
24081
24082
24083# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If
24084# 'signed long long' is not supported then the value defined is zero.
24085# The cast to long int works around a bug in the HP C Compiler
24086# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24087# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24088# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024090$as_echo_n "checking size of signed long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024091if ${ac_cv_sizeof_signed_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024092 $as_echo_n "(cached) " >&6
24093else
cristy8b350f62009-11-15 23:12:43 +000024094 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 +000024095
cristy3ed852e2009-09-05 21:47:34 +000024096else
cristy8b350f62009-11-15 23:12:43 +000024097 if test "$ac_cv_type_signed_long_long" = yes; then
24098 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024099$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024100as_fn_error 77 "cannot compute sizeof (signed long long)
24101See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024102 else
24103 ac_cv_sizeof_signed_long_long=0
24104 fi
24105fi
cristy8b350f62009-11-15 23:12:43 +000024106
cristy3ed852e2009-09-05 21:47:34 +000024107fi
cristy8b350f62009-11-15 23:12:43 +000024108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024109$as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
24110
24111
24112
24113cat >>confdefs.h <<_ACEOF
24114#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
24115_ACEOF
24116
24117
24118
24119# Obtain size of a 'unsigned long long' and define as
24120# SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not
24121# supported then the value defined is zero.
24122# The cast to long int works around a bug in the HP C Compiler
24123# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24124# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24125# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024127$as_echo_n "checking size of unsigned long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024128if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024129 $as_echo_n "(cached) " >&6
24130else
cristy8b350f62009-11-15 23:12:43 +000024131 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 +000024132
cristy3ed852e2009-09-05 21:47:34 +000024133else
cristy8b350f62009-11-15 23:12:43 +000024134 if test "$ac_cv_type_unsigned_long_long" = yes; then
24135 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024136$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024137as_fn_error 77 "cannot compute sizeof (unsigned long long)
24138See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024139 else
24140 ac_cv_sizeof_unsigned_long_long=0
24141 fi
24142fi
cristy8b350f62009-11-15 23:12:43 +000024143
cristy3ed852e2009-09-05 21:47:34 +000024144fi
cristy8b350f62009-11-15 23:12:43 +000024145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024146$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
24147
24148
24149
24150cat >>confdefs.h <<_ACEOF
24151#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
24152_ACEOF
24153
24154
24155
24156# Obtain size of off_t and define as SIZEOF_OFF_T
24157# The cast to long int works around a bug in the HP C Compiler
24158# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24159# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24160# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000024162$as_echo_n "checking size of off_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024163if ${ac_cv_sizeof_off_t+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024164 $as_echo_n "(cached) " >&6
24165else
cristy8b350f62009-11-15 23:12:43 +000024166 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 +000024167
cristy3ed852e2009-09-05 21:47:34 +000024168else
cristy8b350f62009-11-15 23:12:43 +000024169 if test "$ac_cv_type_off_t" = yes; then
24170 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024171$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024172as_fn_error 77 "cannot compute sizeof (off_t)
24173See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024174 else
24175 ac_cv_sizeof_off_t=0
24176 fi
24177fi
cristy8b350f62009-11-15 23:12:43 +000024178
cristy3ed852e2009-09-05 21:47:34 +000024179fi
cristy8b350f62009-11-15 23:12:43 +000024180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000024181$as_echo "$ac_cv_sizeof_off_t" >&6; }
24182
24183
24184
24185cat >>confdefs.h <<_ACEOF
24186#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
24187_ACEOF
24188
24189
24190
24191# Obtain size of size_t and define as SIZEOF_SIZE_T
24192# The cast to long int works around a bug in the HP C Compiler
24193# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24194# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24195# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000024197$as_echo_n "checking size of size_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024198if ${ac_cv_sizeof_size_t+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024199 $as_echo_n "(cached) " >&6
24200else
cristy8b350f62009-11-15 23:12:43 +000024201 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 +000024202
cristy3ed852e2009-09-05 21:47:34 +000024203else
cristy8b350f62009-11-15 23:12:43 +000024204 if test "$ac_cv_type_size_t" = yes; then
24205 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024206$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024207as_fn_error 77 "cannot compute sizeof (size_t)
24208See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024209 else
24210 ac_cv_sizeof_size_t=0
24211 fi
24212fi
cristy8b350f62009-11-15 23:12:43 +000024213
cristy3ed852e2009-09-05 21:47:34 +000024214fi
cristy8b350f62009-11-15 23:12:43 +000024215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000024216$as_echo "$ac_cv_sizeof_size_t" >&6; }
24217
24218
24219
24220cat >>confdefs.h <<_ACEOF
24221#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
24222_ACEOF
24223
24224
24225
cristy330e9352010-06-01 18:42:49 +000024226# Obtain size of ssize_t and define as SIZEOF_SSIZE_T
24227# The cast to long int works around a bug in the HP C Compiler
24228# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24229# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24230# This bug is HP SR number 8606223364.
24231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
24232$as_echo_n "checking size of ssize_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024233if ${ac_cv_sizeof_ssize_t+:} false; then :
cristy330e9352010-06-01 18:42:49 +000024234 $as_echo_n "(cached) " >&6
24235else
24236 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t" "$ac_includes_default"; then :
24237
24238else
24239 if test "$ac_cv_type_ssize_t" = yes; then
24240 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24241$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024242as_fn_error 77 "cannot compute sizeof (ssize_t)
24243See \`config.log' for more details" "$LINENO" 5; }
cristy330e9352010-06-01 18:42:49 +000024244 else
24245 ac_cv_sizeof_ssize_t=0
24246 fi
24247fi
24248
24249fi
24250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
24251$as_echo "$ac_cv_sizeof_ssize_t" >&6; }
24252
24253
24254
24255cat >>confdefs.h <<_ACEOF
24256#define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
24257_ACEOF
24258
24259
24260
cristy3ed852e2009-09-05 21:47:34 +000024261# Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
24262# The cast to long int works around a bug in the HP C Compiler
24263# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24264# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24265# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
cristy3ed852e2009-09-05 21:47:34 +000024267$as_echo_n "checking size of unsigned int*... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024268if ${ac_cv_sizeof_unsigned_intp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024269 $as_echo_n "(cached) " >&6
24270else
cristy8b350f62009-11-15 23:12:43 +000024271 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 +000024272
cristy3ed852e2009-09-05 21:47:34 +000024273else
cristy8b350f62009-11-15 23:12:43 +000024274 if test "$ac_cv_type_unsigned_intp" = yes; then
24275 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024276$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024277as_fn_error 77 "cannot compute sizeof (unsigned int*)
24278See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024279 else
24280 ac_cv_sizeof_unsigned_intp=0
24281 fi
24282fi
cristy8b350f62009-11-15 23:12:43 +000024283
cristy3ed852e2009-09-05 21:47:34 +000024284fi
cristy8b350f62009-11-15 23:12:43 +000024285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024286$as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
24287
24288
24289
24290cat >>confdefs.h <<_ACEOF
24291#define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
24292_ACEOF
24293
24294
24295
24296#
24297# Compute sized types for current CPU and compiler options.
24298#
24299
cristy8b350f62009-11-15 23:12:43 +000024300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024301$as_echo_n "checking for signed 8-bit type... " >&6; }
24302INT8_T='signed char'
cristy09b53e12011-10-14 12:47:22 +000024303{ $as_echo "$as_me:${as_lineno-$LINENO}: $INT8_T" >&5
24304$as_echo "$as_me: $INT8_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024305
24306
cristy8b350f62009-11-15 23:12:43 +000024307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024308$as_echo_n "checking for unsigned 8-bit type... " >&6; }
24309UINT8_T='unsigned char'
cristy09b53e12011-10-14 12:47:22 +000024310{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINT8_T" >&5
24311$as_echo "$as_me: $UINT8_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024312
24313
cristy8b350f62009-11-15 23:12:43 +000024314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024315$as_echo_n "checking for signed 16-bit type... " >&6; }
24316INT16_T='signed short'
cristy09b53e12011-10-14 12:47:22 +000024317{ $as_echo "$as_me:${as_lineno-$LINENO}: $INT16_T" >&5
24318$as_echo "$as_me: $INT16_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024319
24320
cristy8b350f62009-11-15 23:12:43 +000024321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024322$as_echo_n "checking for unsigned 16-bit type... " >&6; }
24323UINT16_T='unsigned short'
cristy09b53e12011-10-14 12:47:22 +000024324{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINT16_T" >&5
24325$as_echo "$as_me: $UINT16_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024326
24327
cristy8b350f62009-11-15 23:12:43 +000024328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024329$as_echo_n "checking for signed 32-bit type... " >&6; }
24330INT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024331INT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024332if test $ac_cv_sizeof_signed_int -eq 4; then
24333 INT32_T='signed int'
cristy6d5e20f2011-04-25 13:48:54 +000024334 INT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000024335elif test $ac_cv_sizeof_signed_long -eq 4; then
24336 INT32_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000024337 INT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024338fi
cristy09b53e12011-10-14 12:47:22 +000024339{ $as_echo "$as_me:${as_lineno-$LINENO}: $INT32_T" >&5
24340$as_echo "$as_me: $INT32_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024341
24342
cristy6d5e20f2011-04-25 13:48:54 +000024343
cristy8b350f62009-11-15 23:12:43 +000024344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024345$as_echo_n "checking for unsigned 32-bit type... " >&6; }
24346UINT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024347UINT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024348if test $ac_cv_sizeof_unsigned_int -eq 4; then
24349 UINT32_T='unsigned int'
cristy6d5e20f2011-04-25 13:48:54 +000024350 UINT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000024351elif test $ac_cv_sizeof_unsigned_long -eq 4; then
24352 UINT32_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000024353 UINT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024354fi
cristy09b53e12011-10-14 12:47:22 +000024355{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINT32_T" >&5
24356$as_echo "$as_me: $UINT32_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024357
24358
cristy6d5e20f2011-04-25 13:48:54 +000024359
cristy8b350f62009-11-15 23:12:43 +000024360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024361$as_echo_n "checking for signed 64-bit type... " >&6; }
24362INT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024363INT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024364if test $ac_cv_sizeof_signed_long -eq 8; then
24365 INT64_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000024366 INT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024367elif test $ac_cv_sizeof_signed_long_long -eq 8; then
24368 INT64_T='signed long long'
cristy6d5e20f2011-04-25 13:48:54 +000024369 INT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000024370fi
cristy3a99dcf2011-12-17 01:29:40 +000024371case "${host_os}" in
cristy6d5e20f2011-04-25 13:48:54 +000024372 mingw* )
24373 INT64_F='"I64"'
24374 ;;
24375esac
cristy09b53e12011-10-14 12:47:22 +000024376{ $as_echo "$as_me:${as_lineno-$LINENO}: $INT64_T" >&5
24377$as_echo "$as_me: $INT64_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024378
24379
cristy6d5e20f2011-04-25 13:48:54 +000024380
cristy8b350f62009-11-15 23:12:43 +000024381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024382$as_echo_n "checking for unsigned 64-bit type... " >&6; }
24383UINT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024384UINT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024385if test $ac_cv_sizeof_unsigned_long -eq 8; then
24386 UINT64_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000024387 UINT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024388elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
24389 UINT64_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000024390 UINT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000024391fi
cristy3a99dcf2011-12-17 01:29:40 +000024392case "${host_os}" in
cristy6d5e20f2011-04-25 13:48:54 +000024393 mingw* )
24394 UINT64_F='"I64"'
24395 ;;
24396esac
cristy09b53e12011-10-14 12:47:22 +000024397{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINT64_T" >&5
24398$as_echo "$as_me: $UINT64_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024399
24400
cristy6d5e20f2011-04-25 13:48:54 +000024401
cristy8b350f62009-11-15 23:12:43 +000024402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024403$as_echo_n "checking for unsigned maximum type... " >&6; }
24404UINTMAX_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024405UINTMAX_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024406if test "$UINT64_T" != 'none'; then
24407 UINTMAX_T=$UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +000024408 UINTMAX_F=$UINT64_F
cristy3ed852e2009-09-05 21:47:34 +000024409elif test "$UINT32_T" != 'none'; then
24410 UINTMAX_T=$UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +000024411 UINTMAX_F=$UINT32_F
cristy3ed852e2009-09-05 21:47:34 +000024412fi
cristy09b53e12011-10-14 12:47:22 +000024413{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINTMAX_T" >&5
24414$as_echo "$as_me: $UINTMAX_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024415
24416
cristy6d5e20f2011-04-25 13:48:54 +000024417
cristy8b350f62009-11-15 23:12:43 +000024418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024419$as_echo_n "checking for pointer difference type... " >&6; }
24420UINTPTR_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024421UINTPTR_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024422if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
24423 UINTPTR_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000024424 UINTPTR_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024425elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
24426 UINTPTR_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000024427 UINTPTR_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000024428fi
cristy09b53e12011-10-14 12:47:22 +000024429{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINTPTR_T" >&5
24430$as_echo "$as_me: $UINTPTR_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024431
24432
cristy6d5e20f2011-04-25 13:48:54 +000024433
cristy8b350f62009-11-15 23:12:43 +000024434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
cristy3ed852e2009-09-05 21:47:34 +000024435$as_echo_n "checking whether our compiler supports __func__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024436cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024437/* end confdefs.h. */
24438
24439int
24440main ()
24441{
24442{ const char *func = __func__; return(func != 0 ? 0 : 1); }
24443 ;
24444 return 0;
24445}
24446_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024447if ac_fn_c_try_compile "$LINENO"; then :
cristy09b53e12011-10-14 12:47:22 +000024448 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
24449$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024450else
cristy09b53e12011-10-14 12:47:22 +000024451 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
24452$as_echo "$as_me: no" >&6;}
cristy8b350f62009-11-15 23:12:43 +000024453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
cristy3ed852e2009-09-05 21:47:34 +000024454$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024456/* end confdefs.h. */
24457
24458int
24459main ()
24460{
24461{ const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
24462 ;
24463 return 0;
24464}
24465_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024466if ac_fn_c_try_compile "$LINENO"; then :
cristy09b53e12011-10-14 12:47:22 +000024467 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
24468$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024469
cristy8b350f62009-11-15 23:12:43 +000024470$as_echo "#define __func__ __FUNCTION__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024471
24472else
cristy09b53e12011-10-14 12:47:22 +000024473 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
24474$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024475
cristy8b350f62009-11-15 23:12:43 +000024476$as_echo "#define __func__ __FILE__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024477
24478fi
cristy3ed852e2009-09-05 21:47:34 +000024479rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24480fi
cristy3ed852e2009-09-05 21:47:34 +000024481rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24482
24483########
24484#
24485# Check for functions
24486#
24487########
cristy73bd4a52010-10-05 11:24:23 +000024488for ac_header in stdlib.h unistd.h
24489do :
24490 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24491ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000024492if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000024493 cat >>confdefs.h <<_ACEOF
24494#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24495_ACEOF
24496
24497fi
24498
24499done
24500
24501for ac_func in getpagesize
24502do :
24503 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
cristyda16f162011-02-19 23:52:17 +000024504if test "x$ac_cv_func_getpagesize" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000024505 cat >>confdefs.h <<_ACEOF
24506#define HAVE_GETPAGESIZE 1
24507_ACEOF
24508
24509fi
24510done
24511
24512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap file i/o" >&5
24513$as_echo_n "checking for working mmap file i/o... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024514if ${magick_cv_func_mmap_fileio+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000024515 $as_echo_n "(cached) " >&6
24516else
24517 if test "$cross_compiling" = yes; then :
24518 magick_cv_func_mmap_fileio=no
24519else
24520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24521/* end confdefs.h. */
24522$ac_includes_default
24523/* malloc might have been renamed as rpl_malloc. */
24524#undef malloc
24525
24526/*
24527 This test is derived from GNU Autoconf's similar macro.
24528 The purpose of this test is to verify that files may be memory
24529 mapped, and that memory mapping and file I/O are coherent.
24530
24531 The test creates a test file, memory maps the file, updates
24532 the file using the memory map, and then reads the file using
24533 file I/O to verify that the file contains the updates.
24534*/
24535
24536#include <fcntl.h>
24537#include <sys/mman.h>
24538
24539#if !STDC_HEADERS && !HAVE_STDLIB_H
24540char *malloc ();
24541#endif
24542
24543/* This mess was copied from the GNU getpagesize.h. */
24544#if !HAVE_GETPAGESIZE
24545/* Assume that all systems that can run configure have sys/param.h. */
24546# if !HAVE_SYS_PARAM_H
24547# define HAVE_SYS_PARAM_H 1
24548# endif
24549
24550# ifdef _SC_PAGESIZE
24551# define getpagesize() sysconf(_SC_PAGESIZE)
24552# else /* no _SC_PAGESIZE */
24553# if HAVE_SYS_PARAM_H
24554# include <sys/param.h>
24555# ifdef EXEC_PAGESIZE
24556# define getpagesize() EXEC_PAGESIZE
24557# else /* no EXEC_PAGESIZE */
24558# ifdef NBPG
24559# define getpagesize() NBPG * CLSIZE
24560# ifndef CLSIZE
24561# define CLSIZE 1
24562# endif /* no CLSIZE */
24563# else /* no NBPG */
24564# ifdef NBPC
24565# define getpagesize() NBPC
24566# else /* no NBPC */
24567# ifdef PAGESIZE
24568# define getpagesize() PAGESIZE
24569# endif /* PAGESIZE */
24570# endif /* no NBPC */
24571# endif /* no NBPG */
24572# endif /* no EXEC_PAGESIZE */
24573# else /* no HAVE_SYS_PARAM_H */
24574# define getpagesize() 8192 /* punt totally */
24575# endif /* no HAVE_SYS_PARAM_H */
24576# endif /* no _SC_PAGESIZE */
24577
24578#endif /* no HAVE_GETPAGESIZE */
24579
24580int
24581main ()
24582{
24583 char *data, *data2, *data3;
24584 int i, pagesize;
24585 int fd;
24586
24587 pagesize = getpagesize ();
24588
24589 /* First, make a file with some known garbage in it. */
24590 data = (char *) malloc (pagesize);
24591 if (!data)
24592 exit (1);
24593 for (i = 0; i < pagesize; ++i)
24594 *(data + i) = rand ();
24595 umask (0);
24596 fd = creat ("conftest.mmap", 0600);
24597 if (fd < 0)
24598 exit (1);
24599 if (write (fd, data, pagesize) != pagesize)
24600 exit (1);
24601 close (fd);
24602
24603 /* Mmap the file as read/write/shared and verify that we see the
24604 same garbage. */
24605 fd = open ("conftest.mmap", O_RDWR);
24606 if (fd < 0)
24607 exit (1);
24608 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0L);
24609 if (data2 == 0)
24610 exit (1);
24611 for (i = 0; i < pagesize; ++i)
24612 if (*(data + i) != *(data2 + i))
24613 exit (1);
24614
24615 /* Finally, make sure that changes to the mapped area
24616 percolate back to the file as seen by read(). */
24617 for (i = 0; i < pagesize; ++i)
24618 *(data2 + i) = *(data2 + i) + 1;
24619 data3 = (char *) malloc (pagesize);
24620 if (!data3)
24621 exit (1);
24622 if (read (fd, data3, pagesize) != pagesize)
24623 exit (1);
24624 for (i = 0; i < pagesize; ++i)
24625 if (*(data2 + i) != *(data3 + i))
24626 exit (1);
24627 close (fd);
24628 exit (0);
24629}
24630_ACEOF
24631if ac_fn_c_try_run "$LINENO"; then :
24632 magick_cv_func_mmap_fileio=yes
24633else
24634 magick_cv_func_mmap_fileio=no
24635fi
24636rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24637 conftest.$ac_objext conftest.beam conftest.$ac_ext
24638fi
24639
24640fi
24641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $magick_cv_func_mmap_fileio" >&5
24642$as_echo "$magick_cv_func_mmap_fileio" >&6; }
24643if test $magick_cv_func_mmap_fileio = yes; then
24644
24645$as_echo "#define HAVE_MMAP_FILEIO 1" >>confdefs.h
24646
24647fi
24648rm -f conftest.mmap
24649
cristy8b350f62009-11-15 23:12:43 +000024650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
cristy3ed852e2009-09-05 21:47:34 +000024651$as_echo_n "checking whether closedir returns void... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024652if ${ac_cv_func_closedir_void+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024653 $as_echo_n "(cached) " >&6
24654else
cristy8b350f62009-11-15 23:12:43 +000024655 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024656 ac_cv_func_closedir_void=yes
24657else
cristy8b350f62009-11-15 23:12:43 +000024658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024659/* end confdefs.h. */
24660$ac_includes_default
24661#include <$ac_header_dirent>
24662#ifndef __cplusplus
24663int closedir ();
24664#endif
24665
24666int
24667main ()
24668{
24669return closedir (opendir (".")) != 0;
24670 ;
24671 return 0;
24672}
24673_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024674if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024675 ac_cv_func_closedir_void=no
24676else
cristy8b350f62009-11-15 23:12:43 +000024677 ac_cv_func_closedir_void=yes
cristy3ed852e2009-09-05 21:47:34 +000024678fi
cristy8b350f62009-11-15 23:12:43 +000024679rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24680 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024681fi
24682
cristy3ed852e2009-09-05 21:47:34 +000024683fi
cristy8b350f62009-11-15 23:12:43 +000024684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
cristy3ed852e2009-09-05 21:47:34 +000024685$as_echo "$ac_cv_func_closedir_void" >&6; }
24686if test $ac_cv_func_closedir_void = yes; then
24687
cristy8b350f62009-11-15 23:12:43 +000024688$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024689
24690fi
24691
cristycd4c5312009-11-22 01:19:08 +000024692
24693
24694
24695 for ac_header in $ac_header_list
cristy8b350f62009-11-15 23:12:43 +000024696do :
24697 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
cristycd4c5312009-11-22 01:19:08 +000024698ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
24699"
cristy98dddb52010-11-04 00:30:15 +000024700if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024701 cat >>confdefs.h <<_ACEOF
24702#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24703_ACEOF
24704
24705fi
24706
24707done
24708
cristycd4c5312009-11-22 01:19:08 +000024709
24710
24711
24712
24713
24714
24715
cristy3ed852e2009-09-05 21:47:34 +000024716for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000024717do :
24718 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
cristyda16f162011-02-19 23:52:17 +000024719if test "x$ac_cv_func_getpagesize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024720 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024721#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000024722_ACEOF
24723
24724fi
24725done
24726
cristy8b350f62009-11-15 23:12:43 +000024727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
cristy3ed852e2009-09-05 21:47:34 +000024728$as_echo_n "checking for working mmap... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024729if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024730 $as_echo_n "(cached) " >&6
24731else
cristy8b350f62009-11-15 23:12:43 +000024732 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024733 ac_cv_func_mmap_fixed_mapped=no
24734else
cristy8b350f62009-11-15 23:12:43 +000024735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024736/* end confdefs.h. */
24737$ac_includes_default
24738/* malloc might have been renamed as rpl_malloc. */
24739#undef malloc
24740
24741/* Thanks to Mike Haertel and Jim Avera for this test.
24742 Here is a matrix of mmap possibilities:
24743 mmap private not fixed
24744 mmap private fixed at somewhere currently unmapped
24745 mmap private fixed at somewhere already mapped
24746 mmap shared not fixed
24747 mmap shared fixed at somewhere currently unmapped
24748 mmap shared fixed at somewhere already mapped
24749 For private mappings, we should verify that changes cannot be read()
24750 back from the file, nor mmap's back from the file at a different
24751 address. (There have been systems where private was not correctly
24752 implemented like the infamous i386 svr4.0, and systems where the
24753 VM page cache was not coherent with the file system buffer cache
24754 like early versions of FreeBSD and possibly contemporary NetBSD.)
24755 For shared mappings, we should conversely verify that changes get
24756 propagated back to all the places they're supposed to be.
24757
24758 Grep wants private fixed already mapped.
24759 The main things grep needs to know about mmap are:
24760 * does it exist and is it safe to write into the mmap'd area
24761 * how to use it (BSD variants) */
24762
24763#include <fcntl.h>
24764#include <sys/mman.h>
24765
24766#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
24767char *malloc ();
24768#endif
24769
24770/* This mess was copied from the GNU getpagesize.h. */
24771#ifndef HAVE_GETPAGESIZE
cristy3ed852e2009-09-05 21:47:34 +000024772# ifdef _SC_PAGESIZE
24773# define getpagesize() sysconf(_SC_PAGESIZE)
24774# else /* no _SC_PAGESIZE */
24775# ifdef HAVE_SYS_PARAM_H
24776# include <sys/param.h>
24777# ifdef EXEC_PAGESIZE
24778# define getpagesize() EXEC_PAGESIZE
24779# else /* no EXEC_PAGESIZE */
24780# ifdef NBPG
24781# define getpagesize() NBPG * CLSIZE
24782# ifndef CLSIZE
24783# define CLSIZE 1
24784# endif /* no CLSIZE */
24785# else /* no NBPG */
24786# ifdef NBPC
24787# define getpagesize() NBPC
24788# else /* no NBPC */
24789# ifdef PAGESIZE
24790# define getpagesize() PAGESIZE
24791# endif /* PAGESIZE */
24792# endif /* no NBPC */
24793# endif /* no NBPG */
24794# endif /* no EXEC_PAGESIZE */
24795# else /* no HAVE_SYS_PARAM_H */
24796# define getpagesize() 8192 /* punt totally */
24797# endif /* no HAVE_SYS_PARAM_H */
24798# endif /* no _SC_PAGESIZE */
24799
24800#endif /* no HAVE_GETPAGESIZE */
24801
24802int
24803main ()
24804{
24805 char *data, *data2, *data3;
cristyc54f5d42009-11-27 21:36:31 +000024806 const char *cdata2;
cristy3ed852e2009-09-05 21:47:34 +000024807 int i, pagesize;
cristycd4c5312009-11-22 01:19:08 +000024808 int fd, fd2;
cristy3ed852e2009-09-05 21:47:34 +000024809
24810 pagesize = getpagesize ();
24811
24812 /* First, make a file with some known garbage in it. */
24813 data = (char *) malloc (pagesize);
24814 if (!data)
24815 return 1;
24816 for (i = 0; i < pagesize; ++i)
24817 *(data + i) = rand ();
24818 umask (0);
24819 fd = creat ("conftest.mmap", 0600);
24820 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024821 return 2;
cristy3ed852e2009-09-05 21:47:34 +000024822 if (write (fd, data, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000024823 return 3;
cristy3ed852e2009-09-05 21:47:34 +000024824 close (fd);
24825
cristycd4c5312009-11-22 01:19:08 +000024826 /* Next, check that the tail of a page is zero-filled. File must have
24827 non-zero length, otherwise we risk SIGBUS for entire page. */
24828 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
24829 if (fd2 < 0)
24830 return 4;
cristyc54f5d42009-11-27 21:36:31 +000024831 cdata2 = "";
24832 if (write (fd2, cdata2, 1) != 1)
cristycd4c5312009-11-22 01:19:08 +000024833 return 5;
cristyc54f5d42009-11-27 21:36:31 +000024834 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
cristycd4c5312009-11-22 01:19:08 +000024835 if (data2 == MAP_FAILED)
24836 return 6;
24837 for (i = 0; i < pagesize; ++i)
24838 if (*(data2 + i))
24839 return 7;
24840 close (fd2);
24841 if (munmap (data2, pagesize))
24842 return 8;
24843
cristy3ed852e2009-09-05 21:47:34 +000024844 /* Next, try to mmap the file at a fixed address which already has
24845 something else allocated at it. If we can, also make sure that
24846 we see the same garbage. */
24847 fd = open ("conftest.mmap", O_RDWR);
24848 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024849 return 9;
cristy3ed852e2009-09-05 21:47:34 +000024850 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
24851 MAP_PRIVATE | MAP_FIXED, fd, 0L))
cristycd4c5312009-11-22 01:19:08 +000024852 return 10;
cristy3ed852e2009-09-05 21:47:34 +000024853 for (i = 0; i < pagesize; ++i)
24854 if (*(data + i) != *(data2 + i))
cristycd4c5312009-11-22 01:19:08 +000024855 return 11;
cristy3ed852e2009-09-05 21:47:34 +000024856
24857 /* Finally, make sure that changes to the mapped area do not
24858 percolate back to the file as seen by read(). (This is a bug on
24859 some variants of i386 svr4.0.) */
24860 for (i = 0; i < pagesize; ++i)
24861 *(data2 + i) = *(data2 + i) + 1;
24862 data3 = (char *) malloc (pagesize);
24863 if (!data3)
cristycd4c5312009-11-22 01:19:08 +000024864 return 12;
cristy3ed852e2009-09-05 21:47:34 +000024865 if (read (fd, data3, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000024866 return 13;
cristy3ed852e2009-09-05 21:47:34 +000024867 for (i = 0; i < pagesize; ++i)
24868 if (*(data + i) != *(data3 + i))
cristycd4c5312009-11-22 01:19:08 +000024869 return 14;
cristy3ed852e2009-09-05 21:47:34 +000024870 close (fd);
24871 return 0;
24872}
24873_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024874if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024875 ac_cv_func_mmap_fixed_mapped=yes
24876else
cristy8b350f62009-11-15 23:12:43 +000024877 ac_cv_func_mmap_fixed_mapped=no
cristy3ed852e2009-09-05 21:47:34 +000024878fi
cristy8b350f62009-11-15 23:12:43 +000024879rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24880 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024881fi
24882
cristy3ed852e2009-09-05 21:47:34 +000024883fi
cristy8b350f62009-11-15 23:12:43 +000024884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000024885$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
24886if test $ac_cv_func_mmap_fixed_mapped = yes; then
24887
cristy8b350f62009-11-15 23:12:43 +000024888$as_echo "#define HAVE_MMAP 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024889
24890fi
cristycd4c5312009-11-22 01:19:08 +000024891rm -f conftest.mmap conftest.txt
cristy3ed852e2009-09-05 21:47:34 +000024892
cristy3ed852e2009-09-05 21:47:34 +000024893for ac_header in vfork.h
cristy8b350f62009-11-15 23:12:43 +000024894do :
24895 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000024896if test "x$ac_cv_header_vfork_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024897 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024898#define HAVE_VFORK_H 1
cristy3ed852e2009-09-05 21:47:34 +000024899_ACEOF
24900
24901fi
24902
24903done
24904
cristy3ed852e2009-09-05 21:47:34 +000024905for ac_func in fork vfork
cristy8b350f62009-11-15 23:12:43 +000024906do :
24907 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24908ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000024909if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024910 cat >>confdefs.h <<_ACEOF
24911#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24912_ACEOF
24913
24914fi
24915done
24916
24917if test "x$ac_cv_func_fork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000024918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
cristy3ed852e2009-09-05 21:47:34 +000024919$as_echo_n "checking for working fork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024920if ${ac_cv_func_fork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024921 $as_echo_n "(cached) " >&6
24922else
cristy8b350f62009-11-15 23:12:43 +000024923 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024924 ac_cv_func_fork_works=cross
24925else
cristy8b350f62009-11-15 23:12:43 +000024926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024927/* end confdefs.h. */
24928$ac_includes_default
24929int
24930main ()
24931{
24932
24933 /* By Ruediger Kuhlmann. */
24934 return fork () < 0;
24935
24936 ;
24937 return 0;
24938}
24939_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024940if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024941 ac_cv_func_fork_works=yes
24942else
cristy8b350f62009-11-15 23:12:43 +000024943 ac_cv_func_fork_works=no
cristy3ed852e2009-09-05 21:47:34 +000024944fi
cristy8b350f62009-11-15 23:12:43 +000024945rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24946 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024947fi
24948
cristy3ed852e2009-09-05 21:47:34 +000024949fi
cristy8b350f62009-11-15 23:12:43 +000024950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000024951$as_echo "$ac_cv_func_fork_works" >&6; }
24952
24953else
24954 ac_cv_func_fork_works=$ac_cv_func_fork
24955fi
24956if test "x$ac_cv_func_fork_works" = xcross; then
24957 case $host in
24958 *-*-amigaos* | *-*-msdosdjgpp*)
24959 # Override, as these systems have only a dummy fork() stub
24960 ac_cv_func_fork_works=no
24961 ;;
24962 *)
24963 ac_cv_func_fork_works=yes
24964 ;;
24965 esac
cristy8b350f62009-11-15 23:12:43 +000024966 { $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 +000024967$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
24968fi
24969ac_cv_func_vfork_works=$ac_cv_func_vfork
24970if test "x$ac_cv_func_vfork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000024971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
cristy3ed852e2009-09-05 21:47:34 +000024972$as_echo_n "checking for working vfork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024973if ${ac_cv_func_vfork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024974 $as_echo_n "(cached) " >&6
24975else
cristy8b350f62009-11-15 23:12:43 +000024976 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024977 ac_cv_func_vfork_works=cross
24978else
cristy8b350f62009-11-15 23:12:43 +000024979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024980/* end confdefs.h. */
24981/* Thanks to Paul Eggert for this test. */
24982$ac_includes_default
24983#include <sys/wait.h>
24984#ifdef HAVE_VFORK_H
24985# include <vfork.h>
24986#endif
24987/* On some sparc systems, changes by the child to local and incoming
24988 argument registers are propagated back to the parent. The compiler
24989 is told about this with #include <vfork.h>, but some compilers
24990 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
24991 static variable whose address is put into a register that is
24992 clobbered by the vfork. */
24993static void
24994#ifdef __cplusplus
24995sparc_address_test (int arg)
24996# else
24997sparc_address_test (arg) int arg;
24998#endif
24999{
25000 static pid_t child;
25001 if (!child) {
25002 child = vfork ();
25003 if (child < 0) {
25004 perror ("vfork");
25005 _exit(2);
25006 }
25007 if (!child) {
25008 arg = getpid();
25009 write(-1, "", 0);
25010 _exit (arg);
25011 }
25012 }
25013}
25014
25015int
25016main ()
25017{
25018 pid_t parent = getpid ();
25019 pid_t child;
25020
25021 sparc_address_test (0);
25022
25023 child = vfork ();
25024
25025 if (child == 0) {
25026 /* Here is another test for sparc vfork register problems. This
25027 test uses lots of local variables, at least as many local
25028 variables as main has allocated so far including compiler
25029 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
25030 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
25031 reuse the register of parent for one of the local variables,
25032 since it will think that parent can't possibly be used any more
25033 in this routine. Assigning to the local variable will thus
25034 munge parent in the parent process. */
25035 pid_t
25036 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
25037 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
25038 /* Convince the compiler that p..p7 are live; otherwise, it might
25039 use the same hardware register for all 8 local variables. */
25040 if (p != p1 || p != p2 || p != p3 || p != p4
25041 || p != p5 || p != p6 || p != p7)
25042 _exit(1);
25043
25044 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
25045 from child file descriptors. If the child closes a descriptor
25046 before it execs or exits, this munges the parent's descriptor
25047 as well. Test for this by closing stdout in the child. */
25048 _exit(close(fileno(stdout)) != 0);
25049 } else {
25050 int status;
25051 struct stat st;
25052
25053 while (wait(&status) != child)
25054 ;
25055 return (
25056 /* Was there some problem with vforking? */
25057 child < 0
25058
25059 /* Did the child fail? (This shouldn't happen.) */
25060 || status
25061
25062 /* Did the vfork/compiler bug occur? */
25063 || parent != getpid()
25064
25065 /* Did the file descriptor bug occur? */
25066 || fstat(fileno(stdout), &st) != 0
25067 );
25068 }
25069}
25070_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025071if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025072 ac_cv_func_vfork_works=yes
25073else
cristy8b350f62009-11-15 23:12:43 +000025074 ac_cv_func_vfork_works=no
cristy3ed852e2009-09-05 21:47:34 +000025075fi
cristy8b350f62009-11-15 23:12:43 +000025076rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25077 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025078fi
25079
cristy3ed852e2009-09-05 21:47:34 +000025080fi
cristy8b350f62009-11-15 23:12:43 +000025081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000025082$as_echo "$ac_cv_func_vfork_works" >&6; }
25083
25084fi;
25085if test "x$ac_cv_func_fork_works" = xcross; then
25086 ac_cv_func_vfork_works=$ac_cv_func_vfork
cristy8b350f62009-11-15 23:12:43 +000025087 { $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 +000025088$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
25089fi
25090
25091if test "x$ac_cv_func_vfork_works" = xyes; then
25092
cristy8b350f62009-11-15 23:12:43 +000025093$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025094
25095else
25096
cristy8b350f62009-11-15 23:12:43 +000025097$as_echo "#define vfork fork" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025098
25099fi
25100if test "x$ac_cv_func_fork_works" = xyes; then
25101
cristy8b350f62009-11-15 23:12:43 +000025102$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025103
25104fi
25105
cristy8b350f62009-11-15 23:12:43 +000025106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000025107$as_echo_n "checking for working memcmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025108if ${ac_cv_func_memcmp_working+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025109 $as_echo_n "(cached) " >&6
25110else
cristy8b350f62009-11-15 23:12:43 +000025111 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025112 ac_cv_func_memcmp_working=no
25113else
cristy8b350f62009-11-15 23:12:43 +000025114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025115/* end confdefs.h. */
25116$ac_includes_default
25117int
25118main ()
25119{
25120
25121 /* Some versions of memcmp are not 8-bit clean. */
25122 char c0 = '\100', c1 = '\200', c2 = '\201';
25123 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
25124 return 1;
25125
25126 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
25127 or more and with at least one buffer not starting on a 4-byte boundary.
25128 William Lewis provided this test program. */
25129 {
25130 char foo[21];
25131 char bar[21];
25132 int i;
25133 for (i = 0; i < 4; i++)
25134 {
25135 char *a = foo + i;
25136 char *b = bar + i;
25137 strcpy (a, "--------01111111");
25138 strcpy (b, "--------10000000");
25139 if (memcmp (a, b, 16) >= 0)
25140 return 1;
25141 }
25142 return 0;
25143 }
25144
25145 ;
25146 return 0;
25147}
25148_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025149if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025150 ac_cv_func_memcmp_working=yes
25151else
cristy8b350f62009-11-15 23:12:43 +000025152 ac_cv_func_memcmp_working=no
cristy3ed852e2009-09-05 21:47:34 +000025153fi
cristy8b350f62009-11-15 23:12:43 +000025154rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25155 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025156fi
25157
cristy3ed852e2009-09-05 21:47:34 +000025158fi
cristy8b350f62009-11-15 23:12:43 +000025159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
cristy3ed852e2009-09-05 21:47:34 +000025160$as_echo "$ac_cv_func_memcmp_working" >&6; }
25161test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
25162 *" memcmp.$ac_objext "* ) ;;
25163 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
25164 ;;
25165esac
25166
25167
cristy3ed852e2009-09-05 21:47:34 +000025168for ac_header in sys/select.h sys/socket.h
cristy8b350f62009-11-15 23:12:43 +000025169do :
25170 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25171ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000025172if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000025173 cat >>confdefs.h <<_ACEOF
25174#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25175_ACEOF
25176
25177fi
25178
25179done
25180
cristy8b350f62009-11-15 23:12:43 +000025181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
cristy3ed852e2009-09-05 21:47:34 +000025182$as_echo_n "checking types of arguments for select... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025183if ${ac_cv_func_select_args+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025184 $as_echo_n "(cached) " >&6
25185else
25186 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
25187 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
25188 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
cristy8b350f62009-11-15 23:12:43 +000025189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025190/* end confdefs.h. */
25191$ac_includes_default
25192#ifdef HAVE_SYS_SELECT_H
25193# include <sys/select.h>
25194#endif
25195#ifdef HAVE_SYS_SOCKET_H
25196# include <sys/socket.h>
25197#endif
25198
25199int
25200main ()
25201{
25202extern int select ($ac_arg1,
25203 $ac_arg234, $ac_arg234, $ac_arg234,
25204 $ac_arg5);
25205 ;
25206 return 0;
25207}
25208_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025209if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025210 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
cristy3ed852e2009-09-05 21:47:34 +000025211fi
cristy3ed852e2009-09-05 21:47:34 +000025212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25213 done
25214 done
25215done
25216# Provide a safe default value.
cristyda16f162011-02-19 23:52:17 +000025217: "${ac_cv_func_select_args=int,int *,struct timeval *}"
cristy3ed852e2009-09-05 21:47:34 +000025218
25219fi
cristy8b350f62009-11-15 23:12:43 +000025220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
cristy3ed852e2009-09-05 21:47:34 +000025221$as_echo "$ac_cv_func_select_args" >&6; }
25222ac_save_IFS=$IFS; IFS=','
25223set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
25224IFS=$ac_save_IFS
25225shift
25226
25227cat >>confdefs.h <<_ACEOF
25228#define SELECT_TYPE_ARG1 $1
25229_ACEOF
25230
25231
25232cat >>confdefs.h <<_ACEOF
25233#define SELECT_TYPE_ARG234 ($2)
25234_ACEOF
25235
25236
25237cat >>confdefs.h <<_ACEOF
25238#define SELECT_TYPE_ARG5 ($3)
25239_ACEOF
25240
25241rm -f conftest*
25242
cristyda16f162011-02-19 23:52:17 +000025243if ${ac_cv_func_setvbuf_reversed+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025244 $as_echo_n "(cached) " >&6
25245else
25246 ac_cv_func_setvbuf_reversed=no
25247fi
25248
25249
cristy8b350f62009-11-15 23:12:43 +000025250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
cristy3ed852e2009-09-05 21:47:34 +000025251$as_echo_n "checking return type of signal handlers... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025252if ${ac_cv_type_signal+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025253 $as_echo_n "(cached) " >&6
25254else
cristy8b350f62009-11-15 23:12:43 +000025255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025256/* end confdefs.h. */
25257#include <sys/types.h>
25258#include <signal.h>
25259
25260int
25261main ()
25262{
25263return *(signal (0, 0)) (0) == 1;
25264 ;
25265 return 0;
25266}
25267_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025268if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025269 ac_cv_type_signal=int
25270else
cristy8b350f62009-11-15 23:12:43 +000025271 ac_cv_type_signal=void
cristy3ed852e2009-09-05 21:47:34 +000025272fi
cristy3ed852e2009-09-05 21:47:34 +000025273rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25274fi
cristy8b350f62009-11-15 23:12:43 +000025275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
cristy3ed852e2009-09-05 21:47:34 +000025276$as_echo "$ac_cv_type_signal" >&6; }
25277
25278cat >>confdefs.h <<_ACEOF
25279#define RETSIGTYPE $ac_cv_type_signal
25280_ACEOF
25281
25282
cristy8b350f62009-11-15 23:12:43 +000025283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000025284$as_echo_n "checking for working strtod... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025285if ${ac_cv_func_strtod+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025286 $as_echo_n "(cached) " >&6
25287else
cristy8b350f62009-11-15 23:12:43 +000025288 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025289 ac_cv_func_strtod=no
25290else
cristy8b350f62009-11-15 23:12:43 +000025291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025292/* end confdefs.h. */
25293
25294$ac_includes_default
25295#ifndef strtod
25296double strtod ();
25297#endif
25298int
25299main()
25300{
25301 {
25302 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
25303 char *string = " +69";
25304 char *term;
25305 double value;
25306 value = strtod (string, &term);
25307 if (value != 69 || term != (string + 4))
25308 return 1;
25309 }
25310
25311 {
25312 /* Under Solaris 2.4, strtod returns the wrong value for the
25313 terminating character under some conditions. */
25314 char *string = "NaN";
25315 char *term;
25316 strtod (string, &term);
25317 if (term != string && *(term - 1) == 0)
25318 return 1;
25319 }
25320 return 0;
25321}
25322
25323_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025324if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025325 ac_cv_func_strtod=yes
25326else
cristy8b350f62009-11-15 23:12:43 +000025327 ac_cv_func_strtod=no
cristy3ed852e2009-09-05 21:47:34 +000025328fi
cristy8b350f62009-11-15 23:12:43 +000025329rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25330 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025331fi
25332
cristy3ed852e2009-09-05 21:47:34 +000025333fi
cristy8b350f62009-11-15 23:12:43 +000025334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000025335$as_echo "$ac_cv_func_strtod" >&6; }
25336if test $ac_cv_func_strtod = no; then
25337 case " $LIBOBJS " in
25338 *" strtod.$ac_objext "* ) ;;
25339 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
25340 ;;
25341esac
25342
cristy8b350f62009-11-15 23:12:43 +000025343ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
cristyda16f162011-02-19 23:52:17 +000025344if test "x$ac_cv_func_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025345
cristy3ed852e2009-09-05 21:47:34 +000025346fi
25347
cristy3ed852e2009-09-05 21:47:34 +000025348if test $ac_cv_func_pow = no; then
cristy8b350f62009-11-15 23:12:43 +000025349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
cristy3ed852e2009-09-05 21:47:34 +000025350$as_echo_n "checking for pow in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025351if ${ac_cv_lib_m_pow+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025352 $as_echo_n "(cached) " >&6
25353else
25354 ac_check_lib_save_LIBS=$LIBS
25355LIBS="-lm $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025356cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025357/* end confdefs.h. */
25358
25359/* Override any GCC internal prototype to avoid an error.
25360 Use char because int might match the return type of a GCC
25361 builtin and then its argument prototype would still apply. */
25362#ifdef __cplusplus
25363extern "C"
25364#endif
25365char pow ();
25366int
25367main ()
25368{
25369return pow ();
25370 ;
25371 return 0;
25372}
25373_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025374if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025375 ac_cv_lib_m_pow=yes
25376else
cristy8b350f62009-11-15 23:12:43 +000025377 ac_cv_lib_m_pow=no
cristy3ed852e2009-09-05 21:47:34 +000025378fi
cristy8b350f62009-11-15 23:12:43 +000025379rm -f core conftest.err conftest.$ac_objext \
25380 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025381LIBS=$ac_check_lib_save_LIBS
25382fi
cristy8b350f62009-11-15 23:12:43 +000025383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000025384$as_echo "$ac_cv_lib_m_pow" >&6; }
cristyda16f162011-02-19 23:52:17 +000025385if test "x$ac_cv_lib_m_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025386 POW_LIB=-lm
25387else
cristy8b350f62009-11-15 23:12:43 +000025388 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000025389$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
25390fi
25391
25392fi
25393
25394fi
25395
cristy7d4a1d62011-10-13 15:54:12 +000025396ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
25397if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
25398 ac_have_decl=1
25399else
25400 ac_have_decl=0
25401fi
25402
25403cat >>confdefs.h <<_ACEOF
25404#define HAVE_DECL_STRERROR_R $ac_have_decl
25405_ACEOF
25406
25407for ac_func in strerror_r
25408do :
25409 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
25410if test "x$ac_cv_func_strerror_r" = xyes; then :
25411 cat >>confdefs.h <<_ACEOF
25412#define HAVE_STRERROR_R 1
25413_ACEOF
25414
25415fi
25416done
25417
25418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
25419$as_echo_n "checking whether strerror_r returns char *... " >&6; }
25420if ${ac_cv_func_strerror_r_char_p+:} false; then :
25421 $as_echo_n "(cached) " >&6
25422else
25423
25424 ac_cv_func_strerror_r_char_p=no
25425 if test $ac_cv_have_decl_strerror_r = yes; then
25426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25427/* end confdefs.h. */
25428$ac_includes_default
25429int
25430main ()
25431{
25432
25433 char buf[100];
25434 char x = *strerror_r (0, buf, sizeof buf);
25435 char *p = strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000025436 return !p || x;
cristy7d4a1d62011-10-13 15:54:12 +000025437
25438 ;
25439 return 0;
25440}
25441_ACEOF
25442if ac_fn_c_try_compile "$LINENO"; then :
25443 ac_cv_func_strerror_r_char_p=yes
25444fi
25445rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25446 else
25447 # strerror_r is not declared. Choose between
25448 # systems that have relatively inaccessible declarations for the
25449 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
25450 # former has a strerror_r that returns char*, while the latter
25451 # has a strerror_r that returns `int'.
25452 # This test should segfault on the DEC system.
25453 if test "$cross_compiling" = yes; then :
25454 :
25455else
25456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25457/* end confdefs.h. */
25458$ac_includes_default
25459 extern char *strerror_r ();
25460int
25461main ()
25462{
25463char buf[100];
25464 char x = *strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000025465 return ! isalpha (x);
cristy7d4a1d62011-10-13 15:54:12 +000025466 ;
25467 return 0;
25468}
25469_ACEOF
25470if ac_fn_c_try_run "$LINENO"; then :
25471 ac_cv_func_strerror_r_char_p=yes
25472fi
25473rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25474 conftest.$ac_objext conftest.beam conftest.$ac_ext
25475fi
25476
25477 fi
25478
25479fi
25480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
25481$as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
25482if test $ac_cv_func_strerror_r_char_p = yes; then
25483
25484$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
25485
25486fi
25487
cristy3ed852e2009-09-05 21:47:34 +000025488for ac_func in vprintf
cristy8b350f62009-11-15 23:12:43 +000025489do :
25490 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
cristyda16f162011-02-19 23:52:17 +000025491if test "x$ac_cv_func_vprintf" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025492 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025493#define HAVE_VPRINTF 1
cristy3ed852e2009-09-05 21:47:34 +000025494_ACEOF
25495
cristy8b350f62009-11-15 23:12:43 +000025496ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
cristyda16f162011-02-19 23:52:17 +000025497if test "x$ac_cv_func__doprnt" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025498
cristy8b350f62009-11-15 23:12:43 +000025499$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025500
25501fi
25502
25503fi
25504done
25505
25506
25507
cristy161b9262010-03-20 19:34:32 +000025508#
25509# Find math library
25510#
25511MATH_LIBS=''
25512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
25513$as_echo_n "checking for sqrt in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025514if ${ac_cv_lib_m_sqrt+:} false; then :
cristy161b9262010-03-20 19:34:32 +000025515 $as_echo_n "(cached) " >&6
25516else
25517 ac_check_lib_save_LIBS=$LIBS
25518LIBS="-lm $LIBS"
25519cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25520/* end confdefs.h. */
25521
25522/* Override any GCC internal prototype to avoid an error.
25523 Use char because int might match the return type of a GCC
25524 builtin and then its argument prototype would still apply. */
25525#ifdef __cplusplus
25526extern "C"
25527#endif
25528char sqrt ();
25529int
25530main ()
25531{
25532return sqrt ();
25533 ;
25534 return 0;
25535}
25536_ACEOF
25537if ac_fn_c_try_link "$LINENO"; then :
25538 ac_cv_lib_m_sqrt=yes
25539else
25540 ac_cv_lib_m_sqrt=no
25541fi
25542rm -f core conftest.err conftest.$ac_objext \
25543 conftest$ac_exeext conftest.$ac_ext
25544LIBS=$ac_check_lib_save_LIBS
25545fi
25546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
25547$as_echo "$ac_cv_lib_m_sqrt" >&6; }
cristyda16f162011-02-19 23:52:17 +000025548if test "x$ac_cv_lib_m_sqrt" = xyes; then :
cristy161b9262010-03-20 19:34:32 +000025549 MATH_LIBS="-lm"
25550fi
25551
25552LIBS="$MATH_LIBS $LIBS"
25553
25554
cristy82b20722011-11-05 21:52:36 +000025555for ac_func in acosh asinh atanh atoll atexit cabs carg cimag creal clock ctime_r directio _exit execvp fchmod floor fork ftime ftruncate getc_unlocked getcwd getpid getexecname getdtablesize getpagesize getrlimit getrusage gettimeofday gmtime_r isnan j0 j1 lltostr localtime_r lstat memmove memset mkstemp munmap nanosleep newlocale _NSGetExecutablePath pclose _pclose poll popen _popen posix_fadvise posix_fallocate posix_madvise posix_memalign posix_spawnp pow pread pwrite qsort_r raise rand_r readlink readdir_r realpath select seekdir setlocale sqrt setvbuf stat strchr strrchr strcspn strdup strpbrk strspn strstr strtod strtod_l strtol strtoul symlink sysconf sigemptyset sigaction spawnvp strerror strlcat strlcpy strcasecmp strncasecmp telldir tempnam times ulltostr uselocale usleep utime vfprintf vfprintf_l vsprintf vsnprintf vsnprintf_l waitpid _wfopen _wstat
cristy8b350f62009-11-15 23:12:43 +000025556do :
25557 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25558ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000025559if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000025560 cat >>confdefs.h <<_ACEOF
25561#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25562_ACEOF
25563
25564fi
25565done
25566
25567
cristye43a45e2009-09-28 14:49:00 +000025568#
25569# Check for clock_gettime().
25570#
cristy8b350f62009-11-15 23:12:43 +000025571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000025572$as_echo_n "checking for library containing clock_gettime... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025573if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000025574 $as_echo_n "(cached) " >&6
25575else
25576 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000025577cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000025578/* end confdefs.h. */
25579
25580/* Override any GCC internal prototype to avoid an error.
25581 Use char because int might match the return type of a GCC
25582 builtin and then its argument prototype would still apply. */
25583#ifdef __cplusplus
25584extern "C"
25585#endif
25586char clock_gettime ();
25587int
25588main ()
25589{
25590return clock_gettime ();
25591 ;
25592 return 0;
25593}
25594_ACEOF
25595for ac_lib in '' rt; do
25596 if test -z "$ac_lib"; then
25597 ac_res="none required"
25598 else
25599 ac_res=-l$ac_lib
25600 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25601 fi
cristy8b350f62009-11-15 23:12:43 +000025602 if ac_fn_c_try_link "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000025603 ac_cv_search_clock_gettime=$ac_res
cristye43a45e2009-09-28 14:49:00 +000025604fi
cristy8b350f62009-11-15 23:12:43 +000025605rm -f core conftest.err conftest.$ac_objext \
25606 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000025607 if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000025608 break
25609fi
25610done
cristyda16f162011-02-19 23:52:17 +000025611if ${ac_cv_search_clock_gettime+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000025612
cristye43a45e2009-09-28 14:49:00 +000025613else
25614 ac_cv_search_clock_gettime=no
25615fi
25616rm conftest.$ac_ext
25617LIBS=$ac_func_search_save_LIBS
25618fi
cristy8b350f62009-11-15 23:12:43 +000025619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000025620$as_echo "$ac_cv_search_clock_gettime" >&6; }
25621ac_res=$ac_cv_search_clock_gettime
cristy8b350f62009-11-15 23:12:43 +000025622if test "$ac_res" != no; then :
cristye43a45e2009-09-28 14:49:00 +000025623 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25624
25625
cristy8b350f62009-11-15 23:12:43 +000025626$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000025627
cristy8b350f62009-11-15 23:12:43 +000025628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
cristye43a45e2009-09-28 14:49:00 +000025629$as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000025631/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000025632
25633 #include <time.h>
cristye43a45e2009-09-28 14:49:00 +000025634int
25635main ()
25636{
25637clockid_t clockType = CLOCK_REALTIME;
cristye43a45e2009-09-28 14:49:00 +000025638 ;
25639 return 0;
25640}
25641_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025642if ac_fn_c_try_compile "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000025643
cristy09b53e12011-10-14 12:47:22 +000025644 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
25645$as_echo "$as_me: yes" >&6;}
cristye43a45e2009-09-28 14:49:00 +000025646
cristy8b350f62009-11-15 23:12:43 +000025647$as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000025648
25649
25650else
cristy09b53e12011-10-14 12:47:22 +000025651 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
25652$as_echo "$as_me: no" >&6;}
cristye43a45e2009-09-28 14:49:00 +000025653
25654fi
cristye43a45e2009-09-28 14:49:00 +000025655rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25656
25657else
25658
cristy8b350f62009-11-15 23:12:43 +000025659 for ac_func in gettimeofday ftime
25660do :
25661 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25662ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000025663if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristye43a45e2009-09-28 14:49:00 +000025664 cat >>confdefs.h <<_ACEOF
25665#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25666_ACEOF
25667 break
25668fi
25669done
25670
25671
25672
25673fi
25674
25675
cristy3ed852e2009-09-05 21:47:34 +000025676########
25677#
25678# Check for function prototypes
25679#
25680########
25681
cristy8b350f62009-11-15 23:12:43 +000025682ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
cristy3ed852e2009-09-05 21:47:34 +000025683#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000025684"
cristyda16f162011-02-19 23:52:17 +000025685if test "x$ac_cv_have_decl_pread" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025686 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025687else
cristy8b350f62009-11-15 23:12:43 +000025688 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025689fi
25690
cristy3ed852e2009-09-05 21:47:34 +000025691cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025692#define HAVE_DECL_PREAD $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025693_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025694ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
cristy3ed852e2009-09-05 21:47:34 +000025695#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000025696"
cristyda16f162011-02-19 23:52:17 +000025697if test "x$ac_cv_have_decl_pwrite" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025698 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025699else
cristy8b350f62009-11-15 23:12:43 +000025700 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025701fi
25702
cristy3ed852e2009-09-05 21:47:34 +000025703cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025704#define HAVE_DECL_PWRITE $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025705_ACEOF
25706
25707
cristy8b350f62009-11-15 23:12:43 +000025708ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
cristy3ed852e2009-09-05 21:47:34 +000025709#include <strings.h>
cristy8b350f62009-11-15 23:12:43 +000025710"
cristyda16f162011-02-19 23:52:17 +000025711if test "x$ac_cv_have_decl_strlcpy" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025712 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025713else
cristy8b350f62009-11-15 23:12:43 +000025714 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025715fi
25716
cristy3ed852e2009-09-05 21:47:34 +000025717cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025718#define HAVE_DECL_STRLCPY $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025719_ACEOF
25720
25721
cristy8b350f62009-11-15 23:12:43 +000025722ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
cristy3ed852e2009-09-05 21:47:34 +000025723#include <stdio.h>
25724#include <stdarg.h>
cristy8b350f62009-11-15 23:12:43 +000025725"
cristyda16f162011-02-19 23:52:17 +000025726if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025727 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025728else
cristy8b350f62009-11-15 23:12:43 +000025729 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025730fi
25731
cristy3ed852e2009-09-05 21:47:34 +000025732cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025733#define HAVE_DECL_VSNPRINTF $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025734_ACEOF
25735
25736
cristy3ed852e2009-09-05 21:47:34 +000025737########
25738#
25739# C++ Support Tests (For Magick++)
25740#
25741########
25742have_magick_plus_plus='no'
25743if test "$with_magick_plus_plus" = 'yes'; then
25744 OLIBS="$LIBS"
25745 LIBS=''
25746 ac_ext=cpp
25747ac_cpp='$CXXCPP $CPPFLAGS'
25748ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25749ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25750ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25751
25752
25753 # Full set of headers used...
25754 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
25755 # functional iomanip iosfwd iostream iterator list string strstream utility
25756 ac_ext=cpp
25757ac_cpp='$CXXCPP $CPPFLAGS'
25758ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25759ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25760ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25761
25762 ac_ext=cpp
25763ac_cpp='$CXXCPP $CPPFLAGS'
25764ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25765ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25766ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25767if test -z "$CXX"; then
25768 if test -n "$CCC"; then
25769 CXX=$CCC
25770 else
25771 if test -n "$ac_tool_prefix"; then
25772 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25773 do
25774 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
25775set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025777$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025778if ${ac_cv_prog_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025779 $as_echo_n "(cached) " >&6
25780else
25781 if test -n "$CXX"; then
25782 ac_cv_prog_CXX="$CXX" # Let the user override the test.
25783else
25784as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25785for as_dir in $PATH
25786do
25787 IFS=$as_save_IFS
25788 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025789 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000025790 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000025791 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000025792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025793 break 2
25794 fi
25795done
cristy8b350f62009-11-15 23:12:43 +000025796 done
cristy3ed852e2009-09-05 21:47:34 +000025797IFS=$as_save_IFS
25798
25799fi
25800fi
25801CXX=$ac_cv_prog_CXX
25802if test -n "$CXX"; then
cristy8b350f62009-11-15 23:12:43 +000025803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000025804$as_echo "$CXX" >&6; }
25805else
cristy8b350f62009-11-15 23:12:43 +000025806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025807$as_echo "no" >&6; }
25808fi
25809
25810
25811 test -n "$CXX" && break
25812 done
25813fi
25814if test -z "$CXX"; then
25815 ac_ct_CXX=$CXX
25816 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25817do
25818 # Extract the first word of "$ac_prog", so it can be a program name with args.
25819set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025821$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025822if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025823 $as_echo_n "(cached) " >&6
25824else
25825 if test -n "$ac_ct_CXX"; then
25826 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
25827else
25828as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25829for as_dir in $PATH
25830do
25831 IFS=$as_save_IFS
25832 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025833 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000025834 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000025835 ac_cv_prog_ac_ct_CXX="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000025836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025837 break 2
25838 fi
25839done
cristy8b350f62009-11-15 23:12:43 +000025840 done
cristy3ed852e2009-09-05 21:47:34 +000025841IFS=$as_save_IFS
25842
25843fi
25844fi
25845ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
25846if test -n "$ac_ct_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000025847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000025848$as_echo "$ac_ct_CXX" >&6; }
25849else
cristy8b350f62009-11-15 23:12:43 +000025850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025851$as_echo "no" >&6; }
25852fi
25853
25854
25855 test -n "$ac_ct_CXX" && break
25856done
25857
25858 if test "x$ac_ct_CXX" = x; then
25859 CXX="g++"
25860 else
25861 case $cross_compiling:$ac_tool_warned in
25862yes:)
cristy8b350f62009-11-15 23:12:43 +000025863{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000025864$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25865ac_tool_warned=yes ;;
25866esac
25867 CXX=$ac_ct_CXX
25868 fi
25869fi
25870
25871 fi
25872fi
25873# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +000025874$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +000025875set X $ac_compile
25876ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +000025877for ac_option in --version -v -V -qversion; do
25878 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +000025879case "(($ac_try" in
25880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25881 *) ac_try_echo=$ac_try;;
25882esac
cristy8b350f62009-11-15 23:12:43 +000025883eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
25884$as_echo "$ac_try_echo"; } >&5
25885 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +000025886 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000025887 if test -s conftest.err; then
25888 sed '10a\
25889... rest of stderr output deleted ...
25890 10q' conftest.err >conftest.er1
25891 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +000025892 fi
cristycd4c5312009-11-22 01:19:08 +000025893 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +000025894 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25895 test $ac_status = 0; }
25896done
cristy3ed852e2009-09-05 21:47:34 +000025897
cristy8b350f62009-11-15 23:12:43 +000025898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +000025899$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025900if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025901 $as_echo_n "(cached) " >&6
25902else
cristy8b350f62009-11-15 23:12:43 +000025903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025904/* end confdefs.h. */
25905
25906int
25907main ()
25908{
25909#ifndef __GNUC__
25910 choke me
25911#endif
25912
25913 ;
25914 return 0;
25915}
25916_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025917if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025918 ac_compiler_gnu=yes
25919else
cristy8b350f62009-11-15 23:12:43 +000025920 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +000025921fi
cristy3ed852e2009-09-05 21:47:34 +000025922rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25923ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
25924
25925fi
cristy8b350f62009-11-15 23:12:43 +000025926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +000025927$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
25928if test $ac_compiler_gnu = yes; then
25929 GXX=yes
25930else
25931 GXX=
25932fi
25933ac_test_CXXFLAGS=${CXXFLAGS+set}
25934ac_save_CXXFLAGS=$CXXFLAGS
cristy8b350f62009-11-15 23:12:43 +000025935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +000025936$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025937if ${ac_cv_prog_cxx_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025938 $as_echo_n "(cached) " >&6
25939else
25940 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
25941 ac_cxx_werror_flag=yes
25942 ac_cv_prog_cxx_g=no
25943 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000025944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025945/* end confdefs.h. */
25946
25947int
25948main ()
25949{
25950
25951 ;
25952 return 0;
25953}
25954_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025955if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025956 ac_cv_prog_cxx_g=yes
25957else
cristy8b350f62009-11-15 23:12:43 +000025958 CXXFLAGS=""
25959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025960/* end confdefs.h. */
25961
25962int
25963main ()
25964{
25965
25966 ;
25967 return 0;
25968}
25969_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025970if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025971
cristy8b350f62009-11-15 23:12:43 +000025972else
25973 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
cristy3ed852e2009-09-05 21:47:34 +000025974 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000025975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025976/* end confdefs.h. */
25977
25978int
25979main ()
25980{
25981
25982 ;
25983 return 0;
25984}
25985_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025986if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025987 ac_cv_prog_cxx_g=yes
cristy3ed852e2009-09-05 21:47:34 +000025988fi
cristy3ed852e2009-09-05 21:47:34 +000025989rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25990fi
cristy3ed852e2009-09-05 21:47:34 +000025991rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25992fi
cristy3ed852e2009-09-05 21:47:34 +000025993rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25994 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
25995fi
cristy8b350f62009-11-15 23:12:43 +000025996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
cristy3ed852e2009-09-05 21:47:34 +000025997$as_echo "$ac_cv_prog_cxx_g" >&6; }
25998if test "$ac_test_CXXFLAGS" = set; then
25999 CXXFLAGS=$ac_save_CXXFLAGS
26000elif test $ac_cv_prog_cxx_g = yes; then
26001 if test "$GXX" = yes; then
26002 CXXFLAGS="-g -O2"
26003 else
26004 CXXFLAGS="-g"
26005 fi
26006else
26007 if test "$GXX" = yes; then
26008 CXXFLAGS="-O2"
26009 else
26010 CXXFLAGS=
26011 fi
26012fi
26013ac_ext=cpp
26014ac_cpp='$CXXCPP $CPPFLAGS'
26015ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26016ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26017ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26018
cristy73bd4a52010-10-05 11:24:23 +000026019depcc="$CXX" am_compiler_list=
26020
26021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
26022$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026023if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026024 $as_echo_n "(cached) " >&6
26025else
26026 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
26027 # We make a subdir and do the tests there. Otherwise we can end up
26028 # making bogus files that we don't know about and never remove. For
26029 # instance it was reported that on HP-UX the gcc test will end up
26030 # making a dummy file named `D' -- because `-MD' means `put the output
26031 # in D'.
cristy7247bba2012-02-05 16:37:27 +000026032 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +000026033 mkdir conftest.dir
26034 # Copy depcomp to subdir because otherwise we won't find it if we're
26035 # using a relative directory.
26036 cp "$am_depcomp" conftest.dir
26037 cd conftest.dir
26038 # We will build objects and dependencies in a subdirectory because
26039 # it helps to detect inapplicable dependency modes. For instance
26040 # both Tru64's cc and ICC support -MD to output dependencies as a
26041 # side effect of compilation, but ICC will put the dependencies in
26042 # the current directory while Tru64 will put them in the object
26043 # directory.
26044 mkdir sub
26045
26046 am_cv_CXX_dependencies_compiler_type=none
26047 if test "$am_compiler_list" = ""; then
26048 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
26049 fi
26050 am__universal=false
26051 case " $depcc " in #(
26052 *\ -arch\ *\ -arch\ *) am__universal=true ;;
26053 esac
26054
26055 for depmode in $am_compiler_list; do
26056 # Setup a source with many dependencies, because some compilers
26057 # like to wrap large dependency lists on column 80 (with \), and
26058 # we should not choose a depcomp mode which is confused by this.
26059 #
26060 # We need to recreate these files for each test, as the compiler may
26061 # overwrite some of them when testing with obscure command lines.
26062 # This happens at least with the AIX C compiler.
26063 : > sub/conftest.c
26064 for i in 1 2 3 4 5 6; do
26065 echo '#include "conftst'$i'.h"' >> sub/conftest.c
26066 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
26067 # Solaris 8's {/usr,}/bin/sh.
26068 touch sub/conftst$i.h
26069 done
26070 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
26071
26072 # We check with `-c' and `-o' for the sake of the "dashmstdout"
26073 # mode. It turns out that the SunPro C++ compiler does not properly
26074 # handle `-M -o', and we need to detect this. Also, some Intel
26075 # versions had trouble with output in subdirs
26076 am__obj=sub/conftest.${OBJEXT-o}
26077 am__minus_obj="-o $am__obj"
26078 case $depmode in
26079 gcc)
26080 # This depmode causes a compiler race in universal mode.
26081 test "$am__universal" = false || continue
26082 ;;
26083 nosideeffect)
26084 # after this tag, mechanisms are not by side-effect, so they'll
26085 # only be used when explicitly requested
26086 if test "x$enable_dependency_tracking" = xyes; then
26087 continue
26088 else
26089 break
26090 fi
26091 ;;
cristy7247bba2012-02-05 16:37:27 +000026092 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristy73bd4a52010-10-05 11:24:23 +000026093 # This compiler won't grok `-c -o', but also, the minuso test has
26094 # not run yet. These depmodes are late enough in the game, and
26095 # so weak that their functioning should not be impacted.
26096 am__obj=conftest.${OBJEXT-o}
26097 am__minus_obj=
26098 ;;
26099 none) break ;;
26100 esac
26101 if depmode=$depmode \
26102 source=sub/conftest.c object=$am__obj \
26103 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
26104 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
26105 >/dev/null 2>conftest.err &&
26106 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
26107 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
26108 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
26109 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
26110 # icc doesn't choke on unknown options, it will just issue warnings
26111 # or remarks (even with -Werror). So we grep stderr for any message
26112 # that says an option was ignored or not supported.
26113 # When given -MP, icc 7.0 and 7.1 complain thusly:
26114 # icc: Command line warning: ignoring option '-M'; no argument required
26115 # The diagnosis changed in icc 8.0:
26116 # icc: Command line remark: option '-MP' not supported
26117 if (grep 'ignoring option' conftest.err ||
26118 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
26119 am_cv_CXX_dependencies_compiler_type=$depmode
26120 break
26121 fi
26122 fi
26123 done
26124
26125 cd ..
26126 rm -rf conftest.dir
26127else
26128 am_cv_CXX_dependencies_compiler_type=none
26129fi
26130
26131fi
26132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
26133$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
26134CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
26135
26136 if
26137 test "x$enable_dependency_tracking" != xno \
26138 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
26139 am__fastdepCXX_TRUE=
26140 am__fastdepCXX_FALSE='#'
26141else
26142 am__fastdepCXX_TRUE='#'
26143 am__fastdepCXX_FALSE=
26144fi
26145
26146
26147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes bool as a built-in type" >&5
26148$as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026149if ${ax_cv_cxx_bool+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026150 $as_echo_n "(cached) " >&6
26151else
26152
26153 ac_ext=cpp
26154ac_cpp='$CXXCPP $CPPFLAGS'
26155ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26156ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26157ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26158
26159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26160/* end confdefs.h. */
26161
26162int f(int x){return 1;}
26163int f(char x){return 1;}
26164int f(bool x){return 1;}
26165
26166int
26167main ()
26168{
26169bool b = true; return f(b);
26170 ;
26171 return 0;
26172}
26173_ACEOF
26174if ac_fn_cxx_try_compile "$LINENO"; then :
26175 ax_cv_cxx_bool=yes
26176else
26177 ax_cv_cxx_bool=no
26178fi
26179rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26180 ac_ext=cpp
26181ac_cpp='$CXXCPP $CPPFLAGS'
26182ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26183ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26184ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26185
26186
26187fi
26188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_bool" >&5
26189$as_echo "$ax_cv_cxx_bool" >&6; }
26190if test "$ax_cv_cxx_bool" = yes; then
26191
26192$as_echo "#define HAVE_BOOL /**/" >>confdefs.h
26193
26194fi
26195
26196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
26197$as_echo_n "checking whether the compiler implements namespaces... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026198if ${ax_cv_cxx_namespaces+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026199 $as_echo_n "(cached) " >&6
26200else
26201
26202 ac_ext=cpp
26203ac_cpp='$CXXCPP $CPPFLAGS'
26204ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26205ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26206ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26207
26208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26209/* end confdefs.h. */
26210namespace Outer { namespace Inner { int i = 0; }}
26211int
26212main ()
26213{
26214using namespace Outer::Inner; return i;
26215 ;
26216 return 0;
26217}
26218_ACEOF
26219if ac_fn_cxx_try_compile "$LINENO"; then :
26220 ax_cv_cxx_namespaces=yes
26221else
26222 ax_cv_cxx_namespaces=no
26223fi
26224rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26225 ac_ext=cpp
26226ac_cpp='$CXXCPP $CPPFLAGS'
26227ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26228ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26229ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26230
26231
26232fi
26233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_namespaces" >&5
26234$as_echo "$ax_cv_cxx_namespaces" >&6; }
26235if test "$ax_cv_cxx_namespaces" = yes; then
26236
26237$as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
26238
26239fi
26240
26241
26242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports namespace std" >&5
26243$as_echo_n "checking if g++ supports namespace std... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026244if ${ax_cv_cxx_have_std_namespace+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026245 $as_echo_n "(cached) " >&6
26246else
26247
26248 ac_ext=cpp
26249ac_cpp='$CXXCPP $CPPFLAGS'
26250ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26251ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26252ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26253
26254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26255/* end confdefs.h. */
26256#include <iostream>
26257 std::istream& is = std::cin;
26258int
26259main ()
26260{
26261
26262 ;
26263 return 0;
26264}
26265_ACEOF
26266if ac_fn_cxx_try_compile "$LINENO"; then :
26267 ax_cv_cxx_have_std_namespace=yes
26268else
26269 ax_cv_cxx_have_std_namespace=no
26270fi
26271rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26272 ac_ext=cpp
26273ac_cpp='$CXXCPP $CPPFLAGS'
26274ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26275ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26276ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26277
26278
26279fi
26280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_have_std_namespace" >&5
26281$as_echo "$ax_cv_cxx_have_std_namespace" >&6; }
26282 if test "$ax_cv_cxx_have_std_namespace" = yes; then
26283
26284$as_echo "#define HAVE_NAMESPACE_STD /**/" >>confdefs.h
26285
26286 fi
26287
26288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
26289$as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026290if ${ac_cv_cxx_have_std_libs+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026291 $as_echo_n "(cached) " >&6
26292else
26293
26294
26295 ac_ext=cpp
26296ac_cpp='$CXXCPP $CPPFLAGS'
26297ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26298ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26299ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26300
26301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26302/* end confdefs.h. */
26303#include <iostream>
26304#include <map>
26305#include <iomanip>
26306#include <cmath>
26307#ifdef HAVE_NAMESPACES
26308using namespace std;
26309#endif
26310int
26311main ()
26312{
26313return 0;
26314 ;
26315 return 0;
26316}
26317_ACEOF
26318if ac_fn_cxx_try_compile "$LINENO"; then :
26319 ac_cv_cxx_have_std_libs=yes
26320else
26321 ac_cv_cxx_have_std_libs=no
26322fi
26323rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26324 ac_ext=cpp
26325ac_cpp='$CXXCPP $CPPFLAGS'
26326ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26327ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26328ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26329
26330
26331fi
26332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
26333$as_echo "$ac_cv_cxx_have_std_libs" >&6; }
26334if test "$ac_cv_cxx_have_std_libs" = yes; then
26335
26336$as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
26337
26338fi
26339
cristy3ed852e2009-09-05 21:47:34 +000026340
26341 OPENMP_CXXFLAGS=
26342 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +000026343if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026344 enableval=$enable_openmp;
26345fi
26346
26347 if test "$enable_openmp" != no; then
cristycd4c5312009-11-22 01:19:08 +000026348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
26349$as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026350if ${ac_cv_prog_cxx_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026351 $as_echo_n "(cached) " >&6
26352else
cristy8b350f62009-11-15 23:12:43 +000026353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26354/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000026355
26356#ifndef _OPENMP
26357 choke me
26358#endif
26359#include <omp.h>
26360int main () { return omp_get_num_threads (); }
26361
26362_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026363if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026364 ac_cv_prog_cxx_openmp='none needed'
26365else
cristy8b350f62009-11-15 23:12:43 +000026366 ac_cv_prog_cxx_openmp='unsupported'
cristy14fefe52012-05-21 00:59:18 +000026367 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
26368 -Popenmp --openmp; do
cristy3ed852e2009-09-05 21:47:34 +000026369 ac_save_CXXFLAGS=$CXXFLAGS
26370 CXXFLAGS="$CXXFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +000026371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26372/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000026373
26374#ifndef _OPENMP
26375 choke me
26376#endif
26377#include <omp.h>
26378int main () { return omp_get_num_threads (); }
26379
26380_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026381if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026382 ac_cv_prog_cxx_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +000026383fi
cristy8b350f62009-11-15 23:12:43 +000026384rm -f core conftest.err conftest.$ac_objext \
26385 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026386 CXXFLAGS=$ac_save_CXXFLAGS
26387 if test "$ac_cv_prog_cxx_openmp" != unsupported; then
26388 break
26389 fi
26390 done
26391fi
cristy8b350f62009-11-15 23:12:43 +000026392rm -f core conftest.err conftest.$ac_objext \
26393 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026394fi
cristy8b350f62009-11-15 23:12:43 +000026395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026396$as_echo "$ac_cv_prog_cxx_openmp" >&6; }
26397 case $ac_cv_prog_cxx_openmp in #(
26398 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +000026399 ;; #(
cristy3ed852e2009-09-05 21:47:34 +000026400 *)
cristy8b350f62009-11-15 23:12:43 +000026401 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +000026402 esac
26403 fi
26404
26405
26406 ac_ext=c
26407ac_cpp='$CPP $CPPFLAGS'
26408ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26409ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26410ac_compiler_gnu=$ac_cv_c_compiler_gnu
26411
26412
cristy8b350f62009-11-15 23:12:43 +000026413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
cristy3ed852e2009-09-05 21:47:34 +000026414$as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
26415 if \
cristy964cb7f2010-04-25 23:18:00 +000026416 test $ax_cv_cxx_bool = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000026417 test $ax_cv_cxx_namespaces = 'yes' && \
cristy3ed852e2009-09-05 21:47:34 +000026418 test $ac_cv_cxx_have_std_libs = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000026419 test $ax_cv_cxx_have_std_namespace = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000026420 have_magick_plus_plus='yes'
26421 else
26422 have_magick_plus_plus='no (failed tests)'
26423 fi
cristy09b53e12011-10-14 12:47:22 +000026424 { $as_echo "$as_me:${as_lineno-$LINENO}: $have_magick_plus_plus" >&5
26425$as_echo "$as_me: $have_magick_plus_plus" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026426 LIBS="$OLIBS"
26427fi
cristy73bd4a52010-10-05 11:24:23 +000026428 if test "$have_magick_plus_plus" = 'yes'; then
26429 WITH_MAGICK_PLUS_PLUS_TRUE=
26430 WITH_MAGICK_PLUS_PLUS_FALSE='#'
26431else
26432 WITH_MAGICK_PLUS_PLUS_TRUE='#'
26433 WITH_MAGICK_PLUS_PLUS_FALSE=
26434fi
26435
cristy3ed852e2009-09-05 21:47:34 +000026436
26437# Only check for delegate libraries in subdirectories if requested.
26438if test "$enable_delegate_build" != 'no'; then
26439 # Check for delegate sub-directories and add -I & -L options as required.
26440 # This presumes that delegates are installed as detailed in the ImageMagick
26441 # README. If delegates are installed in a standard location where the
26442 # compiler will automatically find them then these options should not be
26443 # required.
26444
26445 #
26446 # Most delegates have includes in the same directory as the library, but not all...
26447 #
26448 # Includes
cristy2542fc62011-12-06 17:50:25 +000026449 for dir in bzlib fftw fpx gslib/src jp2 jp2/src/libjasper/include jbig/libjbig jpeg lcms/include lzma magick png tiff/libtiff ttf/include wand webp wmf/include xml/include zlib; do
cristy3ed852e2009-09-05 21:47:34 +000026450 if test -d "$builddir/$dir"; then
26451 CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
26452 else
26453 if test -d "$srcdirfull/$dir"; then
26454 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
26455 fi
26456 fi
26457 done
26458
26459 # Libraries
cristy2542fc62011-12-06 17:50:25 +000026460 for dir in bzlib fftw fpx gslib/src jp2 jp2/src/libjasper jbig/libjbig jpeg lcms/src lzma magick png tiff/libtiff ttf/objs wand webp wmf/src xml zlib; do
cristy3ed852e2009-09-05 21:47:34 +000026461 if test -d "$builddir/$dir/.libs"; then
26462 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
26463 else
26464 if test -d "$srcdirfull/$dir/.libs"; then
26465 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
26466 fi
26467 fi
26468 if test -d "$builddir/$dir"; then
26469 LDFLAGS="$LDFLAGS -L$builddir/$dir"
26470 else
26471 if test -d "$srcdirfull/$dir"; then
26472 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
26473 fi
26474 fi
26475 done
26476fi
26477
26478# Assume that delegate headers reside under same directory as ImageMagick
26479# installation prefix.
26480MAGICK_CPPFLAGS="-I$INCLUDE_DIR/ImageMagick $MAGICK_CPPFLAGS"
26481
26482#
26483# Find the X11 RGB database
26484#
cristy8b350f62009-11-15 23:12:43 +000026485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
cristy3ed852e2009-09-05 21:47:34 +000026486$as_echo_n "checking for X11 configure files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026487if ${im_cv_x_configure+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026488 $as_echo_n "(cached) " >&6
26489else
26490 # Look for the header file in a standard set of common directories.
26491# Check X11 before X11Rn because it is often a symlink to the current release.
26492 for ac_dir in \
26493 /lib/usr/lib/X11 \
26494 /usr/X11/lib \
26495 /usr/X11R4/lib \
26496 /usr/X11R5/lib \
26497 /usr/X11R6/lib \
26498 /usr/X11R7/lib \
26499 /usr/X386/lib \
26500 /usr/XFree86/lib/X11 \
26501 /usr/athena/lib \
26502 /usr/lib \
26503 /usr/lib/X11 \
26504 /usr/lib/X11R4 \
26505 /usr/lib/X11R5 \
26506 /usr/lib/X11R6 \
26507 /usr/lib/X11R7 \
26508 /usr/local/X11/lib \
26509 /usr/local/X11R4/lib \
26510 /usr/local/X11R5/lib \
26511 /usr/local/X11R6/lib \
26512 /usr/local/lib \
26513 /usr/local/lib/X11 \
26514 /usr/local/lib/X11R4 \
26515 /usr/local/lib/X11R5 \
26516 /usr/local/lib/X11R6 \
26517 /usr/local/lib/X11R7 \
26518 /usr/local/x11r5/lib \
26519 /usr/lpp/Xamples/lib \
26520 /usr/openwin/lib \
26521 /usr/openwin/share/lib \
26522 /usr/unsupported/lib \
26523 /usr/x386/lib \
26524 ; do
26525 if test -f "$ac_dir/X11/rgb.txt"; then
26526 im_cv_x_configure="$ac_dir/X11/"
26527 break
26528 elif test -f "$ac_dir/rgb.txt"; then
26529 im_cv_x_configure="$ac_dir/"
26530 break
26531 fi
26532
26533 done
26534fi
cristy8b350f62009-11-15 23:12:43 +000026535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
cristy3ed852e2009-09-05 21:47:34 +000026536$as_echo "$im_cv_x_configure" >&6; }
26537X11_CONFIGURE_PATH="$im_cv_x_configure"
26538case "${build_os}" in
26539 mingw* )
26540 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
26541 ;;
26542esac
26543
26544cat >>confdefs.h <<_ACEOF
26545#define X11_CONFIGURE_PATH "$X11ConfigurePath"
26546_ACEOF
26547
26548
26549#
26550# Find OpenMP library
26551#
26552GOMP_LIBS=''
26553if test "$enable_openmp" != 'no'; then
26554 if test "${GCC}" = "yes"; then
cristy18307f12011-12-30 01:20:16 +000026555 # Open64 (passes for GCC but uses different OpenMP implementation)
26556 if test "x$GOMP_LIBS" = x ; then
26557 if $CC --version 2>&1 | grep Open64 > /dev/null ; then
26558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for omp_get_num_procs in -lopenmp" >&5
26559$as_echo_n "checking for omp_get_num_procs in -lopenmp... " >&6; }
26560if ${ac_cv_lib_openmp_omp_get_num_procs+:} false; then :
26561 $as_echo_n "(cached) " >&6
26562else
26563 ac_check_lib_save_LIBS=$LIBS
26564LIBS="-lopenmp $LIBS"
26565cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26566/* end confdefs.h. */
26567
26568/* Override any GCC internal prototype to avoid an error.
26569 Use char because int might match the return type of a GCC
26570 builtin and then its argument prototype would still apply. */
26571#ifdef __cplusplus
26572extern "C"
26573#endif
26574char omp_get_num_procs ();
26575int
26576main ()
26577{
26578return omp_get_num_procs ();
26579 ;
26580 return 0;
26581}
26582_ACEOF
26583if ac_fn_c_try_link "$LINENO"; then :
26584 ac_cv_lib_openmp_omp_get_num_procs=yes
26585else
26586 ac_cv_lib_openmp_omp_get_num_procs=no
26587fi
26588rm -f core conftest.err conftest.$ac_objext \
26589 conftest$ac_exeext conftest.$ac_ext
26590LIBS=$ac_check_lib_save_LIBS
26591fi
26592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_openmp_omp_get_num_procs" >&5
26593$as_echo "$ac_cv_lib_openmp_omp_get_num_procs" >&6; }
26594if test "x$ac_cv_lib_openmp_omp_get_num_procs" = xyes; then :
26595 GOMP_LIBS="-lopenmp"
26596fi
26597
26598 fi
26599 fi
26600 # GCC
26601 if test "x$GOMP_LIBS" = x ; then
26602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026603$as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026604if ${ac_cv_lib_gomp_GOMP_parallel_start+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026605 $as_echo_n "(cached) " >&6
26606else
26607 ac_check_lib_save_LIBS=$LIBS
26608LIBS="-lgomp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026609cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026610/* end confdefs.h. */
26611
26612/* Override any GCC internal prototype to avoid an error.
26613 Use char because int might match the return type of a GCC
26614 builtin and then its argument prototype would still apply. */
26615#ifdef __cplusplus
26616extern "C"
26617#endif
26618char GOMP_parallel_start ();
26619int
26620main ()
26621{
26622return GOMP_parallel_start ();
26623 ;
26624 return 0;
26625}
26626_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026627if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026628 ac_cv_lib_gomp_GOMP_parallel_start=yes
26629else
cristy8b350f62009-11-15 23:12:43 +000026630 ac_cv_lib_gomp_GOMP_parallel_start=no
cristy3ed852e2009-09-05 21:47:34 +000026631fi
cristy8b350f62009-11-15 23:12:43 +000026632rm -f core conftest.err conftest.$ac_objext \
26633 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026634LIBS=$ac_check_lib_save_LIBS
26635fi
cristy8b350f62009-11-15 23:12:43 +000026636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
cristy3ed852e2009-09-05 21:47:34 +000026637$as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
cristyda16f162011-02-19 23:52:17 +000026638if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026639 GOMP_LIBS="-lgomp"
26640fi
cristy18307f12011-12-30 01:20:16 +000026641
26642 fi
cristy3ed852e2009-09-05 21:47:34 +000026643 else
cristy18307f12011-12-30 01:20:16 +000026644 # Sun CC
26645 if test "x$GOMP_LIBS" = x ; then
26646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
cristy3ed852e2009-09-05 21:47:34 +000026647$as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026648if ${ac_cv_lib_mtsk_sunw_mp_register_warn+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026649 $as_echo_n "(cached) " >&6
26650else
26651 ac_check_lib_save_LIBS=$LIBS
26652LIBS="-lmtsk $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026653cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026654/* end confdefs.h. */
26655
26656/* Override any GCC internal prototype to avoid an error.
26657 Use char because int might match the return type of a GCC
26658 builtin and then its argument prototype would still apply. */
26659#ifdef __cplusplus
26660extern "C"
26661#endif
26662char sunw_mp_register_warn ();
26663int
26664main ()
26665{
26666return sunw_mp_register_warn ();
26667 ;
26668 return 0;
26669}
26670_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026671if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026672 ac_cv_lib_mtsk_sunw_mp_register_warn=yes
26673else
cristy8b350f62009-11-15 23:12:43 +000026674 ac_cv_lib_mtsk_sunw_mp_register_warn=no
cristy3ed852e2009-09-05 21:47:34 +000026675fi
cristy8b350f62009-11-15 23:12:43 +000026676rm -f core conftest.err conftest.$ac_objext \
26677 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026678LIBS=$ac_check_lib_save_LIBS
26679fi
cristy8b350f62009-11-15 23:12:43 +000026680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
cristy3ed852e2009-09-05 21:47:34 +000026681$as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
cristyda16f162011-02-19 23:52:17 +000026682if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026683 GOMP_LIBS="-lmtsk"
26684fi
cristy18307f12011-12-30 01:20:16 +000026685
26686 fi
26687 # AIX xlc
26688 if test "x$GOMP_LIBS" = x ; then
cristy8b350f62009-11-15 23:12:43 +000026689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026690$as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026691if ${ac_cv_lib_xlsmp__xlsmpFlush+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026692 $as_echo_n "(cached) " >&6
26693else
26694 ac_check_lib_save_LIBS=$LIBS
26695LIBS="-lxlsmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026696cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026697/* end confdefs.h. */
26698
26699/* Override any GCC internal prototype to avoid an error.
26700 Use char because int might match the return type of a GCC
26701 builtin and then its argument prototype would still apply. */
26702#ifdef __cplusplus
26703extern "C"
26704#endif
26705char _xlsmpFlush ();
26706int
26707main ()
26708{
26709return _xlsmpFlush ();
26710 ;
26711 return 0;
26712}
26713_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026714if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026715 ac_cv_lib_xlsmp__xlsmpFlush=yes
26716else
cristy8b350f62009-11-15 23:12:43 +000026717 ac_cv_lib_xlsmp__xlsmpFlush=no
cristy3ed852e2009-09-05 21:47:34 +000026718fi
cristy8b350f62009-11-15 23:12:43 +000026719rm -f core conftest.err conftest.$ac_objext \
26720 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026721LIBS=$ac_check_lib_save_LIBS
26722fi
cristy8b350f62009-11-15 23:12:43 +000026723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
cristy3ed852e2009-09-05 21:47:34 +000026724$as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
cristyda16f162011-02-19 23:52:17 +000026725if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026726 GOMP_LIBS="-lxlsmp"
26727fi
cristy18307f12011-12-30 01:20:16 +000026728
26729 fi
26730 # SGI IRIX 6.5 MIPSpro C/C++
26731 if test "x$GOMP_LIBS" = x ; then
cristy8b350f62009-11-15 23:12:43 +000026732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026733$as_echo_n "checking for mp_destroy in -lmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026734if ${ac_cv_lib_mp_mp_destroy+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026735 $as_echo_n "(cached) " >&6
26736else
26737 ac_check_lib_save_LIBS=$LIBS
26738LIBS="-lmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026739cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026740/* end confdefs.h. */
26741
26742/* Override any GCC internal prototype to avoid an error.
26743 Use char because int might match the return type of a GCC
26744 builtin and then its argument prototype would still apply. */
26745#ifdef __cplusplus
26746extern "C"
26747#endif
26748char mp_destroy ();
26749int
26750main ()
26751{
26752return mp_destroy ();
26753 ;
26754 return 0;
26755}
26756_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026757if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026758 ac_cv_lib_mp_mp_destroy=yes
26759else
cristy8b350f62009-11-15 23:12:43 +000026760 ac_cv_lib_mp_mp_destroy=no
cristy3ed852e2009-09-05 21:47:34 +000026761fi
cristy8b350f62009-11-15 23:12:43 +000026762rm -f core conftest.err conftest.$ac_objext \
26763 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026764LIBS=$ac_check_lib_save_LIBS
26765fi
cristy8b350f62009-11-15 23:12:43 +000026766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
cristy3ed852e2009-09-05 21:47:34 +000026767$as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
cristyda16f162011-02-19 23:52:17 +000026768if test "x$ac_cv_lib_mp_mp_destroy" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026769 GOMP_LIBS="-lmp"
26770fi
cristy18307f12011-12-30 01:20:16 +000026771
26772 fi
cristy3ed852e2009-09-05 21:47:34 +000026773 fi
26774 LIBS="$GOMP_LIBS $LIBS"
26775fi
26776
26777
26778#
26779# Find Posix threads library
26780#
26781THREAD_LIBS=''
26782if test "$with_threads" != 'no' && test "$have_threads" = 'yes'; then
26783
26784 if test "x$PTHREAD_LIBS" = "x"; then
26785 case "${host_cpu}-${host_os}" in
26786 *-freebsd*)
cristy73bd4a52010-10-05 11:24:23 +000026787
26788
26789
26790ac_ext=c
26791ac_cpp='$CPP $CPPFLAGS'
26792ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26793ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26794ac_compiler_gnu=$ac_cv_c_compiler_gnu
26795
26796magick_pthread_lib_ok=no
26797
26798LIB=-lc_r
26799save_LIBS="$LIBS"
26800LIBS="$LIBS $LIB"
26801
26802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
26803$as_echo_n "checking for the pthreads library $LIB... " >&6; }
26804cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26805/* end confdefs.h. */
26806#include <pthread.h>
26807int
26808main ()
26809{
26810 pthread_t th;
26811 pthread_join(th, 0);
26812 pthread_attr_init(0);
26813 pthread_cleanup_push(0, 0);
26814 pthread_create(0,0,0,0);
26815 pthread_cleanup_pop(0);
26816 ;
26817 return 0;
26818}
26819_ACEOF
26820if ac_fn_c_try_link "$LINENO"; then :
26821 magick_pthread_lib_ok=yes
26822fi
26823rm -f core conftest.err conftest.$ac_objext \
26824 conftest$ac_exeext conftest.$ac_ext
26825
26826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
26827$as_echo "${magick_pthread_lib_ok}" >&6; }
26828if test "$magick_pthread_lib_ok" = yes
26829then
26830 PTHREAD_LIBS=-lc_r
26831 :
26832else
26833
26834 :
26835fi
26836
26837LIBS="$save_LIBS"
26838
26839ac_ext=c
26840ac_cpp='$CPP $CPPFLAGS'
26841ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26842ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26843ac_compiler_gnu=$ac_cv_c_compiler_gnu
26844
26845 ;;
cristy3ed852e2009-09-05 21:47:34 +000026846 esac
26847 fi
26848
26849 for lib in pthread pthreads; do
26850 if test "x$PTHREAD_LIBS" = "x"; then
cristy73bd4a52010-10-05 11:24:23 +000026851
26852
26853
26854ac_ext=c
26855ac_cpp='$CPP $CPPFLAGS'
26856ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26857ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26858ac_compiler_gnu=$ac_cv_c_compiler_gnu
26859
26860magick_pthread_lib_ok=no
26861
26862LIB=-l$lib
26863save_LIBS="$LIBS"
26864LIBS="$LIBS $LIB"
26865
26866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
26867$as_echo_n "checking for the pthreads library $LIB... " >&6; }
26868cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26869/* end confdefs.h. */
26870#include <pthread.h>
26871int
26872main ()
26873{
26874 pthread_t th;
26875 pthread_join(th, 0);
26876 pthread_attr_init(0);
26877 pthread_cleanup_push(0, 0);
26878 pthread_create(0,0,0,0);
26879 pthread_cleanup_pop(0);
26880 ;
26881 return 0;
26882}
26883_ACEOF
26884if ac_fn_c_try_link "$LINENO"; then :
26885 magick_pthread_lib_ok=yes
26886fi
26887rm -f core conftest.err conftest.$ac_objext \
26888 conftest$ac_exeext conftest.$ac_ext
26889
26890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
26891$as_echo "${magick_pthread_lib_ok}" >&6; }
26892if test "$magick_pthread_lib_ok" = yes
26893then
26894 PTHREAD_LIBS=-l$lib
26895 :
26896else
26897
26898 :
26899fi
26900
26901LIBS="$save_LIBS"
26902
26903ac_ext=c
26904ac_cpp='$CPP $CPPFLAGS'
26905ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26906ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26907ac_compiler_gnu=$ac_cv_c_compiler_gnu
26908
26909
cristy3ed852e2009-09-05 21:47:34 +000026910 fi
26911 done
26912
26913 THREAD_LIBS="$PTHREAD_LIBS"
26914 LIBS="$LIBS $THREAD_LIBS"
26915fi
26916
26917
26918#
26919# Check for umem.
26920#
26921have_umem='no'
26922UMEM_LIBS=''
26923if test "$with_umem" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
cristy3ed852e2009-09-05 21:47:34 +000026925$as_echo_n "checking for UMEM support ... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000026926 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
26927$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026928 failed=0
26929 passed=0
cristy8b350f62009-11-15 23:12:43 +000026930 ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000026931if test "x$ac_cv_header_umem_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026932 passed=`expr $passed + 1`
26933else
26934 failed=`expr $failed + 1`
26935fi
26936
26937
cristy8b350f62009-11-15 23:12:43 +000026938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000026939$as_echo_n "checking for umem_alloc in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026940if ${ac_cv_lib_umem_umem_alloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026941 $as_echo_n "(cached) " >&6
26942else
26943 ac_check_lib_save_LIBS=$LIBS
26944LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026945cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026946/* end confdefs.h. */
26947
26948/* Override any GCC internal prototype to avoid an error.
26949 Use char because int might match the return type of a GCC
26950 builtin and then its argument prototype would still apply. */
26951#ifdef __cplusplus
26952extern "C"
26953#endif
26954char umem_alloc ();
26955int
26956main ()
26957{
26958return umem_alloc ();
26959 ;
26960 return 0;
26961}
26962_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026963if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026964 ac_cv_lib_umem_umem_alloc=yes
26965else
cristy8b350f62009-11-15 23:12:43 +000026966 ac_cv_lib_umem_umem_alloc=no
cristy3ed852e2009-09-05 21:47:34 +000026967fi
cristy8b350f62009-11-15 23:12:43 +000026968rm -f core conftest.err conftest.$ac_objext \
26969 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026970LIBS=$ac_check_lib_save_LIBS
26971fi
cristy8b350f62009-11-15 23:12:43 +000026972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026973$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000026974if test "x$ac_cv_lib_umem_umem_alloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026975 passed=`expr $passed + 1`
26976else
26977 failed=`expr $failed + 1`
26978fi
26979
cristy8b350f62009-11-15 23:12:43 +000026980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000026981$as_echo_n "checking for umem_free in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026982if ${ac_cv_lib_umem_umem_free+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026983 $as_echo_n "(cached) " >&6
26984else
26985 ac_check_lib_save_LIBS=$LIBS
26986LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026987cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026988/* end confdefs.h. */
26989
26990/* Override any GCC internal prototype to avoid an error.
26991 Use char because int might match the return type of a GCC
26992 builtin and then its argument prototype would still apply. */
26993#ifdef __cplusplus
26994extern "C"
26995#endif
26996char umem_free ();
26997int
26998main ()
26999{
27000return umem_free ();
27001 ;
27002 return 0;
27003}
27004_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027005if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027006 ac_cv_lib_umem_umem_free=yes
27007else
cristy8b350f62009-11-15 23:12:43 +000027008 ac_cv_lib_umem_umem_free=no
cristy3ed852e2009-09-05 21:47:34 +000027009fi
cristy8b350f62009-11-15 23:12:43 +000027010rm -f core conftest.err conftest.$ac_objext \
27011 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027012LIBS=$ac_check_lib_save_LIBS
27013fi
cristy8b350f62009-11-15 23:12:43 +000027014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
cristy3ed852e2009-09-05 21:47:34 +000027015$as_echo "$ac_cv_lib_umem_umem_free" >&6; }
cristyda16f162011-02-19 23:52:17 +000027016if test "x$ac_cv_lib_umem_umem_free" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027017 passed=`expr $passed + 1`
27018else
27019 failed=`expr $failed + 1`
27020fi
27021
cristy8b350f62009-11-15 23:12:43 +000027022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027023$as_echo_n "checking if umem memory allocation library is complete... " >&6; }
27024 if test $passed -gt 0; then
27025 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000027026 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
27027$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027028 have_umem='no (failed tests)'
27029 else
27030 UMEM_LIBS='-lumem'
27031 LIBS="$UMEM_LIBS $LIBS"
27032
cristy8b350f62009-11-15 23:12:43 +000027033$as_echo "#define HasUMEM 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027034
cristy09b53e12011-10-14 12:47:22 +000027035 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
27036$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027037 have_umem='yes'
27038 fi
27039 else
cristy09b53e12011-10-14 12:47:22 +000027040 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
27041$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027042 fi
27043fi
cristy73bd4a52010-10-05 11:24:23 +000027044 if test "$have_umem" = 'yes'; then
27045 HasUMEM_TRUE=
27046 HasUMEM_FALSE='#'
27047else
27048 HasUMEM_TRUE='#'
27049 HasUMEM_FALSE=
27050fi
27051
cristy3ed852e2009-09-05 21:47:34 +000027052
27053
27054#
27055# Add support for ccmalloc memory debugging library if requested
27056#
27057have_ccmalloc='no'
27058CCMALLOC_LIBS=''
27059if test "$enable_ccmalloc" = 'yes'; then
27060 # Extract the first word of "ccmalloc", so it can be a program name with args.
27061set dummy ccmalloc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000027062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000027063$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027064if ${ac_cv_path_CCMALLOCDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027065 $as_echo_n "(cached) " >&6
27066else
27067 case $CCMALLOCDelegate in
27068 [\\/]* | ?:[\\/]*)
27069 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
27070 ;;
27071 *)
27072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27073for as_dir in $PATH
27074do
27075 IFS=$as_save_IFS
27076 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000027077 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000027078 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000027079 ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000027080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027081 break 2
27082 fi
27083done
cristy8b350f62009-11-15 23:12:43 +000027084 done
cristy3ed852e2009-09-05 21:47:34 +000027085IFS=$as_save_IFS
27086
27087 ;;
27088esac
27089fi
27090CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
27091if test -n "$CCMALLOCDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000027092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000027093$as_echo "$CCMALLOCDelegate" >&6; }
27094else
cristy8b350f62009-11-15 23:12:43 +000027095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027096$as_echo "no" >&6; }
27097fi
27098
27099
27100 if test -n "$CCMALLOCDelegate"; then
27101 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
27102 OLIBS="$LIBS"
27103 # Assume that gcc is used with ccmalloc.
27104 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
cristy8b350f62009-11-15 23:12:43 +000027105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000027106$as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027107if ${ac_cv_lib_ccmalloc_ccmalloc_malloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027108 $as_echo_n "(cached) " >&6
27109else
27110 ac_check_lib_save_LIBS=$LIBS
27111LIBS="-lccmalloc -ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027112cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027113/* end confdefs.h. */
27114
27115/* Override any GCC internal prototype to avoid an error.
27116 Use char because int might match the return type of a GCC
27117 builtin and then its argument prototype would still apply. */
27118#ifdef __cplusplus
27119extern "C"
27120#endif
27121char ccmalloc_malloc ();
27122int
27123main ()
27124{
27125return ccmalloc_malloc ();
27126 ;
27127 return 0;
27128}
27129_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027130if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027131 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
27132else
cristy8b350f62009-11-15 23:12:43 +000027133 ac_cv_lib_ccmalloc_ccmalloc_malloc=no
cristy3ed852e2009-09-05 21:47:34 +000027134fi
cristy8b350f62009-11-15 23:12:43 +000027135rm -f core conftest.err conftest.$ac_objext \
27136 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027137LIBS=$ac_check_lib_save_LIBS
27138fi
cristy8b350f62009-11-15 23:12:43 +000027139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000027140$as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000027141if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027142 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
27143fi
27144
27145 if test -n "$CCMALLOC_LIBS"; then
27146 LIBS="$OLIBS"
27147 LIBS="$LIBS $CCMALLOC_LIBS"
27148 have_ccmalloc='yes'
27149 else
27150 LIBS="$OLIBS"
27151 fi
27152 fi
27153fi
27154
27155#
27156# Add support for efence memory debugging library if requested
27157#
27158if test "$enable_efence" = 'yes'; then
27159 EFENCE_LIBS='-lefence'
27160 LIBS="$EFENCE_LIBS $LIBS"
27161fi
27162
cristy3ed852e2009-09-05 21:47:34 +000027163
27164#
27165# Check for BZLIB
27166#
27167
27168
27169# Check whether --with-bzlib was given.
cristy8b350f62009-11-15 23:12:43 +000027170if test "${with_bzlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027171 withval=$with_bzlib; with_bzlib=$withval
27172else
27173 with_bzlib='yes'
27174fi
27175
27176
27177if test "$with_bzlib" != 'yes'; then
27178 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
27179fi
27180
27181have_bzlib='no'
27182if test "$with_bzlib" != 'no'; then
27183 BZLIB_LIBS=''
cristy09b53e12011-10-14 12:47:22 +000027184 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
27185$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000027186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000027187$as_echo_n "checking for BZLIB... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000027188 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
27189$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027190 failed=0
27191 passed=0
27192 found_libbz=0
cristy8b350f62009-11-15 23:12:43 +000027193 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027194if test "x$ac_cv_header_bzlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027195 passed=`expr $passed + 1`
27196else
27197 failed=`expr $failed + 1`
27198fi
27199
27200
cristy8b350f62009-11-15 23:12:43 +000027201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000027202$as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027203if ${ac_cv_lib_bz2_BZ2_bzDecompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027204 $as_echo_n "(cached) " >&6
27205else
27206 ac_check_lib_save_LIBS=$LIBS
27207LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027208cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027209/* end confdefs.h. */
27210
27211/* Override any GCC internal prototype to avoid an error.
27212 Use char because int might match the return type of a GCC
27213 builtin and then its argument prototype would still apply. */
27214#ifdef __cplusplus
27215extern "C"
27216#endif
27217char BZ2_bzDecompress ();
27218int
27219main ()
27220{
27221return BZ2_bzDecompress ();
27222 ;
27223 return 0;
27224}
27225_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027226if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027227 ac_cv_lib_bz2_BZ2_bzDecompress=yes
27228else
cristy8b350f62009-11-15 23:12:43 +000027229 ac_cv_lib_bz2_BZ2_bzDecompress=no
cristy3ed852e2009-09-05 21:47:34 +000027230fi
cristy8b350f62009-11-15 23:12:43 +000027231rm -f core conftest.err conftest.$ac_objext \
27232 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027233LIBS=$ac_check_lib_save_LIBS
27234fi
cristy8b350f62009-11-15 23:12:43 +000027235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027236$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027237if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027238 found_libbz=`expr $found_libbz + 1`
27239fi
27240
27241 if test "$native_win32_build" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000027243$as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027244if ${ac_cv_lib_bz2__imp__BZ2_decompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027245 $as_echo_n "(cached) " >&6
27246else
27247 ac_check_lib_save_LIBS=$LIBS
27248LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027249cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027250/* end confdefs.h. */
27251
27252/* Override any GCC internal prototype to avoid an error.
27253 Use char because int might match the return type of a GCC
27254 builtin and then its argument prototype would still apply. */
27255#ifdef __cplusplus
27256extern "C"
27257#endif
27258char _imp__BZ2_decompress ();
27259int
27260main ()
27261{
27262return _imp__BZ2_decompress ();
27263 ;
27264 return 0;
27265}
27266_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027267if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027268 ac_cv_lib_bz2__imp__BZ2_decompress=yes
27269else
cristy8b350f62009-11-15 23:12:43 +000027270 ac_cv_lib_bz2__imp__BZ2_decompress=no
cristy3ed852e2009-09-05 21:47:34 +000027271fi
cristy8b350f62009-11-15 23:12:43 +000027272rm -f core conftest.err conftest.$ac_objext \
27273 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027274LIBS=$ac_check_lib_save_LIBS
27275fi
cristy8b350f62009-11-15 23:12:43 +000027276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027277$as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027278if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027279 found_libbz=`expr $found_libbz + 1`
27280fi
27281
27282 fi
27283 if test $found_libbz -gt 0; then
27284 passed=`expr $passed + 1`
27285 else
27286 failed=`expr $failed + 1`
27287 fi
cristy8b350f62009-11-15 23:12:43 +000027288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027289$as_echo_n "checking if BZLIB package is complete... " >&6; }
27290 if test $passed -gt 0; then
27291 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000027292 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
27293$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027294 have_bzlib='no (failed tests)'
27295 else
27296 BZLIB_LIBS='-lbz2'
27297 LIBS="$BZLIB_LIBS $LIBS"
27298
cristy8b350f62009-11-15 23:12:43 +000027299$as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027300
cristy09b53e12011-10-14 12:47:22 +000027301 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
27302$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027303 have_bzlib='yes'
27304 fi
27305 else
cristy09b53e12011-10-14 12:47:22 +000027306 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
27307$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027308 fi
27309fi
cristy73bd4a52010-10-05 11:24:23 +000027310 if test "$have_bzlib" = 'yes'; then
27311 BZLIB_DELEGATE_TRUE=
27312 BZLIB_DELEGATE_FALSE='#'
27313else
27314 BZLIB_DELEGATE_TRUE='#'
27315 BZLIB_DELEGATE_FALSE=
27316fi
27317
cristy3ed852e2009-09-05 21:47:34 +000027318
27319
27320#
27321# Find the X11 include and library directories.
27322#
27323IPC_LIBS=''
27324X11_LIBS=''
27325XEXT_LIBS=''
27326XT_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000027327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
cristyc7083c12009-10-14 03:16:55 +000027328$as_echo_n "checking for X... " >&6; }
27329
27330
27331# Check whether --with-x was given.
cristy8b350f62009-11-15 23:12:43 +000027332if test "${with_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000027333 withval=$with_x;
27334fi
27335
27336# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
27337if test "x$with_x" = xno; then
27338 # The user explicitly disabled X.
27339 have_x=disabled
27340else
27341 case $x_includes,$x_libraries in #(
cristy98dddb52010-11-04 00:30:15 +000027342 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
cristyda16f162011-02-19 23:52:17 +000027343 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
cristyc7083c12009-10-14 03:16:55 +000027344 $as_echo_n "(cached) " >&6
27345else
27346 # One or both of the vars are not set, and there is no cached value.
27347ac_x_includes=no ac_x_libraries=no
27348rm -f -r conftest.dir
27349if mkdir conftest.dir; then
27350 cd conftest.dir
27351 cat >Imakefile <<'_ACEOF'
27352incroot:
27353 @echo incroot='${INCROOT}'
27354usrlibdir:
27355 @echo usrlibdir='${USRLIBDIR}'
27356libdir:
27357 @echo libdir='${LIBDIR}'
27358_ACEOF
27359 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
cristy98dddb52010-11-04 00:30:15 +000027360 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristyc7083c12009-10-14 03:16:55 +000027361 for ac_var in incroot usrlibdir libdir; do
27362 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
27363 done
27364 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
27365 for ac_extension in a so sl dylib la dll; do
27366 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
27367 test -f "$ac_im_libdir/libX11.$ac_extension"; then
27368 ac_im_usrlibdir=$ac_im_libdir; break
27369 fi
27370 done
27371 # Screen out bogus values from the imake configuration. They are
27372 # bogus both because they are the default anyway, and because
27373 # using them would break gcc on systems where it needs fixed includes.
27374 case $ac_im_incroot in
27375 /usr/include) ac_x_includes= ;;
27376 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
27377 esac
27378 case $ac_im_usrlibdir in
27379 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
27380 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
27381 esac
27382 fi
27383 cd ..
27384 rm -f -r conftest.dir
27385fi
27386
27387# Standard set of common directories for X headers.
27388# Check X11 before X11Rn because it is often a symlink to the current release.
27389ac_x_header_dirs='
27390/usr/X11/include
cristy8b350f62009-11-15 23:12:43 +000027391/usr/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000027392/usr/X11R6/include
27393/usr/X11R5/include
27394/usr/X11R4/include
27395
27396/usr/include/X11
cristy8b350f62009-11-15 23:12:43 +000027397/usr/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000027398/usr/include/X11R6
27399/usr/include/X11R5
27400/usr/include/X11R4
27401
27402/usr/local/X11/include
cristy8b350f62009-11-15 23:12:43 +000027403/usr/local/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000027404/usr/local/X11R6/include
27405/usr/local/X11R5/include
27406/usr/local/X11R4/include
27407
27408/usr/local/include/X11
cristy8b350f62009-11-15 23:12:43 +000027409/usr/local/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000027410/usr/local/include/X11R6
27411/usr/local/include/X11R5
27412/usr/local/include/X11R4
27413
27414/usr/X386/include
27415/usr/x386/include
27416/usr/XFree86/include/X11
27417
27418/usr/include
27419/usr/local/include
27420/usr/unsupported/include
27421/usr/athena/include
27422/usr/local/x11r5/include
27423/usr/lpp/Xamples/include
27424
27425/usr/openwin/include
27426/usr/openwin/share/include'
27427
27428if test "$ac_x_includes" = no; then
27429 # Guess where to find include files, by looking for Xlib.h.
27430 # First, try using that file with no special directory specified.
cristy8b350f62009-11-15 23:12:43 +000027431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027432/* end confdefs.h. */
27433#include <X11/Xlib.h>
27434_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027435if ac_fn_c_try_cpp "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000027436 # We can compile using X headers with no special include directory.
27437ac_x_includes=
27438else
cristyc7083c12009-10-14 03:16:55 +000027439 for ac_dir in $ac_x_header_dirs; do
27440 if test -r "$ac_dir/X11/Xlib.h"; then
27441 ac_x_includes=$ac_dir
27442 break
27443 fi
27444done
27445fi
cristyda16f162011-02-19 23:52:17 +000027446rm -f conftest.err conftest.i conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027447fi # $ac_x_includes = no
27448
27449if test "$ac_x_libraries" = no; then
27450 # Check for the libraries.
27451 # See if we find them without any special options.
27452 # Don't add to $LIBS permanently.
27453 ac_save_LIBS=$LIBS
27454 LIBS="-lX11 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027456/* end confdefs.h. */
27457#include <X11/Xlib.h>
27458int
27459main ()
27460{
27461XrmInitialize ()
27462 ;
27463 return 0;
27464}
27465_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027466if ac_fn_c_try_link "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000027467 LIBS=$ac_save_LIBS
27468# We can link X programs with no special library path.
27469ac_x_libraries=
27470else
cristy8b350f62009-11-15 23:12:43 +000027471 LIBS=$ac_save_LIBS
cristyc7083c12009-10-14 03:16:55 +000027472for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
27473do
27474 # Don't even attempt the hair of trying to link an X program!
27475 for ac_extension in a so sl dylib la dll; do
27476 if test -r "$ac_dir/libX11.$ac_extension"; then
27477 ac_x_libraries=$ac_dir
27478 break 2
27479 fi
27480 done
27481done
27482fi
cristy8b350f62009-11-15 23:12:43 +000027483rm -f core conftest.err conftest.$ac_objext \
27484 conftest$ac_exeext conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027485fi # $ac_x_libraries = no
27486
27487case $ac_x_includes,$ac_x_libraries in #(
27488 no,* | *,no | *\'*)
27489 # Didn't find X, or a directory has "'" in its name.
27490 ac_cv_have_x="have_x=no";; #(
27491 *)
27492 # Record where we found X for the cache.
27493 ac_cv_have_x="have_x=yes\
27494 ac_x_includes='$ac_x_includes'\
27495 ac_x_libraries='$ac_x_libraries'"
27496esac
27497fi
27498;; #(
27499 *) have_x=yes;;
27500 esac
27501 eval "$ac_cv_have_x"
27502fi # $with_x != no
27503
27504if test "$have_x" != yes; then
cristy8b350f62009-11-15 23:12:43 +000027505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
cristyc7083c12009-10-14 03:16:55 +000027506$as_echo "$have_x" >&6; }
27507 no_x=yes
27508else
27509 # If each of the values was on the command line, it overrides each guess.
27510 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
27511 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
27512 # Update the cache value to reflect the command line values.
27513 ac_cv_have_x="have_x=yes\
27514 ac_x_includes='$x_includes'\
27515 ac_x_libraries='$x_libraries'"
cristy8b350f62009-11-15 23:12:43 +000027516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
cristyc7083c12009-10-14 03:16:55 +000027517$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
27518fi
27519
cristy3ed852e2009-09-05 21:47:34 +000027520if test "$no_x" = yes; then
27521 # Not all programs may use this symbol, but it does not hurt to define it.
27522
cristy8b350f62009-11-15 23:12:43 +000027523$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027524
27525 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
27526else
27527 if test -n "$x_includes"; then
27528 X_CFLAGS="$X_CFLAGS -I$x_includes"
27529 fi
27530
27531 # It would also be nice to do this for all -L options, not just this one.
27532 if test -n "$x_libraries"; then
27533 X_LIBS="$X_LIBS -L$x_libraries"
27534 # For Solaris; some versions of Sun CC require a space after -R and
27535 # others require no space. Words are not sufficient . . . .
cristy8b350f62009-11-15 23:12:43 +000027536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
cristy3ed852e2009-09-05 21:47:34 +000027537$as_echo_n "checking whether -R must be followed by a space... " >&6; }
27538 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
27539 ac_xsave_c_werror_flag=$ac_c_werror_flag
27540 ac_c_werror_flag=yes
cristy8b350f62009-11-15 23:12:43 +000027541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027542/* end confdefs.h. */
27543
27544int
27545main ()
27546{
27547
27548 ;
27549 return 0;
27550}
27551_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027552if ac_fn_c_try_link "$LINENO"; then :
27553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027554$as_echo "no" >&6; }
27555 X_LIBS="$X_LIBS -R$x_libraries"
27556else
cristy8b350f62009-11-15 23:12:43 +000027557 LIBS="$ac_xsave_LIBS -R $x_libraries"
27558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027559/* end confdefs.h. */
27560
27561int
27562main ()
27563{
27564
27565 ;
27566 return 0;
27567}
27568_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027569if ac_fn_c_try_link "$LINENO"; then :
27570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027571$as_echo "yes" >&6; }
27572 X_LIBS="$X_LIBS -R $x_libraries"
27573else
cristy8b350f62009-11-15 23:12:43 +000027574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
cristy3ed852e2009-09-05 21:47:34 +000027575$as_echo "neither works" >&6; }
27576fi
cristy8b350f62009-11-15 23:12:43 +000027577rm -f core conftest.err conftest.$ac_objext \
27578 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027579fi
cristy8b350f62009-11-15 23:12:43 +000027580rm -f core conftest.err conftest.$ac_objext \
27581 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027582 ac_c_werror_flag=$ac_xsave_c_werror_flag
27583 LIBS=$ac_xsave_LIBS
27584 fi
27585
27586 # Check for system-dependent libraries X programs must link with.
27587 # Do this before checking for the system-independent R6 libraries
27588 # (-lICE), since we may need -lsocket or whatever for X linking.
27589
27590 if test "$ISC" = yes; then
27591 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
27592 else
27593 # Martyn Johnson says this is needed for Ultrix, if the X
27594 # libraries were built with DECnet support. And Karl Berry says
27595 # the Alpha needs dnet_stub (dnet does not exist).
27596 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
cristy8b350f62009-11-15 23:12:43 +000027597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027598/* end confdefs.h. */
27599
27600/* Override any GCC internal prototype to avoid an error.
27601 Use char because int might match the return type of a GCC
27602 builtin and then its argument prototype would still apply. */
27603#ifdef __cplusplus
27604extern "C"
27605#endif
27606char XOpenDisplay ();
27607int
27608main ()
27609{
27610return XOpenDisplay ();
27611 ;
27612 return 0;
27613}
27614_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027615if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027616
cristy8b350f62009-11-15 23:12:43 +000027617else
27618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
cristy3ed852e2009-09-05 21:47:34 +000027619$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027620if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027621 $as_echo_n "(cached) " >&6
27622else
27623 ac_check_lib_save_LIBS=$LIBS
27624LIBS="-ldnet $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027625cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027626/* end confdefs.h. */
27627
27628/* Override any GCC internal prototype to avoid an error.
27629 Use char because int might match the return type of a GCC
27630 builtin and then its argument prototype would still apply. */
27631#ifdef __cplusplus
27632extern "C"
27633#endif
27634char dnet_ntoa ();
27635int
27636main ()
27637{
27638return dnet_ntoa ();
27639 ;
27640 return 0;
27641}
27642_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027643if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027644 ac_cv_lib_dnet_dnet_ntoa=yes
27645else
cristy8b350f62009-11-15 23:12:43 +000027646 ac_cv_lib_dnet_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000027647fi
cristy8b350f62009-11-15 23:12:43 +000027648rm -f core conftest.err conftest.$ac_objext \
27649 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027650LIBS=$ac_check_lib_save_LIBS
27651fi
cristy8b350f62009-11-15 23:12:43 +000027652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000027653$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000027654if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027655 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
27656fi
27657
27658 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
cristy8b350f62009-11-15 23:12:43 +000027659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
cristy3ed852e2009-09-05 21:47:34 +000027660$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027661if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027662 $as_echo_n "(cached) " >&6
27663else
27664 ac_check_lib_save_LIBS=$LIBS
27665LIBS="-ldnet_stub $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027666cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027667/* end confdefs.h. */
27668
27669/* Override any GCC internal prototype to avoid an error.
27670 Use char because int might match the return type of a GCC
27671 builtin and then its argument prototype would still apply. */
27672#ifdef __cplusplus
27673extern "C"
27674#endif
27675char dnet_ntoa ();
27676int
27677main ()
27678{
27679return dnet_ntoa ();
27680 ;
27681 return 0;
27682}
27683_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027684if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027685 ac_cv_lib_dnet_stub_dnet_ntoa=yes
27686else
cristy8b350f62009-11-15 23:12:43 +000027687 ac_cv_lib_dnet_stub_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000027688fi
cristy8b350f62009-11-15 23:12:43 +000027689rm -f core conftest.err conftest.$ac_objext \
27690 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027691LIBS=$ac_check_lib_save_LIBS
27692fi
cristy8b350f62009-11-15 23:12:43 +000027693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000027694$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000027695if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027696 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
27697fi
27698
27699 fi
27700fi
cristy8b350f62009-11-15 23:12:43 +000027701rm -f core conftest.err conftest.$ac_objext \
27702 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027703 LIBS="$ac_xsave_LIBS"
27704
27705 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
27706 # to get the SysV transport functions.
27707 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
27708 # needs -lnsl.
27709 # The nsl library prevents programs from opening the X display
27710 # on Irix 5.2, according to T.E. Dickey.
27711 # The functions gethostbyname, getservbyname, and inet_addr are
27712 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
cristy8b350f62009-11-15 23:12:43 +000027713 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
cristyda16f162011-02-19 23:52:17 +000027714if test "x$ac_cv_func_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027715
cristy3ed852e2009-09-05 21:47:34 +000027716fi
27717
cristy3ed852e2009-09-05 21:47:34 +000027718 if test $ac_cv_func_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000027719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
cristy3ed852e2009-09-05 21:47:34 +000027720$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027721if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027722 $as_echo_n "(cached) " >&6
27723else
27724 ac_check_lib_save_LIBS=$LIBS
27725LIBS="-lnsl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027726cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027727/* end confdefs.h. */
27728
27729/* Override any GCC internal prototype to avoid an error.
27730 Use char because int might match the return type of a GCC
27731 builtin and then its argument prototype would still apply. */
27732#ifdef __cplusplus
27733extern "C"
27734#endif
27735char gethostbyname ();
27736int
27737main ()
27738{
27739return gethostbyname ();
27740 ;
27741 return 0;
27742}
27743_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027744if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027745 ac_cv_lib_nsl_gethostbyname=yes
27746else
cristy8b350f62009-11-15 23:12:43 +000027747 ac_cv_lib_nsl_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000027748fi
cristy8b350f62009-11-15 23:12:43 +000027749rm -f core conftest.err conftest.$ac_objext \
27750 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027751LIBS=$ac_check_lib_save_LIBS
27752fi
cristy8b350f62009-11-15 23:12:43 +000027753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000027754$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000027755if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027756 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
27757fi
27758
27759 if test $ac_cv_lib_nsl_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000027760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
cristy3ed852e2009-09-05 21:47:34 +000027761$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027762if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027763 $as_echo_n "(cached) " >&6
27764else
27765 ac_check_lib_save_LIBS=$LIBS
27766LIBS="-lbsd $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027767cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027768/* end confdefs.h. */
27769
27770/* Override any GCC internal prototype to avoid an error.
27771 Use char because int might match the return type of a GCC
27772 builtin and then its argument prototype would still apply. */
27773#ifdef __cplusplus
27774extern "C"
27775#endif
27776char gethostbyname ();
27777int
27778main ()
27779{
27780return gethostbyname ();
27781 ;
27782 return 0;
27783}
27784_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027785if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027786 ac_cv_lib_bsd_gethostbyname=yes
27787else
cristy8b350f62009-11-15 23:12:43 +000027788 ac_cv_lib_bsd_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000027789fi
cristy8b350f62009-11-15 23:12:43 +000027790rm -f core conftest.err conftest.$ac_objext \
27791 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027792LIBS=$ac_check_lib_save_LIBS
27793fi
cristy8b350f62009-11-15 23:12:43 +000027794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000027795$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000027796if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027797 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
27798fi
27799
27800 fi
27801 fi
27802
27803 # lieder@skyler.mavd.honeywell.com says without -lsocket,
27804 # socket/setsockopt and other routines are undefined under SCO ODT
27805 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
27806 # on later versions), says Simon Leinen: it contains gethostby*
27807 # variants that don't use the name server (or something). -lsocket
27808 # must be given before -lnsl if both are needed. We assume that
27809 # if connect needs -lnsl, so does gethostbyname.
cristy8b350f62009-11-15 23:12:43 +000027810 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
cristyda16f162011-02-19 23:52:17 +000027811if test "x$ac_cv_func_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027812
cristy3ed852e2009-09-05 21:47:34 +000027813fi
27814
cristy3ed852e2009-09-05 21:47:34 +000027815 if test $ac_cv_func_connect = no; then
cristy8b350f62009-11-15 23:12:43 +000027816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
cristy3ed852e2009-09-05 21:47:34 +000027817$as_echo_n "checking for connect in -lsocket... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027818if ${ac_cv_lib_socket_connect+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027819 $as_echo_n "(cached) " >&6
27820else
27821 ac_check_lib_save_LIBS=$LIBS
27822LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027823cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027824/* end confdefs.h. */
27825
27826/* Override any GCC internal prototype to avoid an error.
27827 Use char because int might match the return type of a GCC
27828 builtin and then its argument prototype would still apply. */
27829#ifdef __cplusplus
27830extern "C"
27831#endif
27832char connect ();
27833int
27834main ()
27835{
27836return connect ();
27837 ;
27838 return 0;
27839}
27840_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027841if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027842 ac_cv_lib_socket_connect=yes
27843else
cristy8b350f62009-11-15 23:12:43 +000027844 ac_cv_lib_socket_connect=no
cristy3ed852e2009-09-05 21:47:34 +000027845fi
cristy8b350f62009-11-15 23:12:43 +000027846rm -f core conftest.err conftest.$ac_objext \
27847 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027848LIBS=$ac_check_lib_save_LIBS
27849fi
cristy8b350f62009-11-15 23:12:43 +000027850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
cristy3ed852e2009-09-05 21:47:34 +000027851$as_echo "$ac_cv_lib_socket_connect" >&6; }
cristyda16f162011-02-19 23:52:17 +000027852if test "x$ac_cv_lib_socket_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027853 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
27854fi
27855
27856 fi
27857
27858 # Guillermo Gomez says -lposix is necessary on A/UX.
cristy8b350f62009-11-15 23:12:43 +000027859 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
cristyda16f162011-02-19 23:52:17 +000027860if test "x$ac_cv_func_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027861
cristy3ed852e2009-09-05 21:47:34 +000027862fi
27863
cristy3ed852e2009-09-05 21:47:34 +000027864 if test $ac_cv_func_remove = no; then
cristy8b350f62009-11-15 23:12:43 +000027865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
cristy3ed852e2009-09-05 21:47:34 +000027866$as_echo_n "checking for remove in -lposix... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027867if ${ac_cv_lib_posix_remove+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027868 $as_echo_n "(cached) " >&6
27869else
27870 ac_check_lib_save_LIBS=$LIBS
27871LIBS="-lposix $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027872cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027873/* end confdefs.h. */
27874
27875/* Override any GCC internal prototype to avoid an error.
27876 Use char because int might match the return type of a GCC
27877 builtin and then its argument prototype would still apply. */
27878#ifdef __cplusplus
27879extern "C"
27880#endif
27881char remove ();
27882int
27883main ()
27884{
27885return remove ();
27886 ;
27887 return 0;
27888}
27889_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027890if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027891 ac_cv_lib_posix_remove=yes
27892else
cristy8b350f62009-11-15 23:12:43 +000027893 ac_cv_lib_posix_remove=no
cristy3ed852e2009-09-05 21:47:34 +000027894fi
cristy8b350f62009-11-15 23:12:43 +000027895rm -f core conftest.err conftest.$ac_objext \
27896 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027897LIBS=$ac_check_lib_save_LIBS
27898fi
cristy8b350f62009-11-15 23:12:43 +000027899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
cristy3ed852e2009-09-05 21:47:34 +000027900$as_echo "$ac_cv_lib_posix_remove" >&6; }
cristyda16f162011-02-19 23:52:17 +000027901if test "x$ac_cv_lib_posix_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027902 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
27903fi
27904
27905 fi
27906
27907 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
cristy8b350f62009-11-15 23:12:43 +000027908 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
cristyda16f162011-02-19 23:52:17 +000027909if test "x$ac_cv_func_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027910
cristy3ed852e2009-09-05 21:47:34 +000027911fi
27912
cristy3ed852e2009-09-05 21:47:34 +000027913 if test $ac_cv_func_shmat = no; then
cristy8b350f62009-11-15 23:12:43 +000027914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
cristy3ed852e2009-09-05 21:47:34 +000027915$as_echo_n "checking for shmat in -lipc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027916if ${ac_cv_lib_ipc_shmat+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027917 $as_echo_n "(cached) " >&6
27918else
27919 ac_check_lib_save_LIBS=$LIBS
27920LIBS="-lipc $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027921cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027922/* end confdefs.h. */
27923
27924/* Override any GCC internal prototype to avoid an error.
27925 Use char because int might match the return type of a GCC
27926 builtin and then its argument prototype would still apply. */
27927#ifdef __cplusplus
27928extern "C"
27929#endif
27930char shmat ();
27931int
27932main ()
27933{
27934return shmat ();
27935 ;
27936 return 0;
27937}
27938_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027939if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027940 ac_cv_lib_ipc_shmat=yes
27941else
cristy8b350f62009-11-15 23:12:43 +000027942 ac_cv_lib_ipc_shmat=no
cristy3ed852e2009-09-05 21:47:34 +000027943fi
cristy8b350f62009-11-15 23:12:43 +000027944rm -f core conftest.err conftest.$ac_objext \
27945 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027946LIBS=$ac_check_lib_save_LIBS
27947fi
cristy8b350f62009-11-15 23:12:43 +000027948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
cristy3ed852e2009-09-05 21:47:34 +000027949$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
cristyda16f162011-02-19 23:52:17 +000027950if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027951 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
27952fi
27953
27954 fi
27955 fi
27956
27957 # Check for libraries that X11R6 Xt/Xaw programs need.
27958 ac_save_LDFLAGS=$LDFLAGS
27959 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
27960 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
27961 # check for ICE first), but we must link in the order -lSM -lICE or
27962 # we get undefined symbols. So assume we have SM if we have ICE.
27963 # These have to be linked with before -lX11, unlike the other
27964 # libraries we check for below, so use a different variable.
27965 # John Interrante, Karl Berry
cristy8b350f62009-11-15 23:12:43 +000027966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
cristy3ed852e2009-09-05 21:47:34 +000027967$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027968if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027969 $as_echo_n "(cached) " >&6
27970else
27971 ac_check_lib_save_LIBS=$LIBS
27972LIBS="-lICE $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027973cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027974/* end confdefs.h. */
27975
27976/* Override any GCC internal prototype to avoid an error.
27977 Use char because int might match the return type of a GCC
27978 builtin and then its argument prototype would still apply. */
27979#ifdef __cplusplus
27980extern "C"
27981#endif
27982char IceConnectionNumber ();
27983int
27984main ()
27985{
27986return IceConnectionNumber ();
27987 ;
27988 return 0;
27989}
27990_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027991if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027992 ac_cv_lib_ICE_IceConnectionNumber=yes
27993else
cristy8b350f62009-11-15 23:12:43 +000027994 ac_cv_lib_ICE_IceConnectionNumber=no
cristy3ed852e2009-09-05 21:47:34 +000027995fi
cristy8b350f62009-11-15 23:12:43 +000027996rm -f core conftest.err conftest.$ac_objext \
27997 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027998LIBS=$ac_check_lib_save_LIBS
27999fi
cristy8b350f62009-11-15 23:12:43 +000028000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
cristy3ed852e2009-09-05 21:47:34 +000028001$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
cristyda16f162011-02-19 23:52:17 +000028002if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028003 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
28004fi
28005
28006 LDFLAGS=$ac_save_LDFLAGS
28007
28008fi
28009
28010if test "$no_x" != 'yes'; then
cristy09b53e12011-10-14 12:47:22 +000028011 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28012$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000028013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
cristy3ed852e2009-09-05 21:47:34 +000028014$as_echo_n "checking for X11... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028015 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28016$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028017 LDFLAGS="$LDFLAGS $X_LIBS"
28018 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
28019 LIBS="$X11_LIBS $LIBS"
28020 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
28021
28022
cristy8b350f62009-11-15 23:12:43 +000028023$as_echo "#define X11_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028024
28025 #
28026 # Check for X11 shared memory extension
28027 #
28028 # shmctl is required to support the shared memory extension
cristy8b350f62009-11-15 23:12:43 +000028029 ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
cristyda16f162011-02-19 23:52:17 +000028030if test "x$ac_cv_func_shmctl" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028031 have_shmctl='yes'
28032fi
28033
28034 if test "$have_shmctl" != 'yes'; then
28035 PERSIST_LIBS=$LIBS
28036 LIBS="$LIBS -lcygipc"
cristy8b350f62009-11-15 23:12:43 +000028037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028038/* end confdefs.h. */
28039
28040/* Override any GCC internal prototype to avoid an error.
28041 Use char because int might match the return type of a GCC
28042 builtin and then its argument prototype would still apply. */
28043#ifdef __cplusplus
28044extern "C"
28045#endif
28046char shmctl ();
28047int
28048main ()
28049{
28050return shmctl ();
28051 ;
28052 return 0;
28053}
28054_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028055if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028056 have_shmctl='yes'; IPC_LIBS='-lcygipc'
cristy3ed852e2009-09-05 21:47:34 +000028057fi
cristy8b350f62009-11-15 23:12:43 +000028058rm -f core conftest.err conftest.$ac_objext \
28059 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028060 LIBS=$PERSIST_LIBS
28061 fi
28062
28063 if test "$have_shmctl" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000028064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028065$as_echo_n "checking for XShmAttach in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028066if ${ac_cv_lib_Xext_XShmAttach+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028067 $as_echo_n "(cached) " >&6
28068else
28069 ac_check_lib_save_LIBS=$LIBS
28070LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028071cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028072/* end confdefs.h. */
28073
28074/* Override any GCC internal prototype to avoid an error.
28075 Use char because int might match the return type of a GCC
28076 builtin and then its argument prototype would still apply. */
28077#ifdef __cplusplus
28078extern "C"
28079#endif
28080char XShmAttach ();
28081int
28082main ()
28083{
28084return XShmAttach ();
28085 ;
28086 return 0;
28087}
28088_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028089if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028090 ac_cv_lib_Xext_XShmAttach=yes
28091else
cristy8b350f62009-11-15 23:12:43 +000028092 ac_cv_lib_Xext_XShmAttach=no
cristy3ed852e2009-09-05 21:47:34 +000028093fi
cristy8b350f62009-11-15 23:12:43 +000028094rm -f core conftest.err conftest.$ac_objext \
28095 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028096LIBS=$ac_check_lib_save_LIBS
28097fi
cristy8b350f62009-11-15 23:12:43 +000028098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
cristy3ed852e2009-09-05 21:47:34 +000028099$as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
cristyda16f162011-02-19 23:52:17 +000028100if test "x$ac_cv_lib_Xext_XShmAttach" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028101 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000028102$as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028103
28104fi
28105
28106 fi
28107
28108 #
28109 # Check for X11 shape extension
28110 #
cristy8b350f62009-11-15 23:12:43 +000028111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028112$as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028113if ${ac_cv_lib_Xext_XShapeCombineMask+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028114 $as_echo_n "(cached) " >&6
28115else
28116 ac_check_lib_save_LIBS=$LIBS
28117LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028118cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028119/* end confdefs.h. */
28120
28121/* Override any GCC internal prototype to avoid an error.
28122 Use char because int might match the return type of a GCC
28123 builtin and then its argument prototype would still apply. */
28124#ifdef __cplusplus
28125extern "C"
28126#endif
28127char XShapeCombineMask ();
28128int
28129main ()
28130{
28131return XShapeCombineMask ();
28132 ;
28133 return 0;
28134}
28135_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028136if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028137 ac_cv_lib_Xext_XShapeCombineMask=yes
28138else
cristy8b350f62009-11-15 23:12:43 +000028139 ac_cv_lib_Xext_XShapeCombineMask=no
cristy3ed852e2009-09-05 21:47:34 +000028140fi
cristy8b350f62009-11-15 23:12:43 +000028141rm -f core conftest.err conftest.$ac_objext \
28142 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028143LIBS=$ac_check_lib_save_LIBS
28144fi
cristy8b350f62009-11-15 23:12:43 +000028145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
cristy3ed852e2009-09-05 21:47:34 +000028146$as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
cristyda16f162011-02-19 23:52:17 +000028147if test "x$ac_cv_lib_Xext_XShapeCombineMask" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028148 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000028149$as_echo "#define HAVE_SHAPE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028150
28151fi
28152
cristy8b350f62009-11-15 23:12:43 +000028153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
cristy3ed852e2009-09-05 21:47:34 +000028154$as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028155if ${ac_cv_lib_Xt_XtSetEventDispatcher+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028156 $as_echo_n "(cached) " >&6
28157else
28158 ac_check_lib_save_LIBS=$LIBS
28159LIBS="-lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028160cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028161/* end confdefs.h. */
28162
28163/* Override any GCC internal prototype to avoid an error.
28164 Use char because int might match the return type of a GCC
28165 builtin and then its argument prototype would still apply. */
28166#ifdef __cplusplus
28167extern "C"
28168#endif
28169char XtSetEventDispatcher ();
28170int
28171main ()
28172{
28173return XtSetEventDispatcher ();
28174 ;
28175 return 0;
28176}
28177_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028178if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028179 ac_cv_lib_Xt_XtSetEventDispatcher=yes
28180else
cristy8b350f62009-11-15 23:12:43 +000028181 ac_cv_lib_Xt_XtSetEventDispatcher=no
cristy3ed852e2009-09-05 21:47:34 +000028182fi
cristy8b350f62009-11-15 23:12:43 +000028183rm -f core conftest.err conftest.$ac_objext \
28184 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028185LIBS=$ac_check_lib_save_LIBS
28186fi
cristy8b350f62009-11-15 23:12:43 +000028187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
cristy3ed852e2009-09-05 21:47:34 +000028188$as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
cristyda16f162011-02-19 23:52:17 +000028189if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028190 XT_LIBS='-lXt'
28191fi
28192
28193 LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
28194fi
28195if test "$no_x" != 'yes'; then
28196 have_x='yes'
28197else
28198 have_x='no'
28199fi
cristy73bd4a52010-10-05 11:24:23 +000028200 if test "$have_x" = 'yes'; then
28201 X11_DELEGATE_TRUE=
28202 X11_DELEGATE_FALSE='#'
28203else
28204 X11_DELEGATE_TRUE='#'
28205 X11_DELEGATE_FALSE=
28206fi
28207
cristy3ed852e2009-09-05 21:47:34 +000028208
28209
28210
28211
28212#
28213# Check for ZLIB
28214#
28215
28216# Check whether --with-zlib was given.
cristy8b350f62009-11-15 23:12:43 +000028217if test "${with_zlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028218 withval=$with_zlib; with_zlib=$withval
28219else
28220 with_zlib='yes'
28221fi
28222
28223
28224if test "$with_zlib" != 'yes'; then
28225 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
28226fi
28227
28228have_zlib='no'
28229ZLIB_LIBS=''
28230if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000028231 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28232$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000028233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000028234$as_echo_n "checking for ZLIB... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028235 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28236$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028237 ZLIB_LIBS=''
28238 failed=0
28239 passed=0
cristy8b350f62009-11-15 23:12:43 +000028240 ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028241if test "x$ac_cv_header_zconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028242 passed=`expr $passed + 1`
28243else
28244 failed=`expr $failed + 1`
28245fi
28246
28247
cristy8b350f62009-11-15 23:12:43 +000028248 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028249if test "x$ac_cv_header_zlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028250 passed=`expr $passed + 1`
28251else
28252 failed=`expr $failed + 1`
28253fi
28254
28255
cristy8b350f62009-11-15 23:12:43 +000028256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028257$as_echo_n "checking for compress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028258if ${ac_cv_lib_z_compress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028259 $as_echo_n "(cached) " >&6
28260else
28261 ac_check_lib_save_LIBS=$LIBS
28262LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028263cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028264/* end confdefs.h. */
28265
28266/* Override any GCC internal prototype to avoid an error.
28267 Use char because int might match the return type of a GCC
28268 builtin and then its argument prototype would still apply. */
28269#ifdef __cplusplus
28270extern "C"
28271#endif
28272char compress ();
28273int
28274main ()
28275{
28276return compress ();
28277 ;
28278 return 0;
28279}
28280_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028281if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028282 ac_cv_lib_z_compress=yes
28283else
cristy8b350f62009-11-15 23:12:43 +000028284 ac_cv_lib_z_compress=no
cristy3ed852e2009-09-05 21:47:34 +000028285fi
cristy8b350f62009-11-15 23:12:43 +000028286rm -f core conftest.err conftest.$ac_objext \
28287 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028288LIBS=$ac_check_lib_save_LIBS
28289fi
cristy8b350f62009-11-15 23:12:43 +000028290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
cristy3ed852e2009-09-05 21:47:34 +000028291$as_echo "$ac_cv_lib_z_compress" >&6; }
cristyda16f162011-02-19 23:52:17 +000028292if test "x$ac_cv_lib_z_compress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028293 passed=`expr $passed + 1`
28294else
28295 failed=`expr $failed + 1`
28296fi
28297
cristy8b350f62009-11-15 23:12:43 +000028298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028299$as_echo_n "checking for uncompress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028300if ${ac_cv_lib_z_uncompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028301 $as_echo_n "(cached) " >&6
28302else
28303 ac_check_lib_save_LIBS=$LIBS
28304LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028305cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028306/* end confdefs.h. */
28307
28308/* Override any GCC internal prototype to avoid an error.
28309 Use char because int might match the return type of a GCC
28310 builtin and then its argument prototype would still apply. */
28311#ifdef __cplusplus
28312extern "C"
28313#endif
28314char uncompress ();
28315int
28316main ()
28317{
28318return uncompress ();
28319 ;
28320 return 0;
28321}
28322_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028323if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028324 ac_cv_lib_z_uncompress=yes
28325else
cristy8b350f62009-11-15 23:12:43 +000028326 ac_cv_lib_z_uncompress=no
cristy3ed852e2009-09-05 21:47:34 +000028327fi
cristy8b350f62009-11-15 23:12:43 +000028328rm -f core conftest.err conftest.$ac_objext \
28329 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028330LIBS=$ac_check_lib_save_LIBS
28331fi
cristy8b350f62009-11-15 23:12:43 +000028332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000028333$as_echo "$ac_cv_lib_z_uncompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000028334if test "x$ac_cv_lib_z_uncompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028335 passed=`expr $passed + 1`
28336else
28337 failed=`expr $failed + 1`
28338fi
28339
cristy8b350f62009-11-15 23:12:43 +000028340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028341$as_echo_n "checking for deflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028342if ${ac_cv_lib_z_deflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028343 $as_echo_n "(cached) " >&6
28344else
28345 ac_check_lib_save_LIBS=$LIBS
28346LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028347cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028348/* end confdefs.h. */
28349
28350/* Override any GCC internal prototype to avoid an error.
28351 Use char because int might match the return type of a GCC
28352 builtin and then its argument prototype would still apply. */
28353#ifdef __cplusplus
28354extern "C"
28355#endif
28356char deflate ();
28357int
28358main ()
28359{
28360return deflate ();
28361 ;
28362 return 0;
28363}
28364_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028365if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028366 ac_cv_lib_z_deflate=yes
28367else
cristy8b350f62009-11-15 23:12:43 +000028368 ac_cv_lib_z_deflate=no
cristy3ed852e2009-09-05 21:47:34 +000028369fi
cristy8b350f62009-11-15 23:12:43 +000028370rm -f core conftest.err conftest.$ac_objext \
28371 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028372LIBS=$ac_check_lib_save_LIBS
28373fi
cristy8b350f62009-11-15 23:12:43 +000028374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028375$as_echo "$ac_cv_lib_z_deflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000028376if test "x$ac_cv_lib_z_deflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028377 passed=`expr $passed + 1`
28378else
28379 failed=`expr $failed + 1`
28380fi
28381
cristy8b350f62009-11-15 23:12:43 +000028382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028383$as_echo_n "checking for inflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028384if ${ac_cv_lib_z_inflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028385 $as_echo_n "(cached) " >&6
28386else
28387 ac_check_lib_save_LIBS=$LIBS
28388LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028389cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028390/* end confdefs.h. */
28391
28392/* Override any GCC internal prototype to avoid an error.
28393 Use char because int might match the return type of a GCC
28394 builtin and then its argument prototype would still apply. */
28395#ifdef __cplusplus
28396extern "C"
28397#endif
28398char inflate ();
28399int
28400main ()
28401{
28402return inflate ();
28403 ;
28404 return 0;
28405}
28406_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028407if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028408 ac_cv_lib_z_inflate=yes
28409else
cristy8b350f62009-11-15 23:12:43 +000028410 ac_cv_lib_z_inflate=no
cristy3ed852e2009-09-05 21:47:34 +000028411fi
cristy8b350f62009-11-15 23:12:43 +000028412rm -f core conftest.err conftest.$ac_objext \
28413 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028414LIBS=$ac_check_lib_save_LIBS
28415fi
cristy8b350f62009-11-15 23:12:43 +000028416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028417$as_echo "$ac_cv_lib_z_inflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000028418if test "x$ac_cv_lib_z_inflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028419 passed=`expr $passed + 1`
28420else
28421 failed=`expr $failed + 1`
28422fi
28423
cristy8b350f62009-11-15 23:12:43 +000028424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028425$as_echo_n "checking for gzseek in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028426if ${ac_cv_lib_z_gzseek+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028427 $as_echo_n "(cached) " >&6
28428else
28429 ac_check_lib_save_LIBS=$LIBS
28430LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028431cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028432/* end confdefs.h. */
28433
28434/* Override any GCC internal prototype to avoid an error.
28435 Use char because int might match the return type of a GCC
28436 builtin and then its argument prototype would still apply. */
28437#ifdef __cplusplus
28438extern "C"
28439#endif
28440char gzseek ();
28441int
28442main ()
28443{
28444return gzseek ();
28445 ;
28446 return 0;
28447}
28448_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028449if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028450 ac_cv_lib_z_gzseek=yes
28451else
cristy8b350f62009-11-15 23:12:43 +000028452 ac_cv_lib_z_gzseek=no
cristy3ed852e2009-09-05 21:47:34 +000028453fi
cristy8b350f62009-11-15 23:12:43 +000028454rm -f core conftest.err conftest.$ac_objext \
28455 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028456LIBS=$ac_check_lib_save_LIBS
28457fi
cristy8b350f62009-11-15 23:12:43 +000028458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
cristy3ed852e2009-09-05 21:47:34 +000028459$as_echo "$ac_cv_lib_z_gzseek" >&6; }
cristyda16f162011-02-19 23:52:17 +000028460if test "x$ac_cv_lib_z_gzseek" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028461 passed=`expr $passed + 1`
28462else
28463 failed=`expr $failed + 1`
28464fi
28465
cristy8b350f62009-11-15 23:12:43 +000028466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028467$as_echo_n "checking for gztell in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028468if ${ac_cv_lib_z_gztell+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028469 $as_echo_n "(cached) " >&6
28470else
28471 ac_check_lib_save_LIBS=$LIBS
28472LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028473cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028474/* end confdefs.h. */
28475
28476/* Override any GCC internal prototype to avoid an error.
28477 Use char because int might match the return type of a GCC
28478 builtin and then its argument prototype would still apply. */
28479#ifdef __cplusplus
28480extern "C"
28481#endif
28482char gztell ();
28483int
28484main ()
28485{
28486return gztell ();
28487 ;
28488 return 0;
28489}
28490_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028491if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028492 ac_cv_lib_z_gztell=yes
28493else
cristy8b350f62009-11-15 23:12:43 +000028494 ac_cv_lib_z_gztell=no
cristy3ed852e2009-09-05 21:47:34 +000028495fi
cristy8b350f62009-11-15 23:12:43 +000028496rm -f core conftest.err conftest.$ac_objext \
28497 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028498LIBS=$ac_check_lib_save_LIBS
28499fi
cristy8b350f62009-11-15 23:12:43 +000028500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
cristy3ed852e2009-09-05 21:47:34 +000028501$as_echo "$ac_cv_lib_z_gztell" >&6; }
cristyda16f162011-02-19 23:52:17 +000028502if test "x$ac_cv_lib_z_gztell" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028503 passed=`expr $passed + 1`
28504else
28505 failed=`expr $failed + 1`
28506fi
28507
cristy8b350f62009-11-15 23:12:43 +000028508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028509$as_echo_n "checking if ZLIB package is complete... " >&6; }
28510 if test $passed -gt 0; then
28511 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000028512 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
28513$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028514 have_zlib='no (failed tests)'
28515 else
28516 ZLIB_LIBS='-lz'
28517 LIBS="$ZLIB_LIBS $LIBS"
28518
cristy8b350f62009-11-15 23:12:43 +000028519$as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028520
cristy09b53e12011-10-14 12:47:22 +000028521 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
28522$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028523 have_zlib='yes'
28524 fi
28525 else
cristy09b53e12011-10-14 12:47:22 +000028526 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
28527$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028528 fi
28529fi
cristy73bd4a52010-10-05 11:24:23 +000028530 if test "$have_zlib" = 'yes'; then
28531 ZLIB_DELEGATE_TRUE=
28532 ZLIB_DELEGATE_FALSE='#'
28533else
28534 ZLIB_DELEGATE_TRUE='#'
28535 ZLIB_DELEGATE_FALSE=
28536fi
28537
cristy3ed852e2009-09-05 21:47:34 +000028538
28539
28540#
28541# If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
28542#
28543LIB_DL=''
28544if test "$enable_profiling" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000028545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000028546$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028547if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028548 $as_echo_n "(cached) " >&6
28549else
28550 ac_check_lib_save_LIBS=$LIBS
28551LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028552cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028553/* end confdefs.h. */
28554
28555/* Override any GCC internal prototype to avoid an error.
28556 Use char because int might match the return type of a GCC
28557 builtin and then its argument prototype would still apply. */
28558#ifdef __cplusplus
28559extern "C"
28560#endif
28561char dlopen ();
28562int
28563main ()
28564{
28565return dlopen ();
28566 ;
28567 return 0;
28568}
28569_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028570if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028571 ac_cv_lib_dl_dlopen=yes
28572else
cristy8b350f62009-11-15 23:12:43 +000028573 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000028574fi
cristy8b350f62009-11-15 23:12:43 +000028575rm -f core conftest.err conftest.$ac_objext \
28576 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028577LIBS=$ac_check_lib_save_LIBS
28578fi
cristy8b350f62009-11-15 23:12:43 +000028579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000028580$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000028581if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028582 LIB_DL='-ldl'
28583fi
28584
28585 LIBS="$LIB_DL $LIBS"
28586fi
28587
28588
28589
28590#
28591# Check for Autotrace delegate library.
28592#
28593
28594# Check whether --with-autotrace was given.
cristy8b350f62009-11-15 23:12:43 +000028595if test "${with_autotrace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028596 withval=$with_autotrace; with_autotrace=$withval
28597else
28598 with_autotrace='no'
28599fi
28600
28601
28602if test "$with_autotrace" != 'yes'; then
28603 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
28604fi
28605
28606have_autotrace='no'
28607AUTOTRACE_CFLAGS=""
28608AUTOTRACE_LIBS=""
28609AUTOTRACE_PKG=""
28610if test "x$with_autotrace" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000028611 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28612$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000028613
28614pkg_failed=no
28615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
28616$as_echo_n "checking for AUTOTRACE... " >&6; }
28617
28618if test -n "$AUTOTRACE_CFLAGS"; then
28619 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
28620 elif test -n "$PKG_CONFIG"; then
28621 if test -n "$PKG_CONFIG" && \
28622 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
28623 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
28624 ac_status=$?
28625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28626 test $ac_status = 0; }; then
28627 pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
28628else
28629 pkg_failed=yes
28630fi
28631 else
28632 pkg_failed=untried
28633fi
28634if test -n "$AUTOTRACE_LIBS"; then
28635 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
28636 elif test -n "$PKG_CONFIG"; then
28637 if test -n "$PKG_CONFIG" && \
28638 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
28639 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
28640 ac_status=$?
28641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28642 test $ac_status = 0; }; then
28643 pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
28644else
28645 pkg_failed=yes
28646fi
28647 else
28648 pkg_failed=untried
28649fi
28650
28651
28652
28653if test $pkg_failed = yes; then
28654
28655if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28656 _pkg_short_errors_supported=yes
28657else
28658 _pkg_short_errors_supported=no
28659fi
28660 if test $_pkg_short_errors_supported = yes; then
28661 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1`
28662 else
28663 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1`
28664 fi
28665 # Put the nasty error message in config.log where it belongs
28666 echo "$AUTOTRACE_PKG_ERRORS" >&5
28667
28668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28669$as_echo "no" >&6; }
28670 have_autotrace=no
28671elif test $pkg_failed = untried; then
28672 have_autotrace=no
28673else
28674 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
28675 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
28676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28677$as_echo "yes" >&6; }
28678 have_autotrace=yes
28679fi
cristy09b53e12011-10-14 12:47:22 +000028680 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28681$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028682fi
28683
28684if test "$have_autotrace" = 'yes'; then
28685 failed=0
28686
cristy8b350f62009-11-15 23:12:43 +000028687$as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028688
28689 if test "$with_modules" = 'no'; then
28690 CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
28691 fi
28692fi
28693
cristy73bd4a52010-10-05 11:24:23 +000028694 if test "$have_autotrace" = 'yes'; then
28695 AUTOTRACE_DELEGATE_TRUE=
28696 AUTOTRACE_DELEGATE_FALSE='#'
28697else
28698 AUTOTRACE_DELEGATE_TRUE='#'
28699 AUTOTRACE_DELEGATE_FALSE=
28700fi
28701
cristy3ed852e2009-09-05 21:47:34 +000028702
28703
28704
28705
28706#
28707# Check for Display Postscript delegate library.
28708#
28709
28710# Check whether --with-dps was given.
cristy8b350f62009-11-15 23:12:43 +000028711if test "${with_dps+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028712 withval=$with_dps; with_dps=$withval
28713else
28714 with_dps='yes'
28715fi
28716
28717
28718if test "$with_dps" != 'yes'; then
28719 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
28720fi
28721
28722have_dps='no'
28723DPS_LIBS=''
28724if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000028725 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28726$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000028727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000028728$as_echo_n "checking for DPS... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028729 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28730$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028731 failed=0
28732 passed=0
28733 PERSIST_CPPFLAGS="$CPPFLAGS"
28734 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
cristy8b350f62009-11-15 23:12:43 +000028735 ac_fn_c_check_header_mongrel "$LINENO" "DPS/dpsXclient.h" "ac_cv_header_DPS_dpsXclient_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028736if test "x$ac_cv_header_DPS_dpsXclient_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028737 passed=`expr $passed + 1`
28738else
28739 failed=`expr $failed + 1`
28740fi
28741
28742
28743 # DPS issues:
28744 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
28745 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
28746 # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
28747 # ImageMagick itself doesn't use -lXt.
28748 have_libdps='no'
28749 LIBDPS_XT=''
cristy8b350f62009-11-15 23:12:43 +000028750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000028751$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028752if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028753 $as_echo_n "(cached) " >&6
28754else
28755 ac_check_lib_save_LIBS=$LIBS
28756LIBS="-ldps $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028757cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028758/* end confdefs.h. */
28759
28760/* Override any GCC internal prototype to avoid an error.
28761 Use char because int might match the return type of a GCC
28762 builtin and then its argument prototype would still apply. */
28763#ifdef __cplusplus
28764extern "C"
28765#endif
28766char DPSInitialize ();
28767int
28768main ()
28769{
28770return DPSInitialize ();
28771 ;
28772 return 0;
28773}
28774_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028775if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028776 ac_cv_lib_dps_DPSInitialize=yes
28777else
cristy8b350f62009-11-15 23:12:43 +000028778 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000028779fi
cristy8b350f62009-11-15 23:12:43 +000028780rm -f core conftest.err conftest.$ac_objext \
28781 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028782LIBS=$ac_check_lib_save_LIBS
28783fi
cristy8b350f62009-11-15 23:12:43 +000028784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000028785$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000028786if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028787 have_libdps='yes'
28788else
28789 have_libdps='no'
28790fi
28791
28792 if test "$have_libdps" != 'yes'; then
28793 # Unset cache variable so we can try again.
28794 unset ac_cv_lib_dps_DPSInitialize
cristy8b350f62009-11-15 23:12:43 +000028795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000028796$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028797if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028798 $as_echo_n "(cached) " >&6
28799else
28800 ac_check_lib_save_LIBS=$LIBS
28801LIBS="-ldps -lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028802cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028803/* end confdefs.h. */
28804
28805/* Override any GCC internal prototype to avoid an error.
28806 Use char because int might match the return type of a GCC
28807 builtin and then its argument prototype would still apply. */
28808#ifdef __cplusplus
28809extern "C"
28810#endif
28811char DPSInitialize ();
28812int
28813main ()
28814{
28815return DPSInitialize ();
28816 ;
28817 return 0;
28818}
28819_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028820if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028821 ac_cv_lib_dps_DPSInitialize=yes
28822else
cristy8b350f62009-11-15 23:12:43 +000028823 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000028824fi
cristy8b350f62009-11-15 23:12:43 +000028825rm -f core conftest.err conftest.$ac_objext \
28826 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028827LIBS=$ac_check_lib_save_LIBS
28828fi
cristy8b350f62009-11-15 23:12:43 +000028829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000028830$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000028831if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028832 have_libdps='yes'
28833else
28834 have_libdps='no'
28835fi
28836
28837 if test "$have_libdps" = 'yes'; then
28838 LIBDPS_XT='-lXt'
28839 fi
28840 fi
28841 if test "$have_libdps" = 'yes'; then
28842 passed=`expr $passed + 1`
28843 else
28844 failed=`expr $failed + 1`
28845 fi
cristy8b350f62009-11-15 23:12:43 +000028846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
cristy3ed852e2009-09-05 21:47:34 +000028847$as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028848if ${ac_cv_lib_dpstk_XDPSPixelsPerPoint+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028849 $as_echo_n "(cached) " >&6
28850else
28851 ac_check_lib_save_LIBS=$LIBS
28852LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028853cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028854/* end confdefs.h. */
28855
28856/* Override any GCC internal prototype to avoid an error.
28857 Use char because int might match the return type of a GCC
28858 builtin and then its argument prototype would still apply. */
28859#ifdef __cplusplus
28860extern "C"
28861#endif
28862char XDPSPixelsPerPoint ();
28863int
28864main ()
28865{
28866return XDPSPixelsPerPoint ();
28867 ;
28868 return 0;
28869}
28870_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028871if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028872 ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
28873else
cristy8b350f62009-11-15 23:12:43 +000028874 ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
cristy3ed852e2009-09-05 21:47:34 +000028875fi
cristy8b350f62009-11-15 23:12:43 +000028876rm -f core conftest.err conftest.$ac_objext \
28877 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028878LIBS=$ac_check_lib_save_LIBS
28879fi
cristy8b350f62009-11-15 23:12:43 +000028880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
cristy3ed852e2009-09-05 21:47:34 +000028881$as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
cristyda16f162011-02-19 23:52:17 +000028882if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028883 passed=`expr $passed + 1`
28884else
28885 failed=`expr $failed + 1`
28886fi
28887
cristy8b350f62009-11-15 23:12:43 +000028888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028889$as_echo_n "checking if DPS package is complete... " >&6; }
28890 if test $passed -gt 0; then
28891 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000028892 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
28893$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028894 have_dps='no (failed tests)'
28895 CPPFLAGS="$PERSIST_CPPFLAGS"
28896 else
28897 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
28898 LIBS="$DPS_LIBS $LIBS"
28899
cristy8b350f62009-11-15 23:12:43 +000028900$as_echo "#define DPS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028901
cristy09b53e12011-10-14 12:47:22 +000028902 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
28903$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028904 have_dps='yes'
28905 fi
28906 else
cristy09b53e12011-10-14 12:47:22 +000028907 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
28908$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028909 CPPFLAGS=$PERSIST_CPPFLAGS
28910 fi
28911fi
cristy73bd4a52010-10-05 11:24:23 +000028912 if test "$have_dps" = 'yes'; then
28913 DPS_DELEGATE_TRUE=
28914 DPS_DELEGATE_FALSE='#'
28915else
28916 DPS_DELEGATE_TRUE='#'
28917 DPS_DELEGATE_FALSE=
28918fi
28919
cristy3ed852e2009-09-05 21:47:34 +000028920
28921
28922
28923#
28924# Check for DJVU delegate library.
28925#
28926
28927# Check whether --with-djvu was given.
cristy8b350f62009-11-15 23:12:43 +000028928if test "${with_djvu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028929 withval=$with_djvu; with_djvu=$withval
28930else
28931 with_djvu='yes'
28932fi
28933
28934
28935if test "$with_djvu" != 'yes'; then
28936 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
28937fi
28938
28939have_djvu='no'
28940DJVU_LIBS=''
28941if test "$with_djvu" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000028942 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28943$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000028944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5
cristy3ed852e2009-09-05 21:47:34 +000028945$as_echo_n "checking for DJVU... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028946 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28947$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028948 failed=0
28949 passed=0
cristy8b350f62009-11-15 23:12:43 +000028950 ac_fn_c_check_header_mongrel "$LINENO" "libdjvu/ddjvuapi.h" "ac_cv_header_libdjvu_ddjvuapi_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028951if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028952 passed=`expr $passed + 1`
28953else
28954 failed=`expr $failed + 1`
28955fi
28956
28957
cristy8b350f62009-11-15 23:12:43 +000028958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_context_create in -ldjvulibre" >&5
cristy3ed852e2009-09-05 21:47:34 +000028959$as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028960if ${ac_cv_lib_djvulibre_ddjvu_context_create+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028961 $as_echo_n "(cached) " >&6
28962else
28963 ac_check_lib_save_LIBS=$LIBS
28964LIBS="-ldjvulibre $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028965cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028966/* end confdefs.h. */
28967
28968/* Override any GCC internal prototype to avoid an error.
28969 Use char because int might match the return type of a GCC
28970 builtin and then its argument prototype would still apply. */
28971#ifdef __cplusplus
28972extern "C"
28973#endif
28974char ddjvu_context_create ();
28975int
28976main ()
28977{
28978return ddjvu_context_create ();
28979 ;
28980 return 0;
28981}
28982_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028983if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028984 ac_cv_lib_djvulibre_ddjvu_context_create=yes
28985else
cristy8b350f62009-11-15 23:12:43 +000028986 ac_cv_lib_djvulibre_ddjvu_context_create=no
cristy3ed852e2009-09-05 21:47:34 +000028987fi
cristy8b350f62009-11-15 23:12:43 +000028988rm -f core conftest.err conftest.$ac_objext \
28989 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028990LIBS=$ac_check_lib_save_LIBS
28991fi
cristy8b350f62009-11-15 23:12:43 +000028992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
cristy3ed852e2009-09-05 21:47:34 +000028993$as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
cristyda16f162011-02-19 23:52:17 +000028994if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028995 passed=`expr $passed + 1`
28996else
28997 failed=`expr $failed + 1`
28998fi
28999
cristy8b350f62009-11-15 23:12:43 +000029000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DJVU package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029001$as_echo_n "checking if DJVU package is complete... " >&6; }
29002 if test $passed -gt 0; then
29003 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029004 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29005$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029006 have_djvu='no (failed tests)'
29007 else
29008 DJVU_LIBS='-ldjvulibre'
29009 LIBS="$DJVU_LIBS $LIBS"
29010
cristy8b350f62009-11-15 23:12:43 +000029011$as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029012
cristy09b53e12011-10-14 12:47:22 +000029013 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29014$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029015 have_djvu='yes'
29016 fi
29017 else
cristy09b53e12011-10-14 12:47:22 +000029018 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29019$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029020 fi
29021fi
cristy73bd4a52010-10-05 11:24:23 +000029022 if test "$have_djvu" = 'yes'; then
29023 DJVU_DELEGATE_TRUE=
29024 DJVU_DELEGATE_FALSE='#'
29025else
29026 DJVU_DELEGATE_TRUE='#'
29027 DJVU_DELEGATE_FALSE=
29028fi
29029
cristy3ed852e2009-09-05 21:47:34 +000029030
29031
29032
29033#
cristy430a7312010-01-21 20:44:04 +000029034# Set DejaVu font directory.
29035#
29036
29037# Check whether --with-dejavu-font-dir was given.
29038if test "${with_dejavu_font_dir+set}" = set; then :
29039 withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval
29040else
29041 with_dejavu_font_dir='default'
29042fi
29043
29044
29045if test "$with_dejavu_font_dir" != 'default'; then
29046 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir "
29047fi
29048
29049
29050#
cristy3ed852e2009-09-05 21:47:34 +000029051# Check for FFTW delegate library.
29052#
29053
29054# Check whether --with-fftw was given.
cristy8b350f62009-11-15 23:12:43 +000029055if test "${with_fftw+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029056 withval=$with_fftw; with_fftw=$withval
29057else
29058 with_fftw='yes'
29059fi
29060
29061
29062if test "$with_fftw" != 'yes'; then
29063 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
29064fi
29065
cristy81beccd2011-10-03 18:17:24 +000029066have_fftw='no'
29067FFTW_LIBS=''
29068if test "$with_fftw" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029069 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29070$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy81beccd2011-10-03 18:17:24 +000029071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5
29072$as_echo_n "checking for FFTW... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029073 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29074$as_echo "$as_me: " >&6;}
cristy81beccd2011-10-03 18:17:24 +000029075 failed=0
29076 passed=0
29077 ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
29078if test "x$ac_cv_header_fftw3_h" = xyes; then :
29079 passed=`expr $passed + 1`
29080else
29081 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000029082fi
29083
cristy81beccd2011-10-03 18:17:24 +000029084
29085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
29086$as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
29087if ${ac_cv_lib_fftw3_fftw_execute+:} false; then :
29088 $as_echo_n "(cached) " >&6
29089else
29090 ac_check_lib_save_LIBS=$LIBS
29091LIBS="-lfftw3 $LIBS"
29092cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29093/* end confdefs.h. */
29094
29095/* Override any GCC internal prototype to avoid an error.
29096 Use char because int might match the return type of a GCC
29097 builtin and then its argument prototype would still apply. */
29098#ifdef __cplusplus
29099extern "C"
29100#endif
29101char fftw_execute ();
29102int
29103main ()
29104{
29105return fftw_execute ();
29106 ;
29107 return 0;
29108}
29109_ACEOF
29110if ac_fn_c_try_link "$LINENO"; then :
29111 ac_cv_lib_fftw3_fftw_execute=yes
29112else
29113 ac_cv_lib_fftw3_fftw_execute=no
29114fi
29115rm -f core conftest.err conftest.$ac_objext \
29116 conftest$ac_exeext conftest.$ac_ext
29117LIBS=$ac_check_lib_save_LIBS
29118fi
29119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
29120$as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
29121if test "x$ac_cv_lib_fftw3_fftw_execute" = xyes; then :
29122 passed=`expr $passed + 1`
29123else
29124 failed=`expr $failed + 1`
29125fi
29126
29127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5
29128$as_echo_n "checking if FFTW package is complete... " >&6; }
29129 if test $passed -gt 0; then
29130 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029131 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29132$as_echo "$as_me: no -- some components failed test" >&6;}
cristy81beccd2011-10-03 18:17:24 +000029133 have_fftw='no (failed tests)'
29134 else
29135 FFTW_LIBS='-lfftw3'
29136 LIBS="$FFTW_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000029137
cristy8b350f62009-11-15 23:12:43 +000029138$as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029139
cristy09b53e12011-10-14 12:47:22 +000029140 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29141$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000029142 have_fftw='yes'
29143 fi
29144 else
cristy09b53e12011-10-14 12:47:22 +000029145 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29146$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029147 fi
29148fi
cristy73bd4a52010-10-05 11:24:23 +000029149 if test "$have_fftw" = 'yes'; then
29150 FFTW_DELEGATE_TRUE=
29151 FFTW_DELEGATE_FALSE='#'
29152else
29153 FFTW_DELEGATE_TRUE='#'
29154 FFTW_DELEGATE_FALSE=
29155fi
29156
cristy3ed852e2009-09-05 21:47:34 +000029157
29158
29159
29160#
29161# Check for FlashPIX delegate library.
29162#
29163
29164# Check whether --with-fpx was given.
cristy8b350f62009-11-15 23:12:43 +000029165if test "${with_fpx+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029166 withval=$with_fpx; with_fpx=$withval
29167else
29168 with_fpx='yes'
29169fi
29170
29171
29172if test "$with_fpx" != 'yes'; then
29173 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
29174fi
29175
29176have_fpx='no'
29177FPX_LIBS=''
29178if test "$with_fpx" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029179 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29180$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000029181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
cristy3ed852e2009-09-05 21:47:34 +000029182$as_echo_n "checking for FlashPIX... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029183 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29184$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029185 failed=0
29186 passed=0
29187 ac_ext=cpp
29188ac_cpp='$CXXCPP $CPPFLAGS'
29189ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29190ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29191ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29192
29193
cristy8b350f62009-11-15 23:12:43 +000029194ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029195if test "x$ac_cv_header_fpxlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029196 passed=`expr $passed + 1`
29197else
29198 failed=`expr $failed + 1`
29199fi
29200
29201
cristy8b350f62009-11-15 23:12:43 +000029202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
cristy3ed852e2009-09-05 21:47:34 +000029203$as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029204if ${ac_cv_lib_fpx_FPX_OpenImageByFilename+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029205 $as_echo_n "(cached) " >&6
29206else
29207 ac_check_lib_save_LIBS=$LIBS
29208LIBS="-lfpx $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029209cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029210/* end confdefs.h. */
29211
29212/* Override any GCC internal prototype to avoid an error.
29213 Use char because int might match the return type of a GCC
29214 builtin and then its argument prototype would still apply. */
29215#ifdef __cplusplus
29216extern "C"
29217#endif
29218char FPX_OpenImageByFilename ();
29219int
29220main ()
29221{
29222return FPX_OpenImageByFilename ();
29223 ;
29224 return 0;
29225}
29226_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029227if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029228 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
29229else
cristy8b350f62009-11-15 23:12:43 +000029230 ac_cv_lib_fpx_FPX_OpenImageByFilename=no
cristy3ed852e2009-09-05 21:47:34 +000029231fi
cristy8b350f62009-11-15 23:12:43 +000029232rm -f core conftest.err conftest.$ac_objext \
29233 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029234LIBS=$ac_check_lib_save_LIBS
29235fi
cristy8b350f62009-11-15 23:12:43 +000029236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
cristy3ed852e2009-09-05 21:47:34 +000029237$as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
cristyda16f162011-02-19 23:52:17 +000029238if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029239 passed=`expr $passed + 1`
29240else
29241 failed=`expr $failed + 1`
29242fi
29243
29244 ac_ext=c
29245ac_cpp='$CPP $CPPFLAGS'
29246ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29247ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29248ac_compiler_gnu=$ac_cv_c_compiler_gnu
29249
cristy8b350f62009-11-15 23:12:43 +000029250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029251$as_echo_n "checking if FlashPIX package is complete... " >&6; }
29252 if test $passed -gt 0; then
29253 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029254 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29255$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029256 have_fpx='no (failed tests)'
29257 else
29258 FPX_LIBS='-lfpx'
29259
cristy8b350f62009-11-15 23:12:43 +000029260$as_echo "#define FPX_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029261
cristy09b53e12011-10-14 12:47:22 +000029262 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29263$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029264 have_fpx='yes'
29265 PERLMAINCC="$CXX"
29266 fi
29267 else
cristy09b53e12011-10-14 12:47:22 +000029268 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29269$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029270 fi
29271fi
cristy73bd4a52010-10-05 11:24:23 +000029272 if test "$have_fpx" = 'yes'; then
29273 FPX_DELEGATE_TRUE=
29274 FPX_DELEGATE_FALSE='#'
29275else
29276 FPX_DELEGATE_TRUE='#'
29277 FPX_DELEGATE_FALSE=
29278fi
29279
cristy3ed852e2009-09-05 21:47:34 +000029280
29281
29282
29283#
29284# Check for fontconfig delegate library.
29285#
29286
29287# Check whether --with-fontconfig was given.
cristy8b350f62009-11-15 23:12:43 +000029288if test "${with_fontconfig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029289 withval=$with_fontconfig; with_fontconfig=$withval
29290else
cristyfc3d0222012-02-07 15:05:57 +000029291 with_fontconfig='yes'
cristy3ed852e2009-09-05 21:47:34 +000029292fi
29293
29294
29295if test "$with_fontconfig" != 'yes'; then
29296 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
29297fi
29298
29299have_fontconfig='no'
29300FONTCONFIG_CFLAGS=""
29301FONTCONFIG_LIBS=""
29302FONTCONFIG_PKG=""
29303if test "x$with_fontconfig" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000029304 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29305$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000029306
29307pkg_failed=no
29308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
29309$as_echo_n "checking for FONTCONFIG... " >&6; }
29310
29311if test -n "$FONTCONFIG_CFLAGS"; then
29312 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
29313 elif test -n "$PKG_CONFIG"; then
29314 if test -n "$PKG_CONFIG" && \
29315 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
29316 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
29317 ac_status=$?
29318 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29319 test $ac_status = 0; }; then
29320 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
29321else
29322 pkg_failed=yes
29323fi
29324 else
29325 pkg_failed=untried
29326fi
29327if test -n "$FONTCONFIG_LIBS"; then
29328 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
29329 elif test -n "$PKG_CONFIG"; then
29330 if test -n "$PKG_CONFIG" && \
29331 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
29332 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
29333 ac_status=$?
29334 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29335 test $ac_status = 0; }; then
29336 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
29337else
29338 pkg_failed=yes
29339fi
29340 else
29341 pkg_failed=untried
29342fi
29343
29344
29345
29346if test $pkg_failed = yes; then
29347
29348if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29349 _pkg_short_errors_supported=yes
29350else
29351 _pkg_short_errors_supported=no
29352fi
29353 if test $_pkg_short_errors_supported = yes; then
29354 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1`
29355 else
29356 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1`
29357 fi
29358 # Put the nasty error message in config.log where it belongs
29359 echo "$FONTCONFIG_PKG_ERRORS" >&5
29360
29361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29362$as_echo "no" >&6; }
29363 have_fontconfig=no
29364elif test $pkg_failed = untried; then
29365 have_fontconfig=no
29366else
29367 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
29368 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
29369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29370$as_echo "yes" >&6; }
29371 have_fontconfig=yes
29372fi
cristy09b53e12011-10-14 12:47:22 +000029373 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29374$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029375fi
29376
29377if test "$have_fontconfig" = 'yes'; then
29378
cristy8b350f62009-11-15 23:12:43 +000029379$as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029380
cristyd09bcf92010-03-25 03:04:45 +000029381 if test "$with_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000029382 CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
cristyd09bcf92010-03-25 03:04:45 +000029383 fi
cristy3ed852e2009-09-05 21:47:34 +000029384fi
29385
cristy73bd4a52010-10-05 11:24:23 +000029386 if test "$have_fontconfig" = 'yes'; then
29387 FONTCONFIG_DELEGATE_TRUE=
29388 FONTCONFIG_DELEGATE_FALSE='#'
29389else
29390 FONTCONFIG_DELEGATE_TRUE='#'
29391 FONTCONFIG_DELEGATE_FALSE=
29392fi
29393
cristy3ed852e2009-09-05 21:47:34 +000029394
29395
29396
29397
29398#
cristy81beccd2011-10-03 18:17:24 +000029399# Check for freetype delegate library.
cristy3ed852e2009-09-05 21:47:34 +000029400#
29401
29402# Check whether --with-freetype was given.
cristy8b350f62009-11-15 23:12:43 +000029403if test "${with_freetype+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029404 withval=$with_freetype; with_freetype=$withval
29405else
29406 with_freetype='yes'
29407fi
29408
29409
cristy81beccd2011-10-03 18:17:24 +000029410
cristy3ed852e2009-09-05 21:47:34 +000029411if test "$with_freetype" != 'yes'; then
29412 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
29413fi
29414
cristy81beccd2011-10-03 18:17:24 +000029415have_freetype='no'
29416FREETYPE_LIBS=''
29417if test "$with_freetype" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029418 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29419$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy98ca0f52011-10-08 23:19:10 +000029420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeType 2.0 " >&5
29421$as_echo_n "checking for FreeType 2.0 ... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029422 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29423$as_echo "$as_me: " >&6;}
cristy81beccd2011-10-03 18:17:24 +000029424 failed=0
29425 passed=0
cristy98ca0f52011-10-08 23:19:10 +000029426 PERSIST_LDFLAGS="$LDFLAGS"
cristy81beccd2011-10-03 18:17:24 +000029427 PERSIST_CPPFLAGS="$CPPFLAGS"
cristy98ca0f52011-10-08 23:19:10 +000029428 freetype_config=''
29429 # Allow the user to specify the location of freetype.
29430 if test "$with_freetype" != 'yes'; then
29431 if test -x "${with_freetype}/bin/freetype-config"; then
29432 freetype_config="${with_freetype}/bin/freetype-config"
29433 elif test -x "${with_freetype}"; then
29434 freetype_config=${with_freetype}
29435 fi
29436 fi
29437 if test -z "$freetype_config"; then
29438 # Extract the first word of "freetype-config", so it can be a program name with args.
29439set dummy freetype-config; ac_word=$2
cristy81beccd2011-10-03 18:17:24 +000029440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29441$as_echo_n "checking for $ac_word... " >&6; }
cristy98ca0f52011-10-08 23:19:10 +000029442if ${ac_cv_path_freetype_config+:} false; then :
cristy81beccd2011-10-03 18:17:24 +000029443 $as_echo_n "(cached) " >&6
29444else
cristy98ca0f52011-10-08 23:19:10 +000029445 case $freetype_config in
29446 [\\/]* | ?:[\\/]*)
29447 ac_cv_path_freetype_config="$freetype_config" # Let the user override the test with a path.
29448 ;;
29449 *)
29450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cristy81beccd2011-10-03 18:17:24 +000029451for as_dir in $PATH
29452do
29453 IFS=$as_save_IFS
29454 test -z "$as_dir" && as_dir=.
29455 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000029456 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy98ca0f52011-10-08 23:19:10 +000029457 ac_cv_path_freetype_config="$as_dir/$ac_word$ac_exec_ext"
cristy81beccd2011-10-03 18:17:24 +000029458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29459 break 2
29460 fi
29461done
29462 done
29463IFS=$as_save_IFS
29464
cristy98ca0f52011-10-08 23:19:10 +000029465 ;;
29466esac
cristy81beccd2011-10-03 18:17:24 +000029467fi
cristy98ca0f52011-10-08 23:19:10 +000029468freetype_config=$ac_cv_path_freetype_config
cristy81beccd2011-10-03 18:17:24 +000029469if test -n "$freetype_config"; then
29470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $freetype_config" >&5
29471$as_echo "$freetype_config" >&6; }
29472else
29473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29474$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029475fi
29476
cristy98ca0f52011-10-08 23:19:10 +000029477 fi
29478 if test -n "$freetype_config"; then
29479 freetype_prefix=`${freetype_config} --prefix`
29480 freetype_exec_prefix=`${freetype_config} --exec-prefix`
29481 LDFLAGS="$LDFLAGS -L${freetype_exec_prefix}/lib"
29482 CPPFLAGS="$CPPFLAGS -I${freetype_prefix}/include/freetype2"
cristy81beccd2011-10-03 18:17:24 +000029483 fi
29484
29485 if test "$FREETYPE_LIBS" = ''; then
cristy98ca0f52011-10-08 23:19:10 +000029486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_Init_FreeType in -lfreetype" >&5
cristy81beccd2011-10-03 18:17:24 +000029487$as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; }
29488if ${ac_cv_lib_freetype_FT_Init_FreeType+:} false; then :
29489 $as_echo_n "(cached) " >&6
29490else
29491 ac_check_lib_save_LIBS=$LIBS
29492LIBS="-lfreetype $LIBS"
29493cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29494/* end confdefs.h. */
29495
29496/* Override any GCC internal prototype to avoid an error.
29497 Use char because int might match the return type of a GCC
29498 builtin and then its argument prototype would still apply. */
29499#ifdef __cplusplus
29500extern "C"
29501#endif
29502char FT_Init_FreeType ();
29503int
29504main ()
29505{
29506return FT_Init_FreeType ();
29507 ;
29508 return 0;
29509}
29510_ACEOF
29511if ac_fn_c_try_link "$LINENO"; then :
29512 ac_cv_lib_freetype_FT_Init_FreeType=yes
29513else
29514 ac_cv_lib_freetype_FT_Init_FreeType=no
29515fi
29516rm -f core conftest.err conftest.$ac_objext \
29517 conftest$ac_exeext conftest.$ac_ext
29518LIBS=$ac_check_lib_save_LIBS
29519fi
29520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
29521$as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
29522if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = xyes; then :
29523 FREETYPE_LIBS='-lfreetype'
29524fi
29525
cristy98ca0f52011-10-08 23:19:10 +000029526 if test "$FREETYPE_LIBS" != ''; then
29527 passed=`expr $passed + 1`
29528 else
29529 failed=`expr $failed + 1`
29530 LDFLAGS="$PERSIST_LDFLAGS"
29531 fi
cristy81beccd2011-10-03 18:17:24 +000029532 fi
29533
29534 ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
29535if test "x$ac_cv_header_ft2build_h" = xyes; then :
29536 FT2BUILD_H='#include <ft2build.h>'
29537else
29538 ft2build=''
29539fi
29540
29541
29542 ac_fn_c_check_header_compile "$LINENO" "freetype/freetype.h" "ac_cv_header_freetype_freetype_h" "$FT2BUILD_H
29543"
29544if test "x$ac_cv_header_freetype_freetype_h" = xyes; then :
29545 have_freetype_h='yes'
29546else
29547 have_freetype_h='no'
29548fi
29549
29550
cristy98ca0f52011-10-08 23:19:10 +000029551 if test "$have_freetype_h" = 'yes'; then
29552 passed=`expr $passed + 1`
cristy81beccd2011-10-03 18:17:24 +000029553 else
cristy98ca0f52011-10-08 23:19:10 +000029554 failed=`expr $failed + 1`
29555 CPPFLAGS="$PERSIST_CPPFLAGS"
cristy81beccd2011-10-03 18:17:24 +000029556 fi
29557
29558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FreeType package is complete" >&5
29559$as_echo_n "checking if FreeType package is complete... " >&6; }
29560 if test $passed -gt 0; then
cristy98ca0f52011-10-08 23:19:10 +000029561 if test $failed -gt 0; then
29562 FREETYPE_LIBS=''
cristy09b53e12011-10-14 12:47:22 +000029563 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29564$as_echo "$as_me: no -- some components failed test" >&6;}
cristy98ca0f52011-10-08 23:19:10 +000029565 have_freetype='no (failed tests)'
29566 else
29567 LIBS="$FREETYPE_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000029568
cristy8b350f62009-11-15 23:12:43 +000029569$as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029570
cristy98ca0f52011-10-08 23:19:10 +000029571 if test "$ac_cv_header_ft2build_h" = 'yes'; then
cristy81beccd2011-10-03 18:17:24 +000029572
29573$as_echo "#define HAVE_FT2BUILD_H 1" >>confdefs.h
29574
cristy81beccd2011-10-03 18:17:24 +000029575 fi
cristy09b53e12011-10-14 12:47:22 +000029576 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29577$as_echo "$as_me: yes" >&6;}
cristy98ca0f52011-10-08 23:19:10 +000029578 have_freetype='yes'
29579 fi
cristy81beccd2011-10-03 18:17:24 +000029580 else
cristy09b53e12011-10-14 12:47:22 +000029581 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29582$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029583 fi
29584fi
cristy73bd4a52010-10-05 11:24:23 +000029585 if test "$have_freetype" = 'yes'; then
29586 FREETYPE_DELEGATE_TRUE=
29587 FREETYPE_DELEGATE_FALSE='#'
29588else
29589 FREETYPE_DELEGATE_TRUE='#'
29590 FREETYPE_DELEGATE_FALSE=
29591fi
29592
cristy3ed852e2009-09-05 21:47:34 +000029593
29594
29595
cristy3ed852e2009-09-05 21:47:34 +000029596#
29597# Check for Ghostscript library or framework.
29598#
29599# Test for iapi.h & test for gsapi_new_instance in -lgs
29600# or -framework Ghostscript
29601
29602
29603# Check whether --with-gslib was given.
cristy8b350f62009-11-15 23:12:43 +000029604if test "${with_gslib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029605 withval=$with_gslib; with_gslib=$withval
29606else
29607 with_gslib='no'
29608fi
29609
29610
cristyb7931f12009-09-25 10:22:21 +000029611gslib_framework='no'
cristy3ed852e2009-09-05 21:47:34 +000029612if test "$with_gslib" != 'yes'; then
29613 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
29614fi
29615
29616have_gslib='no'
29617GS_LIBS=''
29618if test "$with_gslib" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029619 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29620$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000029621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000029622$as_echo_n "checking for Ghostscript... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029623 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29624$as_echo "$as_me: " >&6;}
cristyb7931f12009-09-25 10:22:21 +000029625 framework=0
cristy3ed852e2009-09-05 21:47:34 +000029626 failed=0
29627 passed=0
cristy8b350f62009-11-15 23:12:43 +000029628 ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/iapi.h" "ac_cv_header_ghostscript_iapi_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029629if test "x$ac_cv_header_ghostscript_iapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029630 passed=`expr $passed + 1`
29631else
29632 failed=`expr $failed + 1`
29633fi
29634
29635
cristy8b350f62009-11-15 23:12:43 +000029636 ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/ierrors.h" "ac_cv_header_ghostscript_ierrors_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029637if test "x$ac_cv_header_ghostscript_ierrors_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029638 passed=`expr $passed + 1`
29639else
29640 failed=`expr $failed + 1`
29641fi
29642
29643
cristy73bd4a52010-10-05 11:24:23 +000029644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
29645$as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029646if ${ac_cv_framework_Ghostscript_gsapi_new_instance+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000029647 $as_echo_n "(cached) " >&6
29648else
29649 ac_check_framework_save_LIBS=$LIBS
29650LIBS="-framework Ghostscript $LIBS"
29651cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29652/* end confdefs.h. */
29653
29654/* Override any GCC internal prototype to avoid an error.
29655 Use char because int might match the return type of a GCC
29656 builtin and then its argument prototype would still apply. */
29657#ifdef __cplusplus
29658extern "C"
29659#endif
29660char gsapi_new_instance ();
29661int
29662main ()
29663{
29664return gsapi_new_instance ();
29665 ;
29666 return 0;
29667}
29668_ACEOF
29669if ac_fn_c_try_link "$LINENO"; then :
29670 ac_cv_framework_Ghostscript_gsapi_new_instance=yes
29671else
29672 ac_cv_framework_Ghostscript_gsapi_new_instance=no
29673fi
29674rm -f core conftest.err conftest.$ac_objext \
29675 conftest$ac_exeext conftest.$ac_ext
29676LIBS=$ac_check_framework_save_LIBS
29677fi
29678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
29679$as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
29680if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
29681 framework=`expr $framework + 1`
29682else
29683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
cristy3ed852e2009-09-05 21:47:34 +000029684$as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029685if ${ac_cv_lib_gs_gsapi_new_instance+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029686 $as_echo_n "(cached) " >&6
29687else
29688 ac_check_lib_save_LIBS=$LIBS
29689LIBS="-lgs $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029690cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029691/* end confdefs.h. */
29692
29693/* Override any GCC internal prototype to avoid an error.
29694 Use char because int might match the return type of a GCC
29695 builtin and then its argument prototype would still apply. */
29696#ifdef __cplusplus
29697extern "C"
29698#endif
29699char gsapi_new_instance ();
29700int
29701main ()
29702{
29703return gsapi_new_instance ();
29704 ;
29705 return 0;
29706}
29707_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029708if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029709 ac_cv_lib_gs_gsapi_new_instance=yes
29710else
cristy8b350f62009-11-15 23:12:43 +000029711 ac_cv_lib_gs_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000029712fi
cristy8b350f62009-11-15 23:12:43 +000029713rm -f core conftest.err conftest.$ac_objext \
29714 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029715LIBS=$ac_check_lib_save_LIBS
29716fi
cristy8b350f62009-11-15 23:12:43 +000029717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000029718$as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
cristyda16f162011-02-19 23:52:17 +000029719if test "x$ac_cv_lib_gs_gsapi_new_instance" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029720 passed=`expr $passed + 1`
29721else
29722 failed=`expr $failed + 1`
29723fi
cristy73bd4a52010-10-05 11:24:23 +000029724
29725fi
cristy8b350f62009-11-15 23:12:43 +000029726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029727$as_echo_n "checking if Ghostscript package is complete... " >&6; }
29728 if test $passed -gt 0; then
29729 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029730 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29731$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029732 have_gslib='no (failed tests)'
29733 else
29734 if test $framework -gt 0; then
29735 GS_LIBS='-framework Ghostscript'
cristyb7931f12009-09-25 10:22:21 +000029736 gslib_framework='yes'
cristy09b53e12011-10-14 12:47:22 +000029737 { $as_echo "$as_me:${as_lineno-$LINENO}: yes, using framework." >&5
29738$as_echo "$as_me: yes, using framework." >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029739 else
cristy09b53e12011-10-14 12:47:22 +000029740 { $as_echo "$as_me:${as_lineno-$LINENO}: yes, using library." >&5
29741$as_echo "$as_me: yes, using library." >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029742 GS_LIBS='-lgs'
29743 fi
29744 LIBS="$GS_LIBS $LIBS"
29745
cristy8b350f62009-11-15 23:12:43 +000029746$as_echo "#define GS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029747
29748 have_gslib='yes'
29749 fi
29750 else
cristy09b53e12011-10-14 12:47:22 +000029751 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29752$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029753 fi
29754fi
cristy73bd4a52010-10-05 11:24:23 +000029755 if test "$have_gslib" = 'yes'; then
29756 GS_DELEGATE_TRUE=
29757 GS_DELEGATE_FALSE='#'
29758else
29759 GS_DELEGATE_TRUE='#'
29760 GS_DELEGATE_FALSE=
29761fi
29762
cristy3ed852e2009-09-05 21:47:34 +000029763
29764
29765# Set default font search path
29766
29767# Check whether --with-fontpath was given.
cristy8b350f62009-11-15 23:12:43 +000029768if test "${with_fontpath+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029769 withval=$with_fontpath; with_fontpath=$withval
29770else
29771 with_fontpath=''
29772fi
29773
29774
29775if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
29776 with_fontpath=''
29777else
29778
29779cat >>confdefs.h <<_ACEOF
29780#define MAGICK_FONT_PATH "$with_fontpath"
29781_ACEOF
29782
29783fi
29784if test "$with_fontpath=" != ''; then
29785 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
29786fi
29787
29788# Set Ghostscript font directory
29789
29790# Check whether --with-gs-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000029791if test "${with_gs_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029792 withval=$with_gs_font_dir; with_gs_font_dir=$withval
29793else
29794 with_gs_font_dir='default'
29795fi
29796
29797
29798if test "$with_gs_font_dir" != 'default'; then
29799 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
29800fi
29801
29802
29803#
29804# Check for GVC delegate library.
29805#
29806
29807# Check whether --with-gvc was given.
cristy8b350f62009-11-15 23:12:43 +000029808if test "${with_gvc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029809 withval=$with_gvc; with_gvc=$withval
29810else
29811 with_gvc='yes'
29812fi
29813
29814
29815if test "$with_gvc" != 'yes'; then
29816 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
29817fi
29818
29819GVC_PKG=""
29820if test "x$with_gvc" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000029821 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29822$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000029823
29824pkg_failed=no
29825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
29826$as_echo_n "checking for GVC... " >&6; }
29827
29828if test -n "$GVC_CFLAGS"; then
29829 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
29830 elif test -n "$PKG_CONFIG"; then
29831 if test -n "$PKG_CONFIG" && \
29832 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
29833 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
29834 ac_status=$?
29835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29836 test $ac_status = 0; }; then
29837 pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
29838else
29839 pkg_failed=yes
29840fi
29841 else
29842 pkg_failed=untried
29843fi
29844if test -n "$GVC_LIBS"; then
29845 pkg_cv_GVC_LIBS="$GVC_LIBS"
29846 elif test -n "$PKG_CONFIG"; then
29847 if test -n "$PKG_CONFIG" && \
29848 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
29849 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
29850 ac_status=$?
29851 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29852 test $ac_status = 0; }; then
29853 pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
29854else
29855 pkg_failed=yes
29856fi
29857 else
29858 pkg_failed=untried
29859fi
29860
29861
29862
29863if test $pkg_failed = yes; then
29864
29865if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29866 _pkg_short_errors_supported=yes
29867else
29868 _pkg_short_errors_supported=no
29869fi
29870 if test $_pkg_short_errors_supported = yes; then
29871 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1`
29872 else
29873 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1`
29874 fi
29875 # Put the nasty error message in config.log where it belongs
29876 echo "$GVC_PKG_ERRORS" >&5
29877
29878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29879$as_echo "no" >&6; }
29880 have_gvc=no
29881elif test $pkg_failed = untried; then
29882 have_gvc=no
29883else
29884 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
29885 GVC_LIBS=$pkg_cv_GVC_LIBS
29886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29887$as_echo "yes" >&6; }
29888 have_gvc=yes
29889fi
cristy09b53e12011-10-14 12:47:22 +000029890 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29891$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029892fi
29893
29894if test "$have_gvc" = 'yes'; then
29895
cristy8b350f62009-11-15 23:12:43 +000029896$as_echo "#define GVC_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029897
29898 if test "$with_modules" = 'no'; then
29899 CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
29900 fi
29901fi
29902
cristy73bd4a52010-10-05 11:24:23 +000029903 if test "$have_gvc" = 'yes'; then
29904 GVC_DELEGATE_TRUE=
29905 GVC_DELEGATE_FALSE='#'
29906else
29907 GVC_DELEGATE_TRUE='#'
29908 GVC_DELEGATE_FALSE=
29909fi
29910
cristy3ed852e2009-09-05 21:47:34 +000029911
29912
29913
29914
29915#
29916# Check for JBIG delegate library.
29917#
29918
29919
29920# Check whether --with-jbig was given.
cristy8b350f62009-11-15 23:12:43 +000029921if test "${with_jbig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029922 withval=$with_jbig; with_jbig=$withval
29923else
29924 with_jbig='yes'
29925fi
29926
29927
29928have_jbig='no'
29929JBIG_LIBS=''
29930if test "$with_jbig" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029931 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29932$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000029933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000029934$as_echo_n "checking for JBIG... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029935 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29936$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029937 failed=0
29938 passed=0
cristy8b350f62009-11-15 23:12:43 +000029939 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029940if test "x$ac_cv_header_jbig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029941 passed=`expr $passed + 1`
29942else
29943 failed=`expr $failed + 1`
29944fi
29945
29946
cristy8b350f62009-11-15 23:12:43 +000029947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
cristy3ed852e2009-09-05 21:47:34 +000029948$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029949if ${ac_cv_lib_jbig_jbg_dec_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029950 $as_echo_n "(cached) " >&6
29951else
29952 ac_check_lib_save_LIBS=$LIBS
29953LIBS="-ljbig $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029954cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029955/* end confdefs.h. */
29956
29957/* Override any GCC internal prototype to avoid an error.
29958 Use char because int might match the return type of a GCC
29959 builtin and then its argument prototype would still apply. */
29960#ifdef __cplusplus
29961extern "C"
29962#endif
29963char jbg_dec_init ();
29964int
29965main ()
29966{
29967return jbg_dec_init ();
29968 ;
29969 return 0;
29970}
29971_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029972if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029973 ac_cv_lib_jbig_jbg_dec_init=yes
29974else
cristy8b350f62009-11-15 23:12:43 +000029975 ac_cv_lib_jbig_jbg_dec_init=no
cristy3ed852e2009-09-05 21:47:34 +000029976fi
cristy8b350f62009-11-15 23:12:43 +000029977rm -f core conftest.err conftest.$ac_objext \
29978 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029979LIBS=$ac_check_lib_save_LIBS
29980fi
cristy8b350f62009-11-15 23:12:43 +000029981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000029982$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000029983if test "x$ac_cv_lib_jbig_jbg_dec_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029984 passed=`expr $passed + 1`
29985else
29986 failed=`expr $failed + 1`
29987fi
29988
cristy8b350f62009-11-15 23:12:43 +000029989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029990$as_echo_n "checking if JBIG package is complete... " >&6; }
29991 if test $passed -gt 0; then
29992 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029993 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29994$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029995 have_jbig='no (failed tests)'
29996 else
29997 JBIG_LIBS='-ljbig'
29998 LIBS="$JBIG_LIBS $LIBS"
29999
cristy8b350f62009-11-15 23:12:43 +000030000$as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030001
cristy09b53e12011-10-14 12:47:22 +000030002 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30003$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030004 have_jbig='yes'
30005 fi
30006 else
cristy09b53e12011-10-14 12:47:22 +000030007 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
30008$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030009 fi
30010fi
cristy73bd4a52010-10-05 11:24:23 +000030011 if test "$have_jbig" = 'yes'; then
30012 JBIG_DELEGATE_TRUE=
30013 JBIG_DELEGATE_FALSE='#'
30014else
30015 JBIG_DELEGATE_TRUE='#'
30016 JBIG_DELEGATE_FALSE=
30017fi
30018
cristy3ed852e2009-09-05 21:47:34 +000030019
30020
30021
30022#
30023# Check for JPEG delegate library.
30024#
30025
30026# Check whether --with-jpeg was given.
cristy8b350f62009-11-15 23:12:43 +000030027if test "${with_jpeg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030028 withval=$with_jpeg; with_jpeg=$withval
30029else
30030 with_jpeg='yes'
30031fi
30032
30033
30034if test "$with_jpeg" != 'yes'; then
30035 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
30036fi
30037
30038have_jpeg='no'
30039JPEG_LIBS=''
30040if test "$with_jpeg" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000030041 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30042$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000030043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
cristy3ed852e2009-09-05 21:47:34 +000030044$as_echo_n "checking for JPEG... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000030045 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30046$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030047 failed=0
30048 passed=0
cristy8b350f62009-11-15 23:12:43 +000030049 ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030050if test "x$ac_cv_header_jconfig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030051 passed=`expr $passed + 1`
30052else
30053 failed=`expr $failed + 1`
30054fi
30055
30056
cristy8b350f62009-11-15 23:12:43 +000030057 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030058if test "x$ac_cv_header_jerror_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030059 passed=`expr $passed + 1`
30060else
30061 failed=`expr $failed + 1`
30062fi
30063
30064
cristy8b350f62009-11-15 23:12:43 +000030065 ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030066if test "x$ac_cv_header_jmorecfg_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030067 passed=`expr $passed + 1`
30068else
30069 failed=`expr $failed + 1`
30070fi
30071
30072
cristy8b350f62009-11-15 23:12:43 +000030073 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030074if test "x$ac_cv_header_jpeglib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030075 passed=`expr $passed + 1`
30076else
30077 failed=`expr $failed + 1`
30078fi
30079
30080
cristy8b350f62009-11-15 23:12:43 +000030081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
cristy3ed852e2009-09-05 21:47:34 +000030082$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030083if ${ac_cv_lib_jpeg_jpeg_read_header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030084 $as_echo_n "(cached) " >&6
30085else
30086 ac_check_lib_save_LIBS=$LIBS
30087LIBS="-ljpeg $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030088cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030089/* end confdefs.h. */
30090
30091/* Override any GCC internal prototype to avoid an error.
30092 Use char because int might match the return type of a GCC
30093 builtin and then its argument prototype would still apply. */
30094#ifdef __cplusplus
30095extern "C"
30096#endif
30097char jpeg_read_header ();
30098int
30099main ()
30100{
30101return jpeg_read_header ();
30102 ;
30103 return 0;
30104}
30105_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030106if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030107 ac_cv_lib_jpeg_jpeg_read_header=yes
30108else
cristy8b350f62009-11-15 23:12:43 +000030109 ac_cv_lib_jpeg_jpeg_read_header=no
cristy3ed852e2009-09-05 21:47:34 +000030110fi
cristy8b350f62009-11-15 23:12:43 +000030111rm -f core conftest.err conftest.$ac_objext \
30112 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030113LIBS=$ac_check_lib_save_LIBS
30114fi
cristy8b350f62009-11-15 23:12:43 +000030115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
cristy3ed852e2009-09-05 21:47:34 +000030116$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
cristyda16f162011-02-19 23:52:17 +000030117if test "x$ac_cv_lib_jpeg_jpeg_read_header" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030118 passed=`expr $passed + 1`
30119else
30120 failed=`expr $failed + 1`
30121fi
30122
30123
30124# Test for compatible JPEG library
30125if test "$ac_cv_jpeg_version_ok" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000030126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
cristy3ed852e2009-09-05 21:47:34 +000030127$as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030128if ${ac_cv_jpeg_version_ok+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030129 $as_echo_n "(cached) " >&6
30130else
cristy8b350f62009-11-15 23:12:43 +000030131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030132/* end confdefs.h. */
30133#include <stdio.h>
30134#include <stdlib.h>
30135#include <jpeglib.h>
30136
30137int
30138main ()
30139{
30140
30141#if JPEG_LIB_VERSION < 62
30142#error IJG JPEG library must be version 6b or newer!
30143#endif
30144return 0;
30145
30146 ;
30147 return 0;
30148}
30149_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030150if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030151 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
30152else
cristy8b350f62009-11-15 23:12:43 +000030153 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000030154fi
cristy3ed852e2009-09-05 21:47:34 +000030155rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30156fi
cristy8b350f62009-11-15 23:12:43 +000030157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000030158$as_echo "$ac_cv_jpeg_version_ok" >&6; }
30159fi
cristy8b350f62009-11-15 23:12:43 +000030160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000030161$as_echo_n "checking if JPEG package is complete... " >&6; }
30162 if test $passed -gt 0; then
30163 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000030164 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
30165$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030166 have_jpeg='no (failed tests)'
30167 else
30168 JPEG_LIBS='-ljpeg'
30169 LIBS="$JPEG_LIBS $LIBS"
30170
cristy8b350f62009-11-15 23:12:43 +000030171$as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030172
cristy09b53e12011-10-14 12:47:22 +000030173 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30174$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030175 have_jpeg='yes'
30176 fi
30177 else
cristy09b53e12011-10-14 12:47:22 +000030178 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
30179$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030180 fi
30181fi
cristy73bd4a52010-10-05 11:24:23 +000030182 if test "$have_jpeg" = 'yes'; then
30183 JPEG_DELEGATE_TRUE=
30184 JPEG_DELEGATE_FALSE='#'
30185else
30186 JPEG_DELEGATE_TRUE='#'
30187 JPEG_DELEGATE_FALSE=
30188fi
30189
cristy3ed852e2009-09-05 21:47:34 +000030190
30191
30192
30193#
30194# Check for JPEG Version 2 delegate library.
30195#
30196
30197# Check whether --with-jp2 was given.
cristy8b350f62009-11-15 23:12:43 +000030198if test "${with_jp2+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030199 withval=$with_jp2; with_jp2=$withval
30200else
30201 with_jp2='yes'
30202fi
30203
30204
30205if test "$with_jp2" != 'yes'; then
30206 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jp2=$with_jp2 "
30207fi
30208
30209have_jp2='no'
30210JP2_LIBS=''
30211if test "$with_jp2" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000030212 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30213$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000030214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG Version 2" >&5
cristy3ed852e2009-09-05 21:47:34 +000030215$as_echo_n "checking for JPEG Version 2... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000030216 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30217$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030218 failed=0
30219 passed=0
cristy8b350f62009-11-15 23:12:43 +000030220 ac_fn_c_check_header_mongrel "$LINENO" "jasper/jasper.h" "ac_cv_header_jasper_jasper_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030221if test "x$ac_cv_header_jasper_jasper_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030222 passed=`expr $passed + 1`
30223else
30224 failed=`expr $failed + 1`
30225fi
30226
30227
cristy8b350f62009-11-15 23:12:43 +000030228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jas_stream_fopen in -ljasper" >&5
cristy3ed852e2009-09-05 21:47:34 +000030229$as_echo_n "checking for jas_stream_fopen in -ljasper... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030230if ${ac_cv_lib_jasper_jas_stream_fopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030231 $as_echo_n "(cached) " >&6
30232else
30233 ac_check_lib_save_LIBS=$LIBS
30234LIBS="-ljasper $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030235cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030236/* end confdefs.h. */
30237
30238/* Override any GCC internal prototype to avoid an error.
30239 Use char because int might match the return type of a GCC
30240 builtin and then its argument prototype would still apply. */
30241#ifdef __cplusplus
30242extern "C"
30243#endif
30244char jas_stream_fopen ();
30245int
30246main ()
30247{
30248return jas_stream_fopen ();
30249 ;
30250 return 0;
30251}
30252_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030253if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030254 ac_cv_lib_jasper_jas_stream_fopen=yes
30255else
cristy8b350f62009-11-15 23:12:43 +000030256 ac_cv_lib_jasper_jas_stream_fopen=no
cristy3ed852e2009-09-05 21:47:34 +000030257fi
cristy8b350f62009-11-15 23:12:43 +000030258rm -f core conftest.err conftest.$ac_objext \
30259 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030260LIBS=$ac_check_lib_save_LIBS
30261fi
cristy8b350f62009-11-15 23:12:43 +000030262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jasper_jas_stream_fopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000030263$as_echo "$ac_cv_lib_jasper_jas_stream_fopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000030264if test "x$ac_cv_lib_jasper_jas_stream_fopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030265 passed=`expr $passed + 1`
30266else
30267 failed=`expr $failed + 1`
30268fi
30269
cristy8b350f62009-11-15 23:12:43 +000030270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG version 2 support package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000030271$as_echo_n "checking if JPEG version 2 support package is complete... " >&6; }
30272 if test $passed -gt 0; then
30273 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000030274 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
30275$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030276 have_jp2='no (failed tests)'
30277 else
30278 JP2_LIBS='-ljasper'
30279 LIBS="$JP2_LIBS $LIBS"
30280
cristy8b350f62009-11-15 23:12:43 +000030281$as_echo "#define JP2_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030282
cristy09b53e12011-10-14 12:47:22 +000030283 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30284$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030285 have_jp2='yes'
30286 fi
30287 else
cristy09b53e12011-10-14 12:47:22 +000030288 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
30289$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030290 fi
30291fi
cristy73bd4a52010-10-05 11:24:23 +000030292 if test "$have_jp2" = 'yes'; then
30293 JP2_DELEGATE_TRUE=
30294 JP2_DELEGATE_FALSE='#'
30295else
30296 JP2_DELEGATE_TRUE='#'
30297 JP2_DELEGATE_FALSE=
30298fi
30299
cristy3ed852e2009-09-05 21:47:34 +000030300
30301
30302
30303#
30304# Check for LCMS delegate library.
30305#
cristy71203402010-06-18 13:12:03 +000030306# Disable LCMS.
cristy3ed852e2009-09-05 21:47:34 +000030307
30308# Check whether --with-lcms was given.
cristy8b350f62009-11-15 23:12:43 +000030309if test "${with_lcms+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030310 withval=$with_lcms; with_lcms=$withval
30311else
30312 with_lcms='yes'
30313fi
30314
cristy71203402010-06-18 13:12:03 +000030315if test "$with_lcms" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000030316 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
30317fi
30318
cristy71203402010-06-18 13:12:03 +000030319# Disable LCMS2.
30320
30321# Check whether --with-lcms2 was given.
30322if test "${with_lcms2+set}" = set; then :
30323 withval=$with_lcms2; with_lcms2=$withval
30324else
30325 with_lcms2='yes'
30326fi
30327
30328if test "$with_lcms2" != 'yes' ; then
30329 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms2=$with_lcms2 "
30330fi
30331
30332have_lcms2='no'
cristy3ed852e2009-09-05 21:47:34 +000030333LCMS_LIBS=''
cristy71203402010-06-18 13:12:03 +000030334if test "$with_lcms2" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000030335 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30336$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy71203402010-06-18 13:12:03 +000030337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v2" >&5
30338$as_echo_n "checking for LCMS v2... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000030339 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30340$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030341 failed=0
30342 passed=0
30343 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000030344
30345 # Check for <lcms2.h>
cristyd09bcf92010-03-25 03:04:45 +000030346 ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030347if test "x$ac_cv_header_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000030348 have_lcms_header='yes'
30349fi
30350
30351
30352 if test "$have_lcms_header" = 'yes'; then
cristyd09bcf92010-03-25 03:04:45 +000030353
30354$as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h
30355
cristy71203402010-06-18 13:12:03 +000030356 passed=`expr $passed + 1`
30357 fi
30358
30359 # Check for <lcms2/lcms2.h)
30360 if test "$have_lcms_header" != 'yes'; then
30361 ac_fn_c_check_header_mongrel "$LINENO" "lcms2/lcms2.h" "ac_cv_header_lcms2_lcms2_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030362if test "x$ac_cv_header_lcms2_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000030363 have_lcms_header='yes'
30364fi
30365
30366
cristy71203402010-06-18 13:12:03 +000030367 if test "$have_lcms_header" = 'yes'; then
30368 passed=`expr $passed + 1`
cristyd09bcf92010-03-25 03:04:45 +000030369
cristy71203402010-06-18 13:12:03 +000030370$as_echo "#define HAVE_LCMS2_LCMS2_H 1" >>confdefs.h
cristyd09bcf92010-03-25 03:04:45 +000030371
cristy71203402010-06-18 13:12:03 +000030372 fi
cristyd09bcf92010-03-25 03:04:45 +000030373 fi
cristy71203402010-06-18 13:12:03 +000030374
30375 # Failed to find lcms header?
30376 if test "$have_lcms_header" != 'yes'; then
30377 failed=`expr $failed + 1`
30378 fi
30379
30380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetLogErrorHandler in -llcms2" >&5
30381$as_echo_n "checking for cmsSetLogErrorHandler in -llcms2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030382if ${ac_cv_lib_lcms2_cmsSetLogErrorHandler+:} false; then :
cristyd09bcf92010-03-25 03:04:45 +000030383 $as_echo_n "(cached) " >&6
30384else
30385 ac_check_lib_save_LIBS=$LIBS
30386LIBS="-llcms2 $LIBS"
30387cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30388/* end confdefs.h. */
30389
30390/* Override any GCC internal prototype to avoid an error.
30391 Use char because int might match the return type of a GCC
30392 builtin and then its argument prototype would still apply. */
30393#ifdef __cplusplus
30394extern "C"
30395#endif
cristy71203402010-06-18 13:12:03 +000030396char cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000030397int
30398main ()
30399{
cristy71203402010-06-18 13:12:03 +000030400return cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000030401 ;
30402 return 0;
30403}
30404_ACEOF
30405if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000030406 ac_cv_lib_lcms2_cmsSetLogErrorHandler=yes
cristyd09bcf92010-03-25 03:04:45 +000030407else
cristy71203402010-06-18 13:12:03 +000030408 ac_cv_lib_lcms2_cmsSetLogErrorHandler=no
cristyd09bcf92010-03-25 03:04:45 +000030409fi
30410rm -f core conftest.err conftest.$ac_objext \
30411 conftest$ac_exeext conftest.$ac_ext
30412LIBS=$ac_check_lib_save_LIBS
30413fi
cristy71203402010-06-18 13:12:03 +000030414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&5
30415$as_echo "$ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000030416if test "x$ac_cv_lib_lcms2_cmsSetLogErrorHandler" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000030417 passed=`expr $passed + 1`
30418else
30419 failed=`expr $failed + 1`
30420fi
30421
cristy71203402010-06-18 13:12:03 +000030422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS v2 package is complete" >&5
30423$as_echo_n "checking if LCMS v2 package is complete... " >&6; }
cristyd09bcf92010-03-25 03:04:45 +000030424 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000030425 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000030426 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
30427$as_echo "$as_me: no -- some components failed test" >&6;}
cristy71203402010-06-18 13:12:03 +000030428 have_lcms2='no (failed tests)'
30429 else
30430 LCMS_LIBS='-llcms2'
30431 LIBS="$LCMS_LIBS $LIBS"
cristy09b53e12011-10-14 12:47:22 +000030432 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30433$as_echo "$as_me: yes" >&6;}
cristy71203402010-06-18 13:12:03 +000030434 have_lcms2='yes'
30435 fi
cristyd09bcf92010-03-25 03:04:45 +000030436 else
cristy09b53e12011-10-14 12:47:22 +000030437 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
30438$as_echo "$as_me: no" >&6;}
cristyd09bcf92010-03-25 03:04:45 +000030439 fi
30440fi
30441
cristy71203402010-06-18 13:12:03 +000030442#
30443# Check for LCMS v1 (1.11 or later)
30444#
30445if test $have_lcms2 = 'yes'; then
30446 with_lcms='no'
30447fi
30448
30449have_lcms='no'
cristyd09bcf92010-03-25 03:04:45 +000030450if test "$with_lcms" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000030451 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30452$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy71203402010-06-18 13:12:03 +000030453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v1.1X" >&5
30454$as_echo_n "checking for LCMS v1.1X... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000030455 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30456$as_echo "$as_me: " >&6;}
cristyd09bcf92010-03-25 03:04:45 +000030457 failed=0
30458 passed=0
30459 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000030460
30461 # Check for <lcms.h>
30462 if test "$have_lcms_header" != 'yes'; then
30463 ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030464if test "x$ac_cv_header_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030465 have_lcms_header='yes'
30466fi
30467
30468
cristy71203402010-06-18 13:12:03 +000030469 if test "$have_lcms_header" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000030470 passed=`expr $passed + 1`
30471
cristy8b350f62009-11-15 23:12:43 +000030472$as_echo "#define HAVE_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030473
cristy71203402010-06-18 13:12:03 +000030474 fi
30475 fi
30476
30477 # Check for <lcms/lcms.h>
30478 if test "$have_lcms_header" != 'yes'; then
30479 ac_fn_c_check_header_mongrel "$LINENO" "lcms/lcms.h" "ac_cv_header_lcms_lcms_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030480if test "x$ac_cv_header_lcms_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030481 have_lcms_header='yes'
30482fi
30483
30484
cristy71203402010-06-18 13:12:03 +000030485 if test "$have_lcms_header" = 'yes'; then
30486 passed=`expr $passed + 1`
cristy3ed852e2009-09-05 21:47:34 +000030487
cristy8b350f62009-11-15 23:12:43 +000030488$as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030489
cristy71203402010-06-18 13:12:03 +000030490 fi
cristy3ed852e2009-09-05 21:47:34 +000030491 fi
cristy71203402010-06-18 13:12:03 +000030492
30493 # Failed to find lcms header?
30494 if test "$have_lcms_header" != 'yes'; then
30495 failed=`expr $failed + 1`
30496 fi
30497
30498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetErrorHandler in -llcms" >&5
30499$as_echo_n "checking for cmsSetErrorHandler in -llcms... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030500if ${ac_cv_lib_lcms_cmsSetErrorHandler+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030501 $as_echo_n "(cached) " >&6
30502else
30503 ac_check_lib_save_LIBS=$LIBS
30504LIBS="-llcms $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030505cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030506/* end confdefs.h. */
30507
30508/* Override any GCC internal prototype to avoid an error.
30509 Use char because int might match the return type of a GCC
30510 builtin and then its argument prototype would still apply. */
30511#ifdef __cplusplus
30512extern "C"
30513#endif
cristy71203402010-06-18 13:12:03 +000030514char cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000030515int
30516main ()
30517{
cristy71203402010-06-18 13:12:03 +000030518return cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000030519 ;
30520 return 0;
30521}
30522_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030523if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000030524 ac_cv_lib_lcms_cmsSetErrorHandler=yes
cristy3ed852e2009-09-05 21:47:34 +000030525else
cristy71203402010-06-18 13:12:03 +000030526 ac_cv_lib_lcms_cmsSetErrorHandler=no
cristy3ed852e2009-09-05 21:47:34 +000030527fi
cristy8b350f62009-11-15 23:12:43 +000030528rm -f core conftest.err conftest.$ac_objext \
30529 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030530LIBS=$ac_check_lib_save_LIBS
30531fi
cristy71203402010-06-18 13:12:03 +000030532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsSetErrorHandler" >&5
30533$as_echo "$ac_cv_lib_lcms_cmsSetErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000030534if test "x$ac_cv_lib_lcms_cmsSetErrorHandler" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030535 passed=`expr $passed + 1`
30536else
30537 failed=`expr $failed + 1`
30538fi
30539
cristy8b350f62009-11-15 23:12:43 +000030540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000030541$as_echo_n "checking if LCMS package is complete... " >&6; }
30542 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000030543 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000030544 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
30545$as_echo "$as_me: no -- some components failed test" >&6;}
cristy71203402010-06-18 13:12:03 +000030546 have_lcms='no (failed tests)'
30547 else
30548 LCMS_LIBS='-llcms'
30549 LIBS="$LCMS_LIBS $LIBS"
cristy09b53e12011-10-14 12:47:22 +000030550 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30551$as_echo "$as_me: yes" >&6;}
cristy71203402010-06-18 13:12:03 +000030552 have_lcms='yes'
30553 fi
cristy3ed852e2009-09-05 21:47:34 +000030554 else
cristy09b53e12011-10-14 12:47:22 +000030555 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
30556$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030557 fi
30558fi
cristy71203402010-06-18 13:12:03 +000030559
cristy73bd4a52010-10-05 11:24:23 +000030560 if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
30561 LCMS_DELEGATE_TRUE=
30562 LCMS_DELEGATE_FALSE='#'
30563else
30564 LCMS_DELEGATE_TRUE='#'
30565 LCMS_DELEGATE_FALSE=
30566fi
30567
cristy71203402010-06-18 13:12:03 +000030568if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
30569
30570$as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
30571
30572fi
30573
cristy3ed852e2009-09-05 21:47:34 +000030574
30575
30576
30577#
30578# Check for the LQR (Liquid Rescale) delegate library.
30579#
30580
30581# Check whether --with-lqr was given.
cristy8b350f62009-11-15 23:12:43 +000030582if test "${with_lqr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030583 withval=$with_lqr; with_lqr=$withval
30584else
30585 with_lqr='yes'
30586fi
30587
30588
30589if test "$with_lqr" != 'yes'; then
30590 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
30591fi
30592
30593have_lqr='no'
30594LQR_CFLAGS=""
30595LQR_LIBS=""
30596LQR_PKG=""
30597if test "x$with_lqr" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000030598 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30599$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000030600
30601pkg_failed=no
30602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
30603$as_echo_n "checking for LQR... " >&6; }
30604
30605if test -n "$LQR_CFLAGS"; then
30606 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
30607 elif test -n "$PKG_CONFIG"; then
30608 if test -n "$PKG_CONFIG" && \
30609 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
30610 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
30611 ac_status=$?
30612 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30613 test $ac_status = 0; }; then
30614 pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
30615else
30616 pkg_failed=yes
30617fi
30618 else
30619 pkg_failed=untried
30620fi
30621if test -n "$LQR_LIBS"; then
30622 pkg_cv_LQR_LIBS="$LQR_LIBS"
30623 elif test -n "$PKG_CONFIG"; then
30624 if test -n "$PKG_CONFIG" && \
30625 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
30626 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
30627 ac_status=$?
30628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30629 test $ac_status = 0; }; then
30630 pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
30631else
30632 pkg_failed=yes
30633fi
30634 else
30635 pkg_failed=untried
30636fi
30637
30638
30639
30640if test $pkg_failed = yes; then
30641
30642if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30643 _pkg_short_errors_supported=yes
30644else
30645 _pkg_short_errors_supported=no
30646fi
30647 if test $_pkg_short_errors_supported = yes; then
30648 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1`
30649 else
30650 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1`
30651 fi
30652 # Put the nasty error message in config.log where it belongs
30653 echo "$LQR_PKG_ERRORS" >&5
30654
30655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30656$as_echo "no" >&6; }
30657 have_lqr=no
30658elif test $pkg_failed = untried; then
30659 have_lqr=no
30660else
30661 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
30662 LQR_LIBS=$pkg_cv_LQR_LIBS
30663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30664$as_echo "yes" >&6; }
30665 have_lqr=yes
30666fi
cristy09b53e12011-10-14 12:47:22 +000030667 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30668$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030669fi
30670
30671if test "$have_lqr" = 'yes'; then
30672
cristy8b350f62009-11-15 23:12:43 +000030673$as_echo "#define LQR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030674
30675 CFLAGS="$LQR_CFLAGS $CFLAGS"
30676fi
30677
cristy73bd4a52010-10-05 11:24:23 +000030678 if test "$have_lqr" = 'yes'; then
30679 LQR_DELEGATE_TRUE=
30680 LQR_DELEGATE_FALSE='#'
30681else
30682 LQR_DELEGATE_TRUE='#'
30683 LQR_DELEGATE_FALSE=
30684fi
30685
cristy3ed852e2009-09-05 21:47:34 +000030686
30687
30688
30689
cristy81beccd2011-10-03 18:17:24 +000030690# Disable LZMA (lzma library)
cristyfbb0ef02010-12-19 02:32:11 +000030691
30692# Check whether --with-lzma was given.
30693if test "${with_lzma+set}" = set; then :
30694 withval=$with_lzma; with_lzma=$withval
30695else
30696 with_lzma='yes'
30697fi
30698
cristy81beccd2011-10-03 18:17:24 +000030699if test "$with_lzma" != 'yes' ; then
cristyfbb0ef02010-12-19 02:32:11 +000030700 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lzma=$with_lzma "
30701fi
30702
cristyb94e5002011-11-14 13:20:10 +000030703LZMA_PKG=""
30704if test "x$with_lzma" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000030705 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30706$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristyb94e5002011-11-14 13:20:10 +000030707
30708pkg_failed=no
30709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZMA" >&5
cristyfbb0ef02010-12-19 02:32:11 +000030710$as_echo_n "checking for LZMA... " >&6; }
cristyb94e5002011-11-14 13:20:10 +000030711
30712if test -n "$LZMA_CFLAGS"; then
30713 pkg_cv_LZMA_CFLAGS="$LZMA_CFLAGS"
30714 elif test -n "$PKG_CONFIG"; then
30715 if test -n "$PKG_CONFIG" && \
30716 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
30717 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
30718 ac_status=$?
30719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30720 test $ac_status = 0; }; then
30721 pkg_cv_LZMA_CFLAGS=`$PKG_CONFIG --cflags "liblzma >= 2.9.0" 2>/dev/null`
30722else
30723 pkg_failed=yes
30724fi
30725 else
30726 pkg_failed=untried
30727fi
30728if test -n "$LZMA_LIBS"; then
30729 pkg_cv_LZMA_LIBS="$LZMA_LIBS"
30730 elif test -n "$PKG_CONFIG"; then
30731 if test -n "$PKG_CONFIG" && \
30732 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
30733 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
30734 ac_status=$?
30735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30736 test $ac_status = 0; }; then
30737 pkg_cv_LZMA_LIBS=`$PKG_CONFIG --libs "liblzma >= 2.9.0" 2>/dev/null`
30738else
30739 pkg_failed=yes
30740fi
30741 else
30742 pkg_failed=untried
30743fi
30744
30745
30746
30747if test $pkg_failed = yes; then
30748
30749if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30750 _pkg_short_errors_supported=yes
30751else
30752 _pkg_short_errors_supported=no
30753fi
30754 if test $_pkg_short_errors_supported = yes; then
30755 LZMA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "liblzma >= 2.9.0" 2>&1`
30756 else
30757 LZMA_PKG_ERRORS=`$PKG_CONFIG --print-errors "liblzma >= 2.9.0" 2>&1`
30758 fi
30759 # Put the nasty error message in config.log where it belongs
30760 echo "$LZMA_PKG_ERRORS" >&5
30761
30762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30763$as_echo "no" >&6; }
30764 have_lzma=no
30765elif test $pkg_failed = untried; then
30766 have_lzma=no
30767else
30768 LZMA_CFLAGS=$pkg_cv_LZMA_CFLAGS
30769 LZMA_LIBS=$pkg_cv_LZMA_LIBS
30770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30771$as_echo "yes" >&6; }
30772 have_lzma=yes
30773fi
30774 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
cristy09b53e12011-10-14 12:47:22 +000030775$as_echo "$as_me: " >&6;}
cristyfbb0ef02010-12-19 02:32:11 +000030776fi
30777
cristyb94e5002011-11-14 13:20:10 +000030778if test "$have_lzma" = 'yes'; then
cristyfbb0ef02010-12-19 02:32:11 +000030779
30780$as_echo "#define LZMA_DELEGATE 1" >>confdefs.h
30781
cristyb94e5002011-11-14 13:20:10 +000030782 if test "$with_modules" = 'no'; then
30783 CPPFLAGS="$LZMA_CFLAGS $CPPFLAGS"
cristyfbb0ef02010-12-19 02:32:11 +000030784 fi
cristyfbb0ef02010-12-19 02:32:11 +000030785fi
cristyb94e5002011-11-14 13:20:10 +000030786
cristyfbb0ef02010-12-19 02:32:11 +000030787 if test "$have_lzma" = 'yes'; then
30788 LZMA_DELEGATE_TRUE=
30789 LZMA_DELEGATE_FALSE='#'
30790else
30791 LZMA_DELEGATE_TRUE='#'
30792 LZMA_DELEGATE_FALSE=
30793fi
30794
30795
30796
30797
cristyb94e5002011-11-14 13:20:10 +000030798
cristy3ed852e2009-09-05 21:47:34 +000030799#
30800# Check for the OpenEXR delegate library.
30801#
30802
30803# Check whether --with-openexr was given.
cristy8b350f62009-11-15 23:12:43 +000030804if test "${with_openexr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030805 withval=$with_openexr; with_openexr=$withval
30806else
30807 with_openexr='yes'
30808fi
30809
30810
30811if test "$with_openexr" != 'yes'; then
30812 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
30813fi
30814
30815have_openexr='no'
30816OPENEXR_CFLAGS=""
30817OPENEXR_LIBS=""
30818OPENEXR_PKG=""
30819if test "x$with_openexr" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000030820 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30821$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000030822
30823pkg_failed=no
30824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
30825$as_echo_n "checking for OPENEXR... " >&6; }
30826
30827if test -n "$OPENEXR_CFLAGS"; then
30828 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
30829 elif test -n "$PKG_CONFIG"; then
30830 if test -n "$PKG_CONFIG" && \
30831 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
30832 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
30833 ac_status=$?
30834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30835 test $ac_status = 0; }; then
30836 pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
30837else
30838 pkg_failed=yes
30839fi
30840 else
30841 pkg_failed=untried
30842fi
30843if test -n "$OPENEXR_LIBS"; then
30844 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
30845 elif test -n "$PKG_CONFIG"; then
30846 if test -n "$PKG_CONFIG" && \
30847 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
30848 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
30849 ac_status=$?
30850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30851 test $ac_status = 0; }; then
30852 pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
30853else
30854 pkg_failed=yes
30855fi
30856 else
30857 pkg_failed=untried
30858fi
30859
30860
30861
30862if test $pkg_failed = yes; then
30863
30864if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30865 _pkg_short_errors_supported=yes
30866else
30867 _pkg_short_errors_supported=no
30868fi
30869 if test $_pkg_short_errors_supported = yes; then
30870 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1`
30871 else
30872 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1`
30873 fi
30874 # Put the nasty error message in config.log where it belongs
30875 echo "$OPENEXR_PKG_ERRORS" >&5
30876
30877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30878$as_echo "no" >&6; }
30879 have_openexr=no
30880elif test $pkg_failed = untried; then
30881 have_openexr=no
30882else
30883 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
30884 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
30885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30886$as_echo "yes" >&6; }
30887 have_openexr=yes
30888fi
cristy09b53e12011-10-14 12:47:22 +000030889 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30890$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030891fi
30892
30893if test "$have_openexr" = 'yes'; then
30894
cristy8b350f62009-11-15 23:12:43 +000030895$as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030896
30897 if test "$with_modules" = 'no'; then
30898 CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
30899 fi
30900fi
30901
cristy73bd4a52010-10-05 11:24:23 +000030902 if test "$have_openexr" = 'yes'; then
30903 OPENEXR_DELEGATE_TRUE=
30904 OPENEXR_DELEGATE_FALSE='#'
30905else
30906 OPENEXR_DELEGATE_TRUE='#'
30907 OPENEXR_DELEGATE_FALSE=
30908fi
30909
cristy3ed852e2009-09-05 21:47:34 +000030910
30911
30912
30913
30914#
cristy41cbe8a2011-10-27 01:35:18 +000030915# Check for PANGO delegate library.
30916#
30917
30918# Check whether --with-pango was given.
30919if test "${with_pango+set}" = set; then :
30920 withval=$with_pango; with_pango=$withval
30921else
cristyfc3d0222012-02-07 15:05:57 +000030922 with_pango='yes'
cristy41cbe8a2011-10-27 01:35:18 +000030923fi
30924
30925
30926if test "$with_pango" != 'yes'; then
30927 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-pango=$with_pango "
30928fi
30929
30930have_pango='no'
cristya054b762012-03-26 23:16:00 +000030931have_pangocairo='no'
cristy41cbe8a2011-10-27 01:35:18 +000030932PANGO_CFLAGS=""
30933PANGO_LIBS=""
30934PANGO_PKG=""
30935if test "x$with_pango" = "xyes"; then
30936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30937$as_echo "-------------------------------------------------------------" >&6; }
30938
30939pkg_failed=no
30940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
30941$as_echo_n "checking for PANGO... " >&6; }
30942
30943if test -n "$PANGO_CFLAGS"; then
30944 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
30945 elif test -n "$PKG_CONFIG"; then
30946 if test -n "$PKG_CONFIG" && \
cristya054b762012-03-26 23:16:00 +000030947 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5
30948 ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5
cristy41cbe8a2011-10-27 01:35:18 +000030949 ac_status=$?
30950 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30951 test $ac_status = 0; }; then
cristya054b762012-03-26 23:16:00 +000030952 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pangocairo >= 1.28.1" 2>/dev/null`
cristy41cbe8a2011-10-27 01:35:18 +000030953else
30954 pkg_failed=yes
30955fi
30956 else
30957 pkg_failed=untried
30958fi
30959if test -n "$PANGO_LIBS"; then
30960 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
30961 elif test -n "$PKG_CONFIG"; then
30962 if test -n "$PKG_CONFIG" && \
cristya054b762012-03-26 23:16:00 +000030963 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5
30964 ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5
cristy41cbe8a2011-10-27 01:35:18 +000030965 ac_status=$?
30966 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30967 test $ac_status = 0; }; then
cristya054b762012-03-26 23:16:00 +000030968 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pangocairo >= 1.28.1" 2>/dev/null`
cristy41cbe8a2011-10-27 01:35:18 +000030969else
30970 pkg_failed=yes
30971fi
30972 else
30973 pkg_failed=untried
30974fi
30975
30976
30977
30978if test $pkg_failed = yes; then
30979
30980if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30981 _pkg_short_errors_supported=yes
30982else
30983 _pkg_short_errors_supported=no
30984fi
30985 if test $_pkg_short_errors_supported = yes; then
cristya054b762012-03-26 23:16:00 +000030986 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pangocairo >= 1.28.1" 2>&1`
cristy41cbe8a2011-10-27 01:35:18 +000030987 else
cristya054b762012-03-26 23:16:00 +000030988 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pangocairo >= 1.28.1" 2>&1`
cristy41cbe8a2011-10-27 01:35:18 +000030989 fi
30990 # Put the nasty error message in config.log where it belongs
30991 echo "$PANGO_PKG_ERRORS" >&5
30992
30993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30994$as_echo "no" >&6; }
cristya054b762012-03-26 23:16:00 +000030995 have_pangocairo=no
cristy41cbe8a2011-10-27 01:35:18 +000030996elif test $pkg_failed = untried; then
cristya054b762012-03-26 23:16:00 +000030997 have_pangocairo=no
cristy41cbe8a2011-10-27 01:35:18 +000030998else
30999 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
31000 PANGO_LIBS=$pkg_cv_PANGO_LIBS
31001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31002$as_echo "yes" >&6; }
cristya054b762012-03-26 23:16:00 +000031003 have_pangocairo=yes
cristy41cbe8a2011-10-27 01:35:18 +000031004fi
31005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31006$as_echo "" >&6; }
cristy7dc48ed2011-10-28 14:11:43 +000031007
31008pkg_failed=no
31009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
31010$as_echo_n "checking for PANGO... " >&6; }
31011
31012if test -n "$PANGO_CFLAGS"; then
31013 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
31014 elif test -n "$PKG_CONFIG"; then
31015 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000031016 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
31017 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
cristy7dc48ed2011-10-28 14:11:43 +000031018 ac_status=$?
31019 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31020 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000031021 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pango >= 1.28.1" 2>/dev/null`
cristy7dc48ed2011-10-28 14:11:43 +000031022else
31023 pkg_failed=yes
31024fi
31025 else
31026 pkg_failed=untried
31027fi
31028if test -n "$PANGO_LIBS"; then
31029 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
31030 elif test -n "$PKG_CONFIG"; then
31031 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000031032 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
31033 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
cristy7dc48ed2011-10-28 14:11:43 +000031034 ac_status=$?
31035 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31036 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000031037 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pango >= 1.28.1" 2>/dev/null`
cristy7dc48ed2011-10-28 14:11:43 +000031038else
31039 pkg_failed=yes
31040fi
31041 else
31042 pkg_failed=untried
31043fi
31044
31045
31046
31047if test $pkg_failed = yes; then
31048
31049if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31050 _pkg_short_errors_supported=yes
31051else
31052 _pkg_short_errors_supported=no
31053fi
31054 if test $_pkg_short_errors_supported = yes; then
cristy2542fc62011-12-06 17:50:25 +000031055 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pango >= 1.28.1" 2>&1`
cristy7dc48ed2011-10-28 14:11:43 +000031056 else
cristy2542fc62011-12-06 17:50:25 +000031057 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pango >= 1.28.1" 2>&1`
cristy7dc48ed2011-10-28 14:11:43 +000031058 fi
31059 # Put the nasty error message in config.log where it belongs
31060 echo "$PANGO_PKG_ERRORS" >&5
31061
31062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31063$as_echo "no" >&6; }
31064 have_pango=no
31065elif test $pkg_failed = untried; then
31066 have_pango=no
31067else
31068 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
31069 PANGO_LIBS=$pkg_cv_PANGO_LIBS
31070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31071$as_echo "yes" >&6; }
31072 have_pango=yes
31073fi
31074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31075$as_echo "" >&6; }
cristy41cbe8a2011-10-27 01:35:18 +000031076fi
31077
31078if test "$have_pango" = 'yes'; then
31079
31080$as_echo "#define PANGO_DELEGATE 1" >>confdefs.h
31081
31082 if test "$with_modules" = 'no'; then
31083 CPPFLAGS="$PANGO_CFLAGS $CPPFLAGS"
31084 fi
31085fi
31086
cristya054b762012-03-26 23:16:00 +000031087if test "$have_pangocairo" = 'yes'; then
cristy41cbe8a2011-10-27 01:35:18 +000031088
cristya054b762012-03-26 23:16:00 +000031089$as_echo "#define PANGOCAIRO_DELEGATE 1" >>confdefs.h
cristy41cbe8a2011-10-27 01:35:18 +000031090
31091 if test "$with_modules" = 'no'; then
cristya054b762012-03-26 23:16:00 +000031092 CPPFLAGS="$PANGOCAIRO_CFLAGS $CPPFLAGS"
cristy41cbe8a2011-10-27 01:35:18 +000031093 fi
31094fi
31095
31096 if test "$have_pango" = 'yes'; then
31097 PANGO_DELEGATE_TRUE=
31098 PANGO_DELEGATE_FALSE='#'
31099else
31100 PANGO_DELEGATE_TRUE='#'
31101 PANGO_DELEGATE_FALSE=
31102fi
31103
cristya054b762012-03-26 23:16:00 +000031104 if test "$have_pangocairo" = 'yes'; then
31105 PANGOCAIRO_DELEGATE_TRUE=
31106 PANGOCAIRO_DELEGATE_FALSE='#'
cristy41cbe8a2011-10-27 01:35:18 +000031107else
cristya054b762012-03-26 23:16:00 +000031108 PANGOCAIRO_DELEGATE_TRUE='#'
31109 PANGOCAIRO_DELEGATE_FALSE=
cristy41cbe8a2011-10-27 01:35:18 +000031110fi
31111
31112
31113
31114
31115
31116#
cristy3ed852e2009-09-05 21:47:34 +000031117# Check for PNG delegate library.
31118#
31119
31120# Check whether --with-png was given.
cristy8b350f62009-11-15 23:12:43 +000031121if test "${with_png+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031122 withval=$with_png; with_png=$withval
31123else
31124 with_png='yes'
31125fi
31126
31127
31128if test "$with_png" != 'yes'; then
31129 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
31130fi
31131
cristy81beccd2011-10-03 18:17:24 +000031132have_png='no'
31133PNG_LIBS=''
31134
31135if test "$with_png" != 'no' -a "$have_zlib" != 'no' ; then
cristy09b53e12011-10-14 12:47:22 +000031136 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
31137$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy81beccd2011-10-03 18:17:24 +000031138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG support " >&5
31139$as_echo_n "checking for PNG support ... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000031140 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31141$as_echo "$as_me: " >&6;}
cristy81beccd2011-10-03 18:17:24 +000031142 failed=0
31143 passed=0
31144 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
31145if test "x$ac_cv_header_png_h" = xyes; then :
31146 passed=`expr $passed + 1`
31147else
31148 failed=`expr $failed + 1`
cristy64877302011-08-23 19:10:31 +000031149fi
31150
cristy81beccd2011-10-03 18:17:24 +000031151
31152
31153 if test $passed -gt 0; then
31154 for var in 5 4 2 '' ; do
cristy0615f0e2011-10-12 11:36:46 +000031155 if test "$have_png" = 'no' ; then
31156 if test "x${var}" = 'x' ; then
cristy81beccd2011-10-03 18:17:24 +000031157 pnglib='png'
31158 else
31159 pnglib="png1${var}"
31160 fi
31161
31162# Test for compatible LIBPNG library
31163 failed=0
31164 passed=0
cristy0615f0e2011-10-12 11:36:46 +000031165 if test "$with_png" = 'yes' -o "$with_png" = "libpng1${var}" ; then
cristy81beccd2011-10-03 18:17:24 +000031166 if test "${pnglib}" != 'png' ; then
31167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBPNG1${var} support " >&5
31168$as_echo_n "checking for LIBPNG1${var} support ... " >&6; }
31169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31170/* end confdefs.h. */
31171#include <stdio.h>
31172#include <stdlib.h>
31173#include <png.h>
31174
31175int
31176main ()
31177{
31178
31179#if PNG_LIBPNG_VER_MINOR != ${var}
31180#error LIBPNG library must be version 1${var}!
31181Kaboom, Kaboom
31182#endif
31183return 0;
31184
31185 ;
31186 return 0;
31187}
31188_ACEOF
31189if ac_fn_c_try_compile "$LINENO"; then :
31190 ac_cv_libpng_ok='yes'
31191else
31192 ac_cv_libpng_ok='no'
31193fi
31194rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31195 if test "$ac_cv_libpng_ok" = 'yes' ; then
31196 passed=`expr $passed + 1`
cristy09b53e12011-10-14 12:47:22 +000031197 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
31198$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000031199 else
31200 failed=`expr $failed + 1`
cristy09b53e12011-10-14 12:47:22 +000031201 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
31202$as_echo "$as_me: no" >&6;}
cristy81beccd2011-10-03 18:17:24 +000031203 fi
31204 else
31205 passed=`expr $passed + 1`
cristy09b53e12011-10-14 12:47:22 +000031206 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
31207$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000031208 fi
31209 fi
31210
31211 if test $passed -gt 0 -a $failed -le 0; then
31212 if test "1${var}" = '15' ; then
31213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng15" >&5
31214$as_echo_n "checking for png_get_io_ptr in -lpng15... " >&6; }
31215if ${ac_cv_lib_png15_png_get_io_ptr+:} false; then :
31216 $as_echo_n "(cached) " >&6
31217else
31218 ac_check_lib_save_LIBS=$LIBS
31219LIBS="-lpng15 $LIBS"
31220cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31221/* end confdefs.h. */
31222
31223/* Override any GCC internal prototype to avoid an error.
31224 Use char because int might match the return type of a GCC
31225 builtin and then its argument prototype would still apply. */
31226#ifdef __cplusplus
31227extern "C"
31228#endif
31229char png_get_io_ptr ();
31230int
31231main ()
31232{
31233return png_get_io_ptr ();
31234 ;
31235 return 0;
31236}
31237_ACEOF
31238if ac_fn_c_try_link "$LINENO"; then :
31239 ac_cv_lib_png15_png_get_io_ptr=yes
31240else
31241 ac_cv_lib_png15_png_get_io_ptr=no
31242fi
31243rm -f core conftest.err conftest.$ac_objext \
31244 conftest$ac_exeext conftest.$ac_ext
31245LIBS=$ac_check_lib_save_LIBS
31246fi
31247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_get_io_ptr" >&5
31248$as_echo "$ac_cv_lib_png15_png_get_io_ptr" >&6; }
31249if test "x$ac_cv_lib_png15_png_get_io_ptr" = xyes; then :
31250 passed=`expr $passed + 1`
31251else
31252 failed=`expr $failed + 1`
31253fi
31254
31255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng15" >&5
31256$as_echo_n "checking for png_longjmp in -lpng15... " >&6; }
31257if ${ac_cv_lib_png15_png_longjmp+:} false; then :
31258 $as_echo_n "(cached) " >&6
31259else
31260 ac_check_lib_save_LIBS=$LIBS
31261LIBS="-lpng15 $LIBS"
31262cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31263/* end confdefs.h. */
31264
31265/* Override any GCC internal prototype to avoid an error.
31266 Use char because int might match the return type of a GCC
31267 builtin and then its argument prototype would still apply. */
31268#ifdef __cplusplus
31269extern "C"
31270#endif
31271char png_longjmp ();
31272int
31273main ()
31274{
31275return png_longjmp ();
31276 ;
31277 return 0;
31278}
31279_ACEOF
31280if ac_fn_c_try_link "$LINENO"; then :
31281 ac_cv_lib_png15_png_longjmp=yes
31282else
31283 ac_cv_lib_png15_png_longjmp=no
31284fi
31285rm -f core conftest.err conftest.$ac_objext \
31286 conftest$ac_exeext conftest.$ac_ext
31287LIBS=$ac_check_lib_save_LIBS
31288fi
31289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_longjmp" >&5
31290$as_echo "$ac_cv_lib_png15_png_longjmp" >&6; }
31291if test "x$ac_cv_lib_png15_png_longjmp" = xyes; then :
31292 passed=`expr $passed + 1`
31293else
31294 failed=`expr $failed + 1`
31295fi
31296
31297 fi
31298 if test "1${var}" = '14' ; then
31299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng14" >&5
31300$as_echo_n "checking for png_get_io_ptr in -lpng14... " >&6; }
31301if ${ac_cv_lib_png14_png_get_io_ptr+:} false; then :
31302 $as_echo_n "(cached) " >&6
31303else
31304 ac_check_lib_save_LIBS=$LIBS
31305LIBS="-lpng14 $LIBS"
31306cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31307/* end confdefs.h. */
31308
31309/* Override any GCC internal prototype to avoid an error.
31310 Use char because int might match the return type of a GCC
31311 builtin and then its argument prototype would still apply. */
31312#ifdef __cplusplus
31313extern "C"
31314#endif
31315char png_get_io_ptr ();
31316int
31317main ()
31318{
31319return png_get_io_ptr ();
31320 ;
31321 return 0;
31322}
31323_ACEOF
31324if ac_fn_c_try_link "$LINENO"; then :
31325 ac_cv_lib_png14_png_get_io_ptr=yes
31326else
31327 ac_cv_lib_png14_png_get_io_ptr=no
31328fi
31329rm -f core conftest.err conftest.$ac_objext \
31330 conftest$ac_exeext conftest.$ac_ext
31331LIBS=$ac_check_lib_save_LIBS
31332fi
31333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_ptr" >&5
31334$as_echo "$ac_cv_lib_png14_png_get_io_ptr" >&6; }
31335if test "x$ac_cv_lib_png14_png_get_io_ptr" = xyes; then :
31336 passed=`expr $passed + 1`
31337else
31338 failed=`expr $failed + 1`
31339fi
31340
31341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_state in -lpng14" >&5
31342$as_echo_n "checking for png_get_io_state in -lpng14... " >&6; }
31343if ${ac_cv_lib_png14_png_get_io_state+:} false; then :
31344 $as_echo_n "(cached) " >&6
31345else
31346 ac_check_lib_save_LIBS=$LIBS
31347LIBS="-lpng14 $LIBS"
31348cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31349/* end confdefs.h. */
31350
31351/* Override any GCC internal prototype to avoid an error.
31352 Use char because int might match the return type of a GCC
31353 builtin and then its argument prototype would still apply. */
31354#ifdef __cplusplus
31355extern "C"
31356#endif
31357char png_get_io_state ();
31358int
31359main ()
31360{
31361return png_get_io_state ();
31362 ;
31363 return 0;
31364}
31365_ACEOF
31366if ac_fn_c_try_link "$LINENO"; then :
31367 ac_cv_lib_png14_png_get_io_state=yes
31368else
31369 ac_cv_lib_png14_png_get_io_state=no
31370fi
31371rm -f core conftest.err conftest.$ac_objext \
31372 conftest$ac_exeext conftest.$ac_ext
31373LIBS=$ac_check_lib_save_LIBS
31374fi
31375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_state" >&5
31376$as_echo "$ac_cv_lib_png14_png_get_io_state" >&6; }
31377if test "x$ac_cv_lib_png14_png_get_io_state" = xyes; then :
31378 passed=`expr $passed + 1`
31379else
31380 failed=`expr $failed + 1`
31381fi
31382
31383 fi
31384 if test "1${var}" = '12' ; then
31385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng12" >&5
31386$as_echo_n "checking for png_get_io_ptr in -lpng12... " >&6; }
31387if ${ac_cv_lib_png12_png_get_io_ptr+:} false; then :
31388 $as_echo_n "(cached) " >&6
31389else
31390 ac_check_lib_save_LIBS=$LIBS
31391LIBS="-lpng12 $LIBS"
31392cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31393/* end confdefs.h. */
31394
31395/* Override any GCC internal prototype to avoid an error.
31396 Use char because int might match the return type of a GCC
31397 builtin and then its argument prototype would still apply. */
31398#ifdef __cplusplus
31399extern "C"
31400#endif
31401char png_get_io_ptr ();
31402int
31403main ()
31404{
31405return png_get_io_ptr ();
31406 ;
31407 return 0;
31408}
31409_ACEOF
31410if ac_fn_c_try_link "$LINENO"; then :
31411 ac_cv_lib_png12_png_get_io_ptr=yes
31412else
31413 ac_cv_lib_png12_png_get_io_ptr=no
31414fi
31415rm -f core conftest.err conftest.$ac_objext \
31416 conftest$ac_exeext conftest.$ac_ext
31417LIBS=$ac_check_lib_save_LIBS
31418fi
31419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png12_png_get_io_ptr" >&5
31420$as_echo "$ac_cv_lib_png12_png_get_io_ptr" >&6; }
31421if test "x$ac_cv_lib_png12_png_get_io_ptr" = xyes; then :
31422 passed=`expr $passed + 1`
31423else
31424 failed=`expr $failed + 1`
31425fi
31426
31427 fi
31428 if test "1${var}" = '1' ; then
31429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5
31430$as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
31431if ${ac_cv_lib_png_png_get_io_ptr+:} false; then :
31432 $as_echo_n "(cached) " >&6
31433else
31434 ac_check_lib_save_LIBS=$LIBS
31435LIBS="-lpng $LIBS"
31436cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31437/* end confdefs.h. */
31438
31439/* Override any GCC internal prototype to avoid an error.
31440 Use char because int might match the return type of a GCC
31441 builtin and then its argument prototype would still apply. */
31442#ifdef __cplusplus
31443extern "C"
31444#endif
31445char png_get_io_ptr ();
31446int
31447main ()
31448{
31449return png_get_io_ptr ();
31450 ;
31451 return 0;
31452}
31453_ACEOF
31454if ac_fn_c_try_link "$LINENO"; then :
31455 ac_cv_lib_png_png_get_io_ptr=yes
31456else
31457 ac_cv_lib_png_png_get_io_ptr=no
31458fi
31459rm -f core conftest.err conftest.$ac_objext \
31460 conftest$ac_exeext conftest.$ac_ext
31461LIBS=$ac_check_lib_save_LIBS
31462fi
31463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5
31464$as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
31465if test "x$ac_cv_lib_png_png_get_io_ptr" = xyes; then :
31466 passed=`expr $passed + 1`
31467else
31468 failed=`expr $failed + 1`
31469fi
31470
31471 fi
31472 if test $passed -gt 0 -a $failed -le 0 ; then
31473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${pnglib} package is complete" >&5
31474$as_echo_n "checking if ${pnglib} package is complete... " >&6; }
31475 if test $passed -gt 0 ; then
31476 if test $failed -gt 0 ; then
cristy09b53e12011-10-14 12:47:22 +000031477 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
31478$as_echo "$as_me: no -- some components failed test" >&6;}
cristy81beccd2011-10-03 18:17:24 +000031479 have_png='no (failed tests)'
31480 else
31481 PNG_LIBS="-l${pnglib}"
31482 LIBS="$PNG_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000031483
cristy8b350f62009-11-15 23:12:43 +000031484$as_echo "#define PNG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031485
cristy09b53e12011-10-14 12:47:22 +000031486 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
31487$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000031488 have_png='yes'
31489 fi
31490 fi
31491 fi
31492 fi
31493 fi
31494 done
31495 fi
cristy3ed852e2009-09-05 21:47:34 +000031496fi
cristy64877302011-08-23 19:10:31 +000031497
cristy73bd4a52010-10-05 11:24:23 +000031498 if test "$have_png" = 'yes'; then
31499 PNG_DELEGATE_TRUE=
31500 PNG_DELEGATE_FALSE='#'
31501else
31502 PNG_DELEGATE_TRUE='#'
31503 PNG_DELEGATE_FALSE=
31504fi
31505
cristy3ed852e2009-09-05 21:47:34 +000031506
cristy50d3f5c2011-09-10 20:09:06 +000031507
cristy3ed852e2009-09-05 21:47:34 +000031508
31509
31510#
31511# Check for RSVG delegate library.
31512#
31513
31514# Check whether --with-rsvg was given.
cristy8b350f62009-11-15 23:12:43 +000031515if test "${with_rsvg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031516 withval=$with_rsvg; with_rsvg=$withval
31517else
cristyfc3d0222012-02-07 15:05:57 +000031518 with_rsvg='yes'
cristy3ed852e2009-09-05 21:47:34 +000031519fi
31520
31521
31522if test "$with_rsvg" != 'yes'; then
31523 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
31524fi
31525
31526have_rsvg='no'
31527have_cairo='no'
31528RSVG_CFLAGS=""
31529RSVG_LIBS=""
31530RSVG_PKG=""
31531if test "x$with_rsvg" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000031532 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
31533$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000031534
31535pkg_failed=no
31536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
31537$as_echo_n "checking for RSVG... " >&6; }
31538
31539if test -n "$RSVG_CFLAGS"; then
31540 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
31541 elif test -n "$PKG_CONFIG"; then
31542 if test -n "$PKG_CONFIG" && \
31543 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
31544 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
31545 ac_status=$?
31546 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31547 test $ac_status = 0; }; then
31548 pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
31549else
31550 pkg_failed=yes
31551fi
31552 else
31553 pkg_failed=untried
31554fi
31555if test -n "$RSVG_LIBS"; then
31556 pkg_cv_RSVG_LIBS="$RSVG_LIBS"
31557 elif test -n "$PKG_CONFIG"; then
31558 if test -n "$PKG_CONFIG" && \
31559 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
31560 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
31561 ac_status=$?
31562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31563 test $ac_status = 0; }; then
31564 pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
31565else
31566 pkg_failed=yes
31567fi
31568 else
31569 pkg_failed=untried
31570fi
31571
31572
31573
31574if test $pkg_failed = yes; then
31575
31576if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31577 _pkg_short_errors_supported=yes
31578else
31579 _pkg_short_errors_supported=no
31580fi
31581 if test $_pkg_short_errors_supported = yes; then
31582 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
31583 else
31584 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
31585 fi
31586 # Put the nasty error message in config.log where it belongs
31587 echo "$RSVG_PKG_ERRORS" >&5
31588
31589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31590$as_echo "no" >&6; }
31591 have_rsvg=no
31592elif test $pkg_failed = untried; then
31593 have_rsvg=no
31594else
31595 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
31596 RSVG_LIBS=$pkg_cv_RSVG_LIBS
31597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31598$as_echo "yes" >&6; }
31599 have_rsvg=yes
31600fi
cristy09b53e12011-10-14 12:47:22 +000031601 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31602$as_echo "$as_me: " >&6;}
cristy73bd4a52010-10-05 11:24:23 +000031603
31604pkg_failed=no
31605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
31606$as_echo_n "checking for CAIRO_SVG... " >&6; }
31607
31608if test -n "$CAIRO_SVG_CFLAGS"; then
31609 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
31610 elif test -n "$PKG_CONFIG"; then
31611 if test -n "$PKG_CONFIG" && \
31612 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
31613 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
31614 ac_status=$?
31615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31616 test $ac_status = 0; }; then
31617 pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
31618else
31619 pkg_failed=yes
31620fi
31621 else
31622 pkg_failed=untried
31623fi
31624if test -n "$CAIRO_SVG_LIBS"; then
31625 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
31626 elif test -n "$PKG_CONFIG"; then
31627 if test -n "$PKG_CONFIG" && \
31628 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
31629 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
31630 ac_status=$?
31631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31632 test $ac_status = 0; }; then
31633 pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
31634else
31635 pkg_failed=yes
31636fi
31637 else
31638 pkg_failed=untried
31639fi
31640
31641
31642
31643if test $pkg_failed = yes; then
31644
31645if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31646 _pkg_short_errors_supported=yes
31647else
31648 _pkg_short_errors_supported=no
31649fi
31650 if test $_pkg_short_errors_supported = yes; then
31651 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1`
31652 else
31653 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1`
31654 fi
31655 # Put the nasty error message in config.log where it belongs
31656 echo "$CAIRO_SVG_PKG_ERRORS" >&5
31657
31658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31659$as_echo "no" >&6; }
31660 have_cairo=no
31661elif test $pkg_failed = untried; then
31662 have_cairo=no
31663else
31664 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
31665 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
31666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31667$as_echo "yes" >&6; }
31668 have_cairo=yes
31669fi
cristy09b53e12011-10-14 12:47:22 +000031670 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31671$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000031672fi
31673
31674if test "$have_rsvg" = 'yes'; then
31675
cristy8b350f62009-11-15 23:12:43 +000031676$as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031677
31678 if test "$with_modules" = 'no'; then
31679 CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
31680 fi
31681fi
31682
31683if test "$have_cairo" = 'yes'; then
31684
cristy8b350f62009-11-15 23:12:43 +000031685$as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031686
31687 if test "$with_modules" = 'no'; then
31688 CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
31689 fi
31690fi
31691
cristy73bd4a52010-10-05 11:24:23 +000031692 if test "$have_rsvg" = 'yes'; then
31693 RSVG_DELEGATE_TRUE=
31694 RSVG_DELEGATE_FALSE='#'
31695else
31696 RSVG_DELEGATE_TRUE='#'
31697 RSVG_DELEGATE_FALSE=
31698fi
31699
31700 if test "$have_cairo" = 'yes'; then
31701 CAIRO_DELEGATE_TRUE=
31702 CAIRO_DELEGATE_FALSE='#'
31703else
31704 CAIRO_DELEGATE_TRUE='#'
31705 CAIRO_DELEGATE_FALSE=
31706fi
31707
cristy3ed852e2009-09-05 21:47:34 +000031708
31709
31710
31711
31712#
31713# Check for TIFF delegate library.
31714#
31715
31716# Check whether --with-tiff was given.
cristy8b350f62009-11-15 23:12:43 +000031717if test "${with_tiff+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031718 withval=$with_tiff; with_tiff=$withval
31719else
31720 with_tiff='yes'
31721fi
31722
31723
31724if test "$with_tiff" != 'yes'; then
31725 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
31726fi
31727
31728have_tiff='no'
31729TIFF_LIBS=''
31730if test "$with_tiff" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000031731 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
31732$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000031733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
cristy3ed852e2009-09-05 21:47:34 +000031734$as_echo_n "checking for TIFF... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000031735 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31736$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000031737 failed=0
31738 passed=0
cristy8b350f62009-11-15 23:12:43 +000031739 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031740if test "x$ac_cv_header_tiff_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031741 passed=`expr $passed + 1`
31742else
31743 failed=`expr $failed + 1`
31744fi
31745
31746
cristy8b350f62009-11-15 23:12:43 +000031747 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031748if test "x$ac_cv_header_tiffio_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031749 passed=`expr $passed + 1`
31750else
31751 failed=`expr $failed + 1`
31752fi
31753
31754
cristy8b350f62009-11-15 23:12:43 +000031755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031756$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031757if ${ac_cv_lib_tiff_TIFFOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031758 $as_echo_n "(cached) " >&6
31759else
31760 ac_check_lib_save_LIBS=$LIBS
31761LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031762cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031763/* end confdefs.h. */
31764
31765/* Override any GCC internal prototype to avoid an error.
31766 Use char because int might match the return type of a GCC
31767 builtin and then its argument prototype would still apply. */
31768#ifdef __cplusplus
31769extern "C"
31770#endif
31771char TIFFOpen ();
31772int
31773main ()
31774{
31775return TIFFOpen ();
31776 ;
31777 return 0;
31778}
31779_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031780if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031781 ac_cv_lib_tiff_TIFFOpen=yes
31782else
cristy8b350f62009-11-15 23:12:43 +000031783 ac_cv_lib_tiff_TIFFOpen=no
cristy3ed852e2009-09-05 21:47:34 +000031784fi
cristy8b350f62009-11-15 23:12:43 +000031785rm -f core conftest.err conftest.$ac_objext \
31786 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031787LIBS=$ac_check_lib_save_LIBS
31788fi
cristy8b350f62009-11-15 23:12:43 +000031789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000031790$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000031791if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031792 passed=`expr $passed + 1`
31793else
31794 failed=`expr $failed + 1`
31795fi
31796
cristy8b350f62009-11-15 23:12:43 +000031797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031798$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031799if ${ac_cv_lib_tiff_TIFFClientOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031800 $as_echo_n "(cached) " >&6
31801else
31802 ac_check_lib_save_LIBS=$LIBS
31803LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031804cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031805/* end confdefs.h. */
31806
31807/* Override any GCC internal prototype to avoid an error.
31808 Use char because int might match the return type of a GCC
31809 builtin and then its argument prototype would still apply. */
31810#ifdef __cplusplus
31811extern "C"
31812#endif
31813char TIFFClientOpen ();
31814int
31815main ()
31816{
31817return TIFFClientOpen ();
31818 ;
31819 return 0;
31820}
31821_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031822if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031823 ac_cv_lib_tiff_TIFFClientOpen=yes
31824else
cristy8b350f62009-11-15 23:12:43 +000031825 ac_cv_lib_tiff_TIFFClientOpen=no
cristy3ed852e2009-09-05 21:47:34 +000031826fi
cristy8b350f62009-11-15 23:12:43 +000031827rm -f core conftest.err conftest.$ac_objext \
31828 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031829LIBS=$ac_check_lib_save_LIBS
31830fi
cristy8b350f62009-11-15 23:12:43 +000031831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000031832$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000031833if test "x$ac_cv_lib_tiff_TIFFClientOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031834 passed=`expr $passed + 1`
31835else
31836 failed=`expr $failed + 1`
31837fi
31838
cristy8b350f62009-11-15 23:12:43 +000031839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031840$as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031841if ${ac_cv_lib_tiff_TIFFIsByteSwapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031842 $as_echo_n "(cached) " >&6
31843else
31844 ac_check_lib_save_LIBS=$LIBS
31845LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031846cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031847/* end confdefs.h. */
31848
31849/* Override any GCC internal prototype to avoid an error.
31850 Use char because int might match the return type of a GCC
31851 builtin and then its argument prototype would still apply. */
31852#ifdef __cplusplus
31853extern "C"
31854#endif
31855char TIFFIsByteSwapped ();
31856int
31857main ()
31858{
31859return TIFFIsByteSwapped ();
31860 ;
31861 return 0;
31862}
31863_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031864if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031865 ac_cv_lib_tiff_TIFFIsByteSwapped=yes
31866else
cristy8b350f62009-11-15 23:12:43 +000031867 ac_cv_lib_tiff_TIFFIsByteSwapped=no
cristy3ed852e2009-09-05 21:47:34 +000031868fi
cristy8b350f62009-11-15 23:12:43 +000031869rm -f core conftest.err conftest.$ac_objext \
31870 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031871LIBS=$ac_check_lib_save_LIBS
31872fi
cristy8b350f62009-11-15 23:12:43 +000031873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000031874$as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
cristyda16f162011-02-19 23:52:17 +000031875if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031876 passed=`expr $passed + 1`
31877else
31878 failed=`expr $failed + 1`
31879fi
31880
cristy8b350f62009-11-15 23:12:43 +000031881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031882$as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031883if ${ac_cv_lib_tiff_TIFFReadRGBATile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031884 $as_echo_n "(cached) " >&6
31885else
31886 ac_check_lib_save_LIBS=$LIBS
31887LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031888cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031889/* end confdefs.h. */
31890
31891/* Override any GCC internal prototype to avoid an error.
31892 Use char because int might match the return type of a GCC
31893 builtin and then its argument prototype would still apply. */
31894#ifdef __cplusplus
31895extern "C"
31896#endif
31897char TIFFReadRGBATile ();
31898int
31899main ()
31900{
31901return TIFFReadRGBATile ();
31902 ;
31903 return 0;
31904}
31905_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031906if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031907 ac_cv_lib_tiff_TIFFReadRGBATile=yes
31908else
cristy8b350f62009-11-15 23:12:43 +000031909 ac_cv_lib_tiff_TIFFReadRGBATile=no
cristy3ed852e2009-09-05 21:47:34 +000031910fi
cristy8b350f62009-11-15 23:12:43 +000031911rm -f core conftest.err conftest.$ac_objext \
31912 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031913LIBS=$ac_check_lib_save_LIBS
31914fi
cristy8b350f62009-11-15 23:12:43 +000031915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
cristy3ed852e2009-09-05 21:47:34 +000031916$as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
cristyda16f162011-02-19 23:52:17 +000031917if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031918 passed=`expr $passed + 1`
31919else
31920 failed=`expr $failed + 1`
31921fi
31922
cristy8b350f62009-11-15 23:12:43 +000031923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031924$as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031925if ${ac_cv_lib_tiff_TIFFReadRGBAStrip+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031926 $as_echo_n "(cached) " >&6
31927else
31928 ac_check_lib_save_LIBS=$LIBS
31929LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031930cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031931/* end confdefs.h. */
31932
31933/* Override any GCC internal prototype to avoid an error.
31934 Use char because int might match the return type of a GCC
31935 builtin and then its argument prototype would still apply. */
31936#ifdef __cplusplus
31937extern "C"
31938#endif
31939char TIFFReadRGBAStrip ();
31940int
31941main ()
31942{
31943return TIFFReadRGBAStrip ();
31944 ;
31945 return 0;
31946}
31947_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031948if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031949 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
31950else
cristy8b350f62009-11-15 23:12:43 +000031951 ac_cv_lib_tiff_TIFFReadRGBAStrip=no
cristy3ed852e2009-09-05 21:47:34 +000031952fi
cristy8b350f62009-11-15 23:12:43 +000031953rm -f core conftest.err conftest.$ac_objext \
31954 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031955LIBS=$ac_check_lib_save_LIBS
31956fi
cristy8b350f62009-11-15 23:12:43 +000031957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
cristy3ed852e2009-09-05 21:47:34 +000031958$as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
cristyda16f162011-02-19 23:52:17 +000031959if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031960 passed=`expr $passed + 1`
31961else
31962 failed=`expr $failed + 1`
31963fi
31964
cristy8b350f62009-11-15 23:12:43 +000031965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000031966$as_echo_n "checking if TIFF package is complete... " >&6; }
31967 if test $passed -gt 0; then
31968 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000031969 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
31970$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000031971 have_tiff='no (failed tests)'
31972 else
31973 TIFF_LIBS='-ltiff'
31974 LIBS="$TIFF_LIBS $LIBS"
31975
cristy8b350f62009-11-15 23:12:43 +000031976$as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031977
cristy09b53e12011-10-14 12:47:22 +000031978 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
31979$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000031980 have_tiff='yes'
cristy8b350f62009-11-15 23:12:43 +000031981 for ac_header in tiffconf.h
31982do :
31983 ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031984if test "x$ac_cv_header_tiffconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031985 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031986#define HAVE_TIFFCONF_H 1
cristy3ed852e2009-09-05 21:47:34 +000031987_ACEOF
31988
31989fi
31990
31991done
31992
cristy8b350f62009-11-15 23:12:43 +000031993 for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
cristy3f590e52011-11-14 14:29:44 +000031994 TIFFIsBigEndian TIFFReadEXIFDirectory TIFFSetErrorHandlerExt \
31995 TIFFSetTagExtender TIFFSetWarningHandlerExt \
31996 TIFFSwabArrayOfTriples
cristy8b350f62009-11-15 23:12:43 +000031997do :
31998 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
31999ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000032000if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000032001 cat >>confdefs.h <<_ACEOF
32002#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
32003_ACEOF
32004
32005fi
32006done
32007
32008 fi
32009 else
cristy09b53e12011-10-14 12:47:22 +000032010 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
32011$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000032012 fi
32013fi
cristy73bd4a52010-10-05 11:24:23 +000032014 if test "$have_tiff" = 'yes'; then
32015 TIFF_DELEGATE_TRUE=
32016 TIFF_DELEGATE_FALSE='#'
32017else
32018 TIFF_DELEGATE_TRUE='#'
32019 TIFF_DELEGATE_FALSE=
32020fi
32021
cristy3ed852e2009-09-05 21:47:34 +000032022
32023
32024
32025#
cristyb1860752011-03-14 00:27:46 +000032026# Check for WEBP delegate library.
32027#
32028
32029# Check whether --with-webp was given.
32030if test "${with_webp+set}" = set; then :
32031 withval=$with_webp; with_webp=$withval
32032else
32033 with_webp='yes'
32034fi
32035
32036
32037if test "$with_webp" != 'yes'; then
32038 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-webp=$with_webp "
32039fi
32040
32041have_webp='no'
32042WEBP_LIBS=''
32043if test "$with_webp" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000032044 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
32045$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristyb1860752011-03-14 00:27:46 +000032046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBP" >&5
32047$as_echo_n "checking for WEBP... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000032048 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
32049$as_echo "$as_me: " >&6;}
cristyb1860752011-03-14 00:27:46 +000032050 failed=0
32051 passed=0
32052 ac_fn_c_check_header_mongrel "$LINENO" "webp/decode.h" "ac_cv_header_webp_decode_h" "$ac_includes_default"
32053if test "x$ac_cv_header_webp_decode_h" = xyes; then :
32054 passed=`expr $passed + 1`
32055else
32056 failed=`expr $failed + 1`
32057fi
32058
32059
32060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WebPDecodeRGB in -lwebp" >&5
32061$as_echo_n "checking for WebPDecodeRGB in -lwebp... " >&6; }
32062if ${ac_cv_lib_webp_WebPDecodeRGB+:} false; then :
32063 $as_echo_n "(cached) " >&6
32064else
32065 ac_check_lib_save_LIBS=$LIBS
32066LIBS="-lwebp $LIBS"
32067cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32068/* end confdefs.h. */
32069
32070/* Override any GCC internal prototype to avoid an error.
32071 Use char because int might match the return type of a GCC
32072 builtin and then its argument prototype would still apply. */
32073#ifdef __cplusplus
32074extern "C"
32075#endif
32076char WebPDecodeRGB ();
32077int
32078main ()
32079{
32080return WebPDecodeRGB ();
32081 ;
32082 return 0;
32083}
32084_ACEOF
32085if ac_fn_c_try_link "$LINENO"; then :
32086 ac_cv_lib_webp_WebPDecodeRGB=yes
32087else
32088 ac_cv_lib_webp_WebPDecodeRGB=no
32089fi
32090rm -f core conftest.err conftest.$ac_objext \
32091 conftest$ac_exeext conftest.$ac_ext
32092LIBS=$ac_check_lib_save_LIBS
32093fi
32094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_webp_WebPDecodeRGB" >&5
32095$as_echo "$ac_cv_lib_webp_WebPDecodeRGB" >&6; }
32096if test "x$ac_cv_lib_webp_WebPDecodeRGB" = xyes; then :
32097 passed=`expr $passed + 1`
32098else
32099 failed=`expr $failed + 1`
32100fi
32101
32102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WEBP package is complete" >&5
32103$as_echo_n "checking if WEBP package is complete... " >&6; }
32104 if test $passed -gt 0; then
32105 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000032106 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
32107$as_echo "$as_me: no -- some components failed test" >&6;}
cristyb1860752011-03-14 00:27:46 +000032108 have_webp='no (failed tests)'
32109 else
32110 WEBP_LIBS='-lwebp'
32111 LIBS="$WEBP_LIBS $LIBS"
32112
32113$as_echo "#define WEBP_DELEGATE 1" >>confdefs.h
32114
cristy09b53e12011-10-14 12:47:22 +000032115 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
32116$as_echo "$as_me: yes" >&6;}
cristyb1860752011-03-14 00:27:46 +000032117 have_webp='yes'
32118 fi
32119 else
cristy09b53e12011-10-14 12:47:22 +000032120 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
32121$as_echo "$as_me: no" >&6;}
cristyb1860752011-03-14 00:27:46 +000032122 fi
32123fi
32124 if test "$have_webp" = 'yes'; then
32125 WEBP_DELEGATE_TRUE=
32126 WEBP_DELEGATE_FALSE='#'
32127else
32128 WEBP_DELEGATE_TRUE='#'
32129 WEBP_DELEGATE_FALSE=
32130fi
32131
32132
32133
32134
32135#
cristy3ed852e2009-09-05 21:47:34 +000032136# Set Windows font directory.
32137#
32138
32139# Check whether --with-windows-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000032140if test "${with_windows_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032141 withval=$with_windows_font_dir; with_windows_font_dir=$withval
32142else
32143 with_windows_font_dir=''
32144fi
32145
32146if test "$with_windows_font_dir" != '' ; then
32147 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
32148fi
32149
32150
32151#
32152# Check for WMF delegate library.
32153#
32154
32155# Check whether --with-wmf was given.
cristy8b350f62009-11-15 23:12:43 +000032156if test "${with_wmf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032157 withval=$with_wmf; with_wmf=$withval
32158else
cristyfc3d0222012-02-07 15:05:57 +000032159 with_wmf='no'
cristy3ed852e2009-09-05 21:47:34 +000032160fi
32161
32162
32163if test "$with_wmf" != 'yes'; then
32164 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
32165fi
32166
32167have_wmf='no'
32168WMF_LIBS=''
cristy03f7cf92011-12-15 01:40:41 +000032169WMF_LIBS_DEPS=''
32170OLIBS="$LIBS"
cristy3ed852e2009-09-05 21:47:34 +000032171if test "$with_wmf" != 'no'; then
cristy03f7cf92011-12-15 01:40:41 +000032172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32173$as_echo "-------------------------------------------------------------" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000032174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5
cristy3ed852e2009-09-05 21:47:34 +000032175$as_echo_n "checking for WMF... " >&6; }
cristy03f7cf92011-12-15 01:40:41 +000032176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32177$as_echo "" >&6; }
32178 have_libwmf='no'
32179 have_libwmflite='no'
32180 have_libwmf_ipa_h='no'
32181
32182 ac_fn_c_check_header_compile "$LINENO" "libwmf/ipa.h" "ac_cv_header_libwmf_ipa_h" "$FT2BUILD_H
32183"
32184if test "x$ac_cv_header_libwmf_ipa_h" = xyes; then :
32185 have_libwmf_ipa_h='yes'
cristy3ed852e2009-09-05 21:47:34 +000032186fi
32187
32188
cristy03f7cf92011-12-15 01:40:41 +000032189 if test "$have_libwmf_ipa_h" = 'yes'; then
32190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_lite_create in -lwmflite" >&5
32191$as_echo_n "checking for wmf_lite_create in -lwmflite... " >&6; }
32192if ${ac_cv_lib_wmflite_wmf_lite_create+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032193 $as_echo_n "(cached) " >&6
32194else
32195 ac_check_lib_save_LIBS=$LIBS
cristy03f7cf92011-12-15 01:40:41 +000032196LIBS="-lwmflite $LIBS"
cristy8b350f62009-11-15 23:12:43 +000032197cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032198/* end confdefs.h. */
32199
32200/* Override any GCC internal prototype to avoid an error.
32201 Use char because int might match the return type of a GCC
32202 builtin and then its argument prototype would still apply. */
32203#ifdef __cplusplus
32204extern "C"
32205#endif
cristy03f7cf92011-12-15 01:40:41 +000032206char wmf_lite_create ();
cristy3ed852e2009-09-05 21:47:34 +000032207int
32208main ()
32209{
cristy03f7cf92011-12-15 01:40:41 +000032210return wmf_lite_create ();
cristy3ed852e2009-09-05 21:47:34 +000032211 ;
32212 return 0;
32213}
32214_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032215if ac_fn_c_try_link "$LINENO"; then :
cristy03f7cf92011-12-15 01:40:41 +000032216 ac_cv_lib_wmflite_wmf_lite_create=yes
cristy3ed852e2009-09-05 21:47:34 +000032217else
cristy03f7cf92011-12-15 01:40:41 +000032218 ac_cv_lib_wmflite_wmf_lite_create=no
cristy3ed852e2009-09-05 21:47:34 +000032219fi
cristy8b350f62009-11-15 23:12:43 +000032220rm -f core conftest.err conftest.$ac_objext \
32221 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032222LIBS=$ac_check_lib_save_LIBS
32223fi
cristy03f7cf92011-12-15 01:40:41 +000032224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmflite_wmf_lite_create" >&5
32225$as_echo "$ac_cv_lib_wmflite_wmf_lite_create" >&6; }
32226if test "x$ac_cv_lib_wmflite_wmf_lite_create" = xyes; then :
32227 have_libwmflite='yes'
cristy9243a2d2011-08-22 17:32:32 +000032228fi
32229
cristy03f7cf92011-12-15 01:40:41 +000032230 if test "$have_libwmflite" = 'yes'; then
32231
32232$as_echo "#define WMFLITE_DELEGATE 1" >>confdefs.h
32233
32234 WMF_LIBS='-lwmflite'
glennrp33e524b2011-08-24 17:41:57 +000032235 LIBS="$WMF_LIBS $LIBS"
cristy03f7cf92011-12-15 01:40:41 +000032236 have_wmf='yes'
32237 else
32238 WMF_LIBS_DEPS=''
32239 WMF_CONFIG_LIBS=`libwmf-config --libs`
32240 for lib in xml2 expat freetype jpeg png z; do
32241 testlib="-l${lib}"
32242 echo "$WMF_CONFIG_LIBS" | grep -- "$testlib" > /dev/null && WMF_LIBS_DEPS="$WMF_LIBS_DEPS $testlib"
32243 done
32244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_api_create in -lwmf" >&5
32245$as_echo_n "checking for wmf_api_create in -lwmf... " >&6; }
32246if ${ac_cv_lib_wmf_wmf_api_create+:} false; then :
32247 $as_echo_n "(cached) " >&6
32248else
32249 ac_check_lib_save_LIBS=$LIBS
32250LIBS="-lwmf $WMF_LIBS_DEPS $LIBS"
32251cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32252/* end confdefs.h. */
32253
32254/* Override any GCC internal prototype to avoid an error.
32255 Use char because int might match the return type of a GCC
32256 builtin and then its argument prototype would still apply. */
32257#ifdef __cplusplus
32258extern "C"
32259#endif
32260char wmf_api_create ();
32261int
32262main ()
32263{
32264return wmf_api_create ();
32265 ;
32266 return 0;
32267}
32268_ACEOF
32269if ac_fn_c_try_link "$LINENO"; then :
32270 ac_cv_lib_wmf_wmf_api_create=yes
32271else
32272 ac_cv_lib_wmf_wmf_api_create=no
32273fi
32274rm -f core conftest.err conftest.$ac_objext \
32275 conftest$ac_exeext conftest.$ac_ext
32276LIBS=$ac_check_lib_save_LIBS
32277fi
32278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_api_create" >&5
32279$as_echo "$ac_cv_lib_wmf_wmf_api_create" >&6; }
32280if test "x$ac_cv_lib_wmf_wmf_api_create" = xyes; then :
32281 have_libwmf='yes'
32282fi
32283
32284 if test "$have_libwmf" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000032285
cristy8b350f62009-11-15 23:12:43 +000032286$as_echo "#define WMF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000032287
cristy03f7cf92011-12-15 01:40:41 +000032288 WMF_LIBS='-lwmf'
32289 LIBS="$WMF_LIBS $LIBS"
32290 have_wmf='yes'
32291 else
32292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
32293$as_echo "no -- some components failed test" >&6; }
32294 have_wmf='no (failed tests)'
32295 have_wmflite='no (failed tests)'
32296 LIBS="$OLIBS"
32297 WMF_LIBS=''
32298 fi
glennrp33e524b2011-08-24 17:41:57 +000032299 fi
cristy03f7cf92011-12-15 01:40:41 +000032300 fi
32301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5
32302$as_echo_n "checking if WMF package is complete... " >&6; }
32303 if test "$have_wmf" = 'yes'; then
32304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32305$as_echo "yes" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000032306 else
cristy03f7cf92011-12-15 01:40:41 +000032307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32308$as_echo "no" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000032309 fi
cristy3ed852e2009-09-05 21:47:34 +000032310fi
cristy73bd4a52010-10-05 11:24:23 +000032311 if test "$have_wmf" = 'yes'; then
32312 WMF_DELEGATE_TRUE=
32313 WMF_DELEGATE_FALSE='#'
32314else
32315 WMF_DELEGATE_TRUE='#'
32316 WMF_DELEGATE_FALSE=
32317fi
32318
cristy3ed852e2009-09-05 21:47:34 +000032319
32320
32321
cristy81beccd2011-10-03 18:17:24 +000032322
32323
cristy3ed852e2009-09-05 21:47:34 +000032324#
32325# Check for XML delegate library.
32326#
32327
32328# Check whether --with-xml was given.
cristy8b350f62009-11-15 23:12:43 +000032329if test "${with_xml+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032330 withval=$with_xml; with_xml=$withval
32331else
cristyfc3d0222012-02-07 15:05:57 +000032332 with_xml='yes'
cristy3ed852e2009-09-05 21:47:34 +000032333fi
32334
32335
cristy81beccd2011-10-03 18:17:24 +000032336if test "$with_xml" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000032337 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
32338fi
32339
cristy81beccd2011-10-03 18:17:24 +000032340have_xml='no'
32341XML_LIBS=''
32342if test "$with_xml" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000032343 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
32344$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy81beccd2011-10-03 18:17:24 +000032345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
32346$as_echo_n "checking for XML... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000032347 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
32348$as_echo "$as_me: " >&6;}
cristy81beccd2011-10-03 18:17:24 +000032349 PERSIST_LDFLAGS=$LDFLAGS
32350 PERSIST_CPPFLAGS=$CPPFLAGS
32351 xml2_config=''
32352 # Extract the first word of "xml2-config", so it can be a program name with args.
32353set dummy xml2-config; ac_word=$2
32354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32355$as_echo_n "checking for $ac_word... " >&6; }
32356if ${ac_cv_path_xml2_config+:} false; then :
32357 $as_echo_n "(cached) " >&6
32358else
32359 case $xml2_config in
32360 [\\/]* | ?:[\\/]*)
32361 ac_cv_path_xml2_config="$xml2_config" # Let the user override the test with a path.
32362 ;;
32363 *)
32364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32365for as_dir in $PATH
32366do
32367 IFS=$as_save_IFS
32368 test -z "$as_dir" && as_dir=.
32369 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032370 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy81beccd2011-10-03 18:17:24 +000032371 ac_cv_path_xml2_config="$as_dir/$ac_word$ac_exec_ext"
32372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32373 break 2
32374 fi
32375done
32376 done
32377IFS=$as_save_IFS
32378
32379 ;;
32380esac
32381fi
32382xml2_config=$ac_cv_path_xml2_config
32383if test -n "$xml2_config"; then
32384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5
32385$as_echo "$xml2_config" >&6; }
32386else
32387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32388$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032389fi
32390
cristy81beccd2011-10-03 18:17:24 +000032391 if test -n "$xml2_config"; then
32392 # Debian installs libxml headers under /usr/include/libxml2/libxml with
32393 # the shared library installed under /usr/lib, whereas the package
32394 # installs itself under $prefix/libxml and $prefix/lib.
32395 xml2_prefix=`xml2-config --prefix`
32396 if test -d "${xml2_prefix}/include/libxml2"; then
32397 CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
32398 fi
32399 if test "${xml2_prefix}" != '/usr'; then
32400 LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
32401 fi
32402 fi
32403 failed=0
32404 passed=0
32405 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
32406if test "x$ac_cv_header_libxml_parser_h" = xyes; then :
32407 passed=`expr $passed + 1`
32408else
32409 failed=`expr $failed + 1`
32410fi
32411
32412
32413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSAXVersion in -lxml2" >&5
32414$as_echo_n "checking for xmlSAXVersion in -lxml2... " >&6; }
32415if ${ac_cv_lib_xml2_xmlSAXVersion+:} false; then :
32416 $as_echo_n "(cached) " >&6
32417else
32418 ac_check_lib_save_LIBS=$LIBS
32419LIBS="-lxml2 $LIBS"
32420cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32421/* end confdefs.h. */
32422
32423/* Override any GCC internal prototype to avoid an error.
32424 Use char because int might match the return type of a GCC
32425 builtin and then its argument prototype would still apply. */
32426#ifdef __cplusplus
32427extern "C"
32428#endif
32429char xmlSAXVersion ();
32430int
32431main ()
32432{
32433return xmlSAXVersion ();
32434 ;
32435 return 0;
32436}
32437_ACEOF
32438if ac_fn_c_try_link "$LINENO"; then :
32439 ac_cv_lib_xml2_xmlSAXVersion=yes
32440else
32441 ac_cv_lib_xml2_xmlSAXVersion=no
32442fi
32443rm -f core conftest.err conftest.$ac_objext \
32444 conftest$ac_exeext conftest.$ac_ext
32445LIBS=$ac_check_lib_save_LIBS
32446fi
32447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSAXVersion" >&5
32448$as_echo "$ac_cv_lib_xml2_xmlSAXVersion" >&6; }
32449if test "x$ac_cv_lib_xml2_xmlSAXVersion" = xyes; then :
32450 passed=`expr $passed + 1`
32451else
32452 failed=`expr $failed + 1`
32453fi
32454
32455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseChunk in -lxml2" >&5
32456$as_echo_n "checking for xmlParseChunk in -lxml2... " >&6; }
32457if ${ac_cv_lib_xml2_xmlParseChunk+:} false; then :
32458 $as_echo_n "(cached) " >&6
32459else
32460 ac_check_lib_save_LIBS=$LIBS
32461LIBS="-lxml2 $LIBS"
32462cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32463/* end confdefs.h. */
32464
32465/* Override any GCC internal prototype to avoid an error.
32466 Use char because int might match the return type of a GCC
32467 builtin and then its argument prototype would still apply. */
32468#ifdef __cplusplus
32469extern "C"
32470#endif
32471char xmlParseChunk ();
32472int
32473main ()
32474{
32475return xmlParseChunk ();
32476 ;
32477 return 0;
32478}
32479_ACEOF
32480if ac_fn_c_try_link "$LINENO"; then :
32481 ac_cv_lib_xml2_xmlParseChunk=yes
32482else
32483 ac_cv_lib_xml2_xmlParseChunk=no
32484fi
32485rm -f core conftest.err conftest.$ac_objext \
32486 conftest$ac_exeext conftest.$ac_ext
32487LIBS=$ac_check_lib_save_LIBS
32488fi
32489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseChunk" >&5
32490$as_echo "$ac_cv_lib_xml2_xmlParseChunk" >&6; }
32491if test "x$ac_cv_lib_xml2_xmlParseChunk" = xyes; then :
32492 passed=`expr $passed + 1`
32493else
32494 failed=`expr $failed + 1`
32495fi
32496
32497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlCreatePushParserCtxt in -lxml2" >&5
32498$as_echo_n "checking for xmlCreatePushParserCtxt in -lxml2... " >&6; }
32499if ${ac_cv_lib_xml2_xmlCreatePushParserCtxt+:} false; then :
32500 $as_echo_n "(cached) " >&6
32501else
32502 ac_check_lib_save_LIBS=$LIBS
32503LIBS="-lxml2 $LIBS"
32504cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32505/* end confdefs.h. */
32506
32507/* Override any GCC internal prototype to avoid an error.
32508 Use char because int might match the return type of a GCC
32509 builtin and then its argument prototype would still apply. */
32510#ifdef __cplusplus
32511extern "C"
32512#endif
32513char xmlCreatePushParserCtxt ();
32514int
32515main ()
32516{
32517return xmlCreatePushParserCtxt ();
32518 ;
32519 return 0;
32520}
32521_ACEOF
32522if ac_fn_c_try_link "$LINENO"; then :
32523 ac_cv_lib_xml2_xmlCreatePushParserCtxt=yes
32524else
32525 ac_cv_lib_xml2_xmlCreatePushParserCtxt=no
32526fi
32527rm -f core conftest.err conftest.$ac_objext \
32528 conftest$ac_exeext conftest.$ac_ext
32529LIBS=$ac_check_lib_save_LIBS
32530fi
32531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&5
32532$as_echo "$ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&6; }
32533if test "x$ac_cv_lib_xml2_xmlCreatePushParserCtxt" = xyes; then :
32534 passed=`expr $passed + 1`
32535else
32536 failed=`expr $failed + 1`
32537fi
32538
32539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5
32540$as_echo_n "checking if XML package is complete... " >&6; }
32541 if test $passed -gt 0; then
32542 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000032543 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
32544$as_echo "$as_me: no -- some components failed test" >&6;}
cristy81beccd2011-10-03 18:17:24 +000032545 have_xml='no (failed tests)'
32546 LDFLAGS="$PERSIST_LDFLAGS"
32547 CPPFLAGS="$PERSIST_CPPFLAGS"
32548 else
32549 XML_LIBS='-lxml2'
32550 LIBS="$XML_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000032551
cristy8b350f62009-11-15 23:12:43 +000032552$as_echo "#define XML_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000032553
cristy09b53e12011-10-14 12:47:22 +000032554 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
32555$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000032556 have_xml='yes'
32557 fi
32558 else
cristy09b53e12011-10-14 12:47:22 +000032559 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
32560$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000032561 fi
32562fi
cristy73bd4a52010-10-05 11:24:23 +000032563 if test "$have_xml" = 'yes'; then
32564 XML_DELEGATE_TRUE=
32565 XML_DELEGATE_FALSE='#'
32566else
32567 XML_DELEGATE_TRUE='#'
32568 XML_DELEGATE_FALSE=
32569fi
32570
cristy3ed852e2009-09-05 21:47:34 +000032571
32572
32573
32574# Substitute compiler name to build/link PerlMagick
32575#
32576
32577
32578#
32579# Configure install Paths
32580#
cristy7def36a2011-10-28 19:04:41 +000032581
cristy2a11bef2011-10-28 18:33:11 +000032582# Path to ImageMagick header files
32583INCLUDE_RELATIVE_PATH="ImageMagick"
cristy670aa3c2011-11-03 00:54:00 +000032584INCLUDE_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}"
32585DEFINE_INCLUDE_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}/"
cristy2a11bef2011-10-28 18:33:11 +000032586case "${build_os}" in
32587 mingw* )
32588 DEFINE_INCLUDE_PATH=`$WinPathScript "$DEFINE_INCLUDE_PATH" 1`
32589 ;;
32590esac
32591
32592cat >>confdefs.h <<_ACEOF
32593#define INCLUDE_PATH "$DEFINE_INCLUDE_PATH"
32594_ACEOF
32595
32596
cristy3ed852e2009-09-05 21:47:34 +000032597
32598# Subdirectory under lib to place ImageMagick lib files
32599LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
32600
32601cat >>confdefs.h <<_ACEOF
32602#define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
32603_ACEOF
32604
32605
32606# Path to ImageMagick bin directory
32607EXECUTABLE_PATH="${BIN_DIR}"
32608DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
32609case "${build_os}" in
32610 mingw* )
32611 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
32612 ;;
32613esac
32614
32615cat >>confdefs.h <<_ACEOF
32616#define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
32617_ACEOF
32618
32619
32620
32621# Path to ImageMagick lib
32622LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
32623DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
32624case "${build_os}" in
32625 mingw* )
32626 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
32627 ;;
32628esac
32629
32630cat >>confdefs.h <<_ACEOF
32631#define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
32632_ACEOF
32633
32634
32635
cristy3ed852e2009-09-05 21:47:34 +000032636#
32637# Subdirectory under lib to place ImageMagick coder module files
32638CODER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/coders"
32639
32640cat >>confdefs.h <<_ACEOF
32641#define CODER_RELATIVE_PATH "$CODER_RELATIVE_PATH"
32642_ACEOF
32643
32644CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}"
32645DEFINE_CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}/"
32646case "${build_os}" in
32647 mingw* )
32648 DEFINE_CODER_PATH=`$WinPathScript "$DEFINE_CODER_PATH" 1`
32649 ;;
32650esac
32651
32652cat >>confdefs.h <<_ACEOF
32653#define CODER_PATH "$DEFINE_CODER_PATH"
32654_ACEOF
32655
32656
32657
32658#
32659# Subdirectory under lib to place ImageMagick filter module files
32660FILTER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/filters"
32661
32662cat >>confdefs.h <<_ACEOF
32663#define FILTER_RELATIVE_PATH "$FILTER_RELATIVE_PATH"
32664_ACEOF
32665
32666FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}"
32667DEFINE_FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}/"
32668case "${build_os}" in
32669 mingw* )
32670 DEFINE_FILTER_PATH=`$WinPathScript "$DEFINE_FILTER_PATH" 1`
32671 ;;
32672esac
32673
32674cat >>confdefs.h <<_ACEOF
32675#define FILTER_PATH "$DEFINE_FILTER_PATH"
32676_ACEOF
32677
32678
32679
32680#
32681# Path to ImageMagick documentation files
cristy4e65ec22012-04-08 01:33:27 +000032682DOCUMENTATION_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
cristyd55889c2011-03-27 00:50:24 +000032683DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}"
32684DEFINE_DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000032685case "${build_os}" in
32686 mingw* )
32687 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
32688 ;;
32689esac
32690
32691cat >>confdefs.h <<_ACEOF
32692#define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
32693_ACEOF
32694
32695
32696
cristy2a11bef2011-10-28 18:33:11 +000032697# Subdirectory to place architecture-dependent configuration files
cristyba0f1972011-03-28 12:42:52 +000032698CONFIGURE_RELATIVE_PATH="${PACKAGE_NAME}"
cristy45dbd322011-03-27 16:40:38 +000032699
32700cat >>confdefs.h <<_ACEOF
32701#define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
32702_ACEOF
32703
cristy7def36a2011-10-28 19:04:41 +000032704CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
cristy45dbd322011-03-27 16:40:38 +000032705DEFINE_CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
32706case "${build_os}" in
32707 mingw* )
32708 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
32709 ;;
32710esac
32711
32712cat >>confdefs.h <<_ACEOF
32713#define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
32714_ACEOF
32715
32716
32717
cristy2a11bef2011-10-28 18:33:11 +000032718# Subdirectory to place architecture-independent configuration files
cristy4f820712011-04-01 12:35:43 +000032719SHARE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}"
cristy3ed852e2009-09-05 21:47:34 +000032720
32721cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000032722#define SHARE_RELATIVE_PATH "$SHARE_RELATIVE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000032723_ACEOF
32724
cristy670aa3c2011-11-03 00:54:00 +000032725SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
cristy4f820712011-04-01 12:35:43 +000032726DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000032727case "${build_os}" in
32728 mingw* )
cristy4f820712011-04-01 12:35:43 +000032729 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
cristy3ed852e2009-09-05 21:47:34 +000032730 ;;
32731esac
32732
32733cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000032734#define SHARE_PATH "$DEFINE_SHARE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000032735_ACEOF
32736
32737
32738
cristy408ebcd2011-11-14 01:36:57 +000032739# Subdirectory to place architecture-dependent configuration files
32740SHAREARCH_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
cristy670aa3c2011-11-03 00:54:00 +000032741
32742cat >>confdefs.h <<_ACEOF
32743#define SHAREARCH_RELATIVE_PATH "$SHAREARCH_RELATIVE_PATH"
32744_ACEOF
32745
cristy408ebcd2011-11-14 01:36:57 +000032746SHAREARCH_PATH="${SHAREARCH_DIR}/${SHAREARCH_RELATIVE_PATH}"
32747DEFINE_SHAREARCH_PATH="${SHAREARCH_DIR}/${SHAREARCH_RELATIVE_PATH}/"
cristy670aa3c2011-11-03 00:54:00 +000032748case "${build_os}" in
32749 mingw* )
32750 DEFINE_SHAREARCH_PATH=`$WinPathScript "$DEFINE_SHAREARCH_PATH" 1`
32751 ;;
32752esac
32753
32754cat >>confdefs.h <<_ACEOF
32755#define SHAREARCH_PATH "$DEFINE_SHAREARCH_PATH"
32756_ACEOF
32757
32758
32759
cristy3ed852e2009-09-05 21:47:34 +000032760#
32761# program_transform_name is formed for use in a Makefile, so create a
32762# modified version for use in a shell script.
32763configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
32764
32765# Default delegate definitions
cristy09b53e12011-10-14 12:47:22 +000032766{ $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
32767$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000032768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000032769$as_echo_n "checking for ImageMagick delegate programs... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000032770{ $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
32771$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000032772AutotraceDecodeDelegateDefault='autotrace'
cristy3d7f8062009-09-24 20:45:35 +000032773BlenderDecodeDelegateDefault='blender'
cristy3ed852e2009-09-05 21:47:34 +000032774BZIPDelegateDefault='bzip2'
32775BrowseDelegateDefault='xdg-open'
32776CGMDecodeDelegateDefault='ralcgm'
32777CatDelegateDefault='cat'
32778DNGDecodeDelegateDefault='ufraw-batch'
32779GVCDecodeDelegateDefault='dot'
32780DVIDecodeDelegateDefault='dvips'
32781EchoDelegateDefault='echo'
32782EditorDelegateDefault='xterm'
32783FIGDecodeDelegateDefault='fig2dev'
32784ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
32785DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
32786MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
32787GnuplotDecodeDelegateDefault='gnuplot'
cristy3ed852e2009-09-05 21:47:34 +000032788HPGLDecodeDelegateDefault='hp2xx'
32789HTMLDecodeDelegateDefault='html2ps'
32790ILBMDecodeDelegateDefault='ilbmtoppm'
32791ILBMEncodeDelegateDefault='ppmtoilbm'
32792LPDelegateDefault='lp'
32793LPRDelegateDefault='lpr'
32794LZWDecodeDelegateDefault='uncompress'
32795LZWEncodeDelegateDefault='compress'
32796LaunchDelegateDefault='gimp'
32797MANDelegateDefault='groff'
32798MPEGDecodeDelegateDefault='ffmpeg'
32799MPEGEncodeDelegateDefault='ffmpeg'
cristy935c86e2010-06-05 23:50:07 +000032800MrSIDDecodeDelegateDefault='mrsidgeodecode'
cristy3ed852e2009-09-05 21:47:34 +000032801MVDelegateDefault='mv'
32802PCLDelegateDefault='pcl6'
32803PGPDecodeDelegateDefault='pgpv'
32804POVDelegateDefault='povray'
32805if test "$native_win32_build" = 'yes'; then
32806 PSDelegateDefault='gswin32c'
cristyb7931f12009-09-25 10:22:21 +000032807elif test "$gslib_framework" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000032808 PSDelegateDefault='gsc'
32809else
32810 PSDelegateDefault='gs'
32811fi
32812RLEEncodeDelegateDefault='rawtorle'
32813RMDelegateDefault='rm'
cristy5281e322012-02-09 21:12:45 +000032814RSVGDecodeDelegateDefault='rsvg-convert'
cristy3ed852e2009-09-05 21:47:34 +000032815SCANDecodeDelegateDefault='scanimage'
32816TXTDelegateDefault='enscript'
cristy16db5ed2010-07-29 13:32:02 +000032817UniconvertorDelegateDefault='uniconvertor'
cristy3ed852e2009-09-05 21:47:34 +000032818WMFDecodeDelegateDefault='wmf2eps'
32819WWWDecodeDelegateDefault='curl'
32820XPSDelegateDefault='gxps'
32821ZipDelegateDefault='gzip'
32822
32823# Search for delegates
32824# Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
32825set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032827$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032828if ${ac_cv_path_AutotraceDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032829 $as_echo_n "(cached) " >&6
32830else
32831 case $AutotraceDecodeDelegate in
32832 [\\/]* | ?:[\\/]*)
32833 ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
32834 ;;
32835 *)
32836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32837for as_dir in $PATH
32838do
32839 IFS=$as_save_IFS
32840 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032841 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032842 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032843 ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032845 break 2
32846 fi
32847done
cristy8b350f62009-11-15 23:12:43 +000032848 done
cristy3ed852e2009-09-05 21:47:34 +000032849IFS=$as_save_IFS
32850
32851 test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
32852 ;;
32853esac
32854fi
32855AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
32856if test -n "$AutotraceDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032858$as_echo "$AutotraceDecodeDelegate" >&6; }
32859else
cristy8b350f62009-11-15 23:12:43 +000032860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032861$as_echo "no" >&6; }
32862fi
32863
32864
cristy3ed852e2009-09-05 21:47:34 +000032865# Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
32866set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032868$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032869if ${ac_cv_path_BlenderDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032870 $as_echo_n "(cached) " >&6
32871else
32872 case $BlenderDecodeDelegate in
32873 [\\/]* | ?:[\\/]*)
32874 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
32875 ;;
32876 *)
32877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32878for as_dir in $PATH
32879do
32880 IFS=$as_save_IFS
32881 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032882 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032883 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032884 ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032886 break 2
32887 fi
32888done
cristy8b350f62009-11-15 23:12:43 +000032889 done
cristy3ed852e2009-09-05 21:47:34 +000032890IFS=$as_save_IFS
32891
32892 test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
32893 ;;
32894esac
32895fi
32896BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
32897if test -n "$BlenderDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032899$as_echo "$BlenderDecodeDelegate" >&6; }
32900else
cristy8b350f62009-11-15 23:12:43 +000032901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032902$as_echo "no" >&6; }
32903fi
32904
32905
32906# Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
32907set dummy "$BZIPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032909$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032910if ${ac_cv_path_BZIPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032911 $as_echo_n "(cached) " >&6
32912else
32913 case $BZIPDelegate in
32914 [\\/]* | ?:[\\/]*)
32915 ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
32916 ;;
32917 *)
32918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32919for as_dir in $PATH
32920do
32921 IFS=$as_save_IFS
32922 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032923 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032924 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032925 ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032927 break 2
32928 fi
32929done
cristy8b350f62009-11-15 23:12:43 +000032930 done
cristy3ed852e2009-09-05 21:47:34 +000032931IFS=$as_save_IFS
32932
32933 test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
32934 ;;
32935esac
32936fi
32937BZIPDelegate=$ac_cv_path_BZIPDelegate
32938if test -n "$BZIPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032940$as_echo "$BZIPDelegate" >&6; }
32941else
cristy8b350f62009-11-15 23:12:43 +000032942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032943$as_echo "no" >&6; }
32944fi
32945
32946
32947# Extract the first word of ""$BrowseDelegateDefault" mozilla firefox netscape", so it can be a program name with args.
32948set dummy "$BrowseDelegateDefault" mozilla firefox netscape; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032950$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032951if ${ac_cv_path_BrowseDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032952 $as_echo_n "(cached) " >&6
32953else
32954 case $BrowseDelegate in
32955 [\\/]* | ?:[\\/]*)
32956 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
32957 ;;
32958 *)
32959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32960for as_dir in $PATH
32961do
32962 IFS=$as_save_IFS
32963 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032964 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032965 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032966 ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032968 break 2
32969 fi
32970done
cristy8b350f62009-11-15 23:12:43 +000032971 done
cristy3ed852e2009-09-05 21:47:34 +000032972IFS=$as_save_IFS
32973
32974 test -z "$ac_cv_path_BrowseDelegate" && ac_cv_path_BrowseDelegate=""$BrowseDelegateDefault""
32975 ;;
32976esac
32977fi
32978BrowseDelegate=$ac_cv_path_BrowseDelegate
32979if test -n "$BrowseDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032981$as_echo "$BrowseDelegate" >&6; }
32982else
cristy8b350f62009-11-15 23:12:43 +000032983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032984$as_echo "no" >&6; }
32985fi
32986
32987
32988# Extract the first word of ""$CGMDecodeDelegateDefault"", so it can be a program name with args.
32989set dummy "$CGMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032991$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032992if ${ac_cv_path_CGMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032993 $as_echo_n "(cached) " >&6
32994else
32995 case $CGMDecodeDelegate in
32996 [\\/]* | ?:[\\/]*)
32997 ac_cv_path_CGMDecodeDelegate="$CGMDecodeDelegate" # Let the user override the test with a path.
32998 ;;
32999 *)
33000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33001for as_dir in $PATH
33002do
33003 IFS=$as_save_IFS
33004 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033005 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033006 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033007 ac_cv_path_CGMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033009 break 2
33010 fi
33011done
cristy8b350f62009-11-15 23:12:43 +000033012 done
cristy3ed852e2009-09-05 21:47:34 +000033013IFS=$as_save_IFS
33014
33015 test -z "$ac_cv_path_CGMDecodeDelegate" && ac_cv_path_CGMDecodeDelegate=""$CGMDecodeDelegateDefault""
33016 ;;
33017esac
33018fi
33019CGMDecodeDelegate=$ac_cv_path_CGMDecodeDelegate
33020if test -n "$CGMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CGMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033022$as_echo "$CGMDecodeDelegate" >&6; }
33023else
cristy8b350f62009-11-15 23:12:43 +000033024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033025$as_echo "no" >&6; }
33026fi
33027
33028
33029# Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
33030set dummy "$CatDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033032$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033033if ${ac_cv_path_CatDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033034 $as_echo_n "(cached) " >&6
33035else
33036 case $CatDelegate in
33037 [\\/]* | ?:[\\/]*)
33038 ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
33039 ;;
33040 *)
33041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33042for as_dir in $PATH
33043do
33044 IFS=$as_save_IFS
33045 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033046 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033047 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033048 ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033050 break 2
33051 fi
33052done
cristy8b350f62009-11-15 23:12:43 +000033053 done
cristy3ed852e2009-09-05 21:47:34 +000033054IFS=$as_save_IFS
33055
33056 test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
33057 ;;
33058esac
33059fi
33060CatDelegate=$ac_cv_path_CatDelegate
33061if test -n "$CatDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033063$as_echo "$CatDelegate" >&6; }
33064else
cristy8b350f62009-11-15 23:12:43 +000033065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033066$as_echo "no" >&6; }
33067fi
33068
33069
33070# Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
33071set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033073$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033074if ${ac_cv_path_DNGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033075 $as_echo_n "(cached) " >&6
33076else
33077 case $DNGDecodeDelegate in
33078 [\\/]* | ?:[\\/]*)
33079 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
33080 ;;
33081 *)
33082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33083for as_dir in $PATH
33084do
33085 IFS=$as_save_IFS
33086 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033087 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033088 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033089 ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033091 break 2
33092 fi
33093done
cristy8b350f62009-11-15 23:12:43 +000033094 done
cristy3ed852e2009-09-05 21:47:34 +000033095IFS=$as_save_IFS
33096
33097 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
33098 ;;
33099esac
33100fi
33101DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
33102if test -n "$DNGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033104$as_echo "$DNGDecodeDelegate" >&6; }
33105else
cristy8b350f62009-11-15 23:12:43 +000033106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033107$as_echo "no" >&6; }
33108fi
33109
33110
33111# Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
33112set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033114$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033115if ${ac_cv_path_GVCDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033116 $as_echo_n "(cached) " >&6
33117else
33118 case $GVCDecodeDelegate in
33119 [\\/]* | ?:[\\/]*)
33120 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
33121 ;;
33122 *)
33123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33124for as_dir in $PATH
33125do
33126 IFS=$as_save_IFS
33127 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033128 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033129 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033130 ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033132 break 2
33133 fi
33134done
cristy8b350f62009-11-15 23:12:43 +000033135 done
cristy3ed852e2009-09-05 21:47:34 +000033136IFS=$as_save_IFS
33137
33138 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
33139 ;;
33140esac
33141fi
33142GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
33143if test -n "$GVCDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033145$as_echo "$GVCDecodeDelegate" >&6; }
33146else
cristy8b350f62009-11-15 23:12:43 +000033147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033148$as_echo "no" >&6; }
33149fi
33150
33151
33152# Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
33153set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033155$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033156if ${ac_cv_path_DVIDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033157 $as_echo_n "(cached) " >&6
33158else
33159 case $DVIDecodeDelegate in
33160 [\\/]* | ?:[\\/]*)
33161 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
33162 ;;
33163 *)
33164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33165for as_dir in $PATH
33166do
33167 IFS=$as_save_IFS
33168 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033169 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033170 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033171 ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033173 break 2
33174 fi
33175done
cristy8b350f62009-11-15 23:12:43 +000033176 done
cristy3ed852e2009-09-05 21:47:34 +000033177IFS=$as_save_IFS
33178
33179 test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
33180 ;;
33181esac
33182fi
33183DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
33184if test -n "$DVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033186$as_echo "$DVIDecodeDelegate" >&6; }
33187else
cristy8b350f62009-11-15 23:12:43 +000033188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033189$as_echo "no" >&6; }
33190fi
33191
33192
33193# Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
33194set dummy "$EchoDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033196$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033197if ${ac_cv_path_EchoDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033198 $as_echo_n "(cached) " >&6
33199else
33200 case $EchoDelegate in
33201 [\\/]* | ?:[\\/]*)
33202 ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
33203 ;;
33204 *)
33205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33206for as_dir in $PATH
33207do
33208 IFS=$as_save_IFS
33209 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033210 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033211 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033212 ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033214 break 2
33215 fi
33216done
cristy8b350f62009-11-15 23:12:43 +000033217 done
cristy3ed852e2009-09-05 21:47:34 +000033218IFS=$as_save_IFS
33219
33220 test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
33221 ;;
33222esac
33223fi
33224EchoDelegate=$ac_cv_path_EchoDelegate
33225if test -n "$EchoDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033227$as_echo "$EchoDelegate" >&6; }
33228else
cristy8b350f62009-11-15 23:12:43 +000033229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033230$as_echo "no" >&6; }
33231fi
33232
33233
33234# Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
33235set dummy "$EditorDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033237$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033238if ${ac_cv_path_EditorDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033239 $as_echo_n "(cached) " >&6
33240else
33241 case $EditorDelegate in
33242 [\\/]* | ?:[\\/]*)
33243 ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
33244 ;;
33245 *)
33246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33247for as_dir in $PATH
33248do
33249 IFS=$as_save_IFS
33250 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033251 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033252 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033253 ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033255 break 2
33256 fi
33257done
cristy8b350f62009-11-15 23:12:43 +000033258 done
cristy3ed852e2009-09-05 21:47:34 +000033259IFS=$as_save_IFS
33260
33261 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
33262 ;;
33263esac
33264fi
33265EditorDelegate=$ac_cv_path_EditorDelegate
33266if test -n "$EditorDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033268$as_echo "$EditorDelegate" >&6; }
33269else
cristy8b350f62009-11-15 23:12:43 +000033270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033271$as_echo "no" >&6; }
33272fi
33273
33274
33275# Extract the first word of ""$FIGDecodeDelegateDefault"", so it can be a program name with args.
33276set dummy "$FIGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033278$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033279if ${ac_cv_path_FIGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033280 $as_echo_n "(cached) " >&6
33281else
33282 case $FIGDecodeDelegate in
33283 [\\/]* | ?:[\\/]*)
33284 ac_cv_path_FIGDecodeDelegate="$FIGDecodeDelegate" # Let the user override the test with a path.
33285 ;;
33286 *)
33287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33288for as_dir in $PATH
33289do
33290 IFS=$as_save_IFS
33291 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033292 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033293 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033294 ac_cv_path_FIGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033296 break 2
33297 fi
33298done
cristy8b350f62009-11-15 23:12:43 +000033299 done
cristy3ed852e2009-09-05 21:47:34 +000033300IFS=$as_save_IFS
33301
33302 test -z "$ac_cv_path_FIGDecodeDelegate" && ac_cv_path_FIGDecodeDelegate=""$FIGDecodeDelegateDefault""
33303 ;;
33304esac
33305fi
33306FIGDecodeDelegate=$ac_cv_path_FIGDecodeDelegate
33307if test -n "$FIGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033309$as_echo "$FIGDecodeDelegate" >&6; }
33310else
cristy8b350f62009-11-15 23:12:43 +000033311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033312$as_echo "no" >&6; }
33313fi
33314
33315
33316# Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
33317set dummy "$ConvertDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033319$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033320if ${ac_cv_path_ConvertDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033321 $as_echo_n "(cached) " >&6
33322else
33323 case $ConvertDelegate in
33324 [\\/]* | ?:[\\/]*)
33325 ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
33326 ;;
33327 *)
33328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33329for as_dir in $PATH
33330do
33331 IFS=$as_save_IFS
33332 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033333 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033334 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033335 ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033337 break 2
33338 fi
33339done
cristy8b350f62009-11-15 23:12:43 +000033340 done
cristy3ed852e2009-09-05 21:47:34 +000033341IFS=$as_save_IFS
33342
33343 test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
33344 ;;
33345esac
33346fi
33347ConvertDelegate=$ac_cv_path_ConvertDelegate
33348if test -n "$ConvertDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033350$as_echo "$ConvertDelegate" >&6; }
33351else
cristy8b350f62009-11-15 23:12:43 +000033352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033353$as_echo "no" >&6; }
33354fi
33355
33356
33357# Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
33358set dummy "$DisplayDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033360$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033361if ${ac_cv_path_DisplayDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033362 $as_echo_n "(cached) " >&6
33363else
33364 case $DisplayDelegate in
33365 [\\/]* | ?:[\\/]*)
33366 ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
33367 ;;
33368 *)
33369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33370for as_dir in $PATH
33371do
33372 IFS=$as_save_IFS
33373 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033374 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033375 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033376 ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033378 break 2
33379 fi
33380done
cristy8b350f62009-11-15 23:12:43 +000033381 done
cristy3ed852e2009-09-05 21:47:34 +000033382IFS=$as_save_IFS
33383
33384 test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
33385 ;;
33386esac
33387fi
33388DisplayDelegate=$ac_cv_path_DisplayDelegate
33389if test -n "$DisplayDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033391$as_echo "$DisplayDelegate" >&6; }
33392else
cristy8b350f62009-11-15 23:12:43 +000033393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033394$as_echo "no" >&6; }
33395fi
33396
33397
33398# Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
33399set dummy "$MogrifyDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033401$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033402if ${ac_cv_path_MogrifyDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033403 $as_echo_n "(cached) " >&6
33404else
33405 case $MogrifyDelegate in
33406 [\\/]* | ?:[\\/]*)
33407 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
33408 ;;
33409 *)
33410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33411for as_dir in $PATH
33412do
33413 IFS=$as_save_IFS
33414 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033415 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033416 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033417 ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033419 break 2
33420 fi
33421done
cristy8b350f62009-11-15 23:12:43 +000033422 done
cristy3ed852e2009-09-05 21:47:34 +000033423IFS=$as_save_IFS
33424
33425 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
33426 ;;
33427esac
33428fi
33429MogrifyDelegate=$ac_cv_path_MogrifyDelegate
33430if test -n "$MogrifyDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033432$as_echo "$MogrifyDelegate" >&6; }
33433else
cristy8b350f62009-11-15 23:12:43 +000033434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033435$as_echo "no" >&6; }
33436fi
33437
33438
33439# Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
33440set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033442$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033443if ${ac_cv_path_GnuplotDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033444 $as_echo_n "(cached) " >&6
33445else
33446 case $GnuplotDecodeDelegate in
33447 [\\/]* | ?:[\\/]*)
33448 ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
33449 ;;
33450 *)
33451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33452for as_dir in $PATH
33453do
33454 IFS=$as_save_IFS
33455 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033456 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033457 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033458 ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033460 break 2
33461 fi
33462done
cristy8b350f62009-11-15 23:12:43 +000033463 done
cristy3ed852e2009-09-05 21:47:34 +000033464IFS=$as_save_IFS
33465
33466 test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
33467 ;;
33468esac
33469fi
33470GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
33471if test -n "$GnuplotDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033473$as_echo "$GnuplotDecodeDelegate" >&6; }
33474else
cristy8b350f62009-11-15 23:12:43 +000033475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033476$as_echo "no" >&6; }
33477fi
33478
33479
cristy3ed852e2009-09-05 21:47:34 +000033480# Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
33481set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033483$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033484if ${ac_cv_path_HPGLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033485 $as_echo_n "(cached) " >&6
33486else
33487 case $HPGLDecodeDelegate in
33488 [\\/]* | ?:[\\/]*)
33489 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
33490 ;;
33491 *)
33492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33493for as_dir in $PATH
33494do
33495 IFS=$as_save_IFS
33496 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033497 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033498 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033499 ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033501 break 2
33502 fi
33503done
cristy8b350f62009-11-15 23:12:43 +000033504 done
cristy3ed852e2009-09-05 21:47:34 +000033505IFS=$as_save_IFS
33506
33507 test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
33508 ;;
33509esac
33510fi
33511HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
33512if test -n "$HPGLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033514$as_echo "$HPGLDecodeDelegate" >&6; }
33515else
cristy8b350f62009-11-15 23:12:43 +000033516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033517$as_echo "no" >&6; }
33518fi
33519
33520
33521# Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
33522set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033524$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033525if ${ac_cv_path_HTMLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033526 $as_echo_n "(cached) " >&6
33527else
33528 case $HTMLDecodeDelegate in
33529 [\\/]* | ?:[\\/]*)
33530 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
33531 ;;
33532 *)
33533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33534for as_dir in $PATH
33535do
33536 IFS=$as_save_IFS
33537 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033538 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033539 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033540 ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033542 break 2
33543 fi
33544done
cristy8b350f62009-11-15 23:12:43 +000033545 done
cristy3ed852e2009-09-05 21:47:34 +000033546IFS=$as_save_IFS
33547
33548 test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
33549 ;;
33550esac
33551fi
33552HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
33553if test -n "$HTMLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033555$as_echo "$HTMLDecodeDelegate" >&6; }
33556else
cristy8b350f62009-11-15 23:12:43 +000033557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033558$as_echo "no" >&6; }
33559fi
33560
33561
33562# Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
33563set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033565$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033566if ${ac_cv_path_ILBMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033567 $as_echo_n "(cached) " >&6
33568else
33569 case $ILBMDecodeDelegate in
33570 [\\/]* | ?:[\\/]*)
33571 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
33572 ;;
33573 *)
33574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33575for as_dir in $PATH
33576do
33577 IFS=$as_save_IFS
33578 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033579 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033580 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033581 ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033583 break 2
33584 fi
33585done
cristy8b350f62009-11-15 23:12:43 +000033586 done
cristy3ed852e2009-09-05 21:47:34 +000033587IFS=$as_save_IFS
33588
33589 test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
33590 ;;
33591esac
33592fi
33593ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
33594if test -n "$ILBMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033596$as_echo "$ILBMDecodeDelegate" >&6; }
33597else
cristy8b350f62009-11-15 23:12:43 +000033598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033599$as_echo "no" >&6; }
33600fi
33601
33602
33603# Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
33604set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033606$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033607if ${ac_cv_path_ILBMEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033608 $as_echo_n "(cached) " >&6
33609else
33610 case $ILBMEncodeDelegate in
33611 [\\/]* | ?:[\\/]*)
33612 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
33613 ;;
33614 *)
33615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33616for as_dir in $PATH
33617do
33618 IFS=$as_save_IFS
33619 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033620 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033621 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033622 ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033624 break 2
33625 fi
33626done
cristy8b350f62009-11-15 23:12:43 +000033627 done
cristy3ed852e2009-09-05 21:47:34 +000033628IFS=$as_save_IFS
33629
33630 test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
33631 ;;
33632esac
33633fi
33634ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
33635if test -n "$ILBMEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033637$as_echo "$ILBMEncodeDelegate" >&6; }
33638else
cristy8b350f62009-11-15 23:12:43 +000033639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033640$as_echo "no" >&6; }
33641fi
33642
33643
33644# Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
33645set dummy "$LPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033647$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033648if ${ac_cv_path_LPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033649 $as_echo_n "(cached) " >&6
33650else
33651 case $LPDelegate in
33652 [\\/]* | ?:[\\/]*)
33653 ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
33654 ;;
33655 *)
33656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33657for as_dir in $PATH
33658do
33659 IFS=$as_save_IFS
33660 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033661 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033662 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033663 ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033665 break 2
33666 fi
33667done
cristy8b350f62009-11-15 23:12:43 +000033668 done
cristy3ed852e2009-09-05 21:47:34 +000033669IFS=$as_save_IFS
33670
33671 test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
33672 ;;
33673esac
33674fi
33675LPDelegate=$ac_cv_path_LPDelegate
33676if test -n "$LPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033678$as_echo "$LPDelegate" >&6; }
33679else
cristy8b350f62009-11-15 23:12:43 +000033680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033681$as_echo "no" >&6; }
33682fi
33683
33684
33685# Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
33686set dummy "$LPRDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033688$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033689if ${ac_cv_path_LPRDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033690 $as_echo_n "(cached) " >&6
33691else
33692 case $LPRDelegate in
33693 [\\/]* | ?:[\\/]*)
33694 ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
33695 ;;
33696 *)
33697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33698for as_dir in $PATH
33699do
33700 IFS=$as_save_IFS
33701 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033702 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033703 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033704 ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033706 break 2
33707 fi
33708done
cristy8b350f62009-11-15 23:12:43 +000033709 done
cristy3ed852e2009-09-05 21:47:34 +000033710IFS=$as_save_IFS
33711
33712 test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
33713 ;;
33714esac
33715fi
33716LPRDelegate=$ac_cv_path_LPRDelegate
33717if test -n "$LPRDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033719$as_echo "$LPRDelegate" >&6; }
33720else
cristy8b350f62009-11-15 23:12:43 +000033721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033722$as_echo "no" >&6; }
33723fi
33724
33725
33726# Extract the first word of ""$LZWDecodeDelegateDefault"", so it can be a program name with args.
33727set dummy "$LZWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033729$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033730if ${ac_cv_path_LZWDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033731 $as_echo_n "(cached) " >&6
33732else
33733 case $LZWDecodeDelegate in
33734 [\\/]* | ?:[\\/]*)
33735 ac_cv_path_LZWDecodeDelegate="$LZWDecodeDelegate" # Let the user override the test with a path.
33736 ;;
33737 *)
33738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33739for as_dir in $PATH
33740do
33741 IFS=$as_save_IFS
33742 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033743 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033744 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033745 ac_cv_path_LZWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033747 break 2
33748 fi
33749done
cristy8b350f62009-11-15 23:12:43 +000033750 done
cristy3ed852e2009-09-05 21:47:34 +000033751IFS=$as_save_IFS
33752
33753 test -z "$ac_cv_path_LZWDecodeDelegate" && ac_cv_path_LZWDecodeDelegate=""$LZWDecodeDelegateDefault""
33754 ;;
33755esac
33756fi
33757LZWDecodeDelegate=$ac_cv_path_LZWDecodeDelegate
33758if test -n "$LZWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033760$as_echo "$LZWDecodeDelegate" >&6; }
33761else
cristy8b350f62009-11-15 23:12:43 +000033762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033763$as_echo "no" >&6; }
33764fi
33765
33766
33767# Extract the first word of ""$LZWEncodeDelegateDefault"", so it can be a program name with args.
33768set dummy "$LZWEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033770$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033771if ${ac_cv_path_LZWEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033772 $as_echo_n "(cached) " >&6
33773else
33774 case $LZWEncodeDelegate in
33775 [\\/]* | ?:[\\/]*)
33776 ac_cv_path_LZWEncodeDelegate="$LZWEncodeDelegate" # Let the user override the test with a path.
33777 ;;
33778 *)
33779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33780for as_dir in $PATH
33781do
33782 IFS=$as_save_IFS
33783 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033784 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033785 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033786 ac_cv_path_LZWEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033788 break 2
33789 fi
33790done
cristy8b350f62009-11-15 23:12:43 +000033791 done
cristy3ed852e2009-09-05 21:47:34 +000033792IFS=$as_save_IFS
33793
33794 test -z "$ac_cv_path_LZWEncodeDelegate" && ac_cv_path_LZWEncodeDelegate=""$LZWEncodeDelegateDefault""
33795 ;;
33796esac
33797fi
33798LZWEncodeDelegate=$ac_cv_path_LZWEncodeDelegate
33799if test -n "$LZWEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033801$as_echo "$LZWEncodeDelegate" >&6; }
33802else
cristy8b350f62009-11-15 23:12:43 +000033803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033804$as_echo "no" >&6; }
33805fi
33806
33807
33808# Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
33809set dummy "$LaunchDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033811$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033812if ${ac_cv_path_LaunchDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033813 $as_echo_n "(cached) " >&6
33814else
33815 case $LaunchDelegate in
33816 [\\/]* | ?:[\\/]*)
33817 ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
33818 ;;
33819 *)
33820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33821for as_dir in $PATH
33822do
33823 IFS=$as_save_IFS
33824 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033825 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033826 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033827 ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033829 break 2
33830 fi
33831done
cristy8b350f62009-11-15 23:12:43 +000033832 done
cristy3ed852e2009-09-05 21:47:34 +000033833IFS=$as_save_IFS
33834
33835 test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
33836 ;;
33837esac
33838fi
33839LaunchDelegate=$ac_cv_path_LaunchDelegate
33840if test -n "$LaunchDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033842$as_echo "$LaunchDelegate" >&6; }
33843else
cristy8b350f62009-11-15 23:12:43 +000033844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033845$as_echo "no" >&6; }
33846fi
33847
33848
33849# Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
33850set dummy "$MANDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033852$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033853if ${ac_cv_path_MANDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033854 $as_echo_n "(cached) " >&6
33855else
33856 case $MANDelegate in
33857 [\\/]* | ?:[\\/]*)
33858 ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
33859 ;;
33860 *)
33861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33862for as_dir in $PATH
33863do
33864 IFS=$as_save_IFS
33865 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033866 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033867 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033868 ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033870 break 2
33871 fi
33872done
cristy8b350f62009-11-15 23:12:43 +000033873 done
cristy3ed852e2009-09-05 21:47:34 +000033874IFS=$as_save_IFS
33875
33876 test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
33877 ;;
33878esac
33879fi
33880MANDelegate=$ac_cv_path_MANDelegate
33881if test -n "$MANDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033883$as_echo "$MANDelegate" >&6; }
33884else
cristy8b350f62009-11-15 23:12:43 +000033885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033886$as_echo "no" >&6; }
33887fi
33888
33889
33890# Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
33891set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033893$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033894if ${ac_cv_path_MPEGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033895 $as_echo_n "(cached) " >&6
33896else
33897 case $MPEGDecodeDelegate in
33898 [\\/]* | ?:[\\/]*)
33899 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
33900 ;;
33901 *)
33902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33903for as_dir in $PATH
33904do
33905 IFS=$as_save_IFS
33906 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033907 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033908 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033909 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033911 break 2
33912 fi
33913done
cristy8b350f62009-11-15 23:12:43 +000033914 done
cristy3ed852e2009-09-05 21:47:34 +000033915IFS=$as_save_IFS
33916
33917 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
33918 ;;
33919esac
33920fi
33921MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
33922if test -n "$MPEGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033924$as_echo "$MPEGDecodeDelegate" >&6; }
33925else
cristy8b350f62009-11-15 23:12:43 +000033926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033927$as_echo "no" >&6; }
33928fi
33929
33930
33931# Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
33932set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033934$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033935if ${ac_cv_path_MPEGEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033936 $as_echo_n "(cached) " >&6
33937else
33938 case $MPEGEncodeDelegate in
33939 [\\/]* | ?:[\\/]*)
33940 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
33941 ;;
33942 *)
33943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33944for as_dir in $PATH
33945do
33946 IFS=$as_save_IFS
33947 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033948 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033949 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033950 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033952 break 2
33953 fi
33954done
cristy8b350f62009-11-15 23:12:43 +000033955 done
cristy3ed852e2009-09-05 21:47:34 +000033956IFS=$as_save_IFS
33957
33958 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
33959 ;;
33960esac
33961fi
33962MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
33963if test -n "$MPEGEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033965$as_echo "$MPEGEncodeDelegate" >&6; }
33966else
cristy8b350f62009-11-15 23:12:43 +000033967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033968$as_echo "no" >&6; }
33969fi
33970
33971
cristy935c86e2010-06-05 23:50:07 +000033972# Extract the first word of ""$MrSIDDecodeDelegateDefault"", so it can be a program name with args.
33973set dummy "$MrSIDDecodeDelegateDefault"; ac_word=$2
33974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33975$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033976if ${ac_cv_path_MrSIDDecodeDelegate+:} false; then :
cristy935c86e2010-06-05 23:50:07 +000033977 $as_echo_n "(cached) " >&6
33978else
33979 case $MrSIDDecodeDelegate in
33980 [\\/]* | ?:[\\/]*)
33981 ac_cv_path_MrSIDDecodeDelegate="$MrSIDDecodeDelegate" # Let the user override the test with a path.
33982 ;;
33983 *)
33984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33985for as_dir in $PATH
33986do
33987 IFS=$as_save_IFS
33988 test -z "$as_dir" && as_dir=.
33989 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033990 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy935c86e2010-06-05 23:50:07 +000033991 ac_cv_path_MrSIDDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33993 break 2
33994 fi
33995done
33996 done
33997IFS=$as_save_IFS
33998
33999 test -z "$ac_cv_path_MrSIDDecodeDelegate" && ac_cv_path_MrSIDDecodeDelegate=""$MrSIDDecodeDelegateDefault""
34000 ;;
34001esac
34002fi
34003MrSIDDecodeDelegate=$ac_cv_path_MrSIDDecodeDelegate
34004if test -n "$MrSIDDecodeDelegate"; then
34005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MrSIDDecodeDelegate" >&5
34006$as_echo "$MrSIDDecodeDelegate" >&6; }
34007else
34008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34009$as_echo "no" >&6; }
34010fi
34011
34012
cristy3ed852e2009-09-05 21:47:34 +000034013# Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
34014set dummy "$MVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034016$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034017if ${ac_cv_path_MVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034018 $as_echo_n "(cached) " >&6
34019else
34020 case $MVDelegate in
34021 [\\/]* | ?:[\\/]*)
34022 ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
34023 ;;
34024 *)
34025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34026for as_dir in $PATH
34027do
34028 IFS=$as_save_IFS
34029 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034030 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034031 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034032 ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034034 break 2
34035 fi
34036done
cristy8b350f62009-11-15 23:12:43 +000034037 done
cristy3ed852e2009-09-05 21:47:34 +000034038IFS=$as_save_IFS
34039
34040 test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
34041 ;;
34042esac
34043fi
34044MVDelegate=$ac_cv_path_MVDelegate
34045if test -n "$MVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034047$as_echo "$MVDelegate" >&6; }
34048else
cristy8b350f62009-11-15 23:12:43 +000034049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034050$as_echo "no" >&6; }
34051fi
34052
34053
34054# Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
34055set dummy "$PCLDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034057$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034058if ${ac_cv_path_PCLDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034059 $as_echo_n "(cached) " >&6
34060else
34061 case $PCLDelegate in
34062 [\\/]* | ?:[\\/]*)
34063 ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
34064 ;;
34065 *)
34066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34067for as_dir in $PATH
34068do
34069 IFS=$as_save_IFS
34070 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034071 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034072 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034073 ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034075 break 2
34076 fi
34077done
cristy8b350f62009-11-15 23:12:43 +000034078 done
cristy3ed852e2009-09-05 21:47:34 +000034079IFS=$as_save_IFS
34080
34081 test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
34082 ;;
34083esac
34084fi
34085PCLDelegate=$ac_cv_path_PCLDelegate
34086if test -n "$PCLDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034088$as_echo "$PCLDelegate" >&6; }
34089else
cristy8b350f62009-11-15 23:12:43 +000034090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034091$as_echo "no" >&6; }
34092fi
34093
34094
34095# Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
34096set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034098$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034099if ${ac_cv_path_PGPDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034100 $as_echo_n "(cached) " >&6
34101else
34102 case $PGPDecodeDelegate in
34103 [\\/]* | ?:[\\/]*)
34104 ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
34105 ;;
34106 *)
34107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34108for as_dir in $PATH
34109do
34110 IFS=$as_save_IFS
34111 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034112 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034113 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034114 ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034116 break 2
34117 fi
34118done
cristy8b350f62009-11-15 23:12:43 +000034119 done
cristy3ed852e2009-09-05 21:47:34 +000034120IFS=$as_save_IFS
34121
34122 test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
34123 ;;
34124esac
34125fi
34126PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
34127if test -n "$PGPDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034129$as_echo "$PGPDecodeDelegate" >&6; }
34130else
cristy8b350f62009-11-15 23:12:43 +000034131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034132$as_echo "no" >&6; }
34133fi
34134
34135
34136# Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
34137set dummy "$POVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034139$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034140if ${ac_cv_path_POVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034141 $as_echo_n "(cached) " >&6
34142else
34143 case $POVDelegate in
34144 [\\/]* | ?:[\\/]*)
34145 ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
34146 ;;
34147 *)
34148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34149for as_dir in $PATH
34150do
34151 IFS=$as_save_IFS
34152 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034153 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034154 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034155 ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034157 break 2
34158 fi
34159done
cristy8b350f62009-11-15 23:12:43 +000034160 done
cristy3ed852e2009-09-05 21:47:34 +000034161IFS=$as_save_IFS
34162
34163 test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
34164 ;;
34165esac
34166fi
34167POVDelegate=$ac_cv_path_POVDelegate
34168if test -n "$POVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034170$as_echo "$POVDelegate" >&6; }
34171else
cristy8b350f62009-11-15 23:12:43 +000034172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034173$as_echo "no" >&6; }
34174fi
34175
34176
34177for ac_prog in gsx gsc "$PSDelegateDefault"
34178do
34179 # Extract the first word of "$ac_prog", so it can be a program name with args.
34180set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034182$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034183if ${ac_cv_path_PSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034184 $as_echo_n "(cached) " >&6
34185else
34186 case $PSDelegate in
34187 [\\/]* | ?:[\\/]*)
34188 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
34189 ;;
34190 *)
34191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34192for as_dir in $PATH
34193do
34194 IFS=$as_save_IFS
34195 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034196 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034197 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034198 ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034200 break 2
34201 fi
34202done
cristy8b350f62009-11-15 23:12:43 +000034203 done
cristy3ed852e2009-09-05 21:47:34 +000034204IFS=$as_save_IFS
34205
34206 ;;
34207esac
34208fi
34209PSDelegate=$ac_cv_path_PSDelegate
34210if test -n "$PSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034212$as_echo "$PSDelegate" >&6; }
34213else
cristy8b350f62009-11-15 23:12:43 +000034214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034215$as_echo "no" >&6; }
34216fi
34217
34218
34219 test -n "$PSDelegate" && break
34220done
34221test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
34222
34223# Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
34224set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034226$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034227if ${ac_cv_path_RLEEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034228 $as_echo_n "(cached) " >&6
34229else
34230 case $RLEEncodeDelegate in
34231 [\\/]* | ?:[\\/]*)
34232 ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
34233 ;;
34234 *)
34235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34236for as_dir in $PATH
34237do
34238 IFS=$as_save_IFS
34239 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034240 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034241 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034242 ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034244 break 2
34245 fi
34246done
cristy8b350f62009-11-15 23:12:43 +000034247 done
cristy3ed852e2009-09-05 21:47:34 +000034248IFS=$as_save_IFS
34249
34250 test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
34251 ;;
34252esac
34253fi
34254RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
34255if test -n "$RLEEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034257$as_echo "$RLEEncodeDelegate" >&6; }
34258else
cristy8b350f62009-11-15 23:12:43 +000034259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034260$as_echo "no" >&6; }
34261fi
34262
34263
34264# Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
34265set dummy "$RMDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034267$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034268if ${ac_cv_path_RMDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034269 $as_echo_n "(cached) " >&6
34270else
34271 case $RMDelegate in
34272 [\\/]* | ?:[\\/]*)
34273 ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
34274 ;;
34275 *)
34276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34277for as_dir in $PATH
34278do
34279 IFS=$as_save_IFS
34280 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034281 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034282 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034283 ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034285 break 2
34286 fi
34287done
cristy8b350f62009-11-15 23:12:43 +000034288 done
cristy3ed852e2009-09-05 21:47:34 +000034289IFS=$as_save_IFS
34290
34291 test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
34292 ;;
34293esac
34294fi
34295RMDelegate=$ac_cv_path_RMDelegate
34296if test -n "$RMDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034298$as_echo "$RMDelegate" >&6; }
34299else
cristy8b350f62009-11-15 23:12:43 +000034300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034301$as_echo "no" >&6; }
34302fi
34303
34304
cristy4689cf02010-02-17 21:15:45 +000034305# Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args.
34306set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2
34307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34308$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034309if ${ac_cv_path_RSVGDecodeDelegate+:} false; then :
cristy4689cf02010-02-17 21:15:45 +000034310 $as_echo_n "(cached) " >&6
34311else
34312 case $RSVGDecodeDelegate in
34313 [\\/]* | ?:[\\/]*)
34314 ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path.
34315 ;;
34316 *)
34317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34318for as_dir in $PATH
34319do
34320 IFS=$as_save_IFS
34321 test -z "$as_dir" && as_dir=.
34322 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034323 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy4689cf02010-02-17 21:15:45 +000034324 ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34326 break 2
34327 fi
34328done
34329 done
34330IFS=$as_save_IFS
34331
34332 test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault""
34333 ;;
34334esac
34335fi
34336RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate
34337if test -n "$RSVGDecodeDelegate"; then
34338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5
34339$as_echo "$RSVGDecodeDelegate" >&6; }
34340else
34341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34342$as_echo "no" >&6; }
34343fi
34344
34345
cristy3ed852e2009-09-05 21:47:34 +000034346# Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
34347set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034349$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034350if ${ac_cv_path_SCANDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034351 $as_echo_n "(cached) " >&6
34352else
34353 case $SCANDecodeDelegate in
34354 [\\/]* | ?:[\\/]*)
34355 ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
34356 ;;
34357 *)
34358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34359for as_dir in $PATH
34360do
34361 IFS=$as_save_IFS
34362 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034363 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034364 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034365 ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034367 break 2
34368 fi
34369done
cristy8b350f62009-11-15 23:12:43 +000034370 done
cristy3ed852e2009-09-05 21:47:34 +000034371IFS=$as_save_IFS
34372
34373 test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
34374 ;;
34375esac
34376fi
34377SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
34378if test -n "$SCANDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034380$as_echo "$SCANDecodeDelegate" >&6; }
34381else
cristy8b350f62009-11-15 23:12:43 +000034382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034383$as_echo "no" >&6; }
34384fi
34385
34386
34387# Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
34388set dummy "$TXTDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034390$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034391if ${ac_cv_path_TXTDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034392 $as_echo_n "(cached) " >&6
34393else
34394 case $TXTDelegate in
34395 [\\/]* | ?:[\\/]*)
34396 ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
34397 ;;
34398 *)
34399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34400for as_dir in $PATH
34401do
34402 IFS=$as_save_IFS
34403 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034404 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034405 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034406 ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034408 break 2
34409 fi
34410done
cristy8b350f62009-11-15 23:12:43 +000034411 done
cristy3ed852e2009-09-05 21:47:34 +000034412IFS=$as_save_IFS
34413
34414 test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
34415 ;;
34416esac
34417fi
34418TXTDelegate=$ac_cv_path_TXTDelegate
34419if test -n "$TXTDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034421$as_echo "$TXTDelegate" >&6; }
34422else
cristy8b350f62009-11-15 23:12:43 +000034423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034424$as_echo "no" >&6; }
34425fi
34426
34427
cristy5ac9ac82010-07-29 13:24:24 +000034428# Extract the first word of ""$UniconvertorDelegateDefault"", so it can be a program name with args.
34429set dummy "$UniconvertorDelegateDefault"; ac_word=$2
34430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34431$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034432if ${ac_cv_path_UniconvertorDelegate+:} false; then :
cristy5ac9ac82010-07-29 13:24:24 +000034433 $as_echo_n "(cached) " >&6
34434else
34435 case $UniconvertorDelegate in
34436 [\\/]* | ?:[\\/]*)
34437 ac_cv_path_UniconvertorDelegate="$UniconvertorDelegate" # Let the user override the test with a path.
34438 ;;
34439 *)
34440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34441for as_dir in $PATH
34442do
34443 IFS=$as_save_IFS
34444 test -z "$as_dir" && as_dir=.
34445 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034446 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy5ac9ac82010-07-29 13:24:24 +000034447 ac_cv_path_UniconvertorDelegate="$as_dir/$ac_word$ac_exec_ext"
34448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34449 break 2
34450 fi
34451done
34452 done
34453IFS=$as_save_IFS
34454
34455 test -z "$ac_cv_path_UniconvertorDelegate" && ac_cv_path_UniconvertorDelegate=""$UniconvertorDelegateDefault""
34456 ;;
34457esac
34458fi
34459UniconvertorDelegate=$ac_cv_path_UniconvertorDelegate
34460if test -n "$UniconvertorDelegate"; then
34461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UniconvertorDelegate" >&5
34462$as_echo "$UniconvertorDelegate" >&6; }
34463else
34464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34465$as_echo "no" >&6; }
34466fi
34467
34468
cristy3ed852e2009-09-05 21:47:34 +000034469# Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
34470set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034472$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034473if ${ac_cv_path_WMFDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034474 $as_echo_n "(cached) " >&6
34475else
34476 case $WMFDecodeDelegate in
34477 [\\/]* | ?:[\\/]*)
34478 ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
34479 ;;
34480 *)
34481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34482for as_dir in $PATH
34483do
34484 IFS=$as_save_IFS
34485 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034486 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034487 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034488 ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034490 break 2
34491 fi
34492done
cristy8b350f62009-11-15 23:12:43 +000034493 done
cristy3ed852e2009-09-05 21:47:34 +000034494IFS=$as_save_IFS
34495
34496 test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
34497 ;;
34498esac
34499fi
34500WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
34501if test -n "$WMFDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034503$as_echo "$WMFDecodeDelegate" >&6; }
34504else
cristy8b350f62009-11-15 23:12:43 +000034505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034506$as_echo "no" >&6; }
34507fi
34508
34509
34510# Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
34511set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034513$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034514if ${ac_cv_path_WWWDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034515 $as_echo_n "(cached) " >&6
34516else
34517 case $WWWDecodeDelegate in
34518 [\\/]* | ?:[\\/]*)
34519 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
34520 ;;
34521 *)
34522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34523for as_dir in $PATH
34524do
34525 IFS=$as_save_IFS
34526 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034527 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034528 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034529 ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034531 break 2
34532 fi
34533done
cristy8b350f62009-11-15 23:12:43 +000034534 done
cristy3ed852e2009-09-05 21:47:34 +000034535IFS=$as_save_IFS
34536
34537 test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
34538 ;;
34539esac
34540fi
34541WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
34542if test -n "$WWWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034544$as_echo "$WWWDecodeDelegate" >&6; }
34545else
cristy8b350f62009-11-15 23:12:43 +000034546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034547$as_echo "no" >&6; }
34548fi
34549
34550
34551# Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
34552set dummy "$XPSDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034554$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034555if ${ac_cv_path_XPSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034556 $as_echo_n "(cached) " >&6
34557else
34558 case $XPSDelegate in
34559 [\\/]* | ?:[\\/]*)
34560 ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
34561 ;;
34562 *)
34563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34564for as_dir in $PATH
34565do
34566 IFS=$as_save_IFS
34567 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034568 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034569 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034570 ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034572 break 2
34573 fi
34574done
cristy8b350f62009-11-15 23:12:43 +000034575 done
cristy3ed852e2009-09-05 21:47:34 +000034576IFS=$as_save_IFS
34577
34578 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
34579 ;;
34580esac
34581fi
34582XPSDelegate=$ac_cv_path_XPSDelegate
34583if test -n "$XPSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034585$as_echo "$XPSDelegate" >&6; }
34586else
cristy8b350f62009-11-15 23:12:43 +000034587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034588$as_echo "no" >&6; }
34589fi
34590
34591
34592# Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
34593set dummy "$ZipDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034595$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034596if ${ac_cv_path_ZipDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034597 $as_echo_n "(cached) " >&6
34598else
34599 case $ZipDelegate in
34600 [\\/]* | ?:[\\/]*)
34601 ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
34602 ;;
34603 *)
34604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34605for as_dir in $PATH
34606do
34607 IFS=$as_save_IFS
34608 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034609 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034610 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034611 ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034613 break 2
34614 fi
34615done
cristy8b350f62009-11-15 23:12:43 +000034616 done
cristy3ed852e2009-09-05 21:47:34 +000034617IFS=$as_save_IFS
34618
34619 test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
34620 ;;
34621esac
34622fi
34623ZipDelegate=$ac_cv_path_ZipDelegate
34624if test -n "$ZipDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034626$as_echo "$ZipDelegate" >&6; }
34627else
cristy8b350f62009-11-15 23:12:43 +000034628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034629$as_echo "no" >&6; }
34630fi
34631
34632
34633
34634# Prefer lpr to lp; lp needs options tacked on.
34635if test "$LPRDelegate" != no; then
34636 PrintDelegate="$LPRDelegate"
34637else
34638 PrintDelegate="$LPDelegate -c -s"
34639fi
34640
34641
34642# Installed ImageMagick utiltity paths
34643ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
34644DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
34645MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
34646
34647# Set delegate booleans
34648have_ffmpeg='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_ffmpeg='yes'; fi
34649have_fig2dev='no' ; if test "$FIGDecodeDelegate" != "$FIGDecodeDelegateDefault" ; then have_fig2dev='yes'; fi
34650have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
34651have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
34652have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
cristy935c86e2010-06-05 23:50:07 +000034653have_mrsid='no'; if test "$MrSIDDecodeDelegate" != "$MrSIDDecodeDelegateDefault" ; then have_mrsid='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000034654have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
34655have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000034656have_ralcgm='no' ; if test "$CGMDecodeDelegate" != "$CGMDecodeDelegateDefault" ; then have_ralcgm='yes'; fi
34657have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
34658
34659#
34660# Test for font directories
34661#
34662type_include_files=''
34663
cristy430a7312010-01-21 20:44:04 +000034664# Dejavu fonts.
34665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5
34666$as_echo_n "checking for Dejavu fonts directory... " >&6; }
34667dejavu_font_dir=''
34668if test "${with_dejavu_font_dir}" != 'default'; then
34669 dejavu_font_dir="${with_dejavu_font_dir}/"
34670else
34671 for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do
34672 if test -f "${font_dir}DejaVuSerif.ttf"; then
34673 dejavu_font_dir="${font_dir}"
34674 break 1
34675 fi
34676 done
34677fi
34678if test "${dejavu_font_dir}x" != 'x'; then
34679 type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />'
cristy09b53e12011-10-14 12:47:22 +000034680 { $as_echo "$as_me:${as_lineno-$LINENO}: $dejavu_font_dir" >&5
34681$as_echo "$as_me: $dejavu_font_dir" >&6;}
cristy430a7312010-01-21 20:44:04 +000034682else
cristy09b53e12011-10-14 12:47:22 +000034683 { $as_echo "$as_me:${as_lineno-$LINENO}: not found!" >&5
34684$as_echo "$as_me: not found!" >&6;};
cristy430a7312010-01-21 20:44:04 +000034685fi
34686
34687
cristy3ed852e2009-09-05 21:47:34 +000034688# Windows
34689windows_font_dir=''
34690if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then
34691 windows_font_dir="${with_windows_font_dir}/"
34692fi
cristy430a7312010-01-21 20:44:04 +000034693if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000034694 if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then
34695 windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/'
34696 fi
34697 if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then
34698 windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/'
34699 fi
34700 if test -f '/usr/share/fonts/msttcore/arial.ttf'; then
34701 windows_font_dir='/usr/share/fonts/msttcore/truetype/'
34702 fi
34703fi
cristy430a7312010-01-21 20:44:04 +000034704if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000034705 type_include_files="$type_include_files "'<include file="type-windows.xml" />'
34706fi
34707
34708
34709# Ghostscript
cristy8b350f62009-11-15 23:12:43 +000034710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
cristy3ed852e2009-09-05 21:47:34 +000034711$as_echo_n "checking for Ghostscript fonts directory... " >&6; }
34712ghostscript_font_dir=''
34713if test "${with_gs_font_dir}" != 'default'; then
34714 ghostscript_font_dir="${with_gs_font_dir}/"
34715else
34716 if test "${native_win32_build}" = 'yes'; then
34717 # Native Windows Build
34718 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
34719 if test -f "${font_dir}a010013l.pfb"; then
34720 ghostscript_font_dir="$font_dir"
34721 break 1
34722 fi
34723 done
34724 if test "${PSDelegate}" != 'gswin32c'; then
34725 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
34726 fi
34727 else
34728 # Linux / Mac OS X / Unix Build
34729 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
34730 if test -f "${font_dir}a010013l.pfb"; then
34731 ghostscript_font_dir="${font_dir}"
34732 break 1
34733 fi
34734 done
34735 if test "${ghostscript_font_dir}x" = 'x'; then
34736 if test "$PSDelegate" != 'gs'; then
34737 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
34738 fi
34739 fi
34740 fi
34741fi
34742if test "${ghostscript_font_dir}x" != 'x'; then
34743 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
cristy09b53e12011-10-14 12:47:22 +000034744 { $as_echo "$as_me:${as_lineno-$LINENO}: $ghostscript_font_dir" >&5
34745$as_echo "$as_me: $ghostscript_font_dir" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034746else
cristy09b53e12011-10-14 12:47:22 +000034747 { $as_echo "$as_me:${as_lineno-$LINENO}: not found!" >&5
34748$as_echo "$as_me: not found!" >&6;};
cristy3ed852e2009-09-05 21:47:34 +000034749fi
34750
34751case "${build_os}" in
34752 mingw* )
34753 PSDelegate=`$WinPathScript "$PSDelegate" 1`
34754 ;;
34755esac
34756
34757
34758
34759#
34760# Handle case where user doesn't want frozen paths
34761#
34762if test "$with_frozenpaths" != 'yes'; then
34763 # Re-set delegate definitions to default (no paths)
34764 AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034765 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
34766 BZIPDelegate="$BZIPDelegateDefault"
34767 BrowseDelegate="$BrowseDelegateDefault"
34768 CGMDecodeDelegate="$CGMDecodeDelegateDefault"
34769 CatDelegate="$CatDelegateDefault"
34770 ConvertDelegate="$ConvertDelegateDefault"
34771 GVCDecodeDelegate="$GVCDecodeDelegateDefault"
34772 DVIDecodeDelegate="$DVIDecodeDelegateDefault"
34773 EchoDelegate="$EchoDelegateDefault"
34774 EditorDelegate="$EditorDelegateDefault"
34775 FIGDecodeDelegate="$FIGDecodeDelegateDefault"
34776 GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
34777 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
34778 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
34779 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
34780 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
34781 LPDelegate="$LPDelegateDefault"
34782 LZWDecodeDelegate="$LZWDecodeDelegateDefault"
34783 LZWEncodeDelegate="$LZWEncodeDelegateDefault"
34784 LaunchDelegate="$LaunchDelegateDefault"
34785 MANDelegate="$MANDelegateDefault"
34786 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
34787 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034788 MogrifyDelegate="$MogrifyDelegateDefault"
cristy935c86e2010-06-05 23:50:07 +000034789 MrSIDDecodeDelegate="$MrSIDDecodeDelegateDefault"
34790 MVDelegate="$MVDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034791 PCLDelegate="$PCLDelegateDefault"
34792 PGPDecodeDelegate="$PGPDecodeDelegateDefault"
34793 POVDelegate="$POVDelegateDefault"
34794 PSDelegate="$PSDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034795 RLEEncodeDelegate="$RLEEncodeDelegateDefault"
34796 RMDelegate="$RMDelegateDefault"
cristy4689cf02010-02-17 21:15:45 +000034797 RSVGDecodeDelegate="$RSVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034798 SCANDecodeDelegate="$SCANDecodeDelegateDefault"
34799 ShowImageDelegate="$ShowImageDelegateDefault"
34800 TXTDelegate="$TXTDelegateDefault"
cristy5ac9ac82010-07-29 13:24:24 +000034801 UniconvertorDelegate="$UniconvertorDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034802 WMFDecodeDelegate="$WMFDecodeDelegateDefault"
34803 WWWDecodeDelegate="$WWWDecodeDelegateDefault"
34804 XPSDelegate="$XPSDelegateDefault"
34805 ZipDelegate="$ZipDelegateDefault"
34806fi
34807
34808# Delegate substitutions
34809
34810
34811
34812
34813
34814
34815
34816
34817
34818
34819
34820
34821
34822
34823
34824
34825
34826
34827
34828
34829
34830
34831
34832
34833
34834
34835
34836
34837
34838
34839
34840
34841
34842
34843
34844
34845
34846
34847
34848
34849
34850
34851#
34852# RPM support.
34853#
34854RPM=''
34855for ac_prog in gnutar gtar tar
34856do
34857 # Extract the first word of "$ac_prog", so it can be a program name with args.
34858set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034860$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034861if ${ac_cv_prog_TAR+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034862 $as_echo_n "(cached) " >&6
34863else
34864 if test -n "$TAR"; then
34865 ac_cv_prog_TAR="$TAR" # Let the user override the test.
34866else
34867as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34868for as_dir in $PATH
34869do
34870 IFS=$as_save_IFS
34871 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034872 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034873 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034874 ac_cv_prog_TAR="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034876 break 2
34877 fi
34878done
cristy8b350f62009-11-15 23:12:43 +000034879 done
cristy3ed852e2009-09-05 21:47:34 +000034880IFS=$as_save_IFS
34881
34882fi
34883fi
34884TAR=$ac_cv_prog_TAR
34885if test -n "$TAR"; then
cristy8b350f62009-11-15 23:12:43 +000034886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
cristy3ed852e2009-09-05 21:47:34 +000034887$as_echo "$TAR" >&6; }
34888else
cristy8b350f62009-11-15 23:12:43 +000034889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034890$as_echo "no" >&6; }
34891fi
34892
34893
34894 test -n "$TAR" && break
34895done
34896
34897for ac_prog in perl
34898do
34899 # Extract the first word of "$ac_prog", so it can be a program name with args.
34900set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034902$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034903if ${ac_cv_prog_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034904 $as_echo_n "(cached) " >&6
34905else
34906 if test -n "$PERL"; then
34907 ac_cv_prog_PERL="$PERL" # Let the user override the test.
34908else
34909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34910for as_dir in $PATH
34911do
34912 IFS=$as_save_IFS
34913 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034914 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034915 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034916 ac_cv_prog_PERL="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034918 break 2
34919 fi
34920done
cristy8b350f62009-11-15 23:12:43 +000034921 done
cristy3ed852e2009-09-05 21:47:34 +000034922IFS=$as_save_IFS
34923
34924fi
34925fi
34926PERL=$ac_cv_prog_PERL
34927if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000034928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000034929$as_echo "$PERL" >&6; }
34930else
cristy8b350f62009-11-15 23:12:43 +000034931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034932$as_echo "no" >&6; }
34933fi
34934
34935
34936 test -n "$PERL" && break
34937done
34938
34939for ac_prog in rpmbuild rpm
34940do
34941 # Extract the first word of "$ac_prog", so it can be a program name with args.
34942set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034944$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034945if ${ac_cv_prog_RPM+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034946 $as_echo_n "(cached) " >&6
34947else
34948 if test -n "$RPM"; then
34949 ac_cv_prog_RPM="$RPM" # Let the user override the test.
34950else
34951as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34952for as_dir in $PATH
34953do
34954 IFS=$as_save_IFS
34955 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034956 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034957 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034958 ac_cv_prog_RPM="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034960 break 2
34961 fi
34962done
cristy8b350f62009-11-15 23:12:43 +000034963 done
cristy3ed852e2009-09-05 21:47:34 +000034964IFS=$as_save_IFS
34965
34966fi
34967fi
34968RPM=$ac_cv_prog_RPM
34969if test -n "$RPM"; then
cristy8b350f62009-11-15 23:12:43 +000034970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
cristy3ed852e2009-09-05 21:47:34 +000034971$as_echo "$RPM" >&6; }
34972else
cristy8b350f62009-11-15 23:12:43 +000034973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034974$as_echo "no" >&6; }
34975fi
34976
34977
34978 test -n "$RPM" && break
34979done
34980
34981
cristy73bd4a52010-10-05 11:24:23 +000034982ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
34983
34984
34985AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
34986
34987
34988AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
34989
34990
34991AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
34992
34993
34994 if test "x$RPM" != "x" ; then
34995 RPM_DELEGATE_TRUE=
34996 RPM_DELEGATE_FALSE='#'
34997else
34998 RPM_DELEGATE_TRUE='#'
34999 RPM_DELEGATE_FALSE=
35000fi
35001
cristy3ed852e2009-09-05 21:47:34 +000035002
35003#
35004# 7ZIP support (http://p7zip.sourceforge.net/)
35005#
35006P7ZIP=''
35007for ac_prog in 7za
35008do
35009 # Extract the first word of "$ac_prog", so it can be a program name with args.
35010set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035012$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035013if ${ac_cv_prog_P7ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035014 $as_echo_n "(cached) " >&6
35015else
35016 if test -n "$P7ZIP"; then
35017 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
35018else
35019as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35020for as_dir in $PATH
35021do
35022 IFS=$as_save_IFS
35023 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035024 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035025 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035026 ac_cv_prog_P7ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000035027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035028 break 2
35029 fi
35030done
cristy8b350f62009-11-15 23:12:43 +000035031 done
cristy3ed852e2009-09-05 21:47:34 +000035032IFS=$as_save_IFS
35033
35034fi
35035fi
35036P7ZIP=$ac_cv_prog_P7ZIP
35037if test -n "$P7ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000035038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000035039$as_echo "$P7ZIP" >&6; }
35040else
cristy8b350f62009-11-15 23:12:43 +000035041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035042$as_echo "no" >&6; }
35043fi
35044
35045
35046 test -n "$P7ZIP" && break
35047done
35048
35049
cristy73bd4a52010-10-05 11:24:23 +000035050 if test "x$P7ZIP" != "x" ; then
35051 P7ZIP_DELEGATE_TRUE=
35052 P7ZIP_DELEGATE_FALSE='#'
35053else
35054 P7ZIP_DELEGATE_TRUE='#'
35055 P7ZIP_DELEGATE_FALSE=
35056fi
35057
cristy3ed852e2009-09-05 21:47:34 +000035058
35059#
35060# ZIP support (http://www.info-zip.org/Zip.html)
35061#
35062ZIP=''
35063for ac_prog in zip
35064do
35065 # Extract the first word of "$ac_prog", so it can be a program name with args.
35066set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035068$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035069if ${ac_cv_prog_ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035070 $as_echo_n "(cached) " >&6
35071else
35072 if test -n "$ZIP"; then
35073 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
35074else
35075as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35076for as_dir in $PATH
35077do
35078 IFS=$as_save_IFS
35079 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035080 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035081 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035082 ac_cv_prog_ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000035083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035084 break 2
35085 fi
35086done
cristy8b350f62009-11-15 23:12:43 +000035087 done
cristy3ed852e2009-09-05 21:47:34 +000035088IFS=$as_save_IFS
35089
35090fi
35091fi
35092ZIP=$ac_cv_prog_ZIP
35093if test -n "$ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000035094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000035095$as_echo "$ZIP" >&6; }
35096else
cristy8b350f62009-11-15 23:12:43 +000035097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035098$as_echo "no" >&6; }
35099fi
35100
35101
35102 test -n "$ZIP" && break
35103done
35104
35105
cristy73bd4a52010-10-05 11:24:23 +000035106 if test "x$ZIP" != "x" ; then
35107 ZIP_DELEGATE_TRUE=
35108 ZIP_DELEGATE_FALSE='#'
35109else
35110 ZIP_DELEGATE_TRUE='#'
35111 ZIP_DELEGATE_FALSE=
35112fi
35113
cristy3ed852e2009-09-05 21:47:34 +000035114
35115#
35116# GhostPCL related configuration.
35117#
35118PCLColorDevice=ppmraw
cristy8bc84082011-09-07 13:57:00 +000035119PCLCMYKDevice=pamcmyk32
cristy3ed852e2009-09-05 21:47:34 +000035120PCLMonoDevice=pbmraw
35121if test -z "$PCLVersion"; then
35122 PCLVersion='unknown'
35123fi
35124if test $have_pcl = 'yes'; then
cristy09b53e12011-10-14 12:47:22 +000035125 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
35126$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000035127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035128$as_echo_n "checking for PCL... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000035129 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
35130$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035131 # PCLColorDevice
cristy8b350f62009-11-15 23:12:43 +000035132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035133$as_echo_n "checking for pcl color device... " >&6; }
35134 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35135 :
35136 else
35137 PCLColorDevice=ppmraw
35138 fi
cristy09b53e12011-10-14 12:47:22 +000035139 { $as_echo "$as_me:${as_lineno-$LINENO}: $PCLColorDevice" >&5
35140$as_echo "$as_me: $PCLColorDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035141
35142 # PCLCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000035143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035144$as_echo_n "checking for pcl CMYK device... " >&6; }
35145 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35146 :
35147 else
35148 PCLCMYKDevice=$PCLColorDevice
35149 fi
cristy09b53e12011-10-14 12:47:22 +000035150 { $as_echo "$as_me:${as_lineno-$LINENO}: $PCLCMYKDevice" >&5
35151$as_echo "$as_me: $PCLCMYKDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035152
35153 # PCLMonoDevice
cristy8b350f62009-11-15 23:12:43 +000035154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035155$as_echo_n "checking for pcl mono device... " >&6; }
35156 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35157 :
35158 else
35159 PCLMonoDevice=$PCLColorDevice
35160 fi
cristy09b53e12011-10-14 12:47:22 +000035161 { $as_echo "$as_me:${as_lineno-$LINENO}: $PCLMonoDevice" >&5
35162$as_echo "$as_me: $PCLMonoDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035163fi
35164
35165
35166
35167
35168
35169
35170#
35171# GhostXPS related configuration.
35172#
35173XPSColorDevice=ppmraw
35174XPSCMYKDevice=bmpsep8
35175XPSMonoDevice=pbmraw
35176if test -z "$XPSVersion"; then
35177 XPSVersion='unknown'
35178fi
35179if test $have_xps = 'yes'; then
cristy09b53e12011-10-14 12:47:22 +000035180 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
35181$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000035182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000035183$as_echo_n "checking for XPS... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000035184 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
35185$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035186 # XPSColorDevice
cristy8b350f62009-11-15 23:12:43 +000035187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035188$as_echo_n "checking for xps color device... " >&6; }
35189 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35190 :
35191 else
35192 XPSColorDevice=ppmraw
35193 fi
cristy09b53e12011-10-14 12:47:22 +000035194 { $as_echo "$as_me:${as_lineno-$LINENO}: $XPSColorDevice" >&5
35195$as_echo "$as_me: $XPSColorDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035196
35197 # XPSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000035198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035199$as_echo_n "checking for xps CMYK device... " >&6; }
35200 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35201 :
35202 else
35203 XPSCMYKDevice=$XPSColorDevice
35204 fi
cristy09b53e12011-10-14 12:47:22 +000035205 { $as_echo "$as_me:${as_lineno-$LINENO}: $XPSCMYKDevice" >&5
35206$as_echo "$as_me: $XPSCMYKDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035207
35208 # XPSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000035209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035210$as_echo_n "checking for xps mono device... " >&6; }
35211 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35212 :
35213 else
35214 XPSMonoDevice=$XPSColorDevice
35215 fi
cristy09b53e12011-10-14 12:47:22 +000035216 { $as_echo "$as_me:${as_lineno-$LINENO}: $XPSMonoDevice" >&5
35217$as_echo "$as_me: $XPSMonoDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035218fi
35219
35220
35221
35222
35223
35224
35225#
35226# Ghostscript related configuration.
35227#
cristya97426c2011-02-04 01:41:27 +000035228GSAlphaDevice=pngalpha
cristy3ed852e2009-09-05 21:47:34 +000035229GSColorDevice=pnmraw
35230GSCMYKDevice=pam
35231GSMonoDevice=pbmraw
35232GSPDFDevice=pdfwrite
35233GSPSDevice=pswrite
35234GSEPSDevice=epswrite
35235GSVersion='unknown'
35236if test $have_gs = 'yes'; then
cristy09b53e12011-10-14 12:47:22 +000035237 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
35238$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000035239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000035240$as_echo_n "checking for Ghostscript... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000035241 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
35242$as_echo "$as_me: " >&6;}
cristy8b350f62009-11-15 23:12:43 +000035243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
cristy3ed852e2009-09-05 21:47:34 +000035244$as_echo_n "checking for Ghostscript version... " >&6; }
35245 if GSVersion=`$PSDelegate --version`; then
35246 :
35247 else
35248 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
35249 fi
cristy09b53e12011-10-14 12:47:22 +000035250 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSVersion" >&5
35251$as_echo "$as_me: $GSVersion" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035252
35253 # GSAlphaDevice
cristy8b350f62009-11-15 23:12:43 +000035254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035255$as_echo_n "checking for gs alpha device... " >&6; }
35256 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35257 :
35258 else
35259 GSAlphaDevice=pnmraw
35260 fi
cristy09b53e12011-10-14 12:47:22 +000035261 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSAlphaDevice" >&5
35262$as_echo "$as_me: $GSAlphaDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035263
35264 # GSColorDevice
cristy8b350f62009-11-15 23:12:43 +000035265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035266$as_echo_n "checking for gs color device... " >&6; }
35267 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35268 :
35269 else
35270 GSColorDevice=pnmraw
35271 fi
cristy09b53e12011-10-14 12:47:22 +000035272 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSColorDevice" >&5
35273$as_echo "$as_me: $GSColorDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035274
35275 # GSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000035276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035277$as_echo_n "checking for gs CMYK device... " >&6; }
35278 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35279 :
35280 else
35281 GSCMYKDevice=bmpsep8
35282 fi
cristy09b53e12011-10-14 12:47:22 +000035283 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSCMYKDevice" >&5
35284$as_echo "$as_me: $GSCMYKDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035285
35286 # GSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000035287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035288$as_echo_n "checking for gs mono device... " >&6; }
35289 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35290 :
35291 else
35292 GSMonoDevice=$GSColorDevice
35293 fi
cristy09b53e12011-10-14 12:47:22 +000035294 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSMonoDevice" >&5
35295$as_echo "$as_me: $GSMonoDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035296
35297 # GSPDFDevice
cristy8b350f62009-11-15 23:12:43 +000035298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035299$as_echo_n "checking for gs PDF writing device... " >&6; }
35300 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35301 :
35302 else
35303 GSPDFDevice=nodevice
35304 fi
cristy09b53e12011-10-14 12:47:22 +000035305 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSPDFDevice" >&5
35306$as_echo "$as_me: $GSPDFDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035307
35308 # GSPSDevice
cristy8b350f62009-11-15 23:12:43 +000035309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035310$as_echo_n "checking for gs PS writing device... " >&6; }
35311 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35312 :
35313 else
35314 GSPSDevice=nodevice
35315 fi
cristy09b53e12011-10-14 12:47:22 +000035316 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSPSDevice" >&5
35317$as_echo "$as_me: $GSPSDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035318
35319 # GSEPSDevice
cristy8b350f62009-11-15 23:12:43 +000035320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035321$as_echo_n "checking for gs EPS writing device... " >&6; }
35322 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35323 :
35324 else
35325 GSEPSDevice=nodevice
35326 fi
cristy09b53e12011-10-14 12:47:22 +000035327 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSEPSDevice" >&5
35328$as_echo "$as_me: $GSEPSDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035329fi
35330
35331
35332
35333
35334
35335
35336
35337
35338
35339
35340#
35341# PerlMagick-related configuration
35342#
35343
35344# Look for PERL if PerlMagick requested
35345# If name/path of desired PERL interpreter is specified, look for that one first
35346have_perl='no'
35347if test "$with_perl" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000035348 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
35349$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000035350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000035351$as_echo_n "checking for Perl... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000035352 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
35353$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035354 if test "$with_perl" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000035355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000035356$as_echo_n "checking for perl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035357if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035358 $as_echo_n "(cached) " >&6
35359else
35360 ac_cv_path_PERL="$with_perl"
35361fi
cristy8b350f62009-11-15 23:12:43 +000035362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035363$as_echo "$ac_cv_path_PERL" >&6; };
35364 PERL=$ac_cv_path_PERL
35365 have_perl="$ac_cv_path_PERL"
35366 else
35367 for ac_prog in perl perl5
35368do
35369 # Extract the first word of "$ac_prog", so it can be a program name with args.
35370set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035372$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035373if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035374 $as_echo_n "(cached) " >&6
35375else
35376 case $PERL in
35377 [\\/]* | ?:[\\/]*)
35378 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
35379 ;;
35380 *)
35381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35382for as_dir in $PATH
35383do
35384 IFS=$as_save_IFS
35385 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035386 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035387 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035388 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000035389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035390 break 2
35391 fi
35392done
cristy8b350f62009-11-15 23:12:43 +000035393 done
cristy3ed852e2009-09-05 21:47:34 +000035394IFS=$as_save_IFS
35395
35396 ;;
35397esac
35398fi
35399PERL=$ac_cv_path_PERL
35400if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000035401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035402$as_echo "$PERL" >&6; }
35403else
cristy8b350f62009-11-15 23:12:43 +000035404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035405$as_echo "no" >&6; }
35406fi
35407
35408
35409 test -n "$PERL" && break
35410done
35411 if test "$ac_cv_path_PERL"; then
35412 have_perl="$ac_cv_path_PERL"
35413 fi
35414 fi
35415fi
35416
cristy949301e2010-01-06 01:38:40 +000035417if test "$with_perl" != 'yes' ; then
35418 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
35419fi
35420
35421PERL_SUPPORTS_DESTDIR='no'
35422
cristy3ed852e2009-09-05 21:47:34 +000035423with_perl_static='no'
35424with_perl_dynamic='no'
35425if test "$have_perl" != 'no'; then
35426 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
35427 with_perl_static='yes'
35428 fi
35429 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
35430 with_perl_dynamic='yes'
35431 fi
35432 # Is PERL's MakeMaker new enough to support DESTDIR?
cristy73bd4a52010-10-05 11:24:23 +000035433
35434
35435
35436
35437 if test -n "$PERL"; then :
35438
35439 ax_perl_version="5.8.1"
35440
35441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5
35442$as_echo_n "checking for perl version... " >&6; }
35443
35444 perl_version=`$PERL --version 2>&1 | $GREP "This is perl" | $SED -e 's/.* v\([0-9]*\.[0-9]*\.[0-9]*\) .*/\1/'`
35445
35446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5
35447$as_echo "$perl_version" >&6; }
35448
35449 PERL_VERSION=$perl_version
35450
35451
35452
35453
35454
35455 # Used to indicate true or false condition
35456 ax_compare_version=false
35457
35458 # Convert the two version strings to be compared into a format that
35459 # allows a simple string comparison. The end result is that a version
35460 # string of the form 1.12.5-r617 will be converted to the form
35461 # 0001001200050617. In other words, each number is zero padded to four
35462 # digits, and non digits are removed.
35463
35464 ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
35465 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
35466 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
35467 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
35468 -e 's/[^0-9]//g'`
35469
35470
35471 ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
35472 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
35473 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
35474 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
35475 -e 's/[^0-9]//g'`
35476
35477
35478 ax_compare_version=`echo "x$ax_compare_version_A
35479x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
35480
35481
35482
35483 if test "$ax_compare_version" = "true" ; then
35484
35485 :
35486 PERL_SUPPORTS_DESTDIR='yes'
35487
35488 else
35489 :
35490 PERL_SUPPORTS_DESTDIR='no'
35491
35492 fi
35493
35494
35495else
35496
35497 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5
35498$as_echo "$as_me: WARNING: could not find the perl interpreter" >&2;}
35499 PERL_SUPPORTS_DESTDIR='no'
35500
cristy3ed852e2009-09-05 21:47:34 +000035501fi
cristy73bd4a52010-10-05 11:24:23 +000035502
35503fi
35504 if test "$have_perl" != 'no'; then
35505 WITH_PERL_TRUE=
35506 WITH_PERL_FALSE='#'
35507else
35508 WITH_PERL_TRUE='#'
35509 WITH_PERL_FALSE=
35510fi
35511
35512 if test $with_perl_static = 'yes'; then
35513 WITH_PERL_STATIC_TRUE=
35514 WITH_PERL_STATIC_FALSE='#'
35515else
35516 WITH_PERL_STATIC_TRUE='#'
35517 WITH_PERL_STATIC_FALSE=
35518fi
35519
35520 if test $with_perl_dynamic = 'yes'; then
35521 WITH_PERL_DYNAMIC_TRUE=
35522 WITH_PERL_DYNAMIC_FALSE='#'
35523else
35524 WITH_PERL_DYNAMIC_TRUE='#'
35525 WITH_PERL_DYNAMIC_FALSE=
35526fi
35527
cristy3ed852e2009-09-05 21:47:34 +000035528
35529
35530# Determine path to pick up MagickCore library from for use with building PerlMagick
35531MAGICKCORE_PATH="${LIB_DIR}"
35532if test $with_perl_static = 'yes'; then
35533 # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
35534 libtool_objdir=$objdir
35535
35536 # Linker search path to library, followed by -lMagickCore
cristy4c08aed2011-07-01 19:47:50 +000035537 MAGICKCORE_PATH="${builddir}/MagickCore/${libtool_objdir}"
cristy3ed852e2009-09-05 21:47:34 +000035538fi
35539
35540
35541# Create a simple string containing format names for all delegate libraries
35542DELEGATES=''
35543if test "$have_autotrace" = 'yes'; then DELEGATES="$DELEGATES autotrace"; fi
35544if test "$have_bzlib" = 'yes'; then DELEGATES="$DELEGATES bzlib"; fi
35545if test "$have_djvu" = 'yes'; then DELEGATES="$DELEGATES djvu"; fi
35546if test "$have_dps" = 'yes'; then DELEGATES="$DELEGATES dps"; fi
35547if test "$have_fftw" = 'yes'; then DELEGATES="$DELEGATES fftw"; fi
35548if test "$have_fpx" = 'yes'; then DELEGATES="$DELEGATES fpx"; fi
35549if test "$have_fontconfig" = 'yes'; then DELEGATES="$DELEGATES fontconfig"; fi
35550if test "$have_freetype" = 'yes'; then DELEGATES="$DELEGATES freetype"; fi
35551if test "$have_gslib" = 'yes'; then DELEGATES="$DELEGATES gs"; fi
35552if test "$have_gvc" = 'yes'; then DELEGATES="$DELEGATES gvc"; fi
35553if test "$have_jbig" = 'yes'; then DELEGATES="$DELEGATES jbig"; fi
35554if test "$have_jpeg" = 'yes'; then
35555 DELEGATES="$DELEGATES jpeg";
35556 if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES jng"; fi
35557fi
35558if test "$have_jp2" = 'yes'; then DELEGATES="$DELEGATES jp2"; fi
cristy71203402010-06-18 13:12:03 +000035559if test "$have_lcms2" = 'yes'; then DELEGATES="$DELEGATES lcms2"; fi
cristy3ed852e2009-09-05 21:47:34 +000035560if test "$have_lcms" = 'yes'; then DELEGATES="$DELEGATES lcms"; fi
35561if test "$have_lqr" = 'yes'; then DELEGATES="$DELEGATES lqr"; fi
cristyfbb0ef02010-12-19 02:32:11 +000035562if test "$have_lzma" = 'yes'; then DELEGATES="$DELEGATES lzma"; fi
cristy3ed852e2009-09-05 21:47:34 +000035563if test "$have_ffmpeg" = 'yes'; then DELEGATES="$DELEGATES mpeg"; fi
35564if test "$have_openexr" = 'yes'; then DELEGATES="$DELEGATES openexr"; fi
cristy29d54c72012-04-09 12:08:27 +000035565if test "$have_pango" = 'yes'; then DELEGATES="$DELEGATES pango"; fi
cristy3ed852e2009-09-05 21:47:34 +000035566if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES png"; fi
35567if test "$have_rsvg" = 'yes'; then DELEGATES="$DELEGATES rsvg"; fi
35568if test "$have_tiff" = 'yes'; then DELEGATES="$DELEGATES tiff"; fi
35569if test "$have_x" = 'yes'; then DELEGATES="$DELEGATES x11"; fi
35570if test "$have_xml" = 'yes'; then DELEGATES="$DELEGATES xml"; fi
35571if test "$have_wmf" = 'yes'; then DELEGATES="$DELEGATES wmf"; fi
35572if test "$have_zlib" = 'yes'; then DELEGATES="$DELEGATES zlib"; fi
35573
35574
35575
35576#
35577# Handle special compiler flags
35578#
35579
35580# Add '-p' if prof source profiling support enabled
35581if test "$enable_prof" = 'yes'; then
35582 CFLAGS="-p $CFLAGS"
35583 CXXFLAGS="-p $CXXFLAGS"
35584 LDFLAGS="-p $LDFLAGS"
35585fi
35586
35587# Add '-pg' if gprof source profiling support enabled
35588if test "$enable_gprof" = 'yes'; then
35589 CFLAGS="-pg $CFLAGS"
35590 CXXFLAGS="-pg $CXXFLAGS"
35591 LDFLAGS="-pg $LDFLAGS"
35592fi
35593
35594# Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
35595# This is a gcc-specific feature
35596if test "$enable_gcov" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000035597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000035598$as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035599if ${ac_cv_lib_gcov__gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035600 $as_echo_n "(cached) " >&6
35601else
35602 ac_check_lib_save_LIBS=$LIBS
35603LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000035604cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035605/* end confdefs.h. */
35606
35607/* Override any GCC internal prototype to avoid an error.
35608 Use char because int might match the return type of a GCC
35609 builtin and then its argument prototype would still apply. */
35610#ifdef __cplusplus
35611extern "C"
35612#endif
35613char _gcov_init ();
35614int
35615main ()
35616{
35617return _gcov_init ();
35618 ;
35619 return 0;
35620}
35621_ACEOF
cristy8b350f62009-11-15 23:12:43 +000035622if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000035623 ac_cv_lib_gcov__gcov_init=yes
35624else
cristy8b350f62009-11-15 23:12:43 +000035625 ac_cv_lib_gcov__gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000035626fi
cristy8b350f62009-11-15 23:12:43 +000035627rm -f core conftest.err conftest.$ac_objext \
35628 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035629LIBS=$ac_check_lib_save_LIBS
35630fi
cristy8b350f62009-11-15 23:12:43 +000035631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000035632$as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000035633if test "x$ac_cv_lib_gcov__gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000035634 cat >>confdefs.h <<_ACEOF
35635#define HAVE_LIBGCOV 1
35636_ACEOF
35637
35638 LIBS="-lgcov $LIBS"
35639
35640fi
35641
cristy8b350f62009-11-15 23:12:43 +000035642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000035643$as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035644if ${ac_cv_lib_gcov___gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035645 $as_echo_n "(cached) " >&6
35646else
35647 ac_check_lib_save_LIBS=$LIBS
35648LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000035649cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035650/* end confdefs.h. */
35651
35652/* Override any GCC internal prototype to avoid an error.
35653 Use char because int might match the return type of a GCC
35654 builtin and then its argument prototype would still apply. */
35655#ifdef __cplusplus
35656extern "C"
35657#endif
35658char __gcov_init ();
35659int
35660main ()
35661{
35662return __gcov_init ();
35663 ;
35664 return 0;
35665}
35666_ACEOF
cristy8b350f62009-11-15 23:12:43 +000035667if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000035668 ac_cv_lib_gcov___gcov_init=yes
35669else
cristy8b350f62009-11-15 23:12:43 +000035670 ac_cv_lib_gcov___gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000035671fi
cristy8b350f62009-11-15 23:12:43 +000035672rm -f core conftest.err conftest.$ac_objext \
35673 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035674LIBS=$ac_check_lib_save_LIBS
35675fi
cristy8b350f62009-11-15 23:12:43 +000035676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000035677$as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000035678if test "x$ac_cv_lib_gcov___gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000035679 cat >>confdefs.h <<_ACEOF
35680#define HAVE_LIBGCOV 1
35681_ACEOF
35682
35683 LIBS="-lgcov $LIBS"
35684
35685fi
35686
35687 case "$target_os" in
35688 darwin*)
35689 OSX_GCOV_LDFLAG="-Wl,-single_module"
35690 ;;
35691 *)
35692 OSX_GCOV_LDFLAG=""
35693 ;;
35694 esac
35695
35696 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
35697 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
35698 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
35699fi
35700
35701#
35702# Build library dependency list for libMagickCore
35703#
35704
35705MAGICK_LIBLTDL='' # Libltdl for build
35706MAGICK_API_LIBLTDL='' # libltdl for dependent application (API) build
35707MAGICK_LTDLDEPS='' # extra libltdl dependencies
35708if test "$with_ltdl" != 'no'
35709then
35710 if test \( "$with_included_ltdl" = 'no' -o "$enable_ltdl_convenience" = 'no' \) -o "$enable_ltdl_install" = 'yes'; then
35711 MAGICK_API_LIBLTDL='-lltdl'
35712 fi
35713 MAGICK_LIBLTDL=${LIBLTDL}
35714 MAGICK_LTDLDEPS=${LTDLDEPS}
35715fi
35716
35717
35718
35719if test "$with_modules" != 'no'; then
cristyfbb0ef02010-12-19 02:32:11 +000035720 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 $LZMA_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 +000035721else
cristy41cbe8a2011-10-27 01:35:18 +000035722 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 $WEBP_LIBS $WMF_LIBS $DPS_LIBS $XEXT_LIBS $XT_LIBS $IPC_LIBS $X11_LIBS $LZMA_LIBS $BZLIB_LIBS $OPENEXR_LIBS $PANGO_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 +000035723fi
35724
35725
35726#
35727# Remove extraneous spaces from output variables (asthetic)
35728#
35729X_CFLAGS=`echo $X_CFLAGS | sed -e 's/ */ /g'`
35730X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/ */ /g'`
35731X_LIBS=`echo $X_LIBS | sed -e 's/ */ /g'`
35732X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/ */ /g'`
35733
35734CC=`echo $CC | sed -e 's/ */ /g'`
35735CFLAGS=`echo $CFLAGS | sed -e 's/ */ /g'`
35736CPPFLAGS=`echo $CPPFLAGS | sed -e 's/ */ /g'`
35737CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ */ /g'`
35738DELEGATES=`echo $DELEGATES | sed -e 's/^ //g'`
35739DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/ */ /g'`
35740LDFLAGS=`echo $LDFLAGS | sed -e 's/ */ /g'`
35741TESTED_LIBS=`echo $LIBS | sed -e 's/ */ /g'`
35742MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'`
35743#LIBS=`echo $LIBS | sed -e 's/ */ /g'`
35744
35745# Pass only user-provided LIBS as "global" libraries
35746LIBS=$USER_LIBS
35747
35748#AC_SUBST(CPPFLAGS)
35749
35750#AC_SUBST(LDFLAGS)
35751#AC_SUBST(X_PRE_LIBS)
35752#AC_SUBST(X_LIBS)
35753#AC_SUBST(X_EXTRA_LIBS)
35754
35755MAGICK_CFLAGS=$CFLAGS
35756MAGICK_CXXFLAGS="$CXXFLAGS"
35757MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'`
35758MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'`
35759MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
35760MAGICK_LIBS="-lMagickCore $MAGICK_DEP_LIBS $MAGICK_API_LIBLTDL"
35761
35762
35763
35764
35765
35766
35767
35768
cristyfd9dcd42010-08-08 18:07:02 +000035769
cristy3ed852e2009-09-05 21:47:34 +000035770# Set configured scripts to executable.
35771ac_config_commands="$ac_config_commands default"
35772
35773ac_config_commands="$ac_config_commands MagickCore-config.in"
35774
cristy3ed852e2009-09-05 21:47:34 +000035775ac_config_commands="$ac_config_commands MagickWand-config.in"
35776
cristy3ed852e2009-09-05 21:47:34 +000035777ac_config_commands="$ac_config_commands Magick++-config.in"
35778
35779ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
35780
35781
cristy09b53e12011-10-14 12:47:22 +000035782{ $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
35783$as_echo "$as_me: -------------------------------------------------------------" >&6;}
35784{ $as_echo "$as_me:${as_lineno-$LINENO}: Update ImageMagick configuration" >&5
35785$as_echo "$as_me: Update ImageMagick configuration" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035786cat >confcache <<\_ACEOF
35787# This file is a shell script that caches the results of configure
35788# tests run on this system so they can be shared between configure
35789# scripts and configure runs, see configure's option --config-cache.
35790# It is not useful on other systems. If it contains results you don't
35791# want to keep, you may remove or edit it.
35792#
35793# config.status only pays attention to the cache file if you give it
35794# the --recheck option to rerun configure.
35795#
35796# `ac_cv_env_foo' variables (set or unset) will be overridden when
35797# loading this file, other *unset* `ac_cv_foo' will be assigned the
35798# following values.
35799
35800_ACEOF
35801
35802# The following way of writing the cache mishandles newlines in values,
35803# but we know of no workaround that is simple, portable, and efficient.
35804# So, we kill variables containing newlines.
35805# Ultrix sh set writes to stderr and can't be redirected directly,
35806# and sets the high bit in the cache file unless we assign to the vars.
35807(
35808 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
35809 eval ac_val=\$$ac_var
35810 case $ac_val in #(
35811 *${as_nl}*)
35812 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +000035813 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +000035814$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
35815 esac
35816 case $ac_var in #(
35817 _ | IFS | as_nl) ;; #(
35818 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +000035819 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +000035820 esac ;;
35821 esac
35822 done
35823
35824 (set) 2>&1 |
35825 case $as_nl`(ac_space=' '; set) 2>&1` in #(
35826 *${as_nl}ac_space=\ *)
cristy8b350f62009-11-15 23:12:43 +000035827 # `set' does not quote correctly, so add quotes: double-quote
35828 # substitution turns \\\\ into \\, and sed turns \\ into \.
cristy3ed852e2009-09-05 21:47:34 +000035829 sed -n \
35830 "s/'/'\\\\''/g;
35831 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
35832 ;; #(
35833 *)
35834 # `set' quotes correctly as required by POSIX, so do not add quotes.
35835 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
35836 ;;
35837 esac |
35838 sort
35839) |
35840 sed '
35841 /^ac_cv_env_/b end
35842 t clear
35843 :clear
35844 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
35845 t end
35846 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
35847 :end' >>confcache
35848if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
35849 if test -w "$cache_file"; then
cristyda16f162011-02-19 23:52:17 +000035850 if test "x$cache_file" != "x/dev/null"; then
cristy8b350f62009-11-15 23:12:43 +000035851 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000035852$as_echo "$as_me: updating cache $cache_file" >&6;}
cristyda16f162011-02-19 23:52:17 +000035853 if test ! -f "$cache_file" || test -h "$cache_file"; then
35854 cat confcache >"$cache_file"
35855 else
35856 case $cache_file in #(
35857 */* | ?:*)
35858 mv -f confcache "$cache_file"$$ &&
35859 mv -f "$cache_file"$$ "$cache_file" ;; #(
35860 *)
35861 mv -f confcache "$cache_file" ;;
35862 esac
35863 fi
35864 fi
cristy3ed852e2009-09-05 21:47:34 +000035865 else
cristy8b350f62009-11-15 23:12:43 +000035866 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000035867$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
35868 fi
35869fi
35870rm -f confcache
35871
35872test "x$prefix" = xNONE && prefix=$ac_default_prefix
35873# Let make expand exec_prefix.
35874test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
35875
35876DEFS=-DHAVE_CONFIG_H
35877
35878ac_libobjs=
35879ac_ltlibobjs=
cristy98dddb52010-11-04 00:30:15 +000035880U=
cristy3ed852e2009-09-05 21:47:34 +000035881for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
35882 # 1. Remove the extension, and $U if already installed.
35883 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
35884 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
35885 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
35886 # will be set to the directory where LIBOBJS objects are built.
cristy8b350f62009-11-15 23:12:43 +000035887 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
35888 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
cristy3ed852e2009-09-05 21:47:34 +000035889done
35890LIBOBJS=$ac_libobjs
35891
35892LTLIBOBJS=$ac_ltlibobjs
35893
35894
cristy73bd4a52010-10-05 11:24:23 +000035895 if test -n "$EXEEXT"; then
35896 am__EXEEXT_TRUE=
35897 am__EXEEXT_FALSE='#'
35898else
35899 am__EXEEXT_TRUE='#'
35900 am__EXEEXT_FALSE=
35901fi
cristy3ed852e2009-09-05 21:47:34 +000035902
cristy73bd4a52010-10-05 11:24:23 +000035903if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035904 as_fn_error $? "conditional \"AMDEP\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035905Usually this means the macro was only invoked conditionally." "$LINENO" 5
35906fi
35907if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035908 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035909Usually this means the macro was only invoked conditionally." "$LINENO" 5
35910fi
35911if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035912 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035913Usually this means the macro was only invoked conditionally." "$LINENO" 5
35914fi
35915if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035916 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035917Usually this means the macro was only invoked conditionally." "$LINENO" 5
35918fi
35919if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035920 as_fn_error $? "conditional \"WINGDI32_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035921Usually this means the macro was only invoked conditionally." "$LINENO" 5
35922fi
35923if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035924 as_fn_error $? "conditional \"WIN32_NATIVE_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035925Usually this means the macro was only invoked conditionally." "$LINENO" 5
35926fi
35927if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035928 as_fn_error $? "conditional \"CYGWIN_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035929Usually this means the macro was only invoked conditionally." "$LINENO" 5
35930fi
35931if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035932 as_fn_error $? "conditional \"USING_CL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035933Usually this means the macro was only invoked conditionally." "$LINENO" 5
35934fi
cristy73bd4a52010-10-05 11:24:23 +000035935if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035936 as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035937Usually this means the macro was only invoked conditionally." "$LINENO" 5
35938fi
35939if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035940 as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035941Usually this means the macro was only invoked conditionally." "$LINENO" 5
35942fi
35943LT_CONFIG_H=config/config.h
35944
35945 _ltdl_libobjs=
35946 _ltdl_ltlibobjs=
35947 if test -n "$_LT_LIBOBJS"; then
35948 # Remove the extension.
35949 _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
35950 for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
35951 _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
35952 _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
35953 done
35954 fi
35955 ltdl_LIBOBJS=$_ltdl_libobjs
35956
35957 ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
35958
35959
35960if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035961 as_fn_error $? "conditional \"WITH_SHARED_LIBS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035962Usually this means the macro was only invoked conditionally." "$LINENO" 5
35963fi
35964if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035965 as_fn_error $? "conditional \"WITH_MODULES\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035966Usually this means the macro was only invoked conditionally." "$LINENO" 5
35967fi
35968if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035969 as_fn_error $? "conditional \"WITH_LTDL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035970Usually this means the macro was only invoked conditionally." "$LINENO" 5
35971fi
35972if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035973 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035974Usually this means the macro was only invoked conditionally." "$LINENO" 5
35975fi
cristy71d8c202012-03-20 17:05:01 +000035976if test -z "${LEGACY_SUPPORT_TRUE}" && test -z "${LEGACY_SUPPORT_FALSE}"; then
35977 as_fn_error $? "conditional \"LEGACY_SUPPORT\" was never defined.
35978Usually this means the macro was only invoked conditionally." "$LINENO" 5
35979fi
cristy73bd4a52010-10-05 11:24:23 +000035980
35981if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035982 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035983Usually this means the macro was only invoked conditionally." "$LINENO" 5
35984fi
35985if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035986 as_fn_error $? "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035987Usually this means the macro was only invoked conditionally." "$LINENO" 5
35988fi
35989if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035990 as_fn_error $? "conditional \"HasUMEM\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035991Usually this means the macro was only invoked conditionally." "$LINENO" 5
35992fi
35993if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035994 as_fn_error $? "conditional \"BZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035995Usually this means the macro was only invoked conditionally." "$LINENO" 5
35996fi
35997if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035998 as_fn_error $? "conditional \"X11_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035999Usually this means the macro was only invoked conditionally." "$LINENO" 5
36000fi
36001if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036002 as_fn_error $? "conditional \"ZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036003Usually this means the macro was only invoked conditionally." "$LINENO" 5
36004fi
36005if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036006 as_fn_error $? "conditional \"AUTOTRACE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036007Usually this means the macro was only invoked conditionally." "$LINENO" 5
36008fi
36009if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036010 as_fn_error $? "conditional \"DPS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036011Usually this means the macro was only invoked conditionally." "$LINENO" 5
36012fi
36013if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036014 as_fn_error $? "conditional \"DJVU_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036015Usually this means the macro was only invoked conditionally." "$LINENO" 5
36016fi
36017if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036018 as_fn_error $? "conditional \"FFTW_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036019Usually this means the macro was only invoked conditionally." "$LINENO" 5
36020fi
36021if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036022 as_fn_error $? "conditional \"FPX_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036023Usually this means the macro was only invoked conditionally." "$LINENO" 5
36024fi
36025if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036026 as_fn_error $? "conditional \"FONTCONFIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036027Usually this means the macro was only invoked conditionally." "$LINENO" 5
36028fi
36029if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036030 as_fn_error $? "conditional \"FREETYPE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036031Usually this means the macro was only invoked conditionally." "$LINENO" 5
36032fi
36033if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036034 as_fn_error $? "conditional \"GS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036035Usually this means the macro was only invoked conditionally." "$LINENO" 5
36036fi
36037if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036038 as_fn_error $? "conditional \"GVC_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036039Usually this means the macro was only invoked conditionally." "$LINENO" 5
36040fi
36041if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036042 as_fn_error $? "conditional \"JBIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036043Usually this means the macro was only invoked conditionally." "$LINENO" 5
36044fi
36045if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036046 as_fn_error $? "conditional \"JPEG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036047Usually this means the macro was only invoked conditionally." "$LINENO" 5
36048fi
36049if test -z "${JP2_DELEGATE_TRUE}" && test -z "${JP2_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036050 as_fn_error $? "conditional \"JP2_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036051Usually this means the macro was only invoked conditionally." "$LINENO" 5
36052fi
36053if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036054 as_fn_error $? "conditional \"LCMS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036055Usually this means the macro was only invoked conditionally." "$LINENO" 5
36056fi
36057if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036058 as_fn_error $? "conditional \"LQR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036059Usually this means the macro was only invoked conditionally." "$LINENO" 5
36060fi
cristyfbb0ef02010-12-19 02:32:11 +000036061if test -z "${LZMA_DELEGATE_TRUE}" && test -z "${LZMA_DELEGATE_FALSE}"; then
36062 as_fn_error $? "conditional \"LZMA_DELEGATE\" was never defined.
36063Usually this means the macro was only invoked conditionally." "$LINENO" 5
36064fi
cristy73bd4a52010-10-05 11:24:23 +000036065if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036066 as_fn_error $? "conditional \"OPENEXR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036067Usually this means the macro was only invoked conditionally." "$LINENO" 5
36068fi
cristy41cbe8a2011-10-27 01:35:18 +000036069if test -z "${PANGO_DELEGATE_TRUE}" && test -z "${PANGO_DELEGATE_FALSE}"; then
36070 as_fn_error $? "conditional \"PANGO_DELEGATE\" was never defined.
36071Usually this means the macro was only invoked conditionally." "$LINENO" 5
36072fi
cristya054b762012-03-26 23:16:00 +000036073if test -z "${PANGOCAIRO_DELEGATE_TRUE}" && test -z "${PANGOCAIRO_DELEGATE_FALSE}"; then
36074 as_fn_error $? "conditional \"PANGOCAIRO_DELEGATE\" was never defined.
cristy41cbe8a2011-10-27 01:35:18 +000036075Usually this means the macro was only invoked conditionally." "$LINENO" 5
36076fi
cristy73bd4a52010-10-05 11:24:23 +000036077if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036078 as_fn_error $? "conditional \"PNG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036079Usually this means the macro was only invoked conditionally." "$LINENO" 5
36080fi
36081if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036082 as_fn_error $? "conditional \"RSVG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036083Usually this means the macro was only invoked conditionally." "$LINENO" 5
36084fi
36085if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036086 as_fn_error $? "conditional \"CAIRO_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036087Usually this means the macro was only invoked conditionally." "$LINENO" 5
36088fi
36089if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036090 as_fn_error $? "conditional \"TIFF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036091Usually this means the macro was only invoked conditionally." "$LINENO" 5
36092fi
cristyb1860752011-03-14 00:27:46 +000036093if test -z "${WEBP_DELEGATE_TRUE}" && test -z "${WEBP_DELEGATE_FALSE}"; then
36094 as_fn_error $? "conditional \"WEBP_DELEGATE\" was never defined.
36095Usually this means the macro was only invoked conditionally." "$LINENO" 5
36096fi
cristy73bd4a52010-10-05 11:24:23 +000036097if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036098 as_fn_error $? "conditional \"WMF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036099Usually this means the macro was only invoked conditionally." "$LINENO" 5
36100fi
36101if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036102 as_fn_error $? "conditional \"XML_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036103Usually this means the macro was only invoked conditionally." "$LINENO" 5
36104fi
36105if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036106 as_fn_error $? "conditional \"RPM_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036107Usually this means the macro was only invoked conditionally." "$LINENO" 5
36108fi
36109if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036110 as_fn_error $? "conditional \"P7ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036111Usually this means the macro was only invoked conditionally." "$LINENO" 5
36112fi
36113if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036114 as_fn_error $? "conditional \"ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036115Usually this means the macro was only invoked conditionally." "$LINENO" 5
36116fi
36117if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036118 as_fn_error $? "conditional \"WITH_PERL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036119Usually this means the macro was only invoked conditionally." "$LINENO" 5
36120fi
36121if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036122 as_fn_error $? "conditional \"WITH_PERL_STATIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036123Usually this means the macro was only invoked conditionally." "$LINENO" 5
36124fi
36125if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036126 as_fn_error $? "conditional \"WITH_PERL_DYNAMIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036127Usually this means the macro was only invoked conditionally." "$LINENO" 5
36128fi
cristy3ed852e2009-09-05 21:47:34 +000036129
cristyda16f162011-02-19 23:52:17 +000036130: "${CONFIG_STATUS=./config.status}"
cristy3ed852e2009-09-05 21:47:34 +000036131ac_write_fail=0
36132ac_clean_files_save=$ac_clean_files
36133ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cristy8b350f62009-11-15 23:12:43 +000036134{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
cristy3ed852e2009-09-05 21:47:34 +000036135$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
cristy8b350f62009-11-15 23:12:43 +000036136as_write_fail=0
36137cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000036138#! $SHELL
36139# Generated by $as_me.
36140# Run this file to recreate the current configuration.
36141# Compiler output produced by configure, useful for debugging
36142# configure, is in config.log if it exists.
36143
36144debug=false
36145ac_cs_recheck=false
36146ac_cs_silent=false
cristy3ed852e2009-09-05 21:47:34 +000036147
cristy8b350f62009-11-15 23:12:43 +000036148SHELL=\${CONFIG_SHELL-$SHELL}
36149export SHELL
36150_ASEOF
36151cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
36152## -------------------- ##
36153## M4sh Initialization. ##
36154## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000036155
36156# Be more Bourne compatible
36157DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000036158if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000036159 emulate sh
36160 NULLCMD=:
36161 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
36162 # is contrary to our usage. Disable this feature.
36163 alias -g '${1+"$@"}'='"$@"'
36164 setopt NO_GLOB_SUBST
36165else
cristy8b350f62009-11-15 23:12:43 +000036166 case `(set -o) 2>/dev/null` in #(
36167 *posix*) :
36168 set -o posix ;; #(
36169 *) :
36170 ;;
cristy3ed852e2009-09-05 21:47:34 +000036171esac
cristy3ed852e2009-09-05 21:47:34 +000036172fi
36173
36174
cristy3ed852e2009-09-05 21:47:34 +000036175as_nl='
36176'
36177export as_nl
36178# Printing a long string crashes Solaris 7 /usr/bin/printf.
36179as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
36180as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
36181as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000036182# Prefer a ksh shell builtin over an external printf program on Solaris,
36183# but without wasting forks for bash or zsh.
36184if test -z "$BASH_VERSION$ZSH_VERSION" \
36185 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
36186 as_echo='print -r --'
36187 as_echo_n='print -rn --'
36188elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000036189 as_echo='printf %s\n'
36190 as_echo_n='printf %s'
36191else
36192 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
36193 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
36194 as_echo_n='/usr/ucb/echo -n'
36195 else
36196 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
36197 as_echo_n_body='eval
36198 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000036199 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000036200 *"$as_nl"*)
36201 expr "X$arg" : "X\\(.*\\)$as_nl";
36202 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
36203 esac;
36204 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
36205 '
36206 export as_echo_n_body
36207 as_echo_n='sh -c $as_echo_n_body as_echo'
36208 fi
36209 export as_echo_body
36210 as_echo='sh -c $as_echo_body as_echo'
36211fi
36212
36213# The user is always right.
36214if test "${PATH_SEPARATOR+set}" != set; then
36215 PATH_SEPARATOR=:
36216 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
36217 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
36218 PATH_SEPARATOR=';'
36219 }
36220fi
36221
cristy3ed852e2009-09-05 21:47:34 +000036222
36223# IFS
36224# We need space, tab and new line, in precisely that order. Quoting is
36225# there to prevent editors from complaining about space-tab.
36226# (If _AS_PATH_WALK were called with IFS unset, it would disable word
36227# splitting by setting IFS to empty value.)
36228IFS=" "" $as_nl"
36229
36230# Find who we are. Look in the path if we contain no directory separator.
cristyda16f162011-02-19 23:52:17 +000036231as_myself=
cristy8b350f62009-11-15 23:12:43 +000036232case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000036233 *[\\/]* ) as_myself=$0 ;;
36234 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36235for as_dir in $PATH
36236do
36237 IFS=$as_save_IFS
36238 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000036239 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
36240 done
cristy3ed852e2009-09-05 21:47:34 +000036241IFS=$as_save_IFS
36242
36243 ;;
36244esac
36245# We did not find ourselves, most probably we were run as `sh COMMAND'
36246# in which case we are not to be found in the path.
36247if test "x$as_myself" = x; then
36248 as_myself=$0
36249fi
36250if test ! -f "$as_myself"; then
36251 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +000036252 exit 1
cristy3ed852e2009-09-05 21:47:34 +000036253fi
36254
cristy8b350f62009-11-15 23:12:43 +000036255# Unset variables that we do not need and which cause bugs (e.g. in
36256# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
36257# suppresses any "Segmentation fault" message there. '((' could
36258# trigger a bug in pdksh 5.2.14.
36259for as_var in BASH_ENV ENV MAIL MAILPATH
36260do eval test x\${$as_var+set} = xset \
36261 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +000036262done
36263PS1='$ '
36264PS2='> '
36265PS4='+ '
36266
36267# NLS nuisances.
36268LC_ALL=C
36269export LC_ALL
36270LANGUAGE=C
36271export LANGUAGE
36272
cristy8b350f62009-11-15 23:12:43 +000036273# CDPATH.
36274(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
36275
36276
cristy98dddb52010-11-04 00:30:15 +000036277# as_fn_error STATUS ERROR [LINENO LOG_FD]
36278# ----------------------------------------
cristy8b350f62009-11-15 23:12:43 +000036279# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
36280# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cristy98dddb52010-11-04 00:30:15 +000036281# script with STATUS, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +000036282as_fn_error ()
36283{
cristy98dddb52010-11-04 00:30:15 +000036284 as_status=$1; test $as_status -eq 0 && as_status=1
36285 if test "$4"; then
36286 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
36287 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cristy8b350f62009-11-15 23:12:43 +000036288 fi
cristy98dddb52010-11-04 00:30:15 +000036289 $as_echo "$as_me: error: $2" >&2
cristy8b350f62009-11-15 23:12:43 +000036290 as_fn_exit $as_status
36291} # as_fn_error
36292
36293
36294# as_fn_set_status STATUS
36295# -----------------------
36296# Set $? to STATUS, without forking.
36297as_fn_set_status ()
36298{
36299 return $1
36300} # as_fn_set_status
36301
36302# as_fn_exit STATUS
36303# -----------------
36304# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
36305as_fn_exit ()
36306{
36307 set +e
36308 as_fn_set_status $1
36309 exit $1
36310} # as_fn_exit
36311
36312# as_fn_unset VAR
36313# ---------------
36314# Portably unset VAR.
36315as_fn_unset ()
36316{
36317 { eval $1=; unset $1;}
36318}
36319as_unset=as_fn_unset
36320# as_fn_append VAR VALUE
36321# ----------------------
36322# Append the text in VALUE to the end of the definition contained in VAR. Take
36323# advantage of any shell optimizations that allow amortized linear growth over
36324# repeated appends, instead of the typical quadratic growth present in naive
36325# implementations.
36326if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
36327 eval 'as_fn_append ()
36328 {
36329 eval $1+=\$2
36330 }'
36331else
36332 as_fn_append ()
36333 {
36334 eval $1=\$$1\$2
36335 }
36336fi # as_fn_append
36337
36338# as_fn_arith ARG...
36339# ------------------
36340# Perform arithmetic evaluation on the ARGs, and store the result in the
36341# global $as_val. Take advantage of shells that can avoid forks. The arguments
36342# must be portable across $(()) and expr.
36343if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
36344 eval 'as_fn_arith ()
36345 {
36346 as_val=$(( $* ))
36347 }'
36348else
36349 as_fn_arith ()
36350 {
36351 as_val=`expr "$@" || test $? -eq 1`
36352 }
36353fi # as_fn_arith
36354
36355
cristy3ed852e2009-09-05 21:47:34 +000036356if expr a : '\(a\)' >/dev/null 2>&1 &&
36357 test "X`expr 00001 : '.*\(...\)'`" = X001; then
36358 as_expr=expr
36359else
36360 as_expr=false
36361fi
36362
36363if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
36364 as_basename=basename
36365else
36366 as_basename=false
36367fi
36368
cristy8b350f62009-11-15 23:12:43 +000036369if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
36370 as_dirname=dirname
36371else
36372 as_dirname=false
36373fi
cristy3ed852e2009-09-05 21:47:34 +000036374
cristy3ed852e2009-09-05 21:47:34 +000036375as_me=`$as_basename -- "$0" ||
36376$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
36377 X"$0" : 'X\(//\)$' \| \
36378 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
36379$as_echo X/"$0" |
36380 sed '/^.*\/\([^/][^/]*\)\/*$/{
36381 s//\1/
36382 q
36383 }
36384 /^X\/\(\/\/\)$/{
36385 s//\1/
36386 q
36387 }
36388 /^X\/\(\/\).*/{
36389 s//\1/
36390 q
36391 }
36392 s/.*/./; q'`
36393
cristy8b350f62009-11-15 23:12:43 +000036394# Avoid depending upon Character Ranges.
36395as_cr_letters='abcdefghijklmnopqrstuvwxyz'
36396as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36397as_cr_Letters=$as_cr_letters$as_cr_LETTERS
36398as_cr_digits='0123456789'
36399as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +000036400
36401ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +000036402case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +000036403-n*)
cristy8b350f62009-11-15 23:12:43 +000036404 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +000036405 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +000036406 xy) ECHO_C='\c';;
36407 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
36408 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +000036409 esac;;
36410*)
36411 ECHO_N='-n';;
36412esac
cristy3ed852e2009-09-05 21:47:34 +000036413
36414rm -f conf$$ conf$$.exe conf$$.file
36415if test -d conf$$.dir; then
36416 rm -f conf$$.dir/conf$$.file
36417else
36418 rm -f conf$$.dir
36419 mkdir conf$$.dir 2>/dev/null
36420fi
36421if (echo >conf$$.file) 2>/dev/null; then
36422 if ln -s conf$$.file conf$$ 2>/dev/null; then
36423 as_ln_s='ln -s'
36424 # ... but there are two gotchas:
36425 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
36426 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
cristy14fefe52012-05-21 00:59:18 +000036427 # In both cases, we have to default to `cp -pR'.
cristy3ed852e2009-09-05 21:47:34 +000036428 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
cristy14fefe52012-05-21 00:59:18 +000036429 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000036430 elif ln conf$$.file conf$$ 2>/dev/null; then
36431 as_ln_s=ln
36432 else
cristy14fefe52012-05-21 00:59:18 +000036433 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000036434 fi
36435else
cristy14fefe52012-05-21 00:59:18 +000036436 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000036437fi
36438rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
36439rmdir conf$$.dir 2>/dev/null
36440
cristy8b350f62009-11-15 23:12:43 +000036441
36442# as_fn_mkdir_p
36443# -------------
36444# Create "$as_dir" as a directory, including parents if necessary.
36445as_fn_mkdir_p ()
36446{
36447
36448 case $as_dir in #(
36449 -*) as_dir=./$as_dir;;
36450 esac
36451 test -d "$as_dir" || eval $as_mkdir_p || {
36452 as_dirs=
36453 while :; do
36454 case $as_dir in #(
36455 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
36456 *) as_qdir=$as_dir;;
36457 esac
36458 as_dirs="'$as_qdir' $as_dirs"
36459 as_dir=`$as_dirname -- "$as_dir" ||
36460$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36461 X"$as_dir" : 'X\(//\)[^/]' \| \
36462 X"$as_dir" : 'X\(//\)$' \| \
36463 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36464$as_echo X"$as_dir" |
36465 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36466 s//\1/
36467 q
36468 }
36469 /^X\(\/\/\)[^/].*/{
36470 s//\1/
36471 q
36472 }
36473 /^X\(\/\/\)$/{
36474 s//\1/
36475 q
36476 }
36477 /^X\(\/\).*/{
36478 s//\1/
36479 q
36480 }
36481 s/.*/./; q'`
36482 test -d "$as_dir" && break
36483 done
36484 test -z "$as_dirs" || eval "mkdir $as_dirs"
cristy98dddb52010-11-04 00:30:15 +000036485 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cristy8b350f62009-11-15 23:12:43 +000036486
36487
36488} # as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000036489if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000036490 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +000036491else
36492 test -d ./-p && rmdir ./-p
36493 as_mkdir_p=false
36494fi
36495
cristy14fefe52012-05-21 00:59:18 +000036496
36497# as_fn_executable_p FILE
36498# -----------------------
36499# Test if FILE is an executable regular file.
36500as_fn_executable_p ()
36501{
36502 test -f "$1" && test -x "$1"
36503} # as_fn_executable_p
36504as_test_x='test -x'
36505as_executable_p=as_fn_executable_p
cristy3ed852e2009-09-05 21:47:34 +000036506
36507# Sed expression to map a string onto a valid CPP name.
36508as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
36509
36510# Sed expression to map a string onto a valid variable name.
36511as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
36512
36513
36514exec 6>&1
cristy8b350f62009-11-15 23:12:43 +000036515## ----------------------------------- ##
36516## Main body of $CONFIG_STATUS script. ##
36517## ----------------------------------- ##
36518_ASEOF
36519test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000036520
cristy8b350f62009-11-15 23:12:43 +000036521cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36522# Save the log message, to keep $0 and so on meaningful, and to
cristy3ed852e2009-09-05 21:47:34 +000036523# report actual input values of CONFIG_FILES etc. instead of their
36524# values after options handling.
36525ac_log="
cristy29eb34e2011-10-16 00:46:08 +000036526This file was extended by ImageMagick $as_me 7.0.0-0, which was
cristy14fefe52012-05-21 00:59:18 +000036527generated by GNU Autoconf 2.69. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +000036528
36529 CONFIG_FILES = $CONFIG_FILES
36530 CONFIG_HEADERS = $CONFIG_HEADERS
36531 CONFIG_LINKS = $CONFIG_LINKS
36532 CONFIG_COMMANDS = $CONFIG_COMMANDS
36533 $ $0 $@
36534
36535on `(hostname || uname -n) 2>/dev/null | sed 1q`
36536"
36537
36538_ACEOF
36539
36540case $ac_config_files in *"
36541"*) set x $ac_config_files; shift; ac_config_files=$*;;
36542esac
36543
36544case $ac_config_headers in *"
36545"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
36546esac
36547
36548
36549cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36550# Files that config.status was made for.
36551config_files="$ac_config_files"
36552config_headers="$ac_config_headers"
36553config_commands="$ac_config_commands"
36554
36555_ACEOF
36556
36557cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36558ac_cs_usage="\
cristy8b350f62009-11-15 23:12:43 +000036559\`$as_me' instantiates files and other configuration actions
36560from templates according to the current configuration. Unless the files
36561and actions are specified as TAGs, all are instantiated by default.
cristy3ed852e2009-09-05 21:47:34 +000036562
cristy8b350f62009-11-15 23:12:43 +000036563Usage: $0 [OPTION]... [TAG]...
cristy3ed852e2009-09-05 21:47:34 +000036564
36565 -h, --help print this help, then exit
36566 -V, --version print version number and configuration settings, then exit
cristycd4c5312009-11-22 01:19:08 +000036567 --config print configuration, then exit
cristy3ed852e2009-09-05 21:47:34 +000036568 -q, --quiet, --silent
36569 do not print progress messages
36570 -d, --debug don't remove temporary files
36571 --recheck update $as_me by reconfiguring in the same conditions
36572 --file=FILE[:TEMPLATE]
36573 instantiate the configuration file FILE
36574 --header=FILE[:TEMPLATE]
36575 instantiate the configuration header FILE
36576
36577Configuration files:
36578$config_files
36579
36580Configuration headers:
36581$config_headers
36582
36583Configuration commands:
36584$config_commands
36585
cristy8b350f62009-11-15 23:12:43 +000036586Report bugs to <http://www.imagemagick.org>."
cristy3ed852e2009-09-05 21:47:34 +000036587
36588_ACEOF
36589cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristycd4c5312009-11-22 01:19:08 +000036590ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
cristy3ed852e2009-09-05 21:47:34 +000036591ac_cs_version="\\
cristy29eb34e2011-10-16 00:46:08 +000036592ImageMagick config.status 7.0.0-0
cristy14fefe52012-05-21 00:59:18 +000036593configured by $0, generated by GNU Autoconf 2.69,
cristycd4c5312009-11-22 01:19:08 +000036594 with options \\"\$ac_cs_config\\"
cristy3ed852e2009-09-05 21:47:34 +000036595
cristy14fefe52012-05-21 00:59:18 +000036596Copyright (C) 2012 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +000036597This config.status script is free software; the Free Software Foundation
36598gives unlimited permission to copy, distribute and modify it."
36599
36600ac_pwd='$ac_pwd'
36601srcdir='$srcdir'
36602INSTALL='$INSTALL'
cristy73bd4a52010-10-05 11:24:23 +000036603MKDIR_P='$MKDIR_P'
36604AWK='$AWK'
cristy3ed852e2009-09-05 21:47:34 +000036605test -n "\$AWK" || AWK=awk
36606_ACEOF
36607
36608cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36609# The default lists apply if the user does not specify any file.
36610ac_need_defaults=:
36611while test $# != 0
36612do
36613 case $1 in
cristyda16f162011-02-19 23:52:17 +000036614 --*=?*)
cristy3ed852e2009-09-05 21:47:34 +000036615 ac_option=`expr "X$1" : 'X\([^=]*\)='`
36616 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
36617 ac_shift=:
36618 ;;
cristyda16f162011-02-19 23:52:17 +000036619 --*=)
36620 ac_option=`expr "X$1" : 'X\([^=]*\)='`
36621 ac_optarg=
36622 ac_shift=:
36623 ;;
cristy3ed852e2009-09-05 21:47:34 +000036624 *)
36625 ac_option=$1
36626 ac_optarg=$2
36627 ac_shift=shift
36628 ;;
36629 esac
36630
36631 case $ac_option in
36632 # Handling of the options.
36633 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
36634 ac_cs_recheck=: ;;
36635 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
36636 $as_echo "$ac_cs_version"; exit ;;
cristycd4c5312009-11-22 01:19:08 +000036637 --config | --confi | --conf | --con | --co | --c )
36638 $as_echo "$ac_cs_config"; exit ;;
cristy3ed852e2009-09-05 21:47:34 +000036639 --debug | --debu | --deb | --de | --d | -d )
36640 debug=: ;;
36641 --file | --fil | --fi | --f )
36642 $ac_shift
36643 case $ac_optarg in
36644 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
cristyda16f162011-02-19 23:52:17 +000036645 '') as_fn_error $? "missing file argument" ;;
cristy3ed852e2009-09-05 21:47:34 +000036646 esac
cristy8b350f62009-11-15 23:12:43 +000036647 as_fn_append CONFIG_FILES " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000036648 ac_need_defaults=false;;
36649 --header | --heade | --head | --hea )
36650 $ac_shift
36651 case $ac_optarg in
36652 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
36653 esac
cristy8b350f62009-11-15 23:12:43 +000036654 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000036655 ac_need_defaults=false;;
36656 --he | --h)
36657 # Conflict between --help and --header
cristy98dddb52010-11-04 00:30:15 +000036658 as_fn_error $? "ambiguous option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000036659Try \`$0 --help' for more information.";;
cristy3ed852e2009-09-05 21:47:34 +000036660 --help | --hel | -h )
36661 $as_echo "$ac_cs_usage"; exit ;;
36662 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
36663 | -silent | --silent | --silen | --sile | --sil | --si | --s)
36664 ac_cs_silent=: ;;
36665
36666 # This is an error.
cristy98dddb52010-11-04 00:30:15 +000036667 -*) as_fn_error $? "unrecognized option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000036668Try \`$0 --help' for more information." ;;
cristy3ed852e2009-09-05 21:47:34 +000036669
cristy8b350f62009-11-15 23:12:43 +000036670 *) as_fn_append ac_config_targets " $1"
cristy3ed852e2009-09-05 21:47:34 +000036671 ac_need_defaults=false ;;
36672
36673 esac
36674 shift
36675done
36676
36677ac_configure_extra_args=
36678
36679if $ac_cs_silent; then
36680 exec 6>/dev/null
36681 ac_configure_extra_args="$ac_configure_extra_args --silent"
36682fi
36683
36684_ACEOF
36685cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36686if \$ac_cs_recheck; then
cristy14fefe52012-05-21 00:59:18 +000036687 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
cristy3ed852e2009-09-05 21:47:34 +000036688 shift
36689 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
36690 CONFIG_SHELL='$SHELL'
36691 export CONFIG_SHELL
36692 exec "\$@"
36693fi
36694
36695_ACEOF
36696cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36697exec 5>>config.log
36698{
36699 echo
36700 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
36701## Running $as_me. ##
36702_ASBOX
36703 $as_echo "$ac_log"
36704} >&5
36705
36706_ACEOF
36707cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristy73bd4a52010-10-05 11:24:23 +000036708#
36709# INIT-COMMANDS
36710#
36711PACKAGE="$PACKAGE"
36712AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
36713
36714
36715# The HP-UX ksh and POSIX shell print the target directory to stdout
36716# if CDPATH is set.
36717(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
36718
36719sed_quote_subst='$sed_quote_subst'
36720double_quote_subst='$double_quote_subst'
36721delay_variable_subst='$delay_variable_subst'
cristy0c60a692010-11-04 01:09:47 +000036722SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
36723Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
36724GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
36725EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
36726FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
36727SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
36728ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
36729LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
36730macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
36731macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
36732AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
36733DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
36734OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
36735enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
36736enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
36737pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
36738enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
cristy99bd5232011-12-07 14:38:20 +000036739PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036740host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
36741host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
36742host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
36743build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
36744build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
36745build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
36746NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
36747LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
36748max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
36749ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
36750exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
36751lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
36752lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
36753lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036754lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
36755lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036756reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
36757reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
36758deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
36759file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036760file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
36761want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
36762sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036763AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
36764AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036765archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036766STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
36767RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
36768old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
36769old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
36770old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
36771lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
36772CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
36773CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
36774compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
36775GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
36776lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
36777lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
36778lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
36779lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036780nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
36781lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036782objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
36783MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
36784lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036785lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036786lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036787lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
36788lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
36789need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036790MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036791DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
36792NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
36793LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
36794OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
36795OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
36796libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
36797shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
36798extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
36799archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
36800enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
36801export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
36802whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
36803compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
36804old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
36805old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
36806archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
36807archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
36808module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
36809module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
36810with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
36811allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
36812no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
36813hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036814hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
36815hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
36816hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
36817hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
36818hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
36819hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
36820inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
36821link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036822always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
36823export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
36824exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
36825include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
36826prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036827postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036828file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
36829variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
36830need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
36831need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
36832version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
36833runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
36834shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
36835shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
36836libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
36837library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
36838soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
36839install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
36840postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
36841postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
36842finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
36843finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
36844hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
36845sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
36846sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
36847hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
36848enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
36849enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
36850enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
36851old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
36852striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
36853compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
36854predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
36855postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
36856predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
36857postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
36858compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
36859LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
36860reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
36861reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36862old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36863compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
36864GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
36865lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036866lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036867lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036868lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
36869lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
36870archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
36871enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
36872export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
36873whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
36874compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
36875old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36876old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36877archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36878archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36879module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36880module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36881with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
36882allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
36883no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
36884hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036885hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
36886hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
36887hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
36888hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
36889hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
36890hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
36891inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
36892link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036893always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
36894export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36895exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
36896include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
36897prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036898postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036899file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
36900hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
36901compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
36902predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
36903postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
36904predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
36905postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
36906compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
cristy73bd4a52010-10-05 11:24:23 +000036907
36908LTCC='$LTCC'
36909LTCFLAGS='$LTCFLAGS'
36910compiler='$compiler_DEFAULT'
36911
cristy0c60a692010-11-04 01:09:47 +000036912# A function that is used when there is no print builtin or printf.
36913func_fallback_echo ()
36914{
36915 eval 'cat <<_LTECHO_EOF
36916\$1
36917_LTECHO_EOF'
36918}
36919
cristy73bd4a52010-10-05 11:24:23 +000036920# Quote evaled strings.
36921for var in SED \
36922GREP \
36923EGREP \
36924FGREP \
cristy0c60a692010-11-04 01:09:47 +000036925SHELL \
36926ECHO \
cristy73bd4a52010-10-05 11:24:23 +000036927LD \
cristy0c60a692010-11-04 01:09:47 +000036928AS \
36929DLLTOOL \
36930OBJDUMP \
cristy99bd5232011-12-07 14:38:20 +000036931PATH_SEPARATOR \
cristy73bd4a52010-10-05 11:24:23 +000036932NM \
36933LN_S \
36934lt_SP2NL \
36935lt_NL2SP \
36936reload_flag \
36937deplibs_check_method \
36938file_magic_cmd \
cristyda16f162011-02-19 23:52:17 +000036939file_magic_glob \
36940want_nocaseglob \
36941sharedlib_from_linklib_cmd \
cristy73bd4a52010-10-05 11:24:23 +000036942AR \
36943AR_FLAGS \
cristyda16f162011-02-19 23:52:17 +000036944archiver_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000036945STRIP \
36946RANLIB \
36947CC \
36948CFLAGS \
36949compiler \
36950lt_cv_sys_global_symbol_pipe \
36951lt_cv_sys_global_symbol_to_cdecl \
36952lt_cv_sys_global_symbol_to_c_name_address \
36953lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
cristyda16f162011-02-19 23:52:17 +000036954nm_file_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000036955lt_prog_compiler_no_builtin_flag \
cristy73bd4a52010-10-05 11:24:23 +000036956lt_prog_compiler_pic \
cristyda16f162011-02-19 23:52:17 +000036957lt_prog_compiler_wl \
cristy73bd4a52010-10-05 11:24:23 +000036958lt_prog_compiler_static \
36959lt_cv_prog_compiler_c_o \
36960need_locks \
cristyda16f162011-02-19 23:52:17 +000036961MANIFEST_TOOL \
cristy73bd4a52010-10-05 11:24:23 +000036962DSYMUTIL \
36963NMEDIT \
36964LIPO \
36965OTOOL \
36966OTOOL64 \
36967shrext_cmds \
36968export_dynamic_flag_spec \
36969whole_archive_flag_spec \
36970compiler_needs_object \
36971with_gnu_ld \
36972allow_undefined_flag \
36973no_undefined_flag \
36974hardcode_libdir_flag_spec \
cristy73bd4a52010-10-05 11:24:23 +000036975hardcode_libdir_separator \
cristy73bd4a52010-10-05 11:24:23 +000036976exclude_expsyms \
36977include_expsyms \
36978file_list_spec \
36979variables_saved_for_relink \
36980libname_spec \
36981library_names_spec \
36982soname_spec \
cristy0c60a692010-11-04 01:09:47 +000036983install_override_mode \
cristy73bd4a52010-10-05 11:24:23 +000036984finish_eval \
36985old_striplib \
36986striplib \
36987compiler_lib_search_dirs \
36988predep_objects \
36989postdep_objects \
36990predeps \
36991postdeps \
36992compiler_lib_search_path \
36993LD_CXX \
cristy0c60a692010-11-04 01:09:47 +000036994reload_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036995compiler_CXX \
36996lt_prog_compiler_no_builtin_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036997lt_prog_compiler_pic_CXX \
cristyda16f162011-02-19 23:52:17 +000036998lt_prog_compiler_wl_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036999lt_prog_compiler_static_CXX \
37000lt_cv_prog_compiler_c_o_CXX \
37001export_dynamic_flag_spec_CXX \
37002whole_archive_flag_spec_CXX \
37003compiler_needs_object_CXX \
37004with_gnu_ld_CXX \
37005allow_undefined_flag_CXX \
37006no_undefined_flag_CXX \
37007hardcode_libdir_flag_spec_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037008hardcode_libdir_separator_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037009exclude_expsyms_CXX \
37010include_expsyms_CXX \
37011file_list_spec_CXX \
37012compiler_lib_search_dirs_CXX \
37013predep_objects_CXX \
37014postdep_objects_CXX \
37015predeps_CXX \
37016postdeps_CXX \
37017compiler_lib_search_path_CXX; do
cristy0c60a692010-11-04 01:09:47 +000037018 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000037019 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000037020 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000037021 ;;
37022 *)
37023 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
37024 ;;
37025 esac
37026done
37027
37028# Double-quote double-evaled strings.
37029for var in reload_cmds \
37030old_postinstall_cmds \
37031old_postuninstall_cmds \
37032old_archive_cmds \
37033extract_expsyms_cmds \
37034old_archive_from_new_cmds \
37035old_archive_from_expsyms_cmds \
37036archive_cmds \
37037archive_expsym_cmds \
37038module_cmds \
37039module_expsym_cmds \
37040export_symbols_cmds \
37041prelink_cmds \
cristyda16f162011-02-19 23:52:17 +000037042postlink_cmds \
cristy73bd4a52010-10-05 11:24:23 +000037043postinstall_cmds \
37044postuninstall_cmds \
37045finish_cmds \
37046sys_lib_search_path_spec \
37047sys_lib_dlsearch_path_spec \
cristy0c60a692010-11-04 01:09:47 +000037048reload_cmds_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037049old_archive_cmds_CXX \
37050old_archive_from_new_cmds_CXX \
37051old_archive_from_expsyms_cmds_CXX \
37052archive_cmds_CXX \
37053archive_expsym_cmds_CXX \
37054module_cmds_CXX \
37055module_expsym_cmds_CXX \
37056export_symbols_cmds_CXX \
cristyda16f162011-02-19 23:52:17 +000037057prelink_cmds_CXX \
37058postlink_cmds_CXX; do
cristy0c60a692010-11-04 01:09:47 +000037059 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000037060 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000037061 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000037062 ;;
37063 *)
37064 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
37065 ;;
37066 esac
37067done
37068
cristy73bd4a52010-10-05 11:24:23 +000037069ac_aux_dir='$ac_aux_dir'
37070xsi_shell='$xsi_shell'
37071lt_shell_append='$lt_shell_append'
37072
37073# See if we are running on zsh, and set the options which allow our
37074# commands through without removal of \ escapes INIT.
37075if test -n "\${ZSH_VERSION+set}" ; then
37076 setopt NO_GLOB_SUBST
37077fi
37078
37079
37080 PACKAGE='$PACKAGE'
37081 VERSION='$VERSION'
37082 TIMESTAMP='$TIMESTAMP'
37083 RM='$RM'
37084 ofile='$ofile'
37085
37086
37087
37088
37089
37090
cristy3ed852e2009-09-05 21:47:34 +000037091_ACEOF
37092
37093cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37094
37095# Handling of arguments.
37096for ac_config_target in $ac_config_targets
37097do
37098 case $ac_config_target in
37099 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
cristy4c08aed2011-07-01 19:47:50 +000037100 "MagickCore/magick-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore/magick-config.h" ;;
cristy3ed852e2009-09-05 21:47:34 +000037101 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
37102 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
37103 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
37104 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
37105 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
cristy430a7312010-01-21 20:44:04 +000037106 "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;;
cristy3ed852e2009-09-05 21:47:34 +000037107 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
37108 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
37109 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
37110 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
37111 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
cristy4c08aed2011-07-01 19:47:50 +000037112 "MagickCore/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/ImageMagick.pc" ;;
cristy3ed852e2009-09-05 21:47:34 +000037113 "Magick++/lib/ImageMagick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/ImageMagick++.pc" ;;
37114 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
cristy4c08aed2011-07-01 19:47:50 +000037115 "MagickCore/MagickCore-config") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore-config" ;;
37116 "MagickCore/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore.pc" ;;
37117 "MagickCore/version.h") CONFIG_FILES="$CONFIG_FILES MagickCore/version.h" ;;
cristy3ed852e2009-09-05 21:47:34 +000037118 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
37119 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
37120 "PerlMagick/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/Magick.pm" ;;
37121 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
37122 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
37123 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
37124 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
37125 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
37126 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
37127 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
37128 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
37129 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
37130 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
37131 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
37132 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
37133 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
37134 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
cristy4c08aed2011-07-01 19:47:50 +000037135 "MagickWand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand-config" ;;
37136 "MagickWand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand.pc" ;;
cristy73bd4a52010-10-05 11:24:23 +000037137 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
37138 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
cristy3ed852e2009-09-05 21:47:34 +000037139 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
37140 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000037141 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000037142 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
37143 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
37144
cristy98dddb52010-11-04 00:30:15 +000037145 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000037146 esac
37147done
37148
37149
37150# If the user did not use the arguments to specify the items to instantiate,
37151# then the envvar interface is used. Set only those that are not.
37152# We use the long form for the default assignment because of an extremely
37153# bizarre bug on SunOS 4.1.3.
37154if $ac_need_defaults; then
37155 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
37156 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
37157 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
37158fi
37159
37160# Have a temporary directory for convenience. Make it in the build tree
37161# simply because there is no reason against having it here, and in addition,
37162# creating and moving files from /tmp can sometimes cause problems.
37163# Hook for its removal unless debugging.
37164# Note that there is a small window in which the directory will not be cleaned:
37165# after its creation but before its name has been assigned to `$tmp'.
37166$debug ||
37167{
cristyda16f162011-02-19 23:52:17 +000037168 tmp= ac_tmp=
cristy3ed852e2009-09-05 21:47:34 +000037169 trap 'exit_status=$?
cristyda16f162011-02-19 23:52:17 +000037170 : "${ac_tmp:=$tmp}"
37171 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
cristy3ed852e2009-09-05 21:47:34 +000037172' 0
cristy8b350f62009-11-15 23:12:43 +000037173 trap 'as_fn_exit 1' 1 2 13 15
cristy3ed852e2009-09-05 21:47:34 +000037174}
37175# Create a (secure) tmp directory for tmp files.
37176
37177{
37178 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
cristyda16f162011-02-19 23:52:17 +000037179 test -d "$tmp"
cristy3ed852e2009-09-05 21:47:34 +000037180} ||
37181{
37182 tmp=./conf$$-$RANDOM
37183 (umask 077 && mkdir "$tmp")
cristy98dddb52010-11-04 00:30:15 +000037184} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000037185ac_tmp=$tmp
cristy3ed852e2009-09-05 21:47:34 +000037186
37187# Set up the scripts for CONFIG_FILES section.
37188# No need to generate them if there are no CONFIG_FILES.
37189# This happens for instance with `./config.status config.h'.
37190if test -n "$CONFIG_FILES"; then
37191
37192
cristy8b350f62009-11-15 23:12:43 +000037193ac_cr=`echo X | tr X '\015'`
37194# On cygwin, bash can eat \r inside `` if the user requested igncr.
37195# But we know of no other shell where ac_cr would be empty at this
37196# point, so we can use a bashism as a fallback.
37197if test "x$ac_cr" = x; then
37198 eval ac_cr=\$\'\\r\'
37199fi
cristy3ed852e2009-09-05 21:47:34 +000037200ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
37201if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
cristy98dddb52010-11-04 00:30:15 +000037202 ac_cs_awk_cr='\\r'
cristy3ed852e2009-09-05 21:47:34 +000037203else
37204 ac_cs_awk_cr=$ac_cr
37205fi
37206
cristyda16f162011-02-19 23:52:17 +000037207echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
cristy3ed852e2009-09-05 21:47:34 +000037208_ACEOF
37209
37210
37211{
37212 echo "cat >conf$$subs.awk <<_ACEOF" &&
37213 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
37214 echo "_ACEOF"
37215} >conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000037216 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
37217ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
cristy3ed852e2009-09-05 21:47:34 +000037218ac_delim='%!_!# '
37219for ac_last_try in false false false false false :; do
37220 . ./conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000037221 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037222
37223 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
37224 if test $ac_delim_n = $ac_delim_num; then
37225 break
37226 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000037227 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037228 else
37229 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
37230 fi
37231done
37232rm -f conf$$subs.sh
37233
37234cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristyda16f162011-02-19 23:52:17 +000037235cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000037236_ACEOF
37237sed -n '
37238h
37239s/^/S["/; s/!.*/"]=/
37240p
37241g
37242s/^[^!]*!//
37243:repl
37244t repl
37245s/'"$ac_delim"'$//
37246t delim
37247:nl
37248h
cristycd4c5312009-11-22 01:19:08 +000037249s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000037250t more1
37251s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
37252p
37253n
37254b repl
37255:more1
37256s/["\\]/\\&/g; s/^/"/; s/$/"\\/
37257p
37258g
37259s/.\{148\}//
37260t nl
37261:delim
37262h
cristycd4c5312009-11-22 01:19:08 +000037263s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000037264t more2
37265s/["\\]/\\&/g; s/^/"/; s/$/"/
37266p
37267b
37268:more2
37269s/["\\]/\\&/g; s/^/"/; s/$/"\\/
37270p
37271g
37272s/.\{148\}//
37273t delim
37274' <conf$$subs.awk | sed '
37275/^[^""]/{
37276 N
37277 s/\n//
37278}
37279' >>$CONFIG_STATUS || ac_write_fail=1
37280rm -f conf$$subs.awk
37281cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37282_ACAWK
cristyda16f162011-02-19 23:52:17 +000037283cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000037284 for (key in S) S_is_set[key] = 1
37285 FS = ""
37286
37287}
37288{
37289 line = $ 0
37290 nfields = split(line, field, "@")
37291 substed = 0
37292 len = length(field[1])
37293 for (i = 2; i < nfields; i++) {
37294 key = field[i]
37295 keylen = length(key)
37296 if (S_is_set[key]) {
37297 value = S[key]
37298 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
37299 len += length(value) + length(field[++i])
37300 substed = 1
37301 } else
37302 len += 1 + keylen
37303 }
37304
37305 print line
37306}
37307
37308_ACAWK
37309_ACEOF
37310cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37311if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
37312 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
37313else
37314 cat
cristyda16f162011-02-19 23:52:17 +000037315fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
cristy98dddb52010-11-04 00:30:15 +000037316 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037317_ACEOF
37318
cristy98dddb52010-11-04 00:30:15 +000037319# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
37320# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
cristy3ed852e2009-09-05 21:47:34 +000037321# trailing colons and then remove the whole line if VPATH becomes empty
37322# (actually we leave an empty line to preserve line numbers).
37323if test "x$srcdir" = x.; then
cristy98dddb52010-11-04 00:30:15 +000037324 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
37325h
37326s///
37327s/^/:/
37328s/[ ]*$/:/
37329s/:\$(srcdir):/:/g
37330s/:\${srcdir}:/:/g
37331s/:@srcdir@:/:/g
37332s/^:*//
cristy3ed852e2009-09-05 21:47:34 +000037333s/:*$//
cristy98dddb52010-11-04 00:30:15 +000037334x
37335s/\(=[ ]*\).*/\1/
37336G
37337s/\n//
cristy3ed852e2009-09-05 21:47:34 +000037338s/^[^=]*=[ ]*$//
37339}'
37340fi
37341
37342cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37343fi # test -n "$CONFIG_FILES"
37344
37345# Set up the scripts for CONFIG_HEADERS section.
37346# No need to generate them if there are no CONFIG_HEADERS.
37347# This happens for instance with `./config.status Makefile'.
37348if test -n "$CONFIG_HEADERS"; then
cristyda16f162011-02-19 23:52:17 +000037349cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
cristy3ed852e2009-09-05 21:47:34 +000037350BEGIN {
37351_ACEOF
37352
37353# Transform confdefs.h into an awk script `defines.awk', embedded as
37354# here-document in config.status, that substitutes the proper values into
37355# config.h.in to produce config.h.
37356
37357# Create a delimiter string that does not exist in confdefs.h, to ease
37358# handling of long lines.
37359ac_delim='%!_!# '
37360for ac_last_try in false false :; do
cristyda16f162011-02-19 23:52:17 +000037361 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
37362 if test -z "$ac_tt"; then
cristy3ed852e2009-09-05 21:47:34 +000037363 break
37364 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000037365 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037366 else
37367 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
37368 fi
37369done
37370
37371# For the awk script, D is an array of macro values keyed by name,
37372# likewise P contains macro parameters if any. Preserve backslash
37373# newline sequences.
37374
37375ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
37376sed -n '
37377s/.\{148\}/&'"$ac_delim"'/g
37378t rset
37379:rset
37380s/^[ ]*#[ ]*define[ ][ ]*/ /
37381t def
37382d
37383:def
37384s/\\$//
37385t bsnl
37386s/["\\]/\\&/g
37387s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
37388D["\1"]=" \3"/p
37389s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
37390d
37391:bsnl
37392s/["\\]/\\&/g
37393s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
37394D["\1"]=" \3\\\\\\n"\\/p
37395t cont
37396s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
37397t cont
37398d
37399:cont
37400n
37401s/.\{148\}/&'"$ac_delim"'/g
37402t clear
37403:clear
37404s/\\$//
37405t bsnlc
37406s/["\\]/\\&/g; s/^/"/; s/$/"/p
37407d
37408:bsnlc
37409s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
37410b cont
37411' <confdefs.h | sed '
37412s/'"$ac_delim"'/"\\\
37413"/g' >>$CONFIG_STATUS || ac_write_fail=1
37414
37415cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37416 for (key in D) D_is_set[key] = 1
37417 FS = ""
37418}
37419/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
37420 line = \$ 0
37421 split(line, arg, " ")
37422 if (arg[1] == "#") {
37423 defundef = arg[2]
37424 mac1 = arg[3]
37425 } else {
37426 defundef = substr(arg[1], 2)
37427 mac1 = arg[2]
37428 }
37429 split(mac1, mac2, "(") #)
37430 macro = mac2[1]
37431 prefix = substr(line, 1, index(line, defundef) - 1)
37432 if (D_is_set[macro]) {
37433 # Preserve the white space surrounding the "#".
37434 print prefix "define", macro P[macro] D[macro]
37435 next
37436 } else {
37437 # Replace #undef with comments. This is necessary, for example,
37438 # in the case of _POSIX_SOURCE, which is predefined and required
37439 # on some systems where configure will not decide to define it.
37440 if (defundef == "undef") {
37441 print "/*", prefix defundef, macro, "*/"
37442 next
37443 }
37444 }
37445}
37446{ print }
37447_ACAWK
37448_ACEOF
37449cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cristy98dddb52010-11-04 00:30:15 +000037450 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037451fi # test -n "$CONFIG_HEADERS"
37452
37453
37454eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
37455shift
37456for ac_tag
37457do
37458 case $ac_tag in
37459 :[FHLC]) ac_mode=$ac_tag; continue;;
37460 esac
37461 case $ac_mode$ac_tag in
37462 :[FHL]*:*);;
cristy98dddb52010-11-04 00:30:15 +000037463 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000037464 :[FH]-) ac_tag=-:-;;
37465 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
37466 esac
37467 ac_save_IFS=$IFS
37468 IFS=:
37469 set x $ac_tag
37470 IFS=$ac_save_IFS
37471 shift
37472 ac_file=$1
37473 shift
37474
37475 case $ac_mode in
37476 :L) ac_source=$1;;
37477 :[FH])
37478 ac_file_inputs=
37479 for ac_f
37480 do
37481 case $ac_f in
cristyda16f162011-02-19 23:52:17 +000037482 -) ac_f="$ac_tmp/stdin";;
cristy3ed852e2009-09-05 21:47:34 +000037483 *) # Look for the file first in the build tree, then in the source tree
37484 # (if the path is not absolute). The absolute path cannot be DOS-style,
37485 # because $ac_f cannot contain `:'.
37486 test -f "$ac_f" ||
37487 case $ac_f in
37488 [\\/$]*) false;;
37489 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
37490 esac ||
cristy98dddb52010-11-04 00:30:15 +000037491 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000037492 esac
37493 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
cristy8b350f62009-11-15 23:12:43 +000037494 as_fn_append ac_file_inputs " '$ac_f'"
cristy3ed852e2009-09-05 21:47:34 +000037495 done
37496
37497 # Let's still pretend it is `configure' which instantiates (i.e., don't
37498 # use $as_me), people would be surprised to read:
37499 # /* config.h. Generated by config.status. */
37500 configure_input='Generated from '`
37501 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
37502 `' by configure.'
37503 if test x"$ac_file" != x-; then
37504 configure_input="$ac_file. $configure_input"
cristy8b350f62009-11-15 23:12:43 +000037505 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000037506$as_echo "$as_me: creating $ac_file" >&6;}
37507 fi
37508 # Neutralize special characters interpreted by sed in replacement strings.
37509 case $configure_input in #(
37510 *\&* | *\|* | *\\* )
37511 ac_sed_conf_input=`$as_echo "$configure_input" |
37512 sed 's/[\\\\&|]/\\\\&/g'`;; #(
37513 *) ac_sed_conf_input=$configure_input;;
37514 esac
37515
37516 case $ac_tag in
cristyda16f162011-02-19 23:52:17 +000037517 *:-:* | *:-) cat >"$ac_tmp/stdin" \
cristy98dddb52010-11-04 00:30:15 +000037518 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000037519 esac
37520 ;;
37521 esac
37522
37523 ac_dir=`$as_dirname -- "$ac_file" ||
37524$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37525 X"$ac_file" : 'X\(//\)[^/]' \| \
37526 X"$ac_file" : 'X\(//\)$' \| \
37527 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
37528$as_echo X"$ac_file" |
37529 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37530 s//\1/
37531 q
37532 }
37533 /^X\(\/\/\)[^/].*/{
37534 s//\1/
37535 q
37536 }
37537 /^X\(\/\/\)$/{
37538 s//\1/
37539 q
37540 }
37541 /^X\(\/\).*/{
37542 s//\1/
37543 q
37544 }
37545 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000037546 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000037547 ac_builddir=.
37548
37549case "$ac_dir" in
37550.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
37551*)
37552 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
37553 # A ".." for each directory in $ac_dir_suffix.
37554 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
37555 case $ac_top_builddir_sub in
37556 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
37557 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
37558 esac ;;
37559esac
37560ac_abs_top_builddir=$ac_pwd
37561ac_abs_builddir=$ac_pwd$ac_dir_suffix
37562# for backward compatibility:
37563ac_top_builddir=$ac_top_build_prefix
37564
37565case $srcdir in
37566 .) # We are building in place.
37567 ac_srcdir=.
37568 ac_top_srcdir=$ac_top_builddir_sub
37569 ac_abs_top_srcdir=$ac_pwd ;;
37570 [\\/]* | ?:[\\/]* ) # Absolute name.
37571 ac_srcdir=$srcdir$ac_dir_suffix;
37572 ac_top_srcdir=$srcdir
37573 ac_abs_top_srcdir=$srcdir ;;
37574 *) # Relative name.
37575 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
37576 ac_top_srcdir=$ac_top_build_prefix$srcdir
37577 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
37578esac
37579ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
37580
37581
37582 case $ac_mode in
37583 :F)
37584 #
37585 # CONFIG_FILE
37586 #
37587
37588 case $INSTALL in
37589 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
37590 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
37591 esac
cristy73bd4a52010-10-05 11:24:23 +000037592 ac_MKDIR_P=$MKDIR_P
37593 case $MKDIR_P in
37594 [\\/$]* | ?:[\\/]* ) ;;
37595 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
37596 esac
cristy3ed852e2009-09-05 21:47:34 +000037597_ACEOF
37598
37599cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37600# If the template does not know about datarootdir, expand it.
37601# FIXME: This hack should be removed a few years after 2.60.
37602ac_datarootdir_hack=; ac_datarootdir_seen=
cristy3ed852e2009-09-05 21:47:34 +000037603ac_sed_dataroot='
37604/datarootdir/ {
37605 p
37606 q
37607}
37608/@datadir@/p
37609/@docdir@/p
37610/@infodir@/p
37611/@localedir@/p
cristy8b350f62009-11-15 23:12:43 +000037612/@mandir@/p'
cristy3ed852e2009-09-05 21:47:34 +000037613case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
37614*datarootdir*) ac_datarootdir_seen=yes;;
37615*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
cristy8b350f62009-11-15 23:12:43 +000037616 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
cristy3ed852e2009-09-05 21:47:34 +000037617$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
37618_ACEOF
37619cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37620 ac_datarootdir_hack='
37621 s&@datadir@&$datadir&g
37622 s&@docdir@&$docdir&g
37623 s&@infodir@&$infodir&g
37624 s&@localedir@&$localedir&g
37625 s&@mandir@&$mandir&g
cristy8b350f62009-11-15 23:12:43 +000037626 s&\\\${datarootdir}&$datarootdir&g' ;;
cristy3ed852e2009-09-05 21:47:34 +000037627esac
37628_ACEOF
37629
37630# Neutralize VPATH when `$srcdir' = `.'.
37631# Shell code in configure.ac might set extrasub.
37632# FIXME: do we really want to maintain this feature?
37633cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37634ac_sed_extra="$ac_vpsub
37635$extrasub
37636_ACEOF
37637cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37638:t
37639/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
37640s|@configure_input@|$ac_sed_conf_input|;t t
37641s&@top_builddir@&$ac_top_builddir_sub&;t t
37642s&@top_build_prefix@&$ac_top_build_prefix&;t t
37643s&@srcdir@&$ac_srcdir&;t t
37644s&@abs_srcdir@&$ac_abs_srcdir&;t t
37645s&@top_srcdir@&$ac_top_srcdir&;t t
37646s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
37647s&@builddir@&$ac_builddir&;t t
37648s&@abs_builddir@&$ac_abs_builddir&;t t
37649s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
37650s&@INSTALL@&$ac_INSTALL&;t t
cristy73bd4a52010-10-05 11:24:23 +000037651s&@MKDIR_P@&$ac_MKDIR_P&;t t
cristy3ed852e2009-09-05 21:47:34 +000037652$ac_datarootdir_hack
37653"
cristyda16f162011-02-19 23:52:17 +000037654eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
37655 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037656
37657test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
cristyda16f162011-02-19 23:52:17 +000037658 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
37659 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
37660 "$ac_tmp/out"`; test -z "$ac_out"; } &&
cristy8b350f62009-11-15 23:12:43 +000037661 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000037662which seems to be undefined. Please make sure it is defined" >&5
cristy3ed852e2009-09-05 21:47:34 +000037663$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000037664which seems to be undefined. Please make sure it is defined" >&2;}
cristy3ed852e2009-09-05 21:47:34 +000037665
cristyda16f162011-02-19 23:52:17 +000037666 rm -f "$ac_tmp/stdin"
cristy3ed852e2009-09-05 21:47:34 +000037667 case $ac_file in
cristyda16f162011-02-19 23:52:17 +000037668 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
37669 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
cristy3ed852e2009-09-05 21:47:34 +000037670 esac \
cristy98dddb52010-11-04 00:30:15 +000037671 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037672 ;;
37673 :H)
37674 #
37675 # CONFIG_HEADER
37676 #
37677 if test x"$ac_file" != x-; then
37678 {
37679 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000037680 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
37681 } >"$ac_tmp/config.h" \
cristy98dddb52010-11-04 00:30:15 +000037682 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000037683 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
cristy8b350f62009-11-15 23:12:43 +000037684 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000037685$as_echo "$as_me: $ac_file is unchanged" >&6;}
37686 else
37687 rm -f "$ac_file"
cristyda16f162011-02-19 23:52:17 +000037688 mv "$ac_tmp/config.h" "$ac_file" \
cristy98dddb52010-11-04 00:30:15 +000037689 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037690 fi
37691 else
37692 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000037693 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
cristy98dddb52010-11-04 00:30:15 +000037694 || as_fn_error $? "could not create -" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037695 fi
cristy73bd4a52010-10-05 11:24:23 +000037696# Compute "$ac_file"'s index in $config_headers.
37697_am_arg="$ac_file"
37698_am_stamp_count=1
37699for _am_header in $config_headers :; do
37700 case $_am_header in
37701 $_am_arg | $_am_arg:* )
37702 break ;;
37703 * )
37704 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
37705 esac
37706done
37707echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
37708$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37709 X"$_am_arg" : 'X\(//\)[^/]' \| \
37710 X"$_am_arg" : 'X\(//\)$' \| \
37711 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
37712$as_echo X"$_am_arg" |
37713 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37714 s//\1/
37715 q
37716 }
37717 /^X\(\/\/\)[^/].*/{
37718 s//\1/
37719 q
37720 }
37721 /^X\(\/\/\)$/{
37722 s//\1/
37723 q
37724 }
37725 /^X\(\/\).*/{
37726 s//\1/
37727 q
37728 }
37729 s/.*/./; q'`/stamp-h$_am_stamp_count
cristy3ed852e2009-09-05 21:47:34 +000037730 ;;
37731
cristy8b350f62009-11-15 23:12:43 +000037732 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
cristy3ed852e2009-09-05 21:47:34 +000037733$as_echo "$as_me: executing $ac_file commands" >&6;}
37734 ;;
37735 esac
37736
37737
37738 case $ac_file$ac_mode in
cristy4c08aed2011-07-01 19:47:50 +000037739 "MagickCore/magick-config.h":C) ac_prefix_conf_OUT=`echo MagickCore/magick-config.h`
cristy73bd4a52010-10-05 11:24:23 +000037740ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
37741ac_prefix_conf_PKG=`echo MagickCore`
37742ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
37743ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
37744ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
37745if test ".$ac_prefix_conf_INP" = "."; then
37746 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
37747 case "$ac_file" in
37748 *.h) ac_prefix_conf_INP=$ac_file ;;
37749 *)
37750 esac
37751 test ".$ac_prefix_conf_INP" != "." && break
37752 done
37753fi
37754if test ".$ac_prefix_conf_INP" = "."; then
37755 case "$ac_prefix_conf_OUT" in
37756 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
37757 ;;
37758 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
37759 ;;
37760 *) ac_prefix_conf_INP=config.h
37761 ;;
37762 esac
37763fi
37764if test -z "$ac_prefix_conf_PKG" ; then
cristy98dddb52010-11-04 00:30:15 +000037765 as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000037766else
37767 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
37768 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
37769 fi fi
37770 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
37771$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
37772 if test -f $ac_prefix_conf_INP ; then
cristy24fc1fe2010-10-23 21:13:01 +000037773 $as_echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
37774 $as_echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
37775 $as_echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix
37776 $as_echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix
37777 $as_echo "#endif/" >> conftest.prefix
37778 $as_echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix
37779 $as_echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix
37780 $as_echo "#endif/" >> conftest.prefix
cristy73bd4a52010-10-05 11:24:23 +000037781 # now executing _script on _DEF input to create _OUT output file
37782 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
37783 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
37784 echo ' ' >>$tmp/pconfig.h
37785 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
37786
37787 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
37788 echo ' ' >>$tmp/pconfig.h
37789 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
37790 echo "#endif" >>$tmp/pconfig.h
37791 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
37792 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
37793$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
37794 else
37795 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
37796$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37797 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
37798 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
37799 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
37800$as_echo X"$ac_prefix_conf_OUT" |
37801 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37802 s//\1/
37803 q
37804 }
37805 /^X\(\/\/\)[^/].*/{
37806 s//\1/
37807 q
37808 }
37809 /^X\(\/\/\)$/{
37810 s//\1/
37811 q
37812 }
37813 /^X\(\/\).*/{
37814 s//\1/
37815 q
37816 }
37817 s/.*/./; q'`
37818 as_dir="$ac_dir"; as_fn_mkdir_p
37819 rm -f "$ac_prefix_conf_OUT"
37820 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
37821 fi
37822 cp conftest.prefix _configs.sed
37823 else
cristy98dddb52010-11-04 00:30:15 +000037824 as_fn_error $? "input file $ac_prefix_conf_INP does not exist - skip generating $ac_prefix_conf_OUT" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000037825 fi
37826 rm -f conftest.*
37827fi
37828 ;;
37829 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
37830 # Autoconf 2.62 quotes --file arguments for eval, but not when files
37831 # are listed without --file. Let's play safe and only enable the eval
37832 # if we detect the quoting.
37833 case $CONFIG_FILES in
37834 *\'*) eval set x "$CONFIG_FILES" ;;
37835 *) set x $CONFIG_FILES ;;
37836 esac
37837 shift
37838 for mf
37839 do
37840 # Strip MF so we end up with the name of the file.
37841 mf=`echo "$mf" | sed -e 's/:.*$//'`
37842 # Check whether this is an Automake generated Makefile or not.
37843 # We used to match only the files named `Makefile.in', but
37844 # some people rename them; so instead we look at the file content.
37845 # Grep'ing the first line is not enough: some people post-process
37846 # each Makefile.in and add a new line on top of each file to say so.
37847 # Grep'ing the whole file is not good either: AIX grep has a line
37848 # limit of 2048, but all sed's we know have understand at least 4000.
37849 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
37850 dirpart=`$as_dirname -- "$mf" ||
37851$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37852 X"$mf" : 'X\(//\)[^/]' \| \
37853 X"$mf" : 'X\(//\)$' \| \
37854 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
37855$as_echo X"$mf" |
37856 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37857 s//\1/
37858 q
37859 }
37860 /^X\(\/\/\)[^/].*/{
37861 s//\1/
37862 q
37863 }
37864 /^X\(\/\/\)$/{
37865 s//\1/
37866 q
37867 }
37868 /^X\(\/\).*/{
37869 s//\1/
37870 q
37871 }
37872 s/.*/./; q'`
37873 else
37874 continue
37875 fi
37876 # Extract the definition of DEPDIR, am__include, and am__quote
37877 # from the Makefile without running `make'.
37878 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
37879 test -z "$DEPDIR" && continue
37880 am__include=`sed -n 's/^am__include = //p' < "$mf"`
37881 test -z "am__include" && continue
37882 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
37883 # When using ansi2knr, U may be empty or an underscore; expand it
37884 U=`sed -n 's/^U = //p' < "$mf"`
37885 # Find all dependency output files, they are included files with
37886 # $(DEPDIR) in their names. We invoke sed twice because it is the
37887 # simplest approach to changing $(DEPDIR) to its actual value in the
37888 # expansion.
37889 for file in `sed -n "
37890 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
37891 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
37892 # Make sure the directory exists.
37893 test -f "$dirpart/$file" && continue
37894 fdir=`$as_dirname -- "$file" ||
37895$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37896 X"$file" : 'X\(//\)[^/]' \| \
37897 X"$file" : 'X\(//\)$' \| \
37898 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
37899$as_echo X"$file" |
37900 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37901 s//\1/
37902 q
37903 }
37904 /^X\(\/\/\)[^/].*/{
37905 s//\1/
37906 q
37907 }
37908 /^X\(\/\/\)$/{
37909 s//\1/
37910 q
37911 }
37912 /^X\(\/\).*/{
37913 s//\1/
37914 q
37915 }
37916 s/.*/./; q'`
37917 as_dir=$dirpart/$fdir; as_fn_mkdir_p
37918 # echo "creating $dirpart/$file"
37919 echo '# dummy' > "$dirpart/$file"
37920 done
37921 done
37922}
37923 ;;
37924 "libtool":C)
37925
37926 # See if we are running on zsh, and set the options which allow our
37927 # commands through without removal of \ escapes.
37928 if test -n "${ZSH_VERSION+set}" ; then
37929 setopt NO_GLOB_SUBST
37930 fi
37931
37932 cfgfile="${ofile}T"
37933 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
37934 $RM "$cfgfile"
37935
37936 cat <<_LT_EOF >> "$cfgfile"
37937#! $SHELL
37938
37939# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
37940# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
37941# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
37942# NOTE: Changes made to this file will be lost: look at ltmain.sh.
37943#
37944# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
cristy99bd5232011-12-07 14:38:20 +000037945# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
37946# Foundation, Inc.
cristy73bd4a52010-10-05 11:24:23 +000037947# Written by Gordon Matzigkeit, 1996
37948#
37949# This file is part of GNU Libtool.
37950#
37951# GNU Libtool is free software; you can redistribute it and/or
37952# modify it under the terms of the GNU General Public License as
37953# published by the Free Software Foundation; either version 2 of
37954# the License, or (at your option) any later version.
37955#
37956# As a special exception to the GNU General Public License,
37957# if you distribute this file as part of a program or library that
37958# is built using GNU Libtool, you may include this file under the
37959# same distribution terms that you use for the rest of that program.
37960#
37961# GNU Libtool is distributed in the hope that it will be useful,
37962# but WITHOUT ANY WARRANTY; without even the implied warranty of
37963# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
37964# GNU General Public License for more details.
37965#
37966# You should have received a copy of the GNU General Public License
37967# along with GNU Libtool; see the file COPYING. If not, a copy
37968# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
37969# obtained by writing to the Free Software Foundation, Inc.,
37970# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
37971
37972
37973# The names of the tagged configurations supported by this script.
37974available_tags="CXX "
37975
37976# ### BEGIN LIBTOOL CONFIG
37977
37978# A sed program that does not truncate output.
37979SED=$lt_SED
37980
37981# Sed that helps us avoid accidentally triggering echo(1) options like -n.
37982Xsed="\$SED -e 1s/^X//"
37983
37984# A grep program that handles long lines.
37985GREP=$lt_GREP
37986
37987# An ERE matcher.
37988EGREP=$lt_EGREP
37989
37990# A literal string matcher.
37991FGREP=$lt_FGREP
37992
cristy0c60a692010-11-04 01:09:47 +000037993# Shell to use when invoking shell scripts.
37994SHELL=$lt_SHELL
37995
37996# An echo program that protects backslashes.
37997ECHO=$lt_ECHO
37998
cristy73bd4a52010-10-05 11:24:23 +000037999# Which release of libtool.m4 was used?
38000macro_version=$macro_version
38001macro_revision=$macro_revision
38002
38003# Assembler program.
cristy0c60a692010-11-04 01:09:47 +000038004AS=$lt_AS
cristy73bd4a52010-10-05 11:24:23 +000038005
38006# DLL creation program.
cristy0c60a692010-11-04 01:09:47 +000038007DLLTOOL=$lt_DLLTOOL
cristy73bd4a52010-10-05 11:24:23 +000038008
38009# Object dumper program.
cristy0c60a692010-11-04 01:09:47 +000038010OBJDUMP=$lt_OBJDUMP
cristy73bd4a52010-10-05 11:24:23 +000038011
38012# Whether or not to build shared libraries.
38013build_libtool_libs=$enable_shared
38014
38015# Whether or not to build static libraries.
38016build_old_libs=$enable_static
38017
38018# What type of objects to build.
38019pic_mode=$pic_mode
38020
38021# Whether or not to optimize for fast installation.
38022fast_install=$enable_fast_install
38023
cristy99bd5232011-12-07 14:38:20 +000038024# The PATH separator for the build system.
38025PATH_SEPARATOR=$lt_PATH_SEPARATOR
38026
cristy73bd4a52010-10-05 11:24:23 +000038027# The host system.
38028host_alias=$host_alias
38029host=$host
38030host_os=$host_os
38031
38032# The build system.
38033build_alias=$build_alias
38034build=$build
38035build_os=$build_os
38036
38037# A BSD- or MS-compatible name lister.
38038NM=$lt_NM
38039
38040# Whether we need soft or hard links.
38041LN_S=$lt_LN_S
38042
38043# What is the maximum length of a command?
38044max_cmd_len=$max_cmd_len
38045
38046# Object file suffix (normally "o").
38047objext=$ac_objext
38048
38049# Executable file suffix (normally "").
38050exeext=$exeext
38051
38052# whether the shell understands "unset".
38053lt_unset=$lt_unset
38054
38055# turn spaces into newlines.
38056SP2NL=$lt_lt_SP2NL
38057
38058# turn newlines into spaces.
38059NL2SP=$lt_lt_NL2SP
38060
cristyda16f162011-02-19 23:52:17 +000038061# convert \$build file names to \$host format.
38062to_host_file_cmd=$lt_cv_to_host_file_cmd
38063
38064# convert \$build files to toolchain format.
38065to_tool_file_cmd=$lt_cv_to_tool_file_cmd
38066
cristy73bd4a52010-10-05 11:24:23 +000038067# Method to check whether dependent libraries are shared objects.
38068deplibs_check_method=$lt_deplibs_check_method
38069
cristyda16f162011-02-19 23:52:17 +000038070# Command to use when deplibs_check_method = "file_magic".
cristy73bd4a52010-10-05 11:24:23 +000038071file_magic_cmd=$lt_file_magic_cmd
38072
cristyda16f162011-02-19 23:52:17 +000038073# How to find potential files when deplibs_check_method = "file_magic".
38074file_magic_glob=$lt_file_magic_glob
38075
38076# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
38077want_nocaseglob=$lt_want_nocaseglob
38078
38079# Command to associate shared and link libraries.
38080sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
38081
cristy73bd4a52010-10-05 11:24:23 +000038082# The archiver.
38083AR=$lt_AR
cristyda16f162011-02-19 23:52:17 +000038084
38085# Flags to create an archive.
cristy73bd4a52010-10-05 11:24:23 +000038086AR_FLAGS=$lt_AR_FLAGS
38087
cristyda16f162011-02-19 23:52:17 +000038088# How to feed a file listing to the archiver.
38089archiver_list_spec=$lt_archiver_list_spec
38090
cristy73bd4a52010-10-05 11:24:23 +000038091# A symbol stripping program.
38092STRIP=$lt_STRIP
38093
38094# Commands used to install an old-style archive.
38095RANLIB=$lt_RANLIB
38096old_postinstall_cmds=$lt_old_postinstall_cmds
38097old_postuninstall_cmds=$lt_old_postuninstall_cmds
38098
cristy0c60a692010-11-04 01:09:47 +000038099# Whether to use a lock for old archive extraction.
38100lock_old_archive_extraction=$lock_old_archive_extraction
38101
cristy73bd4a52010-10-05 11:24:23 +000038102# A C compiler.
38103LTCC=$lt_CC
38104
38105# LTCC compiler flags.
38106LTCFLAGS=$lt_CFLAGS
38107
38108# Take the output of nm and produce a listing of raw symbols and C names.
38109global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
38110
38111# Transform the output of nm in a proper C declaration.
38112global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
38113
38114# Transform the output of nm in a C name address pair.
38115global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
38116
38117# Transform the output of nm in a C name address pair when lib prefix is needed.
38118global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
38119
cristyda16f162011-02-19 23:52:17 +000038120# Specify filename containing input files for \$NM.
38121nm_file_list_spec=$lt_nm_file_list_spec
38122
38123# The root where to search for dependent libraries,and in which our libraries should be installed.
38124lt_sysroot=$lt_sysroot
38125
cristy73bd4a52010-10-05 11:24:23 +000038126# The name of the directory that contains temporary libtool files.
38127objdir=$objdir
38128
cristy73bd4a52010-10-05 11:24:23 +000038129# Used to examine libraries when file_magic_cmd begins with "file".
38130MAGIC_CMD=$MAGIC_CMD
38131
38132# Must we lock files when doing compilation?
38133need_locks=$lt_need_locks
38134
cristyda16f162011-02-19 23:52:17 +000038135# Manifest tool.
38136MANIFEST_TOOL=$lt_MANIFEST_TOOL
38137
cristy73bd4a52010-10-05 11:24:23 +000038138# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
38139DSYMUTIL=$lt_DSYMUTIL
38140
38141# Tool to change global to local symbols on Mac OS X.
38142NMEDIT=$lt_NMEDIT
38143
38144# Tool to manipulate fat objects and archives on Mac OS X.
38145LIPO=$lt_LIPO
38146
38147# ldd/readelf like tool for Mach-O binaries on Mac OS X.
38148OTOOL=$lt_OTOOL
38149
38150# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
38151OTOOL64=$lt_OTOOL64
38152
38153# Old archive suffix (normally "a").
38154libext=$libext
38155
38156# Shared library suffix (normally ".so").
38157shrext_cmds=$lt_shrext_cmds
38158
38159# The commands to extract the exported symbol list from a shared archive.
38160extract_expsyms_cmds=$lt_extract_expsyms_cmds
38161
38162# Variables whose values should be saved in libtool wrapper scripts and
38163# restored at link time.
38164variables_saved_for_relink=$lt_variables_saved_for_relink
38165
38166# Do we need the "lib" prefix for modules?
38167need_lib_prefix=$need_lib_prefix
38168
38169# Do we need a version for libraries?
38170need_version=$need_version
38171
38172# Library versioning type.
38173version_type=$version_type
38174
38175# Shared library runtime path variable.
38176runpath_var=$runpath_var
38177
38178# Shared library path variable.
38179shlibpath_var=$shlibpath_var
38180
38181# Is shlibpath searched before the hard-coded library search path?
38182shlibpath_overrides_runpath=$shlibpath_overrides_runpath
38183
38184# Format of library name prefix.
38185libname_spec=$lt_libname_spec
38186
38187# List of archive names. First name is the real one, the rest are links.
38188# The last name is the one that the linker finds with -lNAME
38189library_names_spec=$lt_library_names_spec
38190
38191# The coded name of the library, if different from the real name.
38192soname_spec=$lt_soname_spec
38193
cristy0c60a692010-11-04 01:09:47 +000038194# Permission mode override for installation of shared libraries.
38195install_override_mode=$lt_install_override_mode
38196
cristy73bd4a52010-10-05 11:24:23 +000038197# Command to use after installation of a shared archive.
38198postinstall_cmds=$lt_postinstall_cmds
38199
38200# Command to use after uninstallation of a shared archive.
38201postuninstall_cmds=$lt_postuninstall_cmds
38202
38203# Commands used to finish a libtool library installation in a directory.
38204finish_cmds=$lt_finish_cmds
38205
38206# As "finish_cmds", except a single script fragment to be evaled but
38207# not shown.
38208finish_eval=$lt_finish_eval
38209
38210# Whether we should hardcode library paths into libraries.
38211hardcode_into_libs=$hardcode_into_libs
38212
38213# Compile-time system search path for libraries.
38214sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
38215
38216# Run-time system search path for libraries.
38217sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
38218
38219# Whether dlopen is supported.
38220dlopen_support=$enable_dlopen
38221
38222# Whether dlopen of programs is supported.
38223dlopen_self=$enable_dlopen_self
38224
38225# Whether dlopen of statically linked programs is supported.
38226dlopen_self_static=$enable_dlopen_self_static
38227
38228# Commands to strip libraries.
38229old_striplib=$lt_old_striplib
38230striplib=$lt_striplib
38231
38232
38233# The linker used to build libraries.
38234LD=$lt_LD
38235
cristy0c60a692010-11-04 01:09:47 +000038236# How to create reloadable object files.
38237reload_flag=$lt_reload_flag
38238reload_cmds=$lt_reload_cmds
38239
cristy73bd4a52010-10-05 11:24:23 +000038240# Commands used to build an old-style archive.
38241old_archive_cmds=$lt_old_archive_cmds
38242
38243# A language specific compiler.
38244CC=$lt_compiler
38245
38246# Is the compiler the GNU compiler?
38247with_gcc=$GCC
38248
38249# Compiler flag to turn off builtin functions.
38250no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
38251
cristy73bd4a52010-10-05 11:24:23 +000038252# Additional compiler flags for building library objects.
38253pic_flag=$lt_lt_prog_compiler_pic
38254
cristyda16f162011-02-19 23:52:17 +000038255# How to pass a linker flag through the compiler.
38256wl=$lt_lt_prog_compiler_wl
38257
cristy73bd4a52010-10-05 11:24:23 +000038258# Compiler flag to prevent dynamic linking.
38259link_static_flag=$lt_lt_prog_compiler_static
38260
38261# Does compiler simultaneously support -c and -o options?
38262compiler_c_o=$lt_lt_cv_prog_compiler_c_o
38263
38264# Whether or not to add -lc for building shared libraries.
38265build_libtool_need_lc=$archive_cmds_need_lc
38266
38267# Whether or not to disallow shared libs when runtime libs are static.
38268allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
38269
38270# Compiler flag to allow reflexive dlopens.
38271export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
38272
38273# Compiler flag to generate shared objects directly from archives.
38274whole_archive_flag_spec=$lt_whole_archive_flag_spec
38275
38276# Whether the compiler copes with passing no objects directly.
38277compiler_needs_object=$lt_compiler_needs_object
38278
38279# Create an old-style archive from a shared archive.
38280old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
38281
38282# Create a temporary old-style archive to link instead of a shared archive.
38283old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
38284
38285# Commands used to build a shared archive.
38286archive_cmds=$lt_archive_cmds
38287archive_expsym_cmds=$lt_archive_expsym_cmds
38288
38289# Commands used to build a loadable module if different from building
38290# a shared archive.
38291module_cmds=$lt_module_cmds
38292module_expsym_cmds=$lt_module_expsym_cmds
38293
38294# Whether we are building with GNU ld or not.
38295with_gnu_ld=$lt_with_gnu_ld
38296
38297# Flag that allows shared libraries with undefined symbols to be built.
38298allow_undefined_flag=$lt_allow_undefined_flag
38299
38300# Flag that enforces no undefined symbols.
38301no_undefined_flag=$lt_no_undefined_flag
38302
38303# Flag to hardcode \$libdir into a binary during linking.
38304# This must work even if \$libdir does not exist
38305hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
38306
cristy73bd4a52010-10-05 11:24:23 +000038307# Whether we need a single "-rpath" flag with a separated argument.
38308hardcode_libdir_separator=$lt_hardcode_libdir_separator
38309
38310# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38311# DIR into the resulting binary.
38312hardcode_direct=$hardcode_direct
38313
38314# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38315# DIR into the resulting binary and the resulting library dependency is
38316# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
38317# library is relocated.
38318hardcode_direct_absolute=$hardcode_direct_absolute
38319
38320# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
38321# into the resulting binary.
38322hardcode_minus_L=$hardcode_minus_L
38323
38324# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
38325# into the resulting binary.
38326hardcode_shlibpath_var=$hardcode_shlibpath_var
38327
38328# Set to "yes" if building a shared library automatically hardcodes DIR
38329# into the library and all subsequent libraries and executables linked
38330# against it.
38331hardcode_automatic=$hardcode_automatic
38332
38333# Set to yes if linker adds runtime paths of dependent libraries
38334# to runtime path list.
38335inherit_rpath=$inherit_rpath
38336
38337# Whether libtool must link a program against all its dependency libraries.
38338link_all_deplibs=$link_all_deplibs
38339
cristy73bd4a52010-10-05 11:24:23 +000038340# Set to "yes" if exported symbols are required.
38341always_export_symbols=$always_export_symbols
38342
38343# The commands to list exported symbols.
38344export_symbols_cmds=$lt_export_symbols_cmds
38345
38346# Symbols that should not be listed in the preloaded symbols.
38347exclude_expsyms=$lt_exclude_expsyms
38348
38349# Symbols that must always be exported.
38350include_expsyms=$lt_include_expsyms
38351
38352# Commands necessary for linking programs (against libraries) with templates.
38353prelink_cmds=$lt_prelink_cmds
38354
cristyda16f162011-02-19 23:52:17 +000038355# Commands necessary for finishing linking programs.
38356postlink_cmds=$lt_postlink_cmds
38357
cristy73bd4a52010-10-05 11:24:23 +000038358# Specify filename containing input files.
38359file_list_spec=$lt_file_list_spec
38360
38361# How to hardcode a shared library path into an executable.
38362hardcode_action=$hardcode_action
38363
38364# The directories searched by this compiler when creating a shared library.
38365compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
38366
38367# Dependencies to place before and after the objects being linked to
38368# create a shared library.
38369predep_objects=$lt_predep_objects
38370postdep_objects=$lt_postdep_objects
38371predeps=$lt_predeps
38372postdeps=$lt_postdeps
38373
38374# The library search path used internally by the compiler when linking
38375# a shared library.
38376compiler_lib_search_path=$lt_compiler_lib_search_path
38377
38378# ### END LIBTOOL CONFIG
38379
38380_LT_EOF
38381
38382 case $host_os in
38383 aix3*)
38384 cat <<\_LT_EOF >> "$cfgfile"
38385# AIX sometimes has problems with the GCC collect2 program. For some
38386# reason, if we set the COLLECT_NAMES environment variable, the problems
38387# vanish in a puff of smoke.
38388if test "X${COLLECT_NAMES+set}" != Xset; then
38389 COLLECT_NAMES=
38390 export COLLECT_NAMES
38391fi
38392_LT_EOF
38393 ;;
38394 esac
38395
38396
38397ltmain="$ac_aux_dir/ltmain.sh"
38398
38399
38400 # We use sed instead of cat because bash on DJGPP gets confused if
38401 # if finds mixed CR/LF and LF-only lines. Since sed operates in
38402 # text mode, it properly converts lines to CR/LF. This bash problem
38403 # is reportedly fixed, but why not run on old versions too?
cristyda16f162011-02-19 23:52:17 +000038404 sed '$q' "$ltmain" >> "$cfgfile" \
38405 || (rm -f "$cfgfile"; exit 1)
cristy73bd4a52010-10-05 11:24:23 +000038406
cristyda16f162011-02-19 23:52:17 +000038407 if test x"$xsi_shell" = xyes; then
38408 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
38409func_dirname ()\
38410{\
38411\ case ${1} in\
38412\ */*) func_dirname_result="${1%/*}${2}" ;;\
38413\ * ) func_dirname_result="${3}" ;;\
38414\ esac\
38415} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
38416 && mv -f "$cfgfile.tmp" "$cfgfile" \
38417 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38418test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000038419
38420
cristyda16f162011-02-19 23:52:17 +000038421 sed -e '/^func_basename ()$/,/^} # func_basename /c\
38422func_basename ()\
38423{\
38424\ func_basename_result="${1##*/}"\
38425} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
38426 && mv -f "$cfgfile.tmp" "$cfgfile" \
38427 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38428test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000038429
38430
cristyda16f162011-02-19 23:52:17 +000038431 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
38432func_dirname_and_basename ()\
38433{\
38434\ case ${1} in\
38435\ */*) func_dirname_result="${1%/*}${2}" ;;\
38436\ * ) func_dirname_result="${3}" ;;\
38437\ esac\
38438\ func_basename_result="${1##*/}"\
38439} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
38440 && mv -f "$cfgfile.tmp" "$cfgfile" \
38441 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38442test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000038443
cristyda16f162011-02-19 23:52:17 +000038444
38445 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
38446func_stripname ()\
38447{\
38448\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
38449\ # positional parameters, so assign one to ordinary parameter first.\
38450\ func_stripname_result=${3}\
38451\ func_stripname_result=${func_stripname_result#"${1}"}\
38452\ func_stripname_result=${func_stripname_result%"${2}"}\
38453} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
38454 && mv -f "$cfgfile.tmp" "$cfgfile" \
38455 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38456test 0 -eq $? || _lt_function_replace_fail=:
38457
38458
38459 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
38460func_split_long_opt ()\
38461{\
38462\ func_split_long_opt_name=${1%%=*}\
38463\ func_split_long_opt_arg=${1#*=}\
38464} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
38465 && mv -f "$cfgfile.tmp" "$cfgfile" \
38466 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38467test 0 -eq $? || _lt_function_replace_fail=:
38468
38469
38470 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
38471func_split_short_opt ()\
38472{\
38473\ func_split_short_opt_arg=${1#??}\
38474\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
38475} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
38476 && mv -f "$cfgfile.tmp" "$cfgfile" \
38477 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38478test 0 -eq $? || _lt_function_replace_fail=:
38479
38480
38481 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
38482func_lo2o ()\
38483{\
38484\ case ${1} in\
38485\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
38486\ *) func_lo2o_result=${1} ;;\
38487\ esac\
38488} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
38489 && mv -f "$cfgfile.tmp" "$cfgfile" \
38490 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38491test 0 -eq $? || _lt_function_replace_fail=:
38492
38493
38494 sed -e '/^func_xform ()$/,/^} # func_xform /c\
38495func_xform ()\
38496{\
38497 func_xform_result=${1%.*}.lo\
38498} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
38499 && mv -f "$cfgfile.tmp" "$cfgfile" \
38500 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38501test 0 -eq $? || _lt_function_replace_fail=:
38502
38503
38504 sed -e '/^func_arith ()$/,/^} # func_arith /c\
38505func_arith ()\
38506{\
38507 func_arith_result=$(( $* ))\
38508} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
38509 && mv -f "$cfgfile.tmp" "$cfgfile" \
38510 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38511test 0 -eq $? || _lt_function_replace_fail=:
38512
38513
38514 sed -e '/^func_len ()$/,/^} # func_len /c\
38515func_len ()\
38516{\
38517 func_len_result=${#1}\
38518} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
38519 && mv -f "$cfgfile.tmp" "$cfgfile" \
38520 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38521test 0 -eq $? || _lt_function_replace_fail=:
38522
38523fi
38524
38525if test x"$lt_shell_append" = xyes; then
38526 sed -e '/^func_append ()$/,/^} # func_append /c\
38527func_append ()\
38528{\
38529 eval "${1}+=\\${2}"\
38530} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
38531 && mv -f "$cfgfile.tmp" "$cfgfile" \
38532 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38533test 0 -eq $? || _lt_function_replace_fail=:
38534
38535
38536 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
38537func_append_quoted ()\
38538{\
38539\ func_quote_for_eval "${2}"\
38540\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
38541} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
38542 && mv -f "$cfgfile.tmp" "$cfgfile" \
38543 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38544test 0 -eq $? || _lt_function_replace_fail=:
38545
38546
38547 # Save a `func_append' function call where possible by direct use of '+='
38548 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
38549 && mv -f "$cfgfile.tmp" "$cfgfile" \
38550 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38551 test 0 -eq $? || _lt_function_replace_fail=:
38552else
38553 # Save a `func_append' function call even when '+=' is not available
38554 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
38555 && mv -f "$cfgfile.tmp" "$cfgfile" \
38556 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38557 test 0 -eq $? || _lt_function_replace_fail=:
38558fi
38559
38560if test x"$_lt_function_replace_fail" = x":"; then
38561 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
38562$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
38563fi
38564
38565
38566 mv -f "$cfgfile" "$ofile" ||
cristy73bd4a52010-10-05 11:24:23 +000038567 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
38568 chmod +x "$ofile"
38569
38570
38571 cat <<_LT_EOF >> "$ofile"
38572
38573# ### BEGIN LIBTOOL TAG CONFIG: CXX
38574
38575# The linker used to build libraries.
38576LD=$lt_LD_CXX
38577
cristy0c60a692010-11-04 01:09:47 +000038578# How to create reloadable object files.
38579reload_flag=$lt_reload_flag_CXX
38580reload_cmds=$lt_reload_cmds_CXX
38581
cristy73bd4a52010-10-05 11:24:23 +000038582# Commands used to build an old-style archive.
38583old_archive_cmds=$lt_old_archive_cmds_CXX
38584
38585# A language specific compiler.
38586CC=$lt_compiler_CXX
38587
38588# Is the compiler the GNU compiler?
38589with_gcc=$GCC_CXX
38590
38591# Compiler flag to turn off builtin functions.
38592no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
38593
cristy73bd4a52010-10-05 11:24:23 +000038594# Additional compiler flags for building library objects.
38595pic_flag=$lt_lt_prog_compiler_pic_CXX
38596
cristyda16f162011-02-19 23:52:17 +000038597# How to pass a linker flag through the compiler.
38598wl=$lt_lt_prog_compiler_wl_CXX
38599
cristy73bd4a52010-10-05 11:24:23 +000038600# Compiler flag to prevent dynamic linking.
38601link_static_flag=$lt_lt_prog_compiler_static_CXX
38602
38603# Does compiler simultaneously support -c and -o options?
38604compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
38605
38606# Whether or not to add -lc for building shared libraries.
38607build_libtool_need_lc=$archive_cmds_need_lc_CXX
38608
38609# Whether or not to disallow shared libs when runtime libs are static.
38610allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
38611
38612# Compiler flag to allow reflexive dlopens.
38613export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
38614
38615# Compiler flag to generate shared objects directly from archives.
38616whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
38617
38618# Whether the compiler copes with passing no objects directly.
38619compiler_needs_object=$lt_compiler_needs_object_CXX
38620
38621# Create an old-style archive from a shared archive.
38622old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
38623
38624# Create a temporary old-style archive to link instead of a shared archive.
38625old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
38626
38627# Commands used to build a shared archive.
38628archive_cmds=$lt_archive_cmds_CXX
38629archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
38630
38631# Commands used to build a loadable module if different from building
38632# a shared archive.
38633module_cmds=$lt_module_cmds_CXX
38634module_expsym_cmds=$lt_module_expsym_cmds_CXX
38635
38636# Whether we are building with GNU ld or not.
38637with_gnu_ld=$lt_with_gnu_ld_CXX
38638
38639# Flag that allows shared libraries with undefined symbols to be built.
38640allow_undefined_flag=$lt_allow_undefined_flag_CXX
38641
38642# Flag that enforces no undefined symbols.
38643no_undefined_flag=$lt_no_undefined_flag_CXX
38644
38645# Flag to hardcode \$libdir into a binary during linking.
38646# This must work even if \$libdir does not exist
38647hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
38648
cristy73bd4a52010-10-05 11:24:23 +000038649# Whether we need a single "-rpath" flag with a separated argument.
38650hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
38651
38652# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38653# DIR into the resulting binary.
38654hardcode_direct=$hardcode_direct_CXX
38655
38656# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38657# DIR into the resulting binary and the resulting library dependency is
38658# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
38659# library is relocated.
38660hardcode_direct_absolute=$hardcode_direct_absolute_CXX
38661
38662# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
38663# into the resulting binary.
38664hardcode_minus_L=$hardcode_minus_L_CXX
38665
38666# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
38667# into the resulting binary.
38668hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
38669
38670# Set to "yes" if building a shared library automatically hardcodes DIR
38671# into the library and all subsequent libraries and executables linked
38672# against it.
38673hardcode_automatic=$hardcode_automatic_CXX
38674
38675# Set to yes if linker adds runtime paths of dependent libraries
38676# to runtime path list.
38677inherit_rpath=$inherit_rpath_CXX
38678
38679# Whether libtool must link a program against all its dependency libraries.
38680link_all_deplibs=$link_all_deplibs_CXX
38681
cristy73bd4a52010-10-05 11:24:23 +000038682# Set to "yes" if exported symbols are required.
38683always_export_symbols=$always_export_symbols_CXX
38684
38685# The commands to list exported symbols.
38686export_symbols_cmds=$lt_export_symbols_cmds_CXX
38687
38688# Symbols that should not be listed in the preloaded symbols.
38689exclude_expsyms=$lt_exclude_expsyms_CXX
38690
38691# Symbols that must always be exported.
38692include_expsyms=$lt_include_expsyms_CXX
38693
38694# Commands necessary for linking programs (against libraries) with templates.
38695prelink_cmds=$lt_prelink_cmds_CXX
38696
cristyda16f162011-02-19 23:52:17 +000038697# Commands necessary for finishing linking programs.
38698postlink_cmds=$lt_postlink_cmds_CXX
38699
cristy73bd4a52010-10-05 11:24:23 +000038700# Specify filename containing input files.
38701file_list_spec=$lt_file_list_spec_CXX
38702
38703# How to hardcode a shared library path into an executable.
38704hardcode_action=$hardcode_action_CXX
38705
38706# The directories searched by this compiler when creating a shared library.
38707compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
38708
38709# Dependencies to place before and after the objects being linked to
38710# create a shared library.
38711predep_objects=$lt_predep_objects_CXX
38712postdep_objects=$lt_postdep_objects_CXX
38713predeps=$lt_predeps_CXX
38714postdeps=$lt_postdeps_CXX
38715
38716# The library search path used internally by the compiler when linking
38717# a shared library.
38718compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
38719
38720# ### END LIBTOOL TAG CONFIG: CXX
38721_LT_EOF
38722
38723 ;;
cristy4c08aed2011-07-01 19:47:50 +000038724 "MagickCore-config.in":C) chmod +x MagickCore/MagickCore-config ;;
cristy4c08aed2011-07-01 19:47:50 +000038725 "MagickWand-config.in":C) chmod +x MagickWand/MagickWand-config ;;
cristy3ed852e2009-09-05 21:47:34 +000038726 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
38727 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
38728
38729 esac
38730done # for ac_tag
38731
38732
cristy8b350f62009-11-15 23:12:43 +000038733as_fn_exit 0
cristy3ed852e2009-09-05 21:47:34 +000038734_ACEOF
cristy3ed852e2009-09-05 21:47:34 +000038735ac_clean_files=$ac_clean_files_save
38736
38737test $ac_write_fail = 0 ||
cristy98dddb52010-11-04 00:30:15 +000038738 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000038739
38740
38741# configure is writing to config.log, and then calls config.status.
38742# config.status does its own redirection, appending to config.log.
38743# Unfortunately, on DOS this fails, as config.log is still kept open
38744# by configure, so config.status won't be able to write to it; its
38745# output is simply discarded. So we exec the FD to /dev/null,
38746# effectively closing config.log, so it can be properly (re)opened and
38747# appended to by config.status. When coming back to configure, we
38748# need to make the FD available again.
38749if test "$no_create" != yes; then
38750 ac_cs_success=:
38751 ac_config_status_args=
38752 test "$silent" = yes &&
38753 ac_config_status_args="$ac_config_status_args --quiet"
38754 exec 5>/dev/null
38755 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
38756 exec 5>>config.log
38757 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
38758 # would make configure fail if this is the last instruction.
cristy98dddb52010-11-04 00:30:15 +000038759 $ac_cs_success || as_fn_exit 1
cristy3ed852e2009-09-05 21:47:34 +000038760fi
38761if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
cristy8b350f62009-11-15 23:12:43 +000038762 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
cristy3ed852e2009-09-05 21:47:34 +000038763$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
38764fi
38765
38766
38767rm -f magick-version
38768
cristy430a7312010-01-21 20:44:04 +000038769result_dejavu_font_dir='none'
38770if test "${dejavu_font_dir}x" != 'x'; then
38771 result_dejavu_font_dir=$dejavu_font_dir
38772fi
38773
cristy3ed852e2009-09-05 21:47:34 +000038774result_ghostscript_font_dir='none'
38775if test "${ghostscript_font_dir}x" != 'x'; then
38776 result_ghostscript_font_dir=$ghostscript_font_dir
38777fi
38778
38779result_windows_font_dir='none'
38780if test "${windows_font_dir}x" != 'x'; then
38781 result_windows_font_dir=${windows_font_dir}
38782fi
38783
cristy09b53e12011-10-14 12:47:22 +000038784{ $as_echo "$as_me:${as_lineno-$LINENO}:
cristy3ed852e2009-09-05 21:47:34 +000038785ImageMagick is configured as follows. Please verify that this configuration
38786matches your expectations.
38787
38788Host system type: $host
38789Build system type: $build
38790
38791 Option Value
38792-------------------------------------------------------------------------------
38793Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
38794Static libraries --enable-static=$enable_static $libtool_build_static_libs
38795Module support --with-modules=$with_modules $with_modules
38796GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
38797Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
38798High Dynamic Range Imagery
38799 --enable-hdri=$enable_hdri $enable_hdri
38800
38801Delegate Configuration:
38802BZLIB --with-bzlib=$with_bzlib $have_bzlib
38803Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000038804Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000038805DJVU --with-djvu=$with_djvu $have_djvu
38806DPS --with-dps=$with_dps $have_dps
38807FFTW --with-fftw=$with_fftw $have_fftw
38808FlashPIX --with-fpx=$with_fpx $have_fpx
38809FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
38810FreeType --with-freetype=$with_freetype $have_freetype
38811GhostPCL None $PCLDelegate ($PCLVersion)
38812GhostXPS None $XPSDelegate ($XPSVersion)
38813Ghostscript None $PSDelegate ($GSVersion)
38814Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
38815Ghostscript lib --with-gslib=$with_gslib $have_gslib
38816Graphviz --with-gvc=$with_gvc $have_gvc
38817JBIG --with-jbig=$with_jbig $have_jbig
38818JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
38819JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000038820LCMS v1 --with-lcms=$with_lcms $have_lcms
38821LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000038822LQR --with-lqr=$with_lqr $have_lqr
cristyfbb0ef02010-12-19 02:32:11 +000038823LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000038824Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
38825OpenEXR --with-openexr=$with_openexr $have_openexr
cristy41cbe8a2011-10-27 01:35:18 +000038826PANGO --with-pango=$with_pango $have_pango
cristy3ed852e2009-09-05 21:47:34 +000038827PERL --with-perl=$with_perl $have_perl
38828PNG --with-png=$with_png $have_png
38829RSVG --with-rsvg=$with_rsvg $have_rsvg
38830TIFF --with-tiff=$with_tiff $have_tiff
cristyb1860752011-03-14 00:27:46 +000038831WEBP --with-webp=$with_webp $have_webp
cristy3ed852e2009-09-05 21:47:34 +000038832Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
38833WMF --with-wmf=$with_wmf $have_wmf
38834X11 --with-x=$with_x $have_x
38835XML --with-xml=$with_xml $have_xml
38836ZLIB --with-zlib=$with_zlib $have_zlib
38837
38838X11 Configuration:
38839 X_CFLAGS = $X_CFLAGS
38840 X_PRE_LIBS = $X_PRE_LIBS
38841 X_LIBS = $X_LIBS
38842 X_EXTRA_LIBS = $X_EXTRA_LIBS
38843
38844Options used to compile and link:
38845 PREFIX = $PREFIX_DIR
38846 EXEC-PREFIX = $EXEC_PREFIX_DIR
38847 VERSION = $PACKAGE_VERSION
38848 CC = $CC
38849 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000038850 CPPFLAGS = $MAGICK_CPPFLAGS
38851 PCFLAGS = $MAGICK_PCFLAGS
38852 DEFS = $DEFS
38853 LDFLAGS = $LDFLAGS
38854 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
38855 LIBS = $MAGICK_LIBS
38856 CXX = $CXX
38857 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000038858 FEATURES = $MAGICK_FEATURES
cristy3ed852e2009-09-05 21:47:34 +000038859" >&5
cristy09b53e12011-10-14 12:47:22 +000038860$as_echo "$as_me:
cristy3ed852e2009-09-05 21:47:34 +000038861ImageMagick is configured as follows. Please verify that this configuration
38862matches your expectations.
38863
38864Host system type: $host
38865Build system type: $build
38866
38867 Option Value
38868-------------------------------------------------------------------------------
38869Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
38870Static libraries --enable-static=$enable_static $libtool_build_static_libs
38871Module support --with-modules=$with_modules $with_modules
38872GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
38873Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
38874High Dynamic Range Imagery
38875 --enable-hdri=$enable_hdri $enable_hdri
38876
38877Delegate Configuration:
38878BZLIB --with-bzlib=$with_bzlib $have_bzlib
38879Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000038880Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000038881DJVU --with-djvu=$with_djvu $have_djvu
38882DPS --with-dps=$with_dps $have_dps
38883FFTW --with-fftw=$with_fftw $have_fftw
38884FlashPIX --with-fpx=$with_fpx $have_fpx
38885FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
38886FreeType --with-freetype=$with_freetype $have_freetype
38887GhostPCL None $PCLDelegate ($PCLVersion)
38888GhostXPS None $XPSDelegate ($XPSVersion)
38889Ghostscript None $PSDelegate ($GSVersion)
38890Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
38891Ghostscript lib --with-gslib=$with_gslib $have_gslib
38892Graphviz --with-gvc=$with_gvc $have_gvc
38893JBIG --with-jbig=$with_jbig $have_jbig
38894JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
38895JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000038896LCMS v1 --with-lcms=$with_lcms $have_lcms
38897LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000038898LQR --with-lqr=$with_lqr $have_lqr
cristyfbb0ef02010-12-19 02:32:11 +000038899LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000038900Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
38901OpenEXR --with-openexr=$with_openexr $have_openexr
cristy41cbe8a2011-10-27 01:35:18 +000038902PANGO --with-pango=$with_pango $have_pango
cristy3ed852e2009-09-05 21:47:34 +000038903PERL --with-perl=$with_perl $have_perl
38904PNG --with-png=$with_png $have_png
38905RSVG --with-rsvg=$with_rsvg $have_rsvg
38906TIFF --with-tiff=$with_tiff $have_tiff
cristyb1860752011-03-14 00:27:46 +000038907WEBP --with-webp=$with_webp $have_webp
cristy3ed852e2009-09-05 21:47:34 +000038908Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
38909WMF --with-wmf=$with_wmf $have_wmf
38910X11 --with-x=$with_x $have_x
38911XML --with-xml=$with_xml $have_xml
38912ZLIB --with-zlib=$with_zlib $have_zlib
38913
38914X11 Configuration:
38915 X_CFLAGS = $X_CFLAGS
38916 X_PRE_LIBS = $X_PRE_LIBS
38917 X_LIBS = $X_LIBS
38918 X_EXTRA_LIBS = $X_EXTRA_LIBS
38919
38920Options used to compile and link:
38921 PREFIX = $PREFIX_DIR
38922 EXEC-PREFIX = $EXEC_PREFIX_DIR
38923 VERSION = $PACKAGE_VERSION
38924 CC = $CC
38925 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000038926 CPPFLAGS = $MAGICK_CPPFLAGS
38927 PCFLAGS = $MAGICK_PCFLAGS
38928 DEFS = $DEFS
38929 LDFLAGS = $LDFLAGS
38930 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
38931 LIBS = $MAGICK_LIBS
38932 CXX = $CXX
38933 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000038934 FEATURES = $MAGICK_FEATURES
cristy09b53e12011-10-14 12:47:22 +000038935" >&6;}