blob: c4ac975b111e202091bf4f7f281d520380dfea5b [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
cristy0c60a692010-11-04 01:09:47 +0000569
cristycd4c5312009-11-22 01:19:08 +0000570test -n "$DJDIR" || exec 7<&0 </dev/null
571exec 6>&1
cristy3ed852e2009-09-05 21:47:34 +0000572
573# Name of the host.
cristy98dddb52010-11-04 00:30:15 +0000574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
cristy3ed852e2009-09-05 21:47:34 +0000575# so uname gets run too.
576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578#
579# Initializations.
580#
581ac_default_prefix=/usr/local
582ac_clean_files=
583ac_config_libobj_dir=.
584LIBOBJS=
585cross_compiling=no
586subdirs=
587MFLAGS=
588MAKEFLAGS=
cristy3ed852e2009-09-05 21:47:34 +0000589
590# Identity of this package.
591PACKAGE_NAME='ImageMagick'
cristy09b53e12011-10-14 12:47:22 +0000592PACKAGE_TARNAME='ImageMagick'
cristy29eb34e2011-10-16 00:46:08 +0000593PACKAGE_VERSION='7.0.0-0'
594PACKAGE_STRING='ImageMagick 7.0.0-0'
cristy3ed852e2009-09-05 21:47:34 +0000595PACKAGE_BUGREPORT='http://www.imagemagick.org'
cristy8b350f62009-11-15 23:12:43 +0000596PACKAGE_URL=''
cristy3ed852e2009-09-05 21:47:34 +0000597
cristy4c08aed2011-07-01 19:47:50 +0000598ac_unique_file="MagickCore/MagickCore.h"
cristy3ed852e2009-09-05 21:47:34 +0000599# Factoring default headers for most tests.
600ac_includes_default="\
601#include <stdio.h>
602#ifdef HAVE_SYS_TYPES_H
603# include <sys/types.h>
604#endif
605#ifdef HAVE_SYS_STAT_H
606# include <sys/stat.h>
607#endif
608#ifdef STDC_HEADERS
609# include <stdlib.h>
610# include <stddef.h>
611#else
612# ifdef HAVE_STDLIB_H
613# include <stdlib.h>
614# endif
615#endif
616#ifdef HAVE_STRING_H
617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618# include <memory.h>
619# endif
620# include <string.h>
621#endif
622#ifdef HAVE_STRINGS_H
623# include <strings.h>
624#endif
625#ifdef HAVE_INTTYPES_H
626# include <inttypes.h>
627#endif
628#ifdef HAVE_STDINT_H
629# include <stdint.h>
630#endif
631#ifdef HAVE_UNISTD_H
632# include <unistd.h>
633#endif"
634
cristycd4c5312009-11-22 01:19:08 +0000635ac_header_list=
cristy5eef09f2012-10-16 12:08:28 +0000636ac_subst_vars='am__EXEEXT_FALSE
cristy73bd4a52010-10-05 11:24:23 +0000637am__EXEEXT_TRUE
638LTLIBOBJS
cristyfd9dcd42010-08-08 18:07:02 +0000639MAGICK_FEATURES
cristy3ed852e2009-09-05 21:47:34 +0000640MAGICK_LIBS
641MAGICK_LDFLAGS
642MAGICK_PCFLAGS
643MAGICK_CPPFLAGS
644MAGICK_CXXFLAGS
645MAGICK_CFLAGS
646MAGICK_DEP_LIBS
cristy3ed852e2009-09-05 21:47:34 +0000647OSX_GCOV_LDFLAG
648DELEGATES
649MAGICKCORE_PATH
650PERL_SUPPORTS_DESTDIR
cristy73bd4a52010-10-05 11:24:23 +0000651WITH_PERL_DYNAMIC_FALSE
652WITH_PERL_DYNAMIC_TRUE
653WITH_PERL_STATIC_FALSE
654WITH_PERL_STATIC_TRUE
655WITH_PERL_FALSE
656WITH_PERL_TRUE
657PERL_VERSION
cristy3ed852e2009-09-05 21:47:34 +0000658GSVersion
659GSPSDevice
660GSPDFDevice
661GSMonoDevice
662GSEPSDevice
663GSColorDevice
664GSCMYKDevice
665GSAlphaDevice
666XPSVersion
667XPSCMYKDevice
668XPSColorDevice
669XPSMonoDevice
670PCLVersion
671PCLCMYKDevice
672PCLColorDevice
673PCLMonoDevice
cristy73bd4a52010-10-05 11:24:23 +0000674ZIP_DELEGATE_FALSE
675ZIP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000676ZIP
cristy73bd4a52010-10-05 11:24:23 +0000677P7ZIP_DELEGATE_FALSE
678P7ZIP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000679P7ZIP
cristy73bd4a52010-10-05 11:24:23 +0000680RPM_DELEGATE_FALSE
681RPM_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000682RPM
683PERL
684TAR
685ShowImageDelegate
686type_include_files
687ghostscript_font_dir
688windows_font_dir
cristy430a7312010-01-21 20:44:04 +0000689dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +0000690PrintDelegate
691ZipDelegate
692XPSDelegate
693WWWDecodeDelegate
694WMFDecodeDelegate
cristy5ac9ac82010-07-29 13:24:24 +0000695UniconvertorDelegate
cristy3ed852e2009-09-05 21:47:34 +0000696TXTDelegate
cristyec6934f2012-08-14 18:38:40 +0000697SVGDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000698SCANDecodeDelegate
cristy4689cf02010-02-17 21:15:45 +0000699RSVGDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000700RMDelegate
701RLEEncodeDelegate
702PSDelegate
703POVDelegate
704PGPDecodeDelegate
705PCLDelegate
706MVDelegate
cristy935c86e2010-06-05 23:50:07 +0000707MrSIDDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000708MPEGEncodeDelegate
709MPEGDecodeDelegate
710MANDelegate
711LaunchDelegate
cristy3ed852e2009-09-05 21:47:34 +0000712LPRDelegate
713LPDelegate
714ILBMEncodeDelegate
715ILBMDecodeDelegate
716HTMLDecodeDelegate
717HPGLDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000718GnuplotDecodeDelegate
719MogrifyDelegate
720DisplayDelegate
721ConvertDelegate
722FIGDecodeDelegate
723EditorDelegate
724EchoDelegate
725DVIDecodeDelegate
726GVCDecodeDelegate
727DNGDecodeDelegate
728CatDelegate
729CGMDecodeDelegate
730BrowseDelegate
731BZIPDelegate
732BlenderDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000733AutotraceDecodeDelegate
cristy670aa3c2011-11-03 00:54:00 +0000734SHAREARCH_PATH
cristy3ed852e2009-09-05 21:47:34 +0000735SHARE_PATH
cristy4f820712011-04-01 12:35:43 +0000736CONFIGURE_PATH
cristy3ed852e2009-09-05 21:47:34 +0000737DOCUMENTATION_PATH
738FILTER_PATH
cristy01ff9f32012-12-01 18:15:29 +0000739FILTER_DIRNAME
cristy3ed852e2009-09-05 21:47:34 +0000740CODER_PATH
cristy01ff9f32012-12-01 18:15:29 +0000741CODER_DIRNAME
742MODULES_PATH
743MODULES_RELATIVE_PATH
744MODULES_DIRNAME
745MODULES_BASEDIRNAME
cristy3ed852e2009-09-05 21:47:34 +0000746LIBRARY_PATH
747EXECUTABLE_PATH
cristy2a11bef2011-10-28 18:33:11 +0000748INCLUDE_PATH
cristy3ed852e2009-09-05 21:47:34 +0000749PERLMAINCC
750XML_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000751XML_DELEGATE_FALSE
752XML_DELEGATE_TRUE
cristy81beccd2011-10-03 18:17:24 +0000753xml2_config
cristy03f7cf92011-12-15 01:40:41 +0000754WMF_LIBS_DEPS
cristy3ed852e2009-09-05 21:47:34 +0000755WMF_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000756WMF_DELEGATE_FALSE
757WMF_DELEGATE_TRUE
cristyb1860752011-03-14 00:27:46 +0000758WEBP_LIBS
759WEBP_DELEGATE_FALSE
760WEBP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000761TIFF_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000762TIFF_DELEGATE_FALSE
763TIFF_DELEGATE_TRUE
764CAIRO_DELEGATE_FALSE
765CAIRO_DELEGATE_TRUE
766RSVG_DELEGATE_FALSE
767RSVG_DELEGATE_TRUE
768CAIRO_SVG_LIBS
769CAIRO_SVG_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000770RSVG_LIBS
771RSVG_CFLAGS
cristy81beccd2011-10-03 18:17:24 +0000772PNG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000773PNG_DELEGATE_FALSE
774PNG_DELEGATE_TRUE
cristya054b762012-03-26 23:16:00 +0000775PANGOCAIRO_DELEGATE_FALSE
776PANGOCAIRO_DELEGATE_TRUE
cristy41cbe8a2011-10-27 01:35:18 +0000777PANGO_DELEGATE_FALSE
778PANGO_DELEGATE_TRUE
779PANGO_LIBS
780PANGO_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000781OPENEXR_DELEGATE_FALSE
782OPENEXR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000783OPENEXR_LIBS
784OPENEXR_CFLAGS
cristyfbb0ef02010-12-19 02:32:11 +0000785LZMA_DELEGATE_FALSE
786LZMA_DELEGATE_TRUE
cristyb94e5002011-11-14 13:20:10 +0000787LZMA_LIBS
788LZMA_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000789LQR_DELEGATE_FALSE
790LQR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000791LQR_LIBS
792LQR_CFLAGS
793LCMS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000794LCMS_DELEGATE_FALSE
795LCMS_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000796JP2_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000797JP2_DELEGATE_FALSE
798JP2_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000799JPEG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000800JPEG_DELEGATE_FALSE
801JPEG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000802JBIG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000803JBIG_DELEGATE_FALSE
804JBIG_DELEGATE_TRUE
805GVC_DELEGATE_FALSE
806GVC_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000807GVC_LIBS
808GVC_CFLAGS
809GS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000810GS_DELEGATE_FALSE
811GS_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000812FREETYPE_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000813FREETYPE_DELEGATE_FALSE
814FREETYPE_DELEGATE_TRUE
cristy81beccd2011-10-03 18:17:24 +0000815freetype_config
cristy73bd4a52010-10-05 11:24:23 +0000816FONTCONFIG_DELEGATE_FALSE
817FONTCONFIG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000818FONTCONFIG_LIBS
819FONTCONFIG_CFLAGS
820FPX_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000821FPX_DELEGATE_FALSE
822FPX_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000823FFTW_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000824FFTW_DELEGATE_FALSE
825FFTW_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000826DJVU_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000827DJVU_DELEGATE_FALSE
828DJVU_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000829DPS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000830DPS_DELEGATE_FALSE
831DPS_DELEGATE_TRUE
832AUTOTRACE_DELEGATE_FALSE
833AUTOTRACE_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000834AUTOTRACE_LIBS
835AUTOTRACE_CFLAGS
836LIB_DL
cristy5eef09f2012-10-16 12:08:28 +0000837WITH_LTDL_FALSE
838WITH_LTDL_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000839ZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000840ZLIB_DELEGATE_FALSE
841ZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000842XEXT_LIBS
843X11_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000844X11_DELEGATE_FALSE
845X11_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000846X_EXTRA_LIBS
847X_LIBS
848X_PRE_LIBS
849X_CFLAGS
cristyc7083c12009-10-14 03:16:55 +0000850XMKMF
cristy3ed852e2009-09-05 21:47:34 +0000851BZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000852BZLIB_DELEGATE_FALSE
853BZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000854CCMALLOCDelegate
855UMEM_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000856HasUMEM_FALSE
857HasUMEM_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000858THREAD_LIBS
859GOMP_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000860WITH_MAGICK_PLUS_PLUS_FALSE
861WITH_MAGICK_PLUS_PLUS_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000862OPENMP_CXXFLAGS
cristy161b9262010-03-20 19:34:32 +0000863MATH_LIBS
cristy3ed852e2009-09-05 21:47:34 +0000864POW_LIB
865LIBOBJS
cristy6d5e20f2011-04-25 13:48:54 +0000866UINTPTR_F
cristy3ed852e2009-09-05 21:47:34 +0000867UINTPTR_T
cristy6d5e20f2011-04-25 13:48:54 +0000868UINTMAX_F
cristy3ed852e2009-09-05 21:47:34 +0000869UINTMAX_T
cristy6d5e20f2011-04-25 13:48:54 +0000870UINT64_F
cristy3ed852e2009-09-05 21:47:34 +0000871UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +0000872INT64_F
cristy3ed852e2009-09-05 21:47:34 +0000873INT64_T
cristy6d5e20f2011-04-25 13:48:54 +0000874UINT32_F
cristy3ed852e2009-09-05 21:47:34 +0000875UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +0000876INT32_F
cristy3ed852e2009-09-05 21:47:34 +0000877INT32_T
878UINT16_T
879INT16_T
880UINT8_T
881INT8_T
882LIBRARY_EXTRA_CPPFLAGS
883MODULE_EXTRA_CPPFLAGS
884LIBSTDCLDFLAGS
885PERL_MAKE_OPTIONS
cristy3a75f062012-09-08 23:29:40 +0000886MAGICK_LT_RELEASE_OPTS
cristy01ff9f32012-12-01 18:15:29 +0000887MAGICK_ABISUFFIX
cristy3ed852e2009-09-05 21:47:34 +0000888QUANTUM_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
cristy73bd4a52010-10-05 11:24:23 +0000895WITH_MODULES_FALSE
896WITH_MODULES_TRUE
897WITH_SHARED_LIBS_FALSE
898WITH_SHARED_LIBS_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000899LIBTOOL_DEPS
cristy73bd4a52010-10-05 11:24:23 +0000900CXXCPP
901OTOOL64
902OTOOL
903LIPO
904NMEDIT
905DSYMUTIL
cristyda16f162011-02-19 23:52:17 +0000906MANIFEST_TOOL
cristy73bd4a52010-10-05 11:24:23 +0000907RANLIB
cristyda16f162011-02-19 23:52:17 +0000908ac_ct_AR
cristy73bd4a52010-10-05 11:24:23 +0000909AR
910NM
911ac_ct_DUMPBIN
912DUMPBIN
913LIBTOOL
914OBJDUMP
915DLLTOOL
916AS
cristy3ed852e2009-09-05 21:47:34 +0000917LFS_CPPFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000918CL_LIBS
cristy736173a2009-09-20 21:18:22 +0000919CL_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000920OPENMP_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000921PTHREAD_CFLAGS
922PTHREAD_LIBS
923PTHREAD_CC
924ax_pthread_config
cristy670aa3c2011-11-03 00:54:00 +0000925SHAREARCH_DIR
926INCLUDEARCH_DIR
cristy3ed852e2009-09-05 21:47:34 +0000927WinPathScript
cristy73bd4a52010-10-05 11:24:23 +0000928USING_CL_FALSE
929USING_CL_TRUE
930CYGWIN_BUILD_FALSE
931CYGWIN_BUILD_TRUE
932WIN32_NATIVE_BUILD_FALSE
933WIN32_NATIVE_BUILD_TRUE
934WINGDI32_DELEGATE_FALSE
935WINGDI32_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000936GDI32_LIBS
cristy9b86f202012-11-28 21:55:35 +0000937HAVE_LD_VERSION_SCRIPT_FALSE
938HAVE_LD_VERSION_SCRIPT_TRUE
cristy73bd4a52010-10-05 11:24:23 +0000939PKG_CONFIG
cristy37110d62012-03-01 18:38:20 +0000940PRTDIAG
cristy3ed852e2009-09-05 21:47:34 +0000941LN_S
cristy3ed852e2009-09-05 21:47:34 +0000942LD
cristy73bd4a52010-10-05 11:24:23 +0000943FGREP
944SED
945am__fastdepCXX_FALSE
946am__fastdepCXX_TRUE
947CXXDEPMODE
cristy95646052009-11-28 23:05:30 +0000948ac_ct_CXX
949CXXFLAGS
950CXX
cristya0b81c32010-01-22 02:54:33 +0000951EGREP
952GREP
953CPP
cristy73bd4a52010-10-05 11:24:23 +0000954am__fastdepCC_FALSE
955am__fastdepCC_TRUE
956CCDEPMODE
cristy7247bba2012-02-05 16:37:27 +0000957am__nodep
cristy73bd4a52010-10-05 11:24:23 +0000958AMDEPBACKSLASH
959AMDEP_FALSE
960AMDEP_TRUE
961am__quote
962am__include
963DEPDIR
cristy3ed852e2009-09-05 21:47:34 +0000964OBJEXT
965EXEEXT
966ac_ct_CC
967CPPFLAGS
968LDFLAGS
969CFLAGS
970CC
971DIRSEP
972MAGICK_FILTER_MODULE_PATH
973MAGICK_CONFIGURE_BUILD_PATH
974MAGICK_CONFIGURE_SRC_PATH
975MAGICK_CODER_MODULE_PATH
976MAN_DIR
977INFO_DIR
978PERSISTINCLUDE_DIR
979INCLUDE_DIR
980LIB_DIR
981LOCALSTATE_DIR
982SHAREDSTATE_DIR
983SYSCONF_DIR
cristyd55889c2011-03-27 00:50:24 +0000984DOC_DIR
cristy3ed852e2009-09-05 21:47:34 +0000985DATA_DIR
986LIBEXEC_DIR
987SBIN_DIR
988BIN_DIR
989EXEC_PREFIX_DIR
990PREFIX_DIR
991CONFIG_STATUS_DEPENDENCIES
992MAGICK_LIB_VERSION_NUMBER
993MAGICK_LIB_VERSION_TEXT
994MAGICK_LIB_VERSION
cristy73bd4a52010-10-05 11:24:23 +0000995AM_BACKSLASH
996AM_DEFAULT_VERBOSITY
cristyc3fb77b2012-02-06 01:49:41 +0000997AM_DEFAULT_V
998AM_V
cristy73bd4a52010-10-05 11:24:23 +0000999am__untar
1000am__tar
1001AMTAR
1002am__leading_dot
1003SET_MAKE
1004AWK
1005mkdir_p
1006MKDIR_P
1007INSTALL_STRIP_PROGRAM
1008STRIP
1009install_sh
1010MAKEINFO
1011AUTOHEADER
1012AUTOMAKE
1013AUTOCONF
1014ACLOCAL
1015VERSION
1016PACKAGE
1017CYGPATH_W
1018am__isrc
1019INSTALL_DATA
1020INSTALL_SCRIPT
1021INSTALL_PROGRAM
cristy15a88782010-01-31 23:24:49 +00001022PACKAGE_VERSION_ADDENDUM
cristy3ed852e2009-09-05 21:47:34 +00001023PACKAGE_RELEASE_DATE
1024PACKAGE_LIB_VERSION_NUMBER
1025PACKAGE_LIB_VERSION
1026PACKAGE_CHANGE_DATE
1027PACKAGE_RELEASE
cristy878c2f12011-08-19 00:25:19 +00001028PACKAGE_PERL_VERSION
cristyd694ca32011-03-27 21:42:54 +00001029MAGICK_SVN_REVISION
cristybab87c32010-02-09 20:54:22 +00001030MAGICK_LIBRARY_VERSION_INFO
1031MAGICK_LIBRARY_CURRENT_MIN
cristy3ed852e2009-09-05 21:47:34 +00001032MAGICK_LIBRARY_AGE
1033MAGICK_LIBRARY_REVISION
1034MAGICK_LIBRARY_CURRENT
cristy3225a072010-04-17 01:47:28 +00001035MAGICK_TARGET_OS
1036MAGICK_TARGET_VENDOR
1037MAGICK_TARGET_CPU
cristy3ed852e2009-09-05 21:47:34 +00001038target_os
1039target_vendor
1040target_cpu
1041target
1042host_os
1043host_vendor
1044host_cpu
1045host
1046build_os
1047build_vendor
1048build_cpu
1049build
1050CONFIGURE_ARGS
1051DISTCHECK_CONFIG_FLAGS
1052target_alias
1053host_alias
1054build_alias
1055LIBS
1056ECHO_T
1057ECHO_N
1058ECHO_C
1059DEFS
1060mandir
1061localedir
1062libdir
1063psdir
1064pdfdir
1065dvidir
1066htmldir
1067infodir
1068docdir
1069oldincludedir
1070includedir
1071localstatedir
1072sharedstatedir
1073sysconfdir
1074datadir
1075datarootdir
1076libexecdir
1077sbindir
1078bindir
1079program_transform_name
1080prefix
1081exec_prefix
cristy8b350f62009-11-15 23:12:43 +00001082PACKAGE_URL
cristy3ed852e2009-09-05 21:47:34 +00001083PACKAGE_BUGREPORT
1084PACKAGE_STRING
1085PACKAGE_VERSION
1086PACKAGE_TARNAME
1087PACKAGE_NAME
1088PATH_SEPARATOR
1089SHELL'
1090ac_subst_files=''
1091ac_user_opts='
1092enable_option_checking
cristy73bd4a52010-10-05 11:24:23 +00001093enable_silent_rules
1094enable_dependency_tracking
1095with_gnu_ld
1096with_dmalloc
cristy37110d62012-03-01 18:38:20 +00001097with_gcc_arch
cristy9b86f202012-11-28 21:55:35 +00001098enable_ld_version_script
cristy3ed852e2009-09-05 21:47:34 +00001099enable_bounds_checking
1100enable_osx_universal_binary
cristy670aa3c2011-11-03 00:54:00 +00001101with_includearch_dir
1102with_sharearch_dir
cristy3ed852e2009-09-05 21:47:34 +00001103with_threads
1104enable_openmp
cristy73bd4a52010-10-05 11:24:23 +00001105enable_opencl
cristy3ed852e2009-09-05 21:47:34 +00001106enable_largefile
cristy73bd4a52010-10-05 11:24:23 +00001107enable_shared
1108enable_static
1109with_pic
1110enable_fast_install
cristyda16f162011-02-19 23:52:17 +00001111with_sysroot
cristy73bd4a52010-10-05 11:24:23 +00001112enable_libtool_lock
cristy3ed852e2009-09-05 21:47:34 +00001113with_modules
1114enable_delegate_build
1115enable_deprecated
1116enable_installed
1117enable_cipher
cristy6e3607c2011-09-13 13:59:17 +00001118enable_zero_configuration
cristy3ed852e2009-09-05 21:47:34 +00001119enable_hdri
cristy3ed852e2009-09-05 21:47:34 +00001120enable_assert
cristy73bd4a52010-10-05 11:24:23 +00001121enable_maintainer_mode
cristy3ed852e2009-09-05 21:47:34 +00001122enable_ccmalloc
1123enable_efence
1124enable_prof
1125enable_gprof
1126enable_gcov
1127with_method_prefix
cristy71d8c202012-03-20 17:05:01 +00001128enable_legacy_support
cristy3ed852e2009-09-05 21:47:34 +00001129with_quantum_depth
1130with_cache
1131with_frozenpaths
1132with_magick_plus_plus
cristy3a75f062012-09-08 23:29:40 +00001133with_package_release_name
cristy3ed852e2009-09-05 21:47:34 +00001134with_perl
1135with_perl_options
1136with_umem
1137with_libstdc
1138with_bzlib
cristyc7083c12009-10-14 03:16:55 +00001139with_x
cristy3ed852e2009-09-05 21:47:34 +00001140with_zlib
1141with_autotrace
1142with_dps
1143with_djvu
cristy430a7312010-01-21 20:44:04 +00001144with_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +00001145with_fftw
1146with_fpx
1147with_fontconfig
1148with_freetype
1149with_gslib
1150with_fontpath
1151with_gs_font_dir
1152with_gvc
1153with_jbig
1154with_jpeg
1155with_jp2
1156with_lcms
cristy71203402010-06-18 13:12:03 +00001157with_lcms2
cristy3ed852e2009-09-05 21:47:34 +00001158with_lqr
cristyfbb0ef02010-12-19 02:32:11 +00001159with_lzma
cristy3ed852e2009-09-05 21:47:34 +00001160with_openexr
cristy41cbe8a2011-10-27 01:35:18 +00001161with_pango
cristy3ed852e2009-09-05 21:47:34 +00001162with_png
1163with_rsvg
1164with_tiff
cristyb1860752011-03-14 00:27:46 +00001165with_webp
cristy3ed852e2009-09-05 21:47:34 +00001166with_windows_font_dir
1167with_wmf
1168with_xml
1169'
1170 ac_precious_vars='build_alias
1171host_alias
1172target_alias
1173CC
1174CFLAGS
1175LDFLAGS
1176LIBS
1177CPPFLAGS
cristya0b81c32010-01-22 02:54:33 +00001178CPP
cristy3ed852e2009-09-05 21:47:34 +00001179CXX
1180CXXFLAGS
1181CCC
cristy73bd4a52010-10-05 11:24:23 +00001182PKG_CONFIG
1183CXXCPP
cristyc7083c12009-10-14 03:16:55 +00001184XMKMF
cristy73bd4a52010-10-05 11:24:23 +00001185AUTOTRACE_CFLAGS
1186AUTOTRACE_LIBS
1187FONTCONFIG_CFLAGS
1188FONTCONFIG_LIBS
1189GVC_CFLAGS
1190GVC_LIBS
1191LQR_CFLAGS
1192LQR_LIBS
cristyb94e5002011-11-14 13:20:10 +00001193LZMA_CFLAGS
1194LZMA_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001195OPENEXR_CFLAGS
1196OPENEXR_LIBS
cristy41cbe8a2011-10-27 01:35:18 +00001197PANGO_CFLAGS
1198PANGO_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001199RSVG_CFLAGS
1200RSVG_LIBS
1201CAIRO_SVG_CFLAGS
cristy81beccd2011-10-03 18:17:24 +00001202CAIRO_SVG_LIBS'
cristy3ed852e2009-09-05 21:47:34 +00001203
1204
1205# Initialize some variables set by options.
1206ac_init_help=
1207ac_init_version=false
1208ac_unrecognized_opts=
1209ac_unrecognized_sep=
1210# The variables have the same names as the options, with
1211# dashes changed to underlines.
1212cache_file=/dev/null
1213exec_prefix=NONE
1214no_create=
1215no_recursion=
1216prefix=NONE
1217program_prefix=NONE
1218program_suffix=NONE
1219program_transform_name=s,x,x,
1220silent=
1221site=
1222srcdir=
1223verbose=
1224x_includes=NONE
1225x_libraries=NONE
1226
1227# Installation directory options.
1228# These are left unexpanded so users can "make install exec_prefix=/foo"
1229# and all the variables that are supposed to be based on exec_prefix
1230# by default will actually change.
1231# Use braces instead of parens because sh, perl, etc. also accept them.
1232# (The list follows the same order as the GNU Coding Standards.)
1233bindir='${exec_prefix}/bin'
1234sbindir='${exec_prefix}/sbin'
1235libexecdir='${exec_prefix}/libexec'
1236datarootdir='${prefix}/share'
1237datadir='${datarootdir}'
1238sysconfdir='${prefix}/etc'
1239sharedstatedir='${prefix}/com'
1240localstatedir='${prefix}/var'
1241includedir='${prefix}/include'
1242oldincludedir='/usr/include'
1243docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1244infodir='${datarootdir}/info'
1245htmldir='${docdir}'
1246dvidir='${docdir}'
1247pdfdir='${docdir}'
1248psdir='${docdir}'
1249libdir='${exec_prefix}/lib'
1250localedir='${datarootdir}/locale'
1251mandir='${datarootdir}/man'
1252
1253ac_prev=
1254ac_dashdash=
1255for ac_option
1256do
1257 # If the previous option needs an argument, assign it.
1258 if test -n "$ac_prev"; then
1259 eval $ac_prev=\$ac_option
1260 ac_prev=
1261 continue
1262 fi
1263
1264 case $ac_option in
cristyda16f162011-02-19 23:52:17 +00001265 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1266 *=) ac_optarg= ;;
1267 *) ac_optarg=yes ;;
cristy3ed852e2009-09-05 21:47:34 +00001268 esac
1269
1270 # Accept the important Cygnus configure options, so we can diagnose typos.
1271
1272 case $ac_dashdash$ac_option in
1273 --)
1274 ac_dashdash=yes ;;
1275
1276 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1277 ac_prev=bindir ;;
1278 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1279 bindir=$ac_optarg ;;
1280
1281 -build | --build | --buil | --bui | --bu)
1282 ac_prev=build_alias ;;
1283 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1284 build_alias=$ac_optarg ;;
1285
1286 -cache-file | --cache-file | --cache-fil | --cache-fi \
1287 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1288 ac_prev=cache_file ;;
1289 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1290 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1291 cache_file=$ac_optarg ;;
1292
1293 --config-cache | -C)
1294 cache_file=config.cache ;;
1295
1296 -datadir | --datadir | --datadi | --datad)
1297 ac_prev=datadir ;;
1298 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1299 datadir=$ac_optarg ;;
1300
1301 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1302 | --dataroo | --dataro | --datar)
1303 ac_prev=datarootdir ;;
1304 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1305 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1306 datarootdir=$ac_optarg ;;
1307
1308 -disable-* | --disable-*)
1309 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1310 # Reject names that are not valid shell variable names.
1311 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001312 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001313 ac_useropt_orig=$ac_useropt
1314 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1315 case $ac_user_opts in
1316 *"
1317"enable_$ac_useropt"
1318"*) ;;
1319 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1320 ac_unrecognized_sep=', ';;
1321 esac
1322 eval enable_$ac_useropt=no ;;
1323
1324 -docdir | --docdir | --docdi | --doc | --do)
1325 ac_prev=docdir ;;
1326 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1327 docdir=$ac_optarg ;;
1328
1329 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1330 ac_prev=dvidir ;;
1331 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1332 dvidir=$ac_optarg ;;
1333
1334 -enable-* | --enable-*)
1335 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1336 # Reject names that are not valid shell variable names.
1337 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001338 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001339 ac_useropt_orig=$ac_useropt
1340 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1341 case $ac_user_opts in
1342 *"
1343"enable_$ac_useropt"
1344"*) ;;
1345 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1346 ac_unrecognized_sep=', ';;
1347 esac
1348 eval enable_$ac_useropt=\$ac_optarg ;;
1349
1350 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1351 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1352 | --exec | --exe | --ex)
1353 ac_prev=exec_prefix ;;
1354 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1355 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1356 | --exec=* | --exe=* | --ex=*)
1357 exec_prefix=$ac_optarg ;;
1358
1359 -gas | --gas | --ga | --g)
1360 # Obsolete; use --with-gas.
1361 with_gas=yes ;;
1362
1363 -help | --help | --hel | --he | -h)
1364 ac_init_help=long ;;
1365 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1366 ac_init_help=recursive ;;
1367 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1368 ac_init_help=short ;;
1369
1370 -host | --host | --hos | --ho)
1371 ac_prev=host_alias ;;
1372 -host=* | --host=* | --hos=* | --ho=*)
1373 host_alias=$ac_optarg ;;
1374
1375 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1376 ac_prev=htmldir ;;
1377 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1378 | --ht=*)
1379 htmldir=$ac_optarg ;;
1380
1381 -includedir | --includedir | --includedi | --included | --include \
1382 | --includ | --inclu | --incl | --inc)
1383 ac_prev=includedir ;;
1384 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1385 | --includ=* | --inclu=* | --incl=* | --inc=*)
1386 includedir=$ac_optarg ;;
1387
1388 -infodir | --infodir | --infodi | --infod | --info | --inf)
1389 ac_prev=infodir ;;
1390 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1391 infodir=$ac_optarg ;;
1392
1393 -libdir | --libdir | --libdi | --libd)
1394 ac_prev=libdir ;;
1395 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1396 libdir=$ac_optarg ;;
1397
1398 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1399 | --libexe | --libex | --libe)
1400 ac_prev=libexecdir ;;
1401 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1402 | --libexe=* | --libex=* | --libe=*)
1403 libexecdir=$ac_optarg ;;
1404
1405 -localedir | --localedir | --localedi | --localed | --locale)
1406 ac_prev=localedir ;;
1407 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1408 localedir=$ac_optarg ;;
1409
1410 -localstatedir | --localstatedir | --localstatedi | --localstated \
1411 | --localstate | --localstat | --localsta | --localst | --locals)
1412 ac_prev=localstatedir ;;
1413 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1414 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1415 localstatedir=$ac_optarg ;;
1416
1417 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1418 ac_prev=mandir ;;
1419 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1420 mandir=$ac_optarg ;;
1421
1422 -nfp | --nfp | --nf)
1423 # Obsolete; use --without-fp.
1424 with_fp=no ;;
1425
1426 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1427 | --no-cr | --no-c | -n)
1428 no_create=yes ;;
1429
1430 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1431 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1432 no_recursion=yes ;;
1433
1434 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1435 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1436 | --oldin | --oldi | --old | --ol | --o)
1437 ac_prev=oldincludedir ;;
1438 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1439 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1440 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1441 oldincludedir=$ac_optarg ;;
1442
1443 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1444 ac_prev=prefix ;;
1445 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1446 prefix=$ac_optarg ;;
1447
1448 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1449 | --program-pre | --program-pr | --program-p)
1450 ac_prev=program_prefix ;;
1451 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1452 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1453 program_prefix=$ac_optarg ;;
1454
1455 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1456 | --program-suf | --program-su | --program-s)
1457 ac_prev=program_suffix ;;
1458 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1459 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1460 program_suffix=$ac_optarg ;;
1461
1462 -program-transform-name | --program-transform-name \
1463 | --program-transform-nam | --program-transform-na \
1464 | --program-transform-n | --program-transform- \
1465 | --program-transform | --program-transfor \
1466 | --program-transfo | --program-transf \
1467 | --program-trans | --program-tran \
1468 | --progr-tra | --program-tr | --program-t)
1469 ac_prev=program_transform_name ;;
1470 -program-transform-name=* | --program-transform-name=* \
1471 | --program-transform-nam=* | --program-transform-na=* \
1472 | --program-transform-n=* | --program-transform-=* \
1473 | --program-transform=* | --program-transfor=* \
1474 | --program-transfo=* | --program-transf=* \
1475 | --program-trans=* | --program-tran=* \
1476 | --progr-tra=* | --program-tr=* | --program-t=*)
1477 program_transform_name=$ac_optarg ;;
1478
1479 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1480 ac_prev=pdfdir ;;
1481 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1482 pdfdir=$ac_optarg ;;
1483
1484 -psdir | --psdir | --psdi | --psd | --ps)
1485 ac_prev=psdir ;;
1486 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1487 psdir=$ac_optarg ;;
1488
1489 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1490 | -silent | --silent | --silen | --sile | --sil)
1491 silent=yes ;;
1492
1493 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1494 ac_prev=sbindir ;;
1495 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1496 | --sbi=* | --sb=*)
1497 sbindir=$ac_optarg ;;
1498
1499 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1500 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1501 | --sharedst | --shareds | --shared | --share | --shar \
1502 | --sha | --sh)
1503 ac_prev=sharedstatedir ;;
1504 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1505 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1506 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1507 | --sha=* | --sh=*)
1508 sharedstatedir=$ac_optarg ;;
1509
1510 -site | --site | --sit)
1511 ac_prev=site ;;
1512 -site=* | --site=* | --sit=*)
1513 site=$ac_optarg ;;
1514
1515 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1516 ac_prev=srcdir ;;
1517 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1518 srcdir=$ac_optarg ;;
1519
1520 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1521 | --syscon | --sysco | --sysc | --sys | --sy)
1522 ac_prev=sysconfdir ;;
1523 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1524 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1525 sysconfdir=$ac_optarg ;;
1526
1527 -target | --target | --targe | --targ | --tar | --ta | --t)
1528 ac_prev=target_alias ;;
1529 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1530 target_alias=$ac_optarg ;;
1531
1532 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1533 verbose=yes ;;
1534
1535 -version | --version | --versio | --versi | --vers | -V)
1536 ac_init_version=: ;;
1537
1538 -with-* | --with-*)
1539 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1540 # Reject names that are not valid shell variable names.
1541 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001542 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001543 ac_useropt_orig=$ac_useropt
1544 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1545 case $ac_user_opts in
1546 *"
1547"with_$ac_useropt"
1548"*) ;;
1549 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1550 ac_unrecognized_sep=', ';;
1551 esac
1552 eval with_$ac_useropt=\$ac_optarg ;;
1553
1554 -without-* | --without-*)
1555 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1556 # Reject names that are not valid shell variable names.
1557 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001558 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001559 ac_useropt_orig=$ac_useropt
1560 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1561 case $ac_user_opts in
1562 *"
1563"with_$ac_useropt"
1564"*) ;;
1565 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1566 ac_unrecognized_sep=', ';;
1567 esac
1568 eval with_$ac_useropt=no ;;
1569
1570 --x)
1571 # Obsolete; use --with-x.
1572 with_x=yes ;;
1573
1574 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1575 | --x-incl | --x-inc | --x-in | --x-i)
1576 ac_prev=x_includes ;;
1577 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1578 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1579 x_includes=$ac_optarg ;;
1580
1581 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1582 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1583 ac_prev=x_libraries ;;
1584 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1585 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1586 x_libraries=$ac_optarg ;;
1587
cristy98dddb52010-11-04 00:30:15 +00001588 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1589Try \`$0 --help' for more information"
cristy3ed852e2009-09-05 21:47:34 +00001590 ;;
1591
1592 *=*)
1593 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1594 # Reject names that are not valid shell variable names.
cristy8b350f62009-11-15 23:12:43 +00001595 case $ac_envvar in #(
1596 '' | [0-9]* | *[!_$as_cr_alnum]* )
cristy98dddb52010-11-04 00:30:15 +00001597 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
cristy8b350f62009-11-15 23:12:43 +00001598 esac
cristy3ed852e2009-09-05 21:47:34 +00001599 eval $ac_envvar=\$ac_optarg
1600 export $ac_envvar ;;
1601
1602 *)
1603 # FIXME: should be removed in autoconf 3.0.
1604 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1605 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1606 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
cristyda16f162011-02-19 23:52:17 +00001607 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
cristy3ed852e2009-09-05 21:47:34 +00001608 ;;
1609
1610 esac
1611done
1612
1613if test -n "$ac_prev"; then
1614 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
cristy98dddb52010-11-04 00:30:15 +00001615 as_fn_error $? "missing argument to $ac_option"
cristy3ed852e2009-09-05 21:47:34 +00001616fi
1617
1618if test -n "$ac_unrecognized_opts"; then
1619 case $enable_option_checking in
1620 no) ;;
cristy98dddb52010-11-04 00:30:15 +00001621 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
cristy3ed852e2009-09-05 21:47:34 +00001622 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1623 esac
1624fi
1625
1626# Check all directory arguments for consistency.
1627for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1628 datadir sysconfdir sharedstatedir localstatedir includedir \
1629 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1630 libdir localedir mandir
1631do
1632 eval ac_val=\$$ac_var
1633 # Remove trailing slashes.
1634 case $ac_val in
1635 */ )
1636 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1637 eval $ac_var=\$ac_val;;
1638 esac
1639 # Be sure to have absolute directory names.
1640 case $ac_val in
1641 [\\/$]* | ?:[\\/]* ) continue;;
1642 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1643 esac
cristy98dddb52010-11-04 00:30:15 +00001644 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
cristy3ed852e2009-09-05 21:47:34 +00001645done
1646
1647# There might be people who depend on the old broken behavior: `$host'
1648# used to hold the argument of --host etc.
1649# FIXME: To remove some day.
1650build=$build_alias
1651host=$host_alias
1652target=$target_alias
1653
1654# FIXME: To remove some day.
1655if test "x$host_alias" != x; then
1656 if test "x$build_alias" = x; then
1657 cross_compiling=maybe
cristy3ed852e2009-09-05 21:47:34 +00001658 elif test "x$build_alias" != "x$host_alias"; then
1659 cross_compiling=yes
1660 fi
1661fi
1662
1663ac_tool_prefix=
1664test -n "$host_alias" && ac_tool_prefix=$host_alias-
1665
1666test "$silent" = yes && exec 6>/dev/null
1667
1668
1669ac_pwd=`pwd` && test -n "$ac_pwd" &&
1670ac_ls_di=`ls -di .` &&
1671ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
cristy98dddb52010-11-04 00:30:15 +00001672 as_fn_error $? "working directory cannot be determined"
cristy3ed852e2009-09-05 21:47:34 +00001673test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
cristy98dddb52010-11-04 00:30:15 +00001674 as_fn_error $? "pwd does not report name of working directory"
cristy3ed852e2009-09-05 21:47:34 +00001675
1676
1677# Find the source files, if location was not specified.
1678if test -z "$srcdir"; then
1679 ac_srcdir_defaulted=yes
1680 # Try the directory containing this script, then the parent directory.
1681 ac_confdir=`$as_dirname -- "$as_myself" ||
1682$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1683 X"$as_myself" : 'X\(//\)[^/]' \| \
1684 X"$as_myself" : 'X\(//\)$' \| \
1685 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1686$as_echo X"$as_myself" |
1687 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1688 s//\1/
1689 q
1690 }
1691 /^X\(\/\/\)[^/].*/{
1692 s//\1/
1693 q
1694 }
1695 /^X\(\/\/\)$/{
1696 s//\1/
1697 q
1698 }
1699 /^X\(\/\).*/{
1700 s//\1/
1701 q
1702 }
1703 s/.*/./; q'`
1704 srcdir=$ac_confdir
1705 if test ! -r "$srcdir/$ac_unique_file"; then
1706 srcdir=..
1707 fi
1708else
1709 ac_srcdir_defaulted=no
1710fi
1711if test ! -r "$srcdir/$ac_unique_file"; then
1712 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
cristy98dddb52010-11-04 00:30:15 +00001713 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
cristy3ed852e2009-09-05 21:47:34 +00001714fi
1715ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1716ac_abs_confdir=`(
cristy98dddb52010-11-04 00:30:15 +00001717 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
cristy3ed852e2009-09-05 21:47:34 +00001718 pwd)`
1719# When building in place, set srcdir=.
1720if test "$ac_abs_confdir" = "$ac_pwd"; then
1721 srcdir=.
1722fi
1723# Remove unnecessary trailing slashes from srcdir.
1724# Double slashes in file names in object file debugging info
1725# mess up M-x gdb in Emacs.
1726case $srcdir in
1727*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1728esac
1729for ac_var in $ac_precious_vars; do
1730 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1731 eval ac_env_${ac_var}_value=\$${ac_var}
1732 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1733 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1734done
1735
1736#
1737# Report the --help message.
1738#
1739if test "$ac_init_help" = "long"; then
1740 # Omit some internal or obsolete options to make the list less imposing.
1741 # This message is too long to be a string in the A/UX 3.1 sh.
1742 cat <<_ACEOF
cristy29eb34e2011-10-16 00:46:08 +00001743\`configure' configures ImageMagick 7.0.0-0 to adapt to many kinds of systems.
cristy3ed852e2009-09-05 21:47:34 +00001744
1745Usage: $0 [OPTION]... [VAR=VALUE]...
1746
1747To assign environment variables (e.g., CC, CFLAGS...), specify them as
1748VAR=VALUE. See below for descriptions of some of the useful variables.
1749
1750Defaults for the options are specified in brackets.
1751
1752Configuration:
1753 -h, --help display this help and exit
1754 --help=short display options specific to this package
1755 --help=recursive display the short help of all the included packages
1756 -V, --version display version information and exit
cristy98dddb52010-11-04 00:30:15 +00001757 -q, --quiet, --silent do not print \`checking ...' messages
cristy3ed852e2009-09-05 21:47:34 +00001758 --cache-file=FILE cache test results in FILE [disabled]
1759 -C, --config-cache alias for \`--cache-file=config.cache'
1760 -n, --no-create do not create output files
1761 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1762
1763Installation directories:
1764 --prefix=PREFIX install architecture-independent files in PREFIX
1765 [$ac_default_prefix]
1766 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1767 [PREFIX]
1768
1769By default, \`make install' will install all the files in
1770\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1771an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1772for instance \`--prefix=\$HOME'.
1773
1774For better control, use the options below.
1775
1776Fine tuning of the installation directories:
1777 --bindir=DIR user executables [EPREFIX/bin]
1778 --sbindir=DIR system admin executables [EPREFIX/sbin]
1779 --libexecdir=DIR program executables [EPREFIX/libexec]
1780 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1781 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1782 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1783 --libdir=DIR object code libraries [EPREFIX/lib]
1784 --includedir=DIR C header files [PREFIX/include]
1785 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1786 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1787 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1788 --infodir=DIR info documentation [DATAROOTDIR/info]
1789 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1790 --mandir=DIR man documentation [DATAROOTDIR/man]
cristy09b53e12011-10-14 12:47:22 +00001791 --docdir=DIR documentation root [DATAROOTDIR/doc/ImageMagick]
cristy3ed852e2009-09-05 21:47:34 +00001792 --htmldir=DIR html documentation [DOCDIR]
1793 --dvidir=DIR dvi documentation [DOCDIR]
1794 --pdfdir=DIR pdf documentation [DOCDIR]
1795 --psdir=DIR ps documentation [DOCDIR]
1796_ACEOF
1797
1798 cat <<\_ACEOF
1799
cristy73bd4a52010-10-05 11:24:23 +00001800Program names:
1801 --program-prefix=PREFIX prepend PREFIX to installed program names
1802 --program-suffix=SUFFIX append SUFFIX to installed program names
1803 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1804
cristy3ed852e2009-09-05 21:47:34 +00001805X features:
1806 --x-includes=DIR X include files are in DIR
1807 --x-libraries=DIR X library files are in DIR
1808
1809System types:
1810 --build=BUILD configure for building on BUILD [guessed]
1811 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1812 --target=TARGET configure for building compilers for TARGET [HOST]
1813_ACEOF
1814fi
1815
1816if test -n "$ac_init_help"; then
1817 case $ac_init_help in
cristy29eb34e2011-10-16 00:46:08 +00001818 short | recursive ) echo "Configuration of ImageMagick 7.0.0-0:";;
cristy3ed852e2009-09-05 21:47:34 +00001819 esac
1820 cat <<\_ACEOF
1821
1822Optional Features:
1823 --disable-option-checking ignore unrecognized --enable/--with options
1824 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1825 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
cristyc0890a62012-07-19 00:18:20 +00001826 --enable-silent-rules less verbose build output (undo: "make V=1")
1827 --disable-silent-rules verbose build output (undo: "make V=0")
1828 --enable-dependency-tracking
1829 do not reject slow dependency extractors
1830 --disable-dependency-tracking
1831 speeds up one-time build
cristy9b86f202012-11-28 21:55:35 +00001832 --enable-ld-version-script
1833 enable linker version script (default is enabled
1834 when possible)
cristya3824692012-03-30 17:22:07 +00001835 --enable-bounds-checking
1836 enable run-time bounds-checking
cristy3ed852e2009-09-05 21:47:34 +00001837 --enable-osx-universal-binary
cristycd4c5312009-11-22 01:19:08 +00001838 build universal binary on OS X [[default=no]]
cristy3ed852e2009-09-05 21:47:34 +00001839 --disable-openmp do not use OpenMP
cristy48794642012-09-02 15:19:08 +00001840 --enable-opencl enable OpenCL support
cristy3ed852e2009-09-05 21:47:34 +00001841 --disable-largefile omit support for large files
cristy73bd4a52010-10-05 11:24:23 +00001842 --enable-shared[=PKGS] build shared libraries [default=yes]
1843 --enable-static[=PKGS] build static libraries [default=yes]
1844 --enable-fast-install[=PKGS]
1845 optimize for fast installation [default=yes]
1846 --disable-libtool-lock avoid locking (might break parallel builds)
cristy3ed852e2009-09-05 21:47:34 +00001847 --enable-delegate-build look for delegate libraries in build directory
1848 --disable-deprecated exclude deprecated methods in MagickCore and
cristy3a75f062012-09-08 23:29:40 +00001849 MagickWand APIs
cristy3ed852e2009-09-05 21:47:34 +00001850 --disable-installed Formally install ImageMagick under PREFIX
1851 --disable-cipher disable enciphering and deciphering image pixels
cristy6e3607c2011-09-13 13:59:17 +00001852 --enable-zero-configuration
1853 enable self-contained, embeddable,
cristy3ed852e2009-09-05 21:47:34 +00001854 zero-configuration ImageMagick
cristyf314dbd2012-11-15 13:35:28 +00001855 --enable-hdri accurately represent the wide range of intensity
cristy3ed852e2009-09-05 21:47:34 +00001856 levels found in real scenes
cristy3ed852e2009-09-05 21:47:34 +00001857 --disable-assert disable assert() statements in build
cristyc0890a62012-07-19 00:18:20 +00001858 --enable-maintainer-mode
1859 enable make rules and dependencies not useful (and
1860 sometimes confusing) to the casual installer
cristy3ed852e2009-09-05 21:47:34 +00001861 --enable-ccmalloc enable 'ccmalloc' memory debug support
1862 --enable-efence enable 'efence' memory debug support
1863 --enable-prof enable 'prof' profiling support
1864 --enable-gprof enable 'gprof' profiling support
1865 --enable-gcov enable 'gcov' profiling support
cristy71d8c202012-03-20 17:05:01 +00001866 --enable-legacy-support install legacy command-line utilities (default disabled)
cristya0b81c32010-01-22 02:54:33 +00001867 --disable-assert turn off assertions
cristy3ed852e2009-09-05 21:47:34 +00001868
1869Optional Packages:
1870 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1871 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
cristy73bd4a52010-10-05 11:24:23 +00001872 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
cristy7247bba2012-02-05 16:37:27 +00001873 --with-dmalloc use dmalloc, as in http://www.dmalloc.com
cristy37110d62012-03-01 18:38:20 +00001874 --with-gcc-arch=<arch> use architecture <arch> for gcc -march/-mtune,
1875 instead of guessing
cristy670aa3c2011-11-03 00:54:00 +00001876 --includearch-dir=DIR ARCH specific include directory
1877 --sharearch-dir=DIR ARCH specific config directory
cristy3ed852e2009-09-05 21:47:34 +00001878 --without-threads disable threads support
cristy99bd5232011-12-07 14:38:20 +00001879 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
cristy73bd4a52010-10-05 11:24:23 +00001880 both]
cristyda16f162011-02-19 23:52:17 +00001881 --with-sysroot=DIR Search for dependent libraries within DIR
1882 (or the compiler's sysroot if not specified).
cristy3ed852e2009-09-05 21:47:34 +00001883 --with-modules enable building dynamically loadable modules
1884 --with-method-prefix=PREFIX
1885 prefix MagickCore API methods
1886 --with-quantum-depth=DEPTH
1887 number of bits in a pixel quantum (default 16)
1888 --with-cache=THRESHOLD set pixel cache threshhold in MB (default available
1889 memory)
1890 --with-frozenpaths freeze delegate paths
1891 --without-magick-plus-plus
1892 disable build/install of Magick++
cristy3a75f062012-09-08 23:29:40 +00001893 --with-package-release-name=NAME
1894 encode this name into the shared library
cristy3ed852e2009-09-05 21:47:34 +00001895 --with-perl enable build/install of PerlMagick
1896 --with-perl-options=OPTIONS
1897 options to pass on command-line when generating
cristyfc3d0222012-02-07 15:05:57 +00001898 PerlMagick build file
cristy3ed852e2009-09-05 21:47:34 +00001899 --with-umem enable umem memory allocation library support
1900 --with-libstdc=DIR use libstdc++ in DIR (for GNU C++)
1901 --without-bzlib disable BZLIB support
cristyc7083c12009-10-14 03:16:55 +00001902 --with-x use the X Window System
cristy3ed852e2009-09-05 21:47:34 +00001903 --without-zlib disable ZLIB support
1904 --with-autotrace enable autotrace support
1905 --without-dps disable Display Postscript support
1906 --without-djvu disable DjVu support
cristy430a7312010-01-21 20:44:04 +00001907 --with-dejavu-font-dir=DIR
1908 DejaVu font directory
cristy3ed852e2009-09-05 21:47:34 +00001909 --without-fftw disable FFTW support
1910 --without-fpx disable FlashPIX support
1911 --without-fontconfig disable fontconfig support
cristy81beccd2011-10-03 18:17:24 +00001912 --without-freetype disable Freetype support
cristy3ed852e2009-09-05 21:47:34 +00001913 --without-gslib enable Ghostscript library support
1914 --with-fontpath=DIR prepend to default font search path
1915 --with-gs-font-dir=DIR Ghostscript font directory
cristy1b70dc82012-07-01 23:15:05 +00001916 --with-gvc disable GVC support
cristy3ed852e2009-09-05 21:47:34 +00001917 --without-jbig disable JBIG support
1918 --without-jpeg disable JPEG support
1919 --without-jp2 disable JPEG-2000 support
cristy71203402010-06-18 13:12:03 +00001920 --without-lcms disable lcms (v1.1X) support
1921 --without-lcms2 disable lcms (v2.X) support
cristyf0c78232010-03-15 12:53:40 +00001922 --without-lqr disable Liquid Rescale support
cristyfbb0ef02010-12-19 02:32:11 +00001923 --without-lzma disable LZMA support
cristy3ed852e2009-09-05 21:47:34 +00001924 --without-openexr disable OpenEXR support
cristy41cbe8a2011-10-27 01:35:18 +00001925 --without-pango disable PANGO support
cristy3ed852e2009-09-05 21:47:34 +00001926 --without-png disable PNG support
cristy1164d5f2012-08-15 00:58:25 +00001927 --without-rsvg enable RSVG support
cristy3ed852e2009-09-05 21:47:34 +00001928 --without-tiff disable TIFF support
cristyb1860752011-03-14 00:27:46 +00001929 --without-webp disable WEBP support
cristy3ed852e2009-09-05 21:47:34 +00001930 --with-windows-font-dir=DIR
1931 directory containing MS-Windows fonts
cristyde3fc5d2012-02-12 15:40:47 +00001932 --with-wmf enable WMF support
cristy3ed852e2009-09-05 21:47:34 +00001933 --without-xml disable XML support
1934
1935Some influential environment variables:
1936 CC C compiler command
1937 CFLAGS C compiler flags
1938 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1939 nonstandard directory <lib dir>
1940 LIBS libraries to pass to the linker, e.g. -l<library>
cristycd4c5312009-11-22 01:19:08 +00001941 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
cristy3ed852e2009-09-05 21:47:34 +00001942 you have headers in a nonstandard directory <include dir>
cristya0b81c32010-01-22 02:54:33 +00001943 CPP C preprocessor
cristy3ed852e2009-09-05 21:47:34 +00001944 CXX C++ compiler command
1945 CXXFLAGS C++ compiler flags
cristy73bd4a52010-10-05 11:24:23 +00001946 PKG_CONFIG path to pkg-config utility
nicolas6237c462010-10-05 06:11:49 +00001947 CXXCPP C++ preprocessor
cristy73bd4a52010-10-05 11:24:23 +00001948 XMKMF Path to xmkmf, Makefile generator for X Window System
1949 AUTOTRACE_CFLAGS
1950 C compiler flags for AUTOTRACE, overriding pkg-config
1951 AUTOTRACE_LIBS
1952 linker flags for AUTOTRACE, overriding pkg-config
1953 FONTCONFIG_CFLAGS
1954 C compiler flags for FONTCONFIG, overriding pkg-config
1955 FONTCONFIG_LIBS
1956 linker flags for FONTCONFIG, overriding pkg-config
1957 GVC_CFLAGS C compiler flags for GVC, overriding pkg-config
1958 GVC_LIBS linker flags for GVC, overriding pkg-config
1959 LQR_CFLAGS C compiler flags for LQR, overriding pkg-config
1960 LQR_LIBS linker flags for LQR, overriding pkg-config
cristyb94e5002011-11-14 13:20:10 +00001961 LZMA_CFLAGS C compiler flags for LZMA, overriding pkg-config
1962 LZMA_LIBS linker flags for LZMA, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00001963 OPENEXR_CFLAGS
1964 C compiler flags for OPENEXR, overriding pkg-config
1965 OPENEXR_LIBS
1966 linker flags for OPENEXR, overriding pkg-config
cristy41cbe8a2011-10-27 01:35:18 +00001967 PANGO_CFLAGS
1968 C compiler flags for PANGO, overriding pkg-config
1969 PANGO_LIBS linker flags for PANGO, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00001970 RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
1971 RSVG_LIBS linker flags for RSVG, overriding pkg-config
1972 CAIRO_SVG_CFLAGS
1973 C compiler flags for CAIRO_SVG, overriding pkg-config
1974 CAIRO_SVG_LIBS
1975 linker flags for CAIRO_SVG, overriding pkg-config
cristy3ed852e2009-09-05 21:47:34 +00001976
1977Use these variables to override the choices made by `configure' or to help
1978it to find libraries and programs with nonstandard names/locations.
1979
1980Report bugs to <http://www.imagemagick.org>.
1981_ACEOF
1982ac_status=$?
1983fi
1984
1985if test "$ac_init_help" = "recursive"; then
1986 # If there are subdirs, report their specific --help.
1987 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1988 test -d "$ac_dir" ||
1989 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1990 continue
1991 ac_builddir=.
1992
1993case "$ac_dir" in
1994.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1995*)
1996 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1997 # A ".." for each directory in $ac_dir_suffix.
1998 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1999 case $ac_top_builddir_sub in
2000 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2001 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2002 esac ;;
2003esac
2004ac_abs_top_builddir=$ac_pwd
2005ac_abs_builddir=$ac_pwd$ac_dir_suffix
2006# for backward compatibility:
2007ac_top_builddir=$ac_top_build_prefix
2008
2009case $srcdir in
2010 .) # We are building in place.
2011 ac_srcdir=.
2012 ac_top_srcdir=$ac_top_builddir_sub
2013 ac_abs_top_srcdir=$ac_pwd ;;
2014 [\\/]* | ?:[\\/]* ) # Absolute name.
2015 ac_srcdir=$srcdir$ac_dir_suffix;
2016 ac_top_srcdir=$srcdir
2017 ac_abs_top_srcdir=$srcdir ;;
2018 *) # Relative name.
2019 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2020 ac_top_srcdir=$ac_top_build_prefix$srcdir
2021 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2022esac
2023ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2024
2025 cd "$ac_dir" || { ac_status=$?; continue; }
2026 # Check for guested configure.
2027 if test -f "$ac_srcdir/configure.gnu"; then
2028 echo &&
2029 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2030 elif test -f "$ac_srcdir/configure"; then
2031 echo &&
2032 $SHELL "$ac_srcdir/configure" --help=recursive
2033 else
2034 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2035 fi || ac_status=$?
2036 cd "$ac_pwd" || { ac_status=$?; break; }
2037 done
2038fi
2039
2040test -n "$ac_init_help" && exit $ac_status
2041if $ac_init_version; then
2042 cat <<\_ACEOF
cristy29eb34e2011-10-16 00:46:08 +00002043ImageMagick configure 7.0.0-0
cristy14fefe52012-05-21 00:59:18 +00002044generated by GNU Autoconf 2.69
cristy3ed852e2009-09-05 21:47:34 +00002045
cristy14fefe52012-05-21 00:59:18 +00002046Copyright (C) 2012 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +00002047This configure script is free software; the Free Software Foundation
2048gives unlimited permission to copy, distribute and modify it.
2049_ACEOF
2050 exit
2051fi
cristy8b350f62009-11-15 23:12:43 +00002052
2053## ------------------------ ##
2054## Autoconf initialization. ##
2055## ------------------------ ##
2056
2057# ac_fn_c_try_compile LINENO
2058# --------------------------
2059# Try to compile conftest.$ac_ext, and return whether this succeeded.
2060ac_fn_c_try_compile ()
2061{
2062 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2063 rm -f conftest.$ac_objext
2064 if { { ac_try="$ac_compile"
2065case "(($ac_try" in
2066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2067 *) ac_try_echo=$ac_try;;
2068esac
2069eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2070$as_echo "$ac_try_echo"; } >&5
2071 (eval "$ac_compile") 2>conftest.err
2072 ac_status=$?
2073 if test -s conftest.err; then
2074 grep -v '^ *+' conftest.err >conftest.er1
2075 cat conftest.er1 >&5
2076 mv -f conftest.er1 conftest.err
2077 fi
2078 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2079 test $ac_status = 0; } && {
2080 test -z "$ac_c_werror_flag" ||
2081 test ! -s conftest.err
2082 } && test -s conftest.$ac_objext; then :
2083 ac_retval=0
2084else
2085 $as_echo "$as_me: failed program was:" >&5
2086sed 's/^/| /' conftest.$ac_ext >&5
2087
2088 ac_retval=1
2089fi
cristyda16f162011-02-19 23:52:17 +00002090 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002091 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002092
2093} # ac_fn_c_try_compile
2094
cristy95646052009-11-28 23:05:30 +00002095# ac_fn_c_try_cpp LINENO
2096# ----------------------
2097# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2098ac_fn_c_try_cpp ()
2099{
2100 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2101 if { { ac_try="$ac_cpp conftest.$ac_ext"
2102case "(($ac_try" in
2103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2104 *) ac_try_echo=$ac_try;;
2105esac
2106eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2107$as_echo "$ac_try_echo"; } >&5
2108 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2109 ac_status=$?
2110 if test -s conftest.err; then
2111 grep -v '^ *+' conftest.err >conftest.er1
2112 cat conftest.er1 >&5
2113 mv -f conftest.er1 conftest.err
2114 fi
2115 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002116 test $ac_status = 0; } > conftest.i && {
cristy95646052009-11-28 23:05:30 +00002117 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2118 test ! -s conftest.err
2119 }; then :
2120 ac_retval=0
2121else
2122 $as_echo "$as_me: failed program was:" >&5
2123sed 's/^/| /' conftest.$ac_ext >&5
2124
2125 ac_retval=1
2126fi
cristyda16f162011-02-19 23:52:17 +00002127 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy95646052009-11-28 23:05:30 +00002128 as_fn_set_status $ac_retval
2129
2130} # ac_fn_c_try_cpp
2131
cristy8b350f62009-11-15 23:12:43 +00002132# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2133# -------------------------------------------------------
2134# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2135# the include files in INCLUDES and setting the cache variable VAR
2136# accordingly.
2137ac_fn_c_check_header_mongrel ()
2138{
2139 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00002140 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2142$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002143if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002144 $as_echo_n "(cached) " >&6
2145fi
2146eval ac_res=\$$3
2147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2148$as_echo "$ac_res" >&6; }
2149else
2150 # Is the header compilable?
2151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2152$as_echo_n "checking $2 usability... " >&6; }
2153cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2154/* end confdefs.h. */
2155$4
2156#include <$2>
2157_ACEOF
2158if ac_fn_c_try_compile "$LINENO"; then :
2159 ac_header_compiler=yes
2160else
2161 ac_header_compiler=no
2162fi
2163rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2165$as_echo "$ac_header_compiler" >&6; }
2166
2167# Is the header present?
2168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2169$as_echo_n "checking $2 presence... " >&6; }
2170cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2171/* end confdefs.h. */
2172#include <$2>
2173_ACEOF
2174if ac_fn_c_try_cpp "$LINENO"; then :
2175 ac_header_preproc=yes
2176else
2177 ac_header_preproc=no
2178fi
cristyda16f162011-02-19 23:52:17 +00002179rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00002180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2181$as_echo "$ac_header_preproc" >&6; }
2182
2183# So? What about this header?
2184case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2185 yes:no: )
2186 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2187$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2188 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2189$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2190 ;;
2191 no:yes:* )
2192 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2193$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2194 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2195$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2196 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2197$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2198 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2199$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2200 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2201$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00002202( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00002203## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00002204## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00002205 ) | sed "s/^/$as_me: WARNING: /" >&2
2206 ;;
2207esac
2208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2209$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002210if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002211 $as_echo_n "(cached) " >&6
2212else
2213 eval "$3=\$ac_header_compiler"
2214fi
2215eval ac_res=\$$3
2216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2217$as_echo "$ac_res" >&6; }
2218fi
cristyda16f162011-02-19 23:52:17 +00002219 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002220
2221} # ac_fn_c_check_header_mongrel
2222
2223# ac_fn_c_try_run LINENO
2224# ----------------------
2225# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2226# that executables *can* be run.
2227ac_fn_c_try_run ()
2228{
2229 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2230 if { { ac_try="$ac_link"
2231case "(($ac_try" in
2232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2233 *) ac_try_echo=$ac_try;;
2234esac
2235eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2236$as_echo "$ac_try_echo"; } >&5
2237 (eval "$ac_link") 2>&5
2238 ac_status=$?
2239 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2240 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2241 { { case "(($ac_try" in
2242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2243 *) ac_try_echo=$ac_try;;
2244esac
2245eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2246$as_echo "$ac_try_echo"; } >&5
2247 (eval "$ac_try") 2>&5
2248 ac_status=$?
2249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2250 test $ac_status = 0; }; }; then :
2251 ac_retval=0
2252else
2253 $as_echo "$as_me: program exited with status $ac_status" >&5
2254 $as_echo "$as_me: failed program was:" >&5
2255sed 's/^/| /' conftest.$ac_ext >&5
2256
2257 ac_retval=$ac_status
2258fi
2259 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002260 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002261 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002262
2263} # ac_fn_c_try_run
2264
2265# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2266# -------------------------------------------------------
2267# Tests whether HEADER exists and can be compiled using the include files in
2268# INCLUDES, setting the cache variable VAR accordingly.
2269ac_fn_c_check_header_compile ()
2270{
2271 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2273$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002274if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002275 $as_echo_n "(cached) " >&6
2276else
2277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2278/* end confdefs.h. */
2279$4
2280#include <$2>
2281_ACEOF
2282if ac_fn_c_try_compile "$LINENO"; then :
2283 eval "$3=yes"
2284else
2285 eval "$3=no"
2286fi
2287rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2288fi
2289eval ac_res=\$$3
2290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2291$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002292 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002293
2294} # ac_fn_c_check_header_compile
2295
cristya0b81c32010-01-22 02:54:33 +00002296# ac_fn_cxx_try_compile LINENO
2297# ----------------------------
2298# Try to compile conftest.$ac_ext, and return whether this succeeded.
2299ac_fn_cxx_try_compile ()
2300{
2301 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2302 rm -f conftest.$ac_objext
2303 if { { ac_try="$ac_compile"
2304case "(($ac_try" in
2305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2306 *) ac_try_echo=$ac_try;;
2307esac
2308eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2309$as_echo "$ac_try_echo"; } >&5
2310 (eval "$ac_compile") 2>conftest.err
2311 ac_status=$?
2312 if test -s conftest.err; then
2313 grep -v '^ *+' conftest.err >conftest.er1
2314 cat conftest.er1 >&5
2315 mv -f conftest.er1 conftest.err
2316 fi
2317 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2318 test $ac_status = 0; } && {
2319 test -z "$ac_cxx_werror_flag" ||
2320 test ! -s conftest.err
2321 } && test -s conftest.$ac_objext; then :
2322 ac_retval=0
2323else
2324 $as_echo "$as_me: failed program was:" >&5
2325sed 's/^/| /' conftest.$ac_ext >&5
2326
2327 ac_retval=1
2328fi
cristyda16f162011-02-19 23:52:17 +00002329 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristya0b81c32010-01-22 02:54:33 +00002330 as_fn_set_status $ac_retval
2331
2332} # ac_fn_cxx_try_compile
2333
cristy8b350f62009-11-15 23:12:43 +00002334# ac_fn_c_try_link LINENO
2335# -----------------------
2336# Try to link conftest.$ac_ext, and return whether this succeeded.
2337ac_fn_c_try_link ()
2338{
2339 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2340 rm -f conftest.$ac_objext conftest$ac_exeext
2341 if { { ac_try="$ac_link"
2342case "(($ac_try" in
2343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2344 *) ac_try_echo=$ac_try;;
2345esac
2346eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2347$as_echo "$ac_try_echo"; } >&5
2348 (eval "$ac_link") 2>conftest.err
2349 ac_status=$?
2350 if test -s conftest.err; then
2351 grep -v '^ *+' conftest.err >conftest.er1
2352 cat conftest.er1 >&5
2353 mv -f conftest.er1 conftest.err
2354 fi
2355 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2356 test $ac_status = 0; } && {
2357 test -z "$ac_c_werror_flag" ||
2358 test ! -s conftest.err
2359 } && test -s conftest$ac_exeext && {
2360 test "$cross_compiling" = yes ||
cristy14fefe52012-05-21 00:59:18 +00002361 test -x conftest$ac_exeext
cristy8b350f62009-11-15 23:12:43 +00002362 }; then :
2363 ac_retval=0
2364else
2365 $as_echo "$as_me: failed program was:" >&5
2366sed 's/^/| /' conftest.$ac_ext >&5
2367
2368 ac_retval=1
2369fi
2370 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2371 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2372 # interfere with the next link command; also delete a directory that is
2373 # left behind by Apple's compiler. We do this before executing the actions.
2374 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002375 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002376 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002377
2378} # ac_fn_c_try_link
2379
cristy73bd4a52010-10-05 11:24:23 +00002380# ac_fn_c_check_func LINENO FUNC VAR
2381# ----------------------------------
2382# Tests whether FUNC exists, setting the cache variable VAR accordingly
2383ac_fn_c_check_func ()
2384{
2385 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2387$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002388if eval \${$3+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00002389 $as_echo_n "(cached) " >&6
2390else
2391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2392/* end confdefs.h. */
2393/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2394 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2395#define $2 innocuous_$2
2396
2397/* System header to define __stub macros and hopefully few prototypes,
2398 which can conflict with char $2 (); below.
2399 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2400 <limits.h> exists even on freestanding compilers. */
2401
2402#ifdef __STDC__
2403# include <limits.h>
2404#else
2405# include <assert.h>
2406#endif
2407
2408#undef $2
2409
2410/* Override any GCC internal prototype to avoid an error.
2411 Use char because int might match the return type of a GCC
2412 builtin and then its argument prototype would still apply. */
2413#ifdef __cplusplus
2414extern "C"
2415#endif
2416char $2 ();
2417/* The GNU C library defines this for functions which it implements
2418 to always fail with ENOSYS. Some functions are actually named
2419 something starting with __ and the normal name is an alias. */
2420#if defined __stub_$2 || defined __stub___$2
2421choke me
2422#endif
2423
2424int
2425main ()
2426{
2427return $2 ();
2428 ;
2429 return 0;
2430}
2431_ACEOF
2432if ac_fn_c_try_link "$LINENO"; then :
2433 eval "$3=yes"
2434else
2435 eval "$3=no"
2436fi
2437rm -f core conftest.err conftest.$ac_objext \
2438 conftest$ac_exeext conftest.$ac_ext
2439fi
2440eval ac_res=\$$3
2441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2442$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002443 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002444
2445} # ac_fn_c_check_func
2446
2447# ac_fn_cxx_try_cpp LINENO
2448# ------------------------
2449# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2450ac_fn_cxx_try_cpp ()
2451{
2452 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2453 if { { ac_try="$ac_cpp conftest.$ac_ext"
2454case "(($ac_try" in
2455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2456 *) ac_try_echo=$ac_try;;
2457esac
2458eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2459$as_echo "$ac_try_echo"; } >&5
2460 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2461 ac_status=$?
2462 if test -s conftest.err; then
2463 grep -v '^ *+' conftest.err >conftest.er1
2464 cat conftest.er1 >&5
2465 mv -f conftest.er1 conftest.err
2466 fi
2467 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002468 test $ac_status = 0; } > conftest.i && {
cristy73bd4a52010-10-05 11:24:23 +00002469 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2470 test ! -s conftest.err
2471 }; then :
2472 ac_retval=0
2473else
2474 $as_echo "$as_me: failed program was:" >&5
2475sed 's/^/| /' conftest.$ac_ext >&5
2476
2477 ac_retval=1
2478fi
cristyda16f162011-02-19 23:52:17 +00002479 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002480 as_fn_set_status $ac_retval
2481
2482} # ac_fn_cxx_try_cpp
2483
2484# ac_fn_cxx_try_link LINENO
2485# -------------------------
2486# Try to link conftest.$ac_ext, and return whether this succeeded.
2487ac_fn_cxx_try_link ()
2488{
2489 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2490 rm -f conftest.$ac_objext conftest$ac_exeext
2491 if { { ac_try="$ac_link"
2492case "(($ac_try" in
2493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2494 *) ac_try_echo=$ac_try;;
2495esac
2496eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2497$as_echo "$ac_try_echo"; } >&5
2498 (eval "$ac_link") 2>conftest.err
2499 ac_status=$?
2500 if test -s conftest.err; then
2501 grep -v '^ *+' conftest.err >conftest.er1
2502 cat conftest.er1 >&5
2503 mv -f conftest.er1 conftest.err
2504 fi
2505 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2506 test $ac_status = 0; } && {
2507 test -z "$ac_cxx_werror_flag" ||
2508 test ! -s conftest.err
2509 } && test -s conftest$ac_exeext && {
2510 test "$cross_compiling" = yes ||
cristy14fefe52012-05-21 00:59:18 +00002511 test -x conftest$ac_exeext
cristy73bd4a52010-10-05 11:24:23 +00002512 }; then :
2513 ac_retval=0
2514else
2515 $as_echo "$as_me: failed program was:" >&5
2516sed 's/^/| /' conftest.$ac_ext >&5
2517
2518 ac_retval=1
2519fi
2520 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2521 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2522 # interfere with the next link command; also delete a directory that is
2523 # left behind by Apple's compiler. We do this before executing the actions.
2524 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002525 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002526 as_fn_set_status $ac_retval
2527
2528} # ac_fn_cxx_try_link
2529
cristy8b350f62009-11-15 23:12:43 +00002530# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2531# -------------------------------------------
2532# Tests whether TYPE exists after having included INCLUDES, setting cache
2533# variable VAR accordingly.
2534ac_fn_c_check_type ()
2535{
2536 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2538$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002539if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002540 $as_echo_n "(cached) " >&6
2541else
2542 eval "$3=no"
2543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2544/* end confdefs.h. */
2545$4
2546int
2547main ()
2548{
2549if (sizeof ($2))
2550 return 0;
2551 ;
2552 return 0;
2553}
2554_ACEOF
2555if ac_fn_c_try_compile "$LINENO"; then :
2556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2557/* end confdefs.h. */
2558$4
2559int
2560main ()
2561{
2562if (sizeof (($2)))
2563 return 0;
2564 ;
2565 return 0;
2566}
2567_ACEOF
2568if ac_fn_c_try_compile "$LINENO"; then :
2569
2570else
2571 eval "$3=yes"
2572fi
2573rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2574fi
2575rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2576fi
2577eval ac_res=\$$3
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2579$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002580 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002581
2582} # ac_fn_c_check_type
2583
cristy92703d82010-04-26 00:18:18 +00002584# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2585# ----------------------------------------------------
2586# Tries to find if the field MEMBER exists in type AGGR, after including
2587# INCLUDES, setting cache variable VAR accordingly.
2588ac_fn_c_check_member ()
2589{
2590 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2592$as_echo_n "checking for $2.$3... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002593if eval \${$4+:} false; then :
cristy92703d82010-04-26 00:18:18 +00002594 $as_echo_n "(cached) " >&6
2595else
2596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2597/* end confdefs.h. */
2598$5
2599int
2600main ()
2601{
2602static $2 ac_aggr;
2603if (ac_aggr.$3)
2604return 0;
2605 ;
2606 return 0;
2607}
2608_ACEOF
2609if ac_fn_c_try_compile "$LINENO"; then :
2610 eval "$4=yes"
2611else
2612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2613/* end confdefs.h. */
2614$5
2615int
2616main ()
2617{
2618static $2 ac_aggr;
2619if (sizeof ac_aggr.$3)
2620return 0;
2621 ;
2622 return 0;
2623}
2624_ACEOF
2625if ac_fn_c_try_compile "$LINENO"; then :
2626 eval "$4=yes"
2627else
2628 eval "$4=no"
2629fi
2630rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2631fi
2632rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2633fi
2634eval ac_res=\$$4
2635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2636$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002637 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy92703d82010-04-26 00:18:18 +00002638
2639} # ac_fn_c_check_member
2640
cristy5eef09f2012-10-16 12:08:28 +00002641# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2642# ---------------------------------------------
2643# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2644# accordingly.
2645ac_fn_c_check_decl ()
2646{
2647 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2648 as_decl_name=`echo $2|sed 's/ *(.*//'`
2649 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2651$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2652if eval \${$3+:} false; then :
2653 $as_echo_n "(cached) " >&6
2654else
2655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2656/* end confdefs.h. */
2657$4
2658int
2659main ()
2660{
2661#ifndef $as_decl_name
2662#ifdef __cplusplus
2663 (void) $as_decl_use;
2664#else
2665 (void) $as_decl_name;
2666#endif
2667#endif
2668
2669 ;
2670 return 0;
2671}
2672_ACEOF
2673if ac_fn_c_try_compile "$LINENO"; then :
2674 eval "$3=yes"
2675else
2676 eval "$3=no"
2677fi
2678rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2679fi
2680eval ac_res=\$$3
2681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2682$as_echo "$ac_res" >&6; }
2683 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2684
2685} # ac_fn_c_check_decl
2686
cristy501c8042011-05-26 17:46:28 +00002687# ac_fn_c_find_intX_t LINENO BITS VAR
2688# -----------------------------------
2689# Finds a signed integer type with width BITS, setting cache variable VAR
2690# accordingly.
2691ac_fn_c_find_intX_t ()
2692{
2693 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2695$as_echo_n "checking for int$2_t... " >&6; }
2696if eval \${$3+:} false; then :
2697 $as_echo_n "(cached) " >&6
2698else
2699 eval "$3=no"
2700 # Order is important - never check a type that is potentially smaller
2701 # than half of the expected target width.
2702 for ac_type in int$2_t 'int' 'long int' \
2703 'long long int' 'short int' 'signed char'; do
2704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2705/* end confdefs.h. */
2706$ac_includes_default
2707 enum { N = $2 / 2 - 1 };
2708int
2709main ()
2710{
2711static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
cristy14fefe52012-05-21 00:59:18 +00002712test_array [0] = 0;
2713return test_array [0];
cristy501c8042011-05-26 17:46:28 +00002714
2715 ;
2716 return 0;
2717}
2718_ACEOF
2719if ac_fn_c_try_compile "$LINENO"; then :
2720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2721/* end confdefs.h. */
2722$ac_includes_default
2723 enum { N = $2 / 2 - 1 };
2724int
2725main ()
2726{
2727static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2728 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
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
2738else
2739 case $ac_type in #(
2740 int$2_t) :
2741 eval "$3=yes" ;; #(
2742 *) :
2743 eval "$3=\$ac_type" ;;
2744esac
2745fi
2746rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2747fi
2748rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2749 if eval test \"x\$"$3"\" = x"no"; then :
2750
2751else
2752 break
2753fi
2754 done
2755fi
2756eval ac_res=\$$3
2757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2758$as_echo "$ac_res" >&6; }
2759 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2760
2761} # ac_fn_c_find_intX_t
2762
2763# ac_fn_c_find_uintX_t LINENO BITS VAR
2764# ------------------------------------
2765# Finds an unsigned integer type with width BITS, setting cache variable VAR
2766# accordingly.
2767ac_fn_c_find_uintX_t ()
2768{
2769 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2771$as_echo_n "checking for uint$2_t... " >&6; }
2772if eval \${$3+:} false; then :
2773 $as_echo_n "(cached) " >&6
2774else
2775 eval "$3=no"
2776 # Order is important - never check a type that is potentially smaller
2777 # than half of the expected target width.
2778 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2779 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2781/* end confdefs.h. */
2782$ac_includes_default
2783int
2784main ()
2785{
2786static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
cristy14fefe52012-05-21 00:59:18 +00002787test_array [0] = 0;
2788return test_array [0];
cristy501c8042011-05-26 17:46:28 +00002789
2790 ;
2791 return 0;
2792}
2793_ACEOF
2794if ac_fn_c_try_compile "$LINENO"; then :
2795 case $ac_type in #(
2796 uint$2_t) :
2797 eval "$3=yes" ;; #(
2798 *) :
2799 eval "$3=\$ac_type" ;;
2800esac
2801fi
2802rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2803 if eval test \"x\$"$3"\" = x"no"; then :
2804
2805else
2806 break
2807fi
2808 done
2809fi
2810eval ac_res=\$$3
2811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2812$as_echo "$ac_res" >&6; }
2813 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2814
2815} # ac_fn_c_find_uintX_t
2816
cristy8b350f62009-11-15 23:12:43 +00002817# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2818# --------------------------------------------
2819# Tries to find the compile-time value of EXPR in a program that includes
2820# INCLUDES, setting VAR accordingly. Returns whether the value could be
2821# computed
2822ac_fn_c_compute_int ()
2823{
2824 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2825 if test "$cross_compiling" = yes; then
2826 # Depending upon the size, compute the lo and hi bounds.
2827cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2828/* end confdefs.h. */
2829$4
2830int
2831main ()
2832{
2833static int test_array [1 - 2 * !(($2) >= 0)];
cristy14fefe52012-05-21 00:59:18 +00002834test_array [0] = 0;
2835return test_array [0];
cristy8b350f62009-11-15 23:12:43 +00002836
2837 ;
2838 return 0;
2839}
2840_ACEOF
2841if ac_fn_c_try_compile "$LINENO"; then :
2842 ac_lo=0 ac_mid=0
2843 while :; do
2844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2845/* end confdefs.h. */
2846$4
2847int
2848main ()
2849{
2850static int test_array [1 - 2 * !(($2) <= $ac_mid)];
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_hi=$ac_mid; break
2860else
2861 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2862 if test $ac_lo -le $ac_mid; then
2863 ac_lo= ac_hi=
2864 break
2865 fi
2866 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2867fi
2868rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2869 done
2870else
2871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2872/* end confdefs.h. */
2873$4
2874int
2875main ()
2876{
2877static int test_array [1 - 2 * !(($2) < 0)];
cristy14fefe52012-05-21 00:59:18 +00002878test_array [0] = 0;
2879return test_array [0];
cristy8b350f62009-11-15 23:12:43 +00002880
2881 ;
2882 return 0;
2883}
2884_ACEOF
2885if ac_fn_c_try_compile "$LINENO"; then :
2886 ac_hi=-1 ac_mid=-1
2887 while :; do
2888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2889/* end confdefs.h. */
2890$4
2891int
2892main ()
2893{
2894static int test_array [1 - 2 * !(($2) >= $ac_mid)];
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_lo=$ac_mid; break
2904else
2905 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2906 if test $ac_mid -le $ac_hi; then
2907 ac_lo= ac_hi=
2908 break
2909 fi
2910 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2911fi
2912rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2913 done
2914else
2915 ac_lo= ac_hi=
2916fi
2917rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2918fi
2919rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2920# Binary search between lo and hi bounds.
2921while test "x$ac_lo" != "x$ac_hi"; do
2922 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2924/* end confdefs.h. */
2925$4
2926int
2927main ()
2928{
2929static int test_array [1 - 2 * !(($2) <= $ac_mid)];
cristy14fefe52012-05-21 00:59:18 +00002930test_array [0] = 0;
2931return test_array [0];
cristy8b350f62009-11-15 23:12:43 +00002932
2933 ;
2934 return 0;
2935}
2936_ACEOF
2937if ac_fn_c_try_compile "$LINENO"; then :
2938 ac_hi=$ac_mid
2939else
2940 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2941fi
2942rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2943done
2944case $ac_lo in #((
2945?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2946'') ac_retval=1 ;;
2947esac
2948 else
2949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2950/* end confdefs.h. */
2951$4
2952static long int longval () { return $2; }
2953static unsigned long int ulongval () { return $2; }
2954#include <stdio.h>
2955#include <stdlib.h>
2956int
2957main ()
2958{
2959
2960 FILE *f = fopen ("conftest.val", "w");
2961 if (! f)
2962 return 1;
2963 if (($2) < 0)
2964 {
2965 long int i = longval ();
2966 if (i != ($2))
2967 return 1;
2968 fprintf (f, "%ld", i);
2969 }
2970 else
2971 {
2972 unsigned long int i = ulongval ();
2973 if (i != ($2))
2974 return 1;
2975 fprintf (f, "%lu", i);
2976 }
2977 /* Do not output a trailing newline, as this causes \r\n confusion
2978 on some platforms. */
2979 return ferror (f) || fclose (f) != 0;
2980
2981 ;
2982 return 0;
2983}
2984_ACEOF
2985if ac_fn_c_try_run "$LINENO"; then :
2986 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2987else
2988 ac_retval=1
2989fi
2990rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2991 conftest.$ac_objext conftest.beam conftest.$ac_ext
2992rm -f conftest.val
2993
2994 fi
cristyda16f162011-02-19 23:52:17 +00002995 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002996 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002997
2998} # ac_fn_c_compute_int
2999
3000# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
3001# ---------------------------------------------------------
3002# Tests whether HEADER exists, giving a warning if it cannot be compiled using
3003# the include files in INCLUDES and setting the cache variable VAR
3004# accordingly.
3005ac_fn_cxx_check_header_mongrel ()
3006{
3007 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00003008 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3010$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003011if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003012 $as_echo_n "(cached) " >&6
3013fi
3014eval ac_res=\$$3
3015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3016$as_echo "$ac_res" >&6; }
3017else
3018 # Is the header compilable?
3019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
3020$as_echo_n "checking $2 usability... " >&6; }
3021cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3022/* end confdefs.h. */
3023$4
3024#include <$2>
3025_ACEOF
3026if ac_fn_cxx_try_compile "$LINENO"; then :
3027 ac_header_compiler=yes
3028else
3029 ac_header_compiler=no
3030fi
3031rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
3033$as_echo "$ac_header_compiler" >&6; }
3034
3035# Is the header present?
3036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
3037$as_echo_n "checking $2 presence... " >&6; }
3038cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3039/* end confdefs.h. */
3040#include <$2>
3041_ACEOF
3042if ac_fn_cxx_try_cpp "$LINENO"; then :
3043 ac_header_preproc=yes
3044else
3045 ac_header_preproc=no
3046fi
cristyda16f162011-02-19 23:52:17 +00003047rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00003048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
3049$as_echo "$ac_header_preproc" >&6; }
3050
3051# So? What about this header?
3052case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
3053 yes:no: )
3054 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
3055$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
3056 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3057$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
3058 ;;
3059 no:yes:* )
3060 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
3061$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
3063$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
3064 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
3065$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
3066 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
3067$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3069$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003070( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00003071## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00003072## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00003073 ) | sed "s/^/$as_me: WARNING: /" >&2
3074 ;;
3075esac
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3077$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003078if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003079 $as_echo_n "(cached) " >&6
3080else
3081 eval "$3=\$ac_header_compiler"
3082fi
3083eval ac_res=\$$3
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3085$as_echo "$ac_res" >&6; }
3086fi
cristyda16f162011-02-19 23:52:17 +00003087 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00003088
3089} # ac_fn_cxx_check_header_mongrel
cristy3ed852e2009-09-05 21:47:34 +00003090cat >config.log <<_ACEOF
3091This file contains any messages produced by compilers while
3092running configure, to aid debugging if configure makes a mistake.
3093
cristy29eb34e2011-10-16 00:46:08 +00003094It was created by ImageMagick $as_me 7.0.0-0, which was
cristy14fefe52012-05-21 00:59:18 +00003095generated by GNU Autoconf 2.69. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +00003096
3097 $ $0 $@
3098
3099_ACEOF
3100exec 5>>config.log
3101{
3102cat <<_ASUNAME
3103## --------- ##
3104## Platform. ##
3105## --------- ##
3106
3107hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3108uname -m = `(uname -m) 2>/dev/null || echo unknown`
3109uname -r = `(uname -r) 2>/dev/null || echo unknown`
3110uname -s = `(uname -s) 2>/dev/null || echo unknown`
3111uname -v = `(uname -v) 2>/dev/null || echo unknown`
3112
3113/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3114/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3115
3116/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3117/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3118/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3119/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3120/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3121/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3122/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3123
3124_ASUNAME
3125
3126as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3127for as_dir in $PATH
3128do
3129 IFS=$as_save_IFS
3130 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003131 $as_echo "PATH: $as_dir"
3132 done
cristy3ed852e2009-09-05 21:47:34 +00003133IFS=$as_save_IFS
3134
3135} >&5
3136
3137cat >&5 <<_ACEOF
3138
3139
3140## ----------- ##
3141## Core tests. ##
3142## ----------- ##
3143
3144_ACEOF
3145
3146
3147# Keep a trace of the command line.
3148# Strip out --no-create and --no-recursion so they do not pile up.
3149# Strip out --silent because we don't want to record it for future runs.
3150# Also quote any args containing shell meta-characters.
3151# Make two passes to allow for proper duplicate-argument suppression.
3152ac_configure_args=
3153ac_configure_args0=
3154ac_configure_args1=
3155ac_must_keep_next=false
3156for ac_pass in 1 2
3157do
3158 for ac_arg
3159 do
3160 case $ac_arg in
3161 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3162 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3163 | -silent | --silent | --silen | --sile | --sil)
3164 continue ;;
3165 *\'*)
3166 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3167 esac
3168 case $ac_pass in
cristy8b350f62009-11-15 23:12:43 +00003169 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003170 2)
cristy8b350f62009-11-15 23:12:43 +00003171 as_fn_append ac_configure_args1 " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003172 if test $ac_must_keep_next = true; then
3173 ac_must_keep_next=false # Got value, back to normal.
3174 else
3175 case $ac_arg in
3176 *=* | --config-cache | -C | -disable-* | --disable-* \
3177 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3178 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3179 | -with-* | --with-* | -without-* | --without-* | --x)
3180 case "$ac_configure_args0 " in
3181 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3182 esac
3183 ;;
3184 -* ) ac_must_keep_next=true ;;
3185 esac
3186 fi
cristy8b350f62009-11-15 23:12:43 +00003187 as_fn_append ac_configure_args " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003188 ;;
3189 esac
3190 done
3191done
cristy8b350f62009-11-15 23:12:43 +00003192{ ac_configure_args0=; unset ac_configure_args0;}
3193{ ac_configure_args1=; unset ac_configure_args1;}
cristy3ed852e2009-09-05 21:47:34 +00003194
3195# When interrupted or exit'd, cleanup temporary files, and complete
3196# config.log. We remove comments because anyway the quotes in there
3197# would cause problems or look ugly.
3198# WARNING: Use '\'' to represent an apostrophe within the trap.
3199# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3200trap 'exit_status=$?
3201 # Save into config.log some information that might help in debugging.
3202 {
3203 echo
3204
cristy98dddb52010-11-04 00:30:15 +00003205 $as_echo "## ---------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003206## Cache variables. ##
cristy98dddb52010-11-04 00:30:15 +00003207## ---------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003208 echo
3209 # The following way of writing the cache mishandles newlines in values,
3210(
3211 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3212 eval ac_val=\$$ac_var
3213 case $ac_val in #(
3214 *${as_nl}*)
3215 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +00003216 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +00003217$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3218 esac
3219 case $ac_var in #(
3220 _ | IFS | as_nl) ;; #(
3221 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +00003222 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +00003223 esac ;;
3224 esac
3225 done
3226 (set) 2>&1 |
3227 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3228 *${as_nl}ac_space=\ *)
3229 sed -n \
3230 "s/'\''/'\''\\\\'\'''\''/g;
3231 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3232 ;; #(
3233 *)
3234 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3235 ;;
3236 esac |
3237 sort
3238)
3239 echo
3240
cristy98dddb52010-11-04 00:30:15 +00003241 $as_echo "## ----------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003242## Output variables. ##
cristy98dddb52010-11-04 00:30:15 +00003243## ----------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003244 echo
3245 for ac_var in $ac_subst_vars
3246 do
3247 eval ac_val=\$$ac_var
3248 case $ac_val in
3249 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3250 esac
3251 $as_echo "$ac_var='\''$ac_val'\''"
3252 done | sort
3253 echo
3254
3255 if test -n "$ac_subst_files"; then
cristy98dddb52010-11-04 00:30:15 +00003256 $as_echo "## ------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003257## File substitutions. ##
cristy98dddb52010-11-04 00:30:15 +00003258## ------------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003259 echo
3260 for ac_var in $ac_subst_files
3261 do
3262 eval ac_val=\$$ac_var
3263 case $ac_val in
3264 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3265 esac
3266 $as_echo "$ac_var='\''$ac_val'\''"
3267 done | sort
3268 echo
3269 fi
3270
3271 if test -s confdefs.h; then
cristy98dddb52010-11-04 00:30:15 +00003272 $as_echo "## ----------- ##
cristy3ed852e2009-09-05 21:47:34 +00003273## confdefs.h. ##
cristy98dddb52010-11-04 00:30:15 +00003274## ----------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003275 echo
3276 cat confdefs.h
3277 echo
3278 fi
3279 test "$ac_signal" != 0 &&
3280 $as_echo "$as_me: caught signal $ac_signal"
3281 $as_echo "$as_me: exit $exit_status"
3282 } >&5
3283 rm -f core *.core core.conftest.* &&
3284 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3285 exit $exit_status
3286' 0
3287for ac_signal in 1 2 13 15; do
cristy8b350f62009-11-15 23:12:43 +00003288 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
cristy3ed852e2009-09-05 21:47:34 +00003289done
3290ac_signal=0
3291
3292# confdefs.h avoids OS command line length limits that DEFS can exceed.
3293rm -f -r conftest* confdefs.h
3294
cristy8b350f62009-11-15 23:12:43 +00003295$as_echo "/* confdefs.h */" > confdefs.h
3296
cristy3ed852e2009-09-05 21:47:34 +00003297# Predefined preprocessor variables.
3298
3299cat >>confdefs.h <<_ACEOF
3300#define PACKAGE_NAME "$PACKAGE_NAME"
3301_ACEOF
3302
cristy3ed852e2009-09-05 21:47:34 +00003303cat >>confdefs.h <<_ACEOF
3304#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3305_ACEOF
3306
cristy3ed852e2009-09-05 21:47:34 +00003307cat >>confdefs.h <<_ACEOF
3308#define PACKAGE_VERSION "$PACKAGE_VERSION"
3309_ACEOF
3310
cristy3ed852e2009-09-05 21:47:34 +00003311cat >>confdefs.h <<_ACEOF
3312#define PACKAGE_STRING "$PACKAGE_STRING"
3313_ACEOF
3314
cristy3ed852e2009-09-05 21:47:34 +00003315cat >>confdefs.h <<_ACEOF
3316#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3317_ACEOF
3318
cristy8b350f62009-11-15 23:12:43 +00003319cat >>confdefs.h <<_ACEOF
3320#define PACKAGE_URL "$PACKAGE_URL"
3321_ACEOF
3322
cristy3ed852e2009-09-05 21:47:34 +00003323
3324# Let the site file select an alternate cache file if it wants to.
3325# Prefer an explicitly selected file to automatically selected ones.
3326ac_site_file1=NONE
3327ac_site_file2=NONE
3328if test -n "$CONFIG_SITE"; then
cristy98dddb52010-11-04 00:30:15 +00003329 # We do not want a PATH search for config.site.
3330 case $CONFIG_SITE in #((
3331 -*) ac_site_file1=./$CONFIG_SITE;;
3332 */*) ac_site_file1=$CONFIG_SITE;;
3333 *) ac_site_file1=./$CONFIG_SITE;;
3334 esac
cristy3ed852e2009-09-05 21:47:34 +00003335elif test "x$prefix" != xNONE; then
3336 ac_site_file1=$prefix/share/config.site
3337 ac_site_file2=$prefix/etc/config.site
3338else
3339 ac_site_file1=$ac_default_prefix/share/config.site
3340 ac_site_file2=$ac_default_prefix/etc/config.site
3341fi
3342for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3343do
3344 test "x$ac_site_file" = xNONE && continue
cristycd4c5312009-11-22 01:19:08 +00003345 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
cristy8b350f62009-11-15 23:12:43 +00003346 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003347$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3348 sed 's/^/| /' "$ac_site_file" >&5
cristy98dddb52010-11-04 00:30:15 +00003349 . "$ac_site_file" \
3350 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3351$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3352as_fn_error $? "failed to load site script $ac_site_file
3353See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00003354 fi
3355done
3356
3357if test -r "$cache_file"; then
cristycd4c5312009-11-22 01:19:08 +00003358 # Some versions of bash will fail to source /dev/null (special files
3359 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3360 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
cristy8b350f62009-11-15 23:12:43 +00003361 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003362$as_echo "$as_me: loading cache $cache_file" >&6;}
3363 case $cache_file in
3364 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3365 *) . "./$cache_file";;
3366 esac
3367 fi
3368else
cristy8b350f62009-11-15 23:12:43 +00003369 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003370$as_echo "$as_me: creating cache $cache_file" >&6;}
3371 >$cache_file
3372fi
3373
cristycd4c5312009-11-22 01:19:08 +00003374as_fn_append ac_header_list " stdlib.h"
3375as_fn_append ac_header_list " unistd.h"
3376as_fn_append ac_header_list " sys/param.h"
cristy3ed852e2009-09-05 21:47:34 +00003377# Check that the precious variables saved in the cache have kept the same
3378# value.
3379ac_cache_corrupted=false
3380for ac_var in $ac_precious_vars; do
3381 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3382 eval ac_new_set=\$ac_env_${ac_var}_set
3383 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3384 eval ac_new_val=\$ac_env_${ac_var}_value
3385 case $ac_old_set,$ac_new_set in
3386 set,)
cristy8b350f62009-11-15 23:12:43 +00003387 { $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 +00003388$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3389 ac_cache_corrupted=: ;;
3390 ,set)
cristy8b350f62009-11-15 23:12:43 +00003391 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
cristy3ed852e2009-09-05 21:47:34 +00003392$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3393 ac_cache_corrupted=: ;;
3394 ,);;
3395 *)
3396 if test "x$ac_old_val" != "x$ac_new_val"; then
3397 # differences in whitespace do not lead to failure.
3398 ac_old_val_w=`echo x $ac_old_val`
3399 ac_new_val_w=`echo x $ac_new_val`
3400 if test "$ac_old_val_w" != "$ac_new_val_w"; then
cristy8b350f62009-11-15 23:12:43 +00003401 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
cristy3ed852e2009-09-05 21:47:34 +00003402$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3403 ac_cache_corrupted=:
3404 else
cristy8b350f62009-11-15 23:12:43 +00003405 { $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 +00003406$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3407 eval $ac_var=\$ac_old_val
3408 fi
cristy8b350f62009-11-15 23:12:43 +00003409 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003410$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003411 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003412$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3413 fi;;
3414 esac
3415 # Pass precious variables to config.status.
3416 if test "$ac_new_set" = set; then
3417 case $ac_new_val in
3418 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3419 *) ac_arg=$ac_var=$ac_new_val ;;
3420 esac
3421 case " $ac_configure_args " in
3422 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
cristy8b350f62009-11-15 23:12:43 +00003423 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003424 esac
3425 fi
3426done
3427if $ac_cache_corrupted; then
cristy8b350f62009-11-15 23:12:43 +00003428 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00003429$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003430 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003431$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003432 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003433fi
cristy8b350f62009-11-15 23:12:43 +00003434## -------------------- ##
3435## Main body of script. ##
3436## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003437
3438ac_ext=c
3439ac_cpp='$CPP $CPPFLAGS'
3440ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3441ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3442ac_compiler_gnu=$ac_cv_c_compiler_gnu
3443
3444
3445
3446ac_aux_dir=
3447for ac_dir in config "$srcdir"/config; do
cristy98dddb52010-11-04 00:30:15 +00003448 if test -f "$ac_dir/install-sh"; then
3449 ac_aux_dir=$ac_dir
3450 ac_install_sh="$ac_aux_dir/install-sh -c"
3451 break
3452 elif test -f "$ac_dir/install.sh"; then
3453 ac_aux_dir=$ac_dir
3454 ac_install_sh="$ac_aux_dir/install.sh -c"
3455 break
3456 elif test -f "$ac_dir/shtool"; then
3457 ac_aux_dir=$ac_dir
3458 ac_install_sh="$ac_aux_dir/shtool install -c"
3459 break
3460 fi
cristy3ed852e2009-09-05 21:47:34 +00003461done
3462if test -z "$ac_aux_dir"; then
cristy98dddb52010-11-04 00:30:15 +00003463 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003464fi
3465
3466# These three variables are undocumented and unsupported,
3467# and are intended to be withdrawn in a future Autoconf release.
3468# They can cause serious problems if a builder's source tree is in a directory
3469# whose full name contains unusual characters.
3470ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3471ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3472ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3473
3474
3475
3476
3477ac_config_headers="$ac_config_headers config/config.h"
3478
cristy24fc1fe2010-10-23 21:13:01 +00003479
cristy01ff9f32012-12-01 18:15:29 +00003480ac_config_commands="$ac_config_commands MagickCore/magick-baseconfig.h"
cristy73bd4a52010-10-05 11:24:23 +00003481
cristy2df32802012-09-17 01:15:28 +00003482ac_config_files="$ac_config_files common.shi config/configure.xml config/delegates.xml config/ImageMagick.rdf config/MagickCore.dox config/MagickWand.dox config/Magick++.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 +00003483
3484
3485#
3486# Save initial user-tunable values
3487#
3488USER_LIBS=$LIBS
3489for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
3490 eval isset=\${$var+set}
3491 if test "$isset" = 'set'; then
3492 eval val=$`echo $var`
3493 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
3494 fi
3495done
3496
3497
3498CONFIGURE_ARGS="$0 ${ac_configure_args}"
3499
3500
3501# Source file containing package/library versioning information.
3502. ${srcdir}/version.sh
3503
cristy15a88782010-01-31 23:24:49 +00003504echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
cristy3ed852e2009-09-05 21:47:34 +00003505# Make sure we can run config.sub.
3506$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
cristy98dddb52010-11-04 00:30:15 +00003507 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003508
cristy8b350f62009-11-15 23:12:43 +00003509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003510$as_echo_n "checking build system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003511if ${ac_cv_build+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003512 $as_echo_n "(cached) " >&6
3513else
3514 ac_build_alias=$build_alias
3515test "x$ac_build_alias" = x &&
3516 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3517test "x$ac_build_alias" = x &&
cristy98dddb52010-11-04 00:30:15 +00003518 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003519ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003520 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003521
3522fi
cristy8b350f62009-11-15 23:12:43 +00003523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003524$as_echo "$ac_cv_build" >&6; }
3525case $ac_cv_build in
3526*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003527*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003528esac
3529build=$ac_cv_build
3530ac_save_IFS=$IFS; IFS='-'
3531set x $ac_cv_build
3532shift
3533build_cpu=$1
3534build_vendor=$2
3535shift; shift
3536# Remember, the first character of IFS is used to create $*,
3537# except with old shells:
3538build_os=$*
3539IFS=$ac_save_IFS
3540case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3541
3542
cristy8b350f62009-11-15 23:12:43 +00003543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003544$as_echo_n "checking host system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003545if ${ac_cv_host+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003546 $as_echo_n "(cached) " >&6
3547else
3548 if test "x$host_alias" = x; then
3549 ac_cv_host=$ac_cv_build
3550else
3551 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003552 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003553fi
3554
3555fi
cristy8b350f62009-11-15 23:12:43 +00003556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
cristy3ed852e2009-09-05 21:47:34 +00003557$as_echo "$ac_cv_host" >&6; }
3558case $ac_cv_host in
3559*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003560*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003561esac
3562host=$ac_cv_host
3563ac_save_IFS=$IFS; IFS='-'
3564set x $ac_cv_host
3565shift
3566host_cpu=$1
3567host_vendor=$2
3568shift; shift
3569# Remember, the first character of IFS is used to create $*,
3570# except with old shells:
3571host_os=$*
3572IFS=$ac_save_IFS
3573case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3574
3575
cristy8b350f62009-11-15 23:12:43 +00003576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003577$as_echo_n "checking target system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003578if ${ac_cv_target+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003579 $as_echo_n "(cached) " >&6
3580else
3581 if test "x$target_alias" = x; then
3582 ac_cv_target=$ac_cv_host
3583else
3584 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003585 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003586fi
3587
3588fi
cristy8b350f62009-11-15 23:12:43 +00003589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
cristy3ed852e2009-09-05 21:47:34 +00003590$as_echo "$ac_cv_target" >&6; }
3591case $ac_cv_target in
3592*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003593*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003594esac
3595target=$ac_cv_target
3596ac_save_IFS=$IFS; IFS='-'
3597set x $ac_cv_target
3598shift
3599target_cpu=$1
3600target_vendor=$2
3601shift; shift
3602# Remember, the first character of IFS is used to create $*,
3603# except with old shells:
3604target_os=$*
3605IFS=$ac_save_IFS
3606case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3607
3608
3609# The aliases save the names the user supplied, while $host etc.
3610# will get canonicalized.
3611test -n "$target_alias" &&
3612 test "$program_prefix$program_suffix$program_transform_name" = \
3613 NONENONEs,x,x, &&
3614 program_prefix=${target_alias}-
3615
cristy837d6dc2010-02-27 01:16:57 +00003616
3617
3618
cristy8be34142012-06-17 14:07:18 +00003619
cristy19615b82011-04-13 20:02:01 +00003620MAGICK_TARGET_CPU=$host_cpu
cristy3225a072010-04-17 01:47:28 +00003621
3622
cristy27d53d62012-07-29 23:30:07 +00003623cat >>confdefs.h <<_ACEOF
3624#define MAGICK_TARGET_CPU $MAGICK_TARGET_CPU
3625_ACEOF
3626
3627
cristy19615b82011-04-13 20:02:01 +00003628MAGICK_TARGET_VENDOR=$host_vendor
cristy3225a072010-04-17 01:47:28 +00003629
3630
cristy27d53d62012-07-29 23:30:07 +00003631cat >>confdefs.h <<_ACEOF
3632#define MAGICK_TARGET_VENDOR $MAGICK_TARGET_VENDOR
3633_ACEOF
3634
3635
cristy19615b82011-04-13 20:02:01 +00003636MAGICK_TARGET_OS=$host_os
cristy3225a072010-04-17 01:47:28 +00003637
3638
cristy27d53d62012-07-29 23:30:07 +00003639cat >>confdefs.h <<_ACEOF
3640#define MAGICK_TARGET_OS $MAGICK_TARGET_OS
3641_ACEOF
3642
3643
cristy3ed852e2009-09-05 21:47:34 +00003644# Substitute library versioning
cristybab87c32010-02-09 20:54:22 +00003645MAGICK_LIBRARY_CURRENT_MIN=`expr $MAGICK_LIBRARY_CURRENT - $MAGICK_LIBRARY_AGE`
3646
3647MAGICK_LIBRARY_VERSION_INFO=$MAGICK_LIBRARY_CURRENT:$MAGICK_LIBRARY_REVISION:$MAGICK_LIBRARY_AGE
3648
cristy371d4812012-12-01 19:48:10 +00003649MAGICK_SVN_REVISION=10062:10076M
cristyd694ca32011-03-27 21:42:54 +00003650
cristy3ed852e2009-09-05 21:47:34 +00003651
3652
3653# Ensure that make can run correctly
cristy73bd4a52010-10-05 11:24:23 +00003654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3655$as_echo_n "checking whether build environment is sane... " >&6; }
cristy73bd4a52010-10-05 11:24:23 +00003656# Reject unsafe characters in $srcdir or the absolute working directory
3657# name. Accept space and tab only in the latter.
3658am_lf='
3659'
3660case `pwd` in
3661 *[\\\"\#\$\&\'\`$am_lf]*)
cristy98dddb52010-11-04 00:30:15 +00003662 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003663esac
3664case $srcdir in
3665 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
cristyc0890a62012-07-19 00:18:20 +00003666 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003667esac
cristy3ed852e2009-09-05 21:47:34 +00003668
cristyc0890a62012-07-19 00:18:20 +00003669# Do 'set' in a subshell so we don't clobber the current shell's
cristy73bd4a52010-10-05 11:24:23 +00003670# arguments. Must try -L first in case configure is actually a
3671# symlink; some systems play weird games with the mod time of symlinks
3672# (eg FreeBSD returns the mod time of the symlink's containing
3673# directory).
3674if (
cristyc0890a62012-07-19 00:18:20 +00003675 am_has_slept=no
3676 for am_try in 1 2; do
3677 echo "timestamp, slept: $am_has_slept" > conftest.file
3678 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3679 if test "$*" = "X"; then
3680 # -L didn't work.
3681 set X `ls -t "$srcdir/configure" conftest.file`
3682 fi
3683 if test "$*" != "X $srcdir/configure conftest.file" \
3684 && test "$*" != "X conftest.file $srcdir/configure"; then
cristy73bd4a52010-10-05 11:24:23 +00003685
cristyc0890a62012-07-19 00:18:20 +00003686 # If neither matched, then we have a broken ls. This can happen
3687 # if, for instance, CONFIG_SHELL is bash and it inherits a
3688 # broken ls alias from the environment. This has actually
3689 # happened. Such a system could not be considered "sane".
3690 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3691 alias in your environment" "$LINENO" 5
3692 fi
3693 if test "$2" = conftest.file || test $am_try -eq 2; then
3694 break
3695 fi
3696 # Just in case.
3697 sleep 1
3698 am_has_slept=yes
3699 done
cristy73bd4a52010-10-05 11:24:23 +00003700 test "$2" = conftest.file
3701 )
3702then
3703 # Ok.
3704 :
3705else
cristy98dddb52010-11-04 00:30:15 +00003706 as_fn_error $? "newly created file is older than distributed files!
cristy73bd4a52010-10-05 11:24:23 +00003707Check your system clock" "$LINENO" 5
3708fi
3709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3710$as_echo "yes" >&6; }
cristyc0890a62012-07-19 00:18:20 +00003711# If we didn't sleep, we still need to ensure time stamps of config.status and
3712# generated files are strictly newer.
3713am_sleep_pid=
3714if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3715 ( sleep 1 ) &
3716 am_sleep_pid=$!
3717fi
cristy73bd4a52010-10-05 11:24:23 +00003718
cristyc0890a62012-07-19 00:18:20 +00003719rm -f conftest.file
3720
3721
3722am__api_version='1.12'
cristy73bd4a52010-10-05 11:24:23 +00003723
3724# Find a good install program. We prefer a C program (faster),
3725# so one script is as good as another. But avoid the broken or
3726# incompatible versions:
3727# SysV /etc/install, /usr/sbin/install
3728# SunOS /usr/etc/install
3729# IRIX /sbin/install
3730# AIX /bin/install
3731# AmigaOS /C/install, which installs bootblocks on floppy discs
3732# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3733# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3734# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3735# OS/2's system install, which has a completely different semantic
3736# ./install, which can be erroneously created by make from ./install.sh.
3737# Reject install programs that cannot install multiple files.
3738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3739$as_echo_n "checking for a BSD-compatible install... " >&6; }
3740if test -z "$INSTALL"; then
cristyda16f162011-02-19 23:52:17 +00003741if ${ac_cv_path_install+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003742 $as_echo_n "(cached) " >&6
3743else
3744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3745for as_dir in $PATH
3746do
3747 IFS=$as_save_IFS
3748 test -z "$as_dir" && as_dir=.
3749 # Account for people who put trailing slashes in PATH elements.
3750case $as_dir/ in #((
3751 ./ | .// | /[cC]/* | \
3752 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3753 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3754 /usr/ucb/* ) ;;
3755 *)
3756 # OSF1 and SCO ODT 3.0 have their own names for install.
3757 # Don't use installbsd from OSF since it installs stuff as root
3758 # by default.
3759 for ac_prog in ginstall scoinst install; do
3760 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003761 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003762 if test $ac_prog = install &&
3763 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3764 # AIX install. It has an incompatible calling convention.
3765 :
3766 elif test $ac_prog = install &&
3767 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3768 # program-specific install script used by HP pwplus--don't use.
3769 :
3770 else
3771 rm -rf conftest.one conftest.two conftest.dir
3772 echo one > conftest.one
3773 echo two > conftest.two
3774 mkdir conftest.dir
3775 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3776 test -s conftest.one && test -s conftest.two &&
3777 test -s conftest.dir/conftest.one &&
3778 test -s conftest.dir/conftest.two
3779 then
3780 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3781 break 3
3782 fi
3783 fi
3784 fi
3785 done
3786 done
3787 ;;
3788esac
3789
3790 done
3791IFS=$as_save_IFS
3792
3793rm -rf conftest.one conftest.two conftest.dir
3794
3795fi
3796 if test "${ac_cv_path_install+set}" = set; then
3797 INSTALL=$ac_cv_path_install
3798 else
3799 # As a last resort, use the slow shell script. Don't cache a
3800 # value for INSTALL within a source directory, because that will
3801 # break other packages using the cache if that directory is
3802 # removed, or if the value is a relative name.
3803 INSTALL=$ac_install_sh
3804 fi
3805fi
3806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3807$as_echo "$INSTALL" >&6; }
3808
3809# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3810# It thinks the first close brace ends the variable substitution.
3811test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3812
3813test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3814
3815test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3816
3817test "$program_prefix" != NONE &&
3818 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3819# Use a double $ so make ignores it.
3820test "$program_suffix" != NONE &&
3821 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3822# Double any \ or $.
3823# By default was `s,x,x', remove it if useless.
3824ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3825program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3826
3827# expand $ac_aux_dir to an absolute path
3828am_aux_dir=`cd $ac_aux_dir && pwd`
3829
3830if test x"${MISSING+set}" != xset; then
3831 case $am_aux_dir in
3832 *\ * | *\ *)
3833 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3834 *)
3835 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3836 esac
3837fi
3838# Use eval to expand $SHELL
3839if eval "$MISSING --run true"; then
3840 am_missing_run="$MISSING --run "
3841else
3842 am_missing_run=
cristyc0890a62012-07-19 00:18:20 +00003843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3844$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
cristy73bd4a52010-10-05 11:24:23 +00003845fi
3846
3847if test x"${install_sh}" != xset; then
3848 case $am_aux_dir in
3849 *\ * | *\ *)
3850 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3851 *)
3852 install_sh="\${SHELL} $am_aux_dir/install-sh"
3853 esac
3854fi
3855
cristyc0890a62012-07-19 00:18:20 +00003856# Installed binaries are usually stripped using 'strip' when the user
3857# run "make install-strip". However 'strip' might not be the right
cristy73bd4a52010-10-05 11:24:23 +00003858# tool to use in cross-compilation environments, therefore Automake
cristyc0890a62012-07-19 00:18:20 +00003859# will honor the 'STRIP' environment variable to overrule this program.
cristy73bd4a52010-10-05 11:24:23 +00003860if test "$cross_compiling" != no; then
3861 if test -n "$ac_tool_prefix"; then
3862 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3863set dummy ${ac_tool_prefix}strip; ac_word=$2
3864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3865$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003866if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003867 $as_echo_n "(cached) " >&6
3868else
3869 if test -n "$STRIP"; then
3870 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3871else
3872as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3873for as_dir in $PATH
3874do
3875 IFS=$as_save_IFS
3876 test -z "$as_dir" && as_dir=.
3877 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003878 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003879 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3881 break 2
3882 fi
3883done
3884 done
3885IFS=$as_save_IFS
3886
3887fi
3888fi
3889STRIP=$ac_cv_prog_STRIP
3890if test -n "$STRIP"; then
3891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3892$as_echo "$STRIP" >&6; }
3893else
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3895$as_echo "no" >&6; }
3896fi
3897
3898
3899fi
3900if test -z "$ac_cv_prog_STRIP"; then
3901 ac_ct_STRIP=$STRIP
3902 # Extract the first word of "strip", so it can be a program name with args.
3903set dummy strip; ac_word=$2
3904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3905$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003906if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003907 $as_echo_n "(cached) " >&6
3908else
3909 if test -n "$ac_ct_STRIP"; then
3910 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3911else
3912as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3913for as_dir in $PATH
3914do
3915 IFS=$as_save_IFS
3916 test -z "$as_dir" && as_dir=.
3917 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003918 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003919 ac_cv_prog_ac_ct_STRIP="strip"
3920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3921 break 2
3922 fi
3923done
3924 done
3925IFS=$as_save_IFS
3926
3927fi
3928fi
3929ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3930if test -n "$ac_ct_STRIP"; then
3931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3932$as_echo "$ac_ct_STRIP" >&6; }
3933else
3934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3935$as_echo "no" >&6; }
3936fi
3937
3938 if test "x$ac_ct_STRIP" = x; then
3939 STRIP=":"
3940 else
3941 case $cross_compiling:$ac_tool_warned in
3942yes:)
3943{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3944$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3945ac_tool_warned=yes ;;
3946esac
3947 STRIP=$ac_ct_STRIP
3948 fi
3949else
3950 STRIP="$ac_cv_prog_STRIP"
3951fi
3952
3953fi
3954INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3955
3956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3957$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3958if test -z "$MKDIR_P"; then
cristyda16f162011-02-19 23:52:17 +00003959 if ${ac_cv_path_mkdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003960 $as_echo_n "(cached) " >&6
3961else
3962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3963for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3964do
3965 IFS=$as_save_IFS
3966 test -z "$as_dir" && as_dir=.
3967 for ac_prog in mkdir gmkdir; do
3968 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003969 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
cristy73bd4a52010-10-05 11:24:23 +00003970 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3971 'mkdir (GNU coreutils) '* | \
3972 'mkdir (coreutils) '* | \
3973 'mkdir (fileutils) '4.1*)
3974 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3975 break 3;;
3976 esac
3977 done
3978 done
3979 done
3980IFS=$as_save_IFS
3981
3982fi
3983
3984 test -d ./--version && rmdir ./--version
3985 if test "${ac_cv_path_mkdir+set}" = set; then
3986 MKDIR_P="$ac_cv_path_mkdir -p"
3987 else
3988 # As a last resort, use the slow shell script. Don't cache a
3989 # value for MKDIR_P within a source directory, because that will
3990 # break other packages using the cache if that directory is
3991 # removed, or if the value is a relative name.
3992 MKDIR_P="$ac_install_sh -d"
3993 fi
3994fi
3995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3996$as_echo "$MKDIR_P" >&6; }
3997
cristy73bd4a52010-10-05 11:24:23 +00003998for ac_prog in gawk mawk nawk awk
3999do
4000 # Extract the first word of "$ac_prog", so it can be a program name with args.
4001set dummy $ac_prog; ac_word=$2
4002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4003$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004004if ${ac_cv_prog_AWK+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004005 $as_echo_n "(cached) " >&6
4006else
4007 if test -n "$AWK"; then
4008 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4009else
4010as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4011for as_dir in $PATH
4012do
4013 IFS=$as_save_IFS
4014 test -z "$as_dir" && as_dir=.
4015 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004016 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00004017 ac_cv_prog_AWK="$ac_prog"
4018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4019 break 2
4020 fi
4021done
4022 done
4023IFS=$as_save_IFS
4024
4025fi
4026fi
4027AWK=$ac_cv_prog_AWK
4028if test -n "$AWK"; then
4029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4030$as_echo "$AWK" >&6; }
4031else
4032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4033$as_echo "no" >&6; }
4034fi
4035
4036
4037 test -n "$AWK" && break
4038done
4039
4040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4041$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4042set x ${MAKE-make}
4043ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00004044if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004045 $as_echo_n "(cached) " >&6
4046else
4047 cat >conftest.make <<\_ACEOF
4048SHELL = /bin/sh
4049all:
4050 @echo '@@@%%%=$(MAKE)=@@@%%%'
4051_ACEOF
cristy98dddb52010-11-04 00:30:15 +00004052# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristy73bd4a52010-10-05 11:24:23 +00004053case `${MAKE-make} -f conftest.make 2>/dev/null` in
4054 *@@@%%%=?*=@@@%%%*)
4055 eval ac_cv_prog_make_${ac_make}_set=yes;;
4056 *)
4057 eval ac_cv_prog_make_${ac_make}_set=no;;
4058esac
4059rm -f conftest.make
4060fi
4061if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4063$as_echo "yes" >&6; }
4064 SET_MAKE=
4065else
4066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4067$as_echo "no" >&6; }
4068 SET_MAKE="MAKE=${MAKE-make}"
4069fi
4070
4071rm -rf .tst 2>/dev/null
4072mkdir .tst 2>/dev/null
4073if test -d .tst; then
4074 am__leading_dot=.
4075else
4076 am__leading_dot=_
4077fi
4078rmdir .tst 2>/dev/null
4079
cristya448bd22011-10-14 12:38:13 +00004080# Check whether --enable-silent-rules was given.
4081if test "${enable_silent_rules+set}" = set; then :
4082 enableval=$enable_silent_rules;
4083fi
4084
cristyc0890a62012-07-19 00:18:20 +00004085case $enable_silent_rules in # (((
4086 yes) AM_DEFAULT_VERBOSITY=0;;
4087 no) AM_DEFAULT_VERBOSITY=1;;
4088 *) AM_DEFAULT_VERBOSITY=1;;
cristya448bd22011-10-14 12:38:13 +00004089esac
cristyc3fb77b2012-02-06 01:49:41 +00004090am_make=${MAKE-make}
4091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4092$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4093if ${am_cv_make_support_nested_variables+:} false; then :
4094 $as_echo_n "(cached) " >&6
4095else
4096 if $as_echo 'TRUE=$(BAR$(V))
4097BAR0=false
4098BAR1=true
4099V=1
4100am__doit:
4101 @$(TRUE)
4102.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4103 am_cv_make_support_nested_variables=yes
4104else
4105 am_cv_make_support_nested_variables=no
4106fi
4107fi
4108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4109$as_echo "$am_cv_make_support_nested_variables" >&6; }
4110if test $am_cv_make_support_nested_variables = yes; then
4111 AM_V='$(V)'
4112 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4113else
4114 AM_V=$AM_DEFAULT_VERBOSITY
4115 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4116fi
cristya448bd22011-10-14 12:38:13 +00004117AM_BACKSLASH='\'
4118
cristy73bd4a52010-10-05 11:24:23 +00004119if test "`cd $srcdir && pwd`" != "`pwd`"; then
4120 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4121 # is not polluted with repeated "-I."
4122 am__isrc=' -I$(srcdir)'
4123 # test to see if srcdir already configured
4124 if test -f $srcdir/config.status; then
cristy98dddb52010-11-04 00:30:15 +00004125 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00004126 fi
4127fi
4128
4129# test whether we have cygpath
4130if test -z "$CYGPATH_W"; then
4131 if (cygpath --version) >/dev/null 2>/dev/null; then
4132 CYGPATH_W='cygpath -w'
4133 else
4134 CYGPATH_W=echo
4135 fi
4136fi
4137
4138
4139# Define the identity of the package.
cristy09b53e12011-10-14 12:47:22 +00004140 PACKAGE='ImageMagick'
cristy29eb34e2011-10-16 00:46:08 +00004141 VERSION='7.0.0-0'
cristy73bd4a52010-10-05 11:24:23 +00004142
4143
cristya448bd22011-10-14 12:38:13 +00004144cat >>confdefs.h <<_ACEOF
4145#define PACKAGE "$PACKAGE"
4146_ACEOF
4147
4148
4149cat >>confdefs.h <<_ACEOF
4150#define VERSION "$VERSION"
4151_ACEOF
4152
cristy73bd4a52010-10-05 11:24:23 +00004153# Some tools Automake needs.
4154
4155ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4156
4157
4158AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4159
4160
4161AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4162
4163
4164AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4165
4166
4167MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4168
cristyc0890a62012-07-19 00:18:20 +00004169# For better backward compatibility. To be removed once Automake 1.9.x
4170# dies out for good. For more background, see:
4171# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4172# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4173mkdir_p='$(MKDIR_P)'
4174
cristy73bd4a52010-10-05 11:24:23 +00004175# We need awk for the "check" target. The system "awk" is bad on
4176# some platforms.
cristyc3fb77b2012-02-06 01:49:41 +00004177# Always define AMTAR for backward compatibility. Yes, it's still used
4178# in the wild :-( We should find a proper way to deprecate it ...
4179AMTAR='$${TAR-tar}'
cristy73bd4a52010-10-05 11:24:23 +00004180
cristyc3fb77b2012-02-06 01:49:41 +00004181am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
cristy73bd4a52010-10-05 11:24:23 +00004182
4183
4184
4185
4186
cristy3ed852e2009-09-05 21:47:34 +00004187
4188# Enable support for silent build rules
cristy73bd4a52010-10-05 11:24:23 +00004189# Check whether --enable-silent-rules was given.
4190if test "${enable_silent_rules+set}" = set; then :
4191 enableval=$enable_silent_rules;
4192fi
4193
cristyc0890a62012-07-19 00:18:20 +00004194case $enable_silent_rules in # (((
4195 yes) AM_DEFAULT_VERBOSITY=0;;
4196 no) AM_DEFAULT_VERBOSITY=1;;
4197 *) AM_DEFAULT_VERBOSITY=0;;
cristy73bd4a52010-10-05 11:24:23 +00004198esac
cristyc3fb77b2012-02-06 01:49:41 +00004199am_make=${MAKE-make}
4200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4201$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4202if ${am_cv_make_support_nested_variables+:} false; then :
4203 $as_echo_n "(cached) " >&6
4204else
4205 if $as_echo 'TRUE=$(BAR$(V))
4206BAR0=false
4207BAR1=true
4208V=1
4209am__doit:
4210 @$(TRUE)
4211.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4212 am_cv_make_support_nested_variables=yes
4213else
4214 am_cv_make_support_nested_variables=no
4215fi
4216fi
4217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4218$as_echo "$am_cv_make_support_nested_variables" >&6; }
4219if test $am_cv_make_support_nested_variables = yes; then
4220 AM_V='$(V)'
4221 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4222else
4223 AM_V=$AM_DEFAULT_VERBOSITY
4224 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4225fi
cristy73bd4a52010-10-05 11:24:23 +00004226AM_BACKSLASH='\'
4227
cristy3ed852e2009-09-05 21:47:34 +00004228
4229MAGICK_LIB_VERSION="0x"
4230if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
4231 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4232fi
4233MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
4234if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
4235 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4236fi
4237MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
4238if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
4239 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4240fi
4241MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
4242
4243
4244# Definition used to define MagickLibVersionText in version.h
4245MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
4246
4247
4248# Definition used to define MagickLibVersionNumber in version.h
4249MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
4250
4251
4252# Regenerate config.status if ChangeLog or version.sh is updated.
4253CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
4254
4255
4256PERLMAINCC=$CC
4257
4258MAGICK_CFLAGS=''
4259MAGICK_CPPFLAGS=$CPPFLAGS_USER
4260MAGICK_PCFLAGS=$CPPFLAGS_USER
4261MAGICK_LDFLAGS=''
4262MAGICK_LIBS=''
cristyfd9dcd42010-08-08 18:07:02 +00004263MAGICK_FEATURES=''
cristy3ed852e2009-09-05 21:47:34 +00004264
4265#
4266# Evaluate shell variable equivalents to Makefile directory variables
4267#
4268if test "x$prefix" = xNONE; then
4269 prefix=$ac_default_prefix
4270fi
4271# Let make expand exec_prefix.
4272if test "x$exec_prefix" = xNONE; then
4273 exec_prefix='${prefix}'
4274fi
4275
4276#
4277eval "eval PREFIX_DIR=${prefix}"
4278
4279eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
4280
4281eval "eval BIN_DIR=$bindir"
4282
4283eval "eval SBIN_DIR=$sbindir"
4284
4285eval "eval LIBEXEC_DIR=$libexecdir"
4286
4287eval "eval DATA_DIR=$datadir"
4288
cristy4e65ec22012-04-08 01:33:27 +00004289eval "eval DOC_DIR=$datadir/doc"
cristyd55889c2011-03-27 00:50:24 +00004290
cristy3ed852e2009-09-05 21:47:34 +00004291eval "eval SYSCONF_DIR=$sysconfdir"
4292
4293eval "eval SHAREDSTATE_DIR=$sharedstatedir"
4294
4295eval "eval LOCALSTATE_DIR=$localstatedir"
4296
4297eval "eval LIB_DIR=$libdir"
4298
4299eval "eval INCLUDE_DIR=$includedir"
4300
4301eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
4302
4303eval "eval INFO_DIR=$infodir"
4304
4305eval "eval MAN_DIR=$mandir"
4306
4307
4308# Get full paths to source and build directories
4309srcdirfull="`cd $srcdir && pwd`"
4310builddir="`pwd`"
4311
4312#
4313# Compute variables useful for running uninstalled software.
4314#
4315MAGICK_CODER_MODULE_PATH="${builddir}/coders"
4316MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
4317MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
4318MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
4319DIRSEP=':'
4320case "${build_os}" in
4321 mingw* )
4322 MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
4323 MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
4324 MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
4325 MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
4326 DIRSEP=';'
4327 ;;
4328esac
4329case "${host_os}" in
4330 mingw* )
4331 DIRSEP=';'
4332 ;;
4333esac
4334
4335
4336
4337
4338
4339
cristya0b81c32010-01-22 02:54:33 +00004340
4341#
4342# Enable OS features.
4343#
cristy73bd4a52010-10-05 11:24:23 +00004344DEPDIR="${am__leading_dot}deps"
4345
4346ac_config_commands="$ac_config_commands depfiles"
4347
4348
4349am_make=${MAKE-make}
4350cat > confinc << 'END'
4351am__doit:
4352 @echo this is the am__doit target
4353.PHONY: am__doit
4354END
4355# If we don't find an include directive, just comment out the code.
4356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4357$as_echo_n "checking for style of include used by $am_make... " >&6; }
4358am__include="#"
4359am__quote=
4360_am_result=none
4361# First try GNU make style include.
4362echo "include confinc" > confmf
cristyc0890a62012-07-19 00:18:20 +00004363# Ignore all kinds of additional output from 'make'.
cristy73bd4a52010-10-05 11:24:23 +00004364case `$am_make -s -f confmf 2> /dev/null` in #(
4365*the\ am__doit\ target*)
4366 am__include=include
4367 am__quote=
4368 _am_result=GNU
4369 ;;
4370esac
4371# Now try BSD make style include.
4372if test "$am__include" = "#"; then
4373 echo '.include "confinc"' > confmf
4374 case `$am_make -s -f confmf 2> /dev/null` in #(
4375 *the\ am__doit\ target*)
4376 am__include=.include
4377 am__quote="\""
4378 _am_result=BSD
4379 ;;
4380 esac
4381fi
4382
4383
4384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4385$as_echo "$_am_result" >&6; }
4386rm -f confinc confmf
4387
4388# Check whether --enable-dependency-tracking was given.
4389if test "${enable_dependency_tracking+set}" = set; then :
4390 enableval=$enable_dependency_tracking;
4391fi
4392
4393if test "x$enable_dependency_tracking" != xno; then
4394 am_depcomp="$ac_aux_dir/depcomp"
4395 AMDEPBACKSLASH='\'
cristy7247bba2012-02-05 16:37:27 +00004396 am__nodep='_no'
cristy73bd4a52010-10-05 11:24:23 +00004397fi
4398 if test "x$enable_dependency_tracking" != xno; then
4399 AMDEP_TRUE=
4400 AMDEP_FALSE='#'
4401else
4402 AMDEP_TRUE='#'
4403 AMDEP_FALSE=
4404fi
4405
4406
cristy3ed852e2009-09-05 21:47:34 +00004407ac_ext=c
4408ac_cpp='$CPP $CPPFLAGS'
4409ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4410ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4411ac_compiler_gnu=$ac_cv_c_compiler_gnu
4412if test -n "$ac_tool_prefix"; then
4413 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4414set dummy ${ac_tool_prefix}gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004416$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004417if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004418 $as_echo_n "(cached) " >&6
4419else
4420 if test -n "$CC"; then
4421 ac_cv_prog_CC="$CC" # Let the user override the test.
4422else
4423as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4424for as_dir in $PATH
4425do
4426 IFS=$as_save_IFS
4427 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004428 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004429 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004430 ac_cv_prog_CC="${ac_tool_prefix}gcc"
cristy8b350f62009-11-15 23:12:43 +00004431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004432 break 2
4433 fi
4434done
cristy8b350f62009-11-15 23:12:43 +00004435 done
cristy3ed852e2009-09-05 21:47:34 +00004436IFS=$as_save_IFS
4437
4438fi
4439fi
4440CC=$ac_cv_prog_CC
4441if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004443$as_echo "$CC" >&6; }
4444else
cristy8b350f62009-11-15 23:12:43 +00004445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004446$as_echo "no" >&6; }
4447fi
4448
4449
4450fi
4451if test -z "$ac_cv_prog_CC"; then
4452 ac_ct_CC=$CC
4453 # Extract the first word of "gcc", so it can be a program name with args.
4454set dummy gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004456$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004457if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004458 $as_echo_n "(cached) " >&6
4459else
4460 if test -n "$ac_ct_CC"; then
4461 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4462else
4463as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4464for as_dir in $PATH
4465do
4466 IFS=$as_save_IFS
4467 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004468 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004469 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004470 ac_cv_prog_ac_ct_CC="gcc"
cristy8b350f62009-11-15 23:12:43 +00004471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004472 break 2
4473 fi
4474done
cristy8b350f62009-11-15 23:12:43 +00004475 done
cristy3ed852e2009-09-05 21:47:34 +00004476IFS=$as_save_IFS
4477
4478fi
4479fi
4480ac_ct_CC=$ac_cv_prog_ac_ct_CC
4481if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004483$as_echo "$ac_ct_CC" >&6; }
4484else
cristy8b350f62009-11-15 23:12:43 +00004485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004486$as_echo "no" >&6; }
4487fi
4488
4489 if test "x$ac_ct_CC" = x; then
4490 CC=""
4491 else
4492 case $cross_compiling:$ac_tool_warned in
4493yes:)
cristy8b350f62009-11-15 23:12:43 +00004494{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004495$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4496ac_tool_warned=yes ;;
4497esac
4498 CC=$ac_ct_CC
4499 fi
4500else
4501 CC="$ac_cv_prog_CC"
4502fi
4503
4504if test -z "$CC"; then
4505 if test -n "$ac_tool_prefix"; then
4506 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4507set dummy ${ac_tool_prefix}cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004509$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004510if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004511 $as_echo_n "(cached) " >&6
4512else
4513 if test -n "$CC"; then
4514 ac_cv_prog_CC="$CC" # Let the user override the test.
4515else
4516as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4517for as_dir in $PATH
4518do
4519 IFS=$as_save_IFS
4520 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004521 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004522 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004523 ac_cv_prog_CC="${ac_tool_prefix}cc"
cristy8b350f62009-11-15 23:12:43 +00004524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004525 break 2
4526 fi
4527done
cristy8b350f62009-11-15 23:12:43 +00004528 done
cristy3ed852e2009-09-05 21:47:34 +00004529IFS=$as_save_IFS
4530
4531fi
4532fi
4533CC=$ac_cv_prog_CC
4534if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004536$as_echo "$CC" >&6; }
4537else
cristy8b350f62009-11-15 23:12:43 +00004538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004539$as_echo "no" >&6; }
4540fi
4541
4542
4543 fi
4544fi
4545if test -z "$CC"; then
4546 # Extract the first word of "cc", so it can be a program name with args.
4547set dummy cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004549$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004550if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004551 $as_echo_n "(cached) " >&6
4552else
4553 if test -n "$CC"; then
4554 ac_cv_prog_CC="$CC" # Let the user override the test.
4555else
4556 ac_prog_rejected=no
4557as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4558for as_dir in $PATH
4559do
4560 IFS=$as_save_IFS
4561 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004562 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004563 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004564 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4565 ac_prog_rejected=yes
4566 continue
4567 fi
4568 ac_cv_prog_CC="cc"
cristy8b350f62009-11-15 23:12:43 +00004569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004570 break 2
4571 fi
4572done
cristy8b350f62009-11-15 23:12:43 +00004573 done
cristy3ed852e2009-09-05 21:47:34 +00004574IFS=$as_save_IFS
4575
4576if test $ac_prog_rejected = yes; then
4577 # We found a bogon in the path, so make sure we never use it.
4578 set dummy $ac_cv_prog_CC
4579 shift
4580 if test $# != 0; then
4581 # We chose a different compiler from the bogus one.
4582 # However, it has the same basename, so the bogon will be chosen
4583 # first if we set CC to just the basename; use the full file name.
4584 shift
4585 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4586 fi
4587fi
4588fi
4589fi
4590CC=$ac_cv_prog_CC
4591if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004593$as_echo "$CC" >&6; }
4594else
cristy8b350f62009-11-15 23:12:43 +00004595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004596$as_echo "no" >&6; }
4597fi
4598
4599
4600fi
4601if test -z "$CC"; then
4602 if test -n "$ac_tool_prefix"; then
4603 for ac_prog in cl.exe
4604 do
4605 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4606set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004608$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004609if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004610 $as_echo_n "(cached) " >&6
4611else
4612 if test -n "$CC"; then
4613 ac_cv_prog_CC="$CC" # Let the user override the test.
4614else
4615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4616for as_dir in $PATH
4617do
4618 IFS=$as_save_IFS
4619 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004620 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004621 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004622 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004624 break 2
4625 fi
4626done
cristy8b350f62009-11-15 23:12:43 +00004627 done
cristy3ed852e2009-09-05 21:47:34 +00004628IFS=$as_save_IFS
4629
4630fi
4631fi
4632CC=$ac_cv_prog_CC
4633if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004635$as_echo "$CC" >&6; }
4636else
cristy8b350f62009-11-15 23:12:43 +00004637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004638$as_echo "no" >&6; }
4639fi
4640
4641
4642 test -n "$CC" && break
4643 done
4644fi
4645if test -z "$CC"; then
4646 ac_ct_CC=$CC
4647 for ac_prog in cl.exe
4648do
4649 # Extract the first word of "$ac_prog", so it can be a program name with args.
4650set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004652$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004653if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004654 $as_echo_n "(cached) " >&6
4655else
4656 if test -n "$ac_ct_CC"; then
4657 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4658else
4659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4660for as_dir in $PATH
4661do
4662 IFS=$as_save_IFS
4663 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004664 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004665 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004666 ac_cv_prog_ac_ct_CC="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004668 break 2
4669 fi
4670done
cristy8b350f62009-11-15 23:12:43 +00004671 done
cristy3ed852e2009-09-05 21:47:34 +00004672IFS=$as_save_IFS
4673
4674fi
4675fi
4676ac_ct_CC=$ac_cv_prog_ac_ct_CC
4677if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004679$as_echo "$ac_ct_CC" >&6; }
4680else
cristy8b350f62009-11-15 23:12:43 +00004681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004682$as_echo "no" >&6; }
4683fi
4684
4685
4686 test -n "$ac_ct_CC" && break
4687done
4688
4689 if test "x$ac_ct_CC" = x; then
4690 CC=""
4691 else
4692 case $cross_compiling:$ac_tool_warned in
4693yes:)
cristy8b350f62009-11-15 23:12:43 +00004694{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004695$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4696ac_tool_warned=yes ;;
4697esac
4698 CC=$ac_ct_CC
4699 fi
4700fi
4701
4702fi
4703
4704
cristy8b350f62009-11-15 23:12:43 +00004705test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004706$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004707as_fn_error $? "no acceptable C compiler found in \$PATH
4708See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004709
4710# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +00004711$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +00004712set X $ac_compile
4713ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +00004714for ac_option in --version -v -V -qversion; do
4715 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +00004716case "(($ac_try" in
4717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4718 *) ac_try_echo=$ac_try;;
4719esac
cristy8b350f62009-11-15 23:12:43 +00004720eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4721$as_echo "$ac_try_echo"; } >&5
4722 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +00004723 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004724 if test -s conftest.err; then
4725 sed '10a\
4726... rest of stderr output deleted ...
4727 10q' conftest.err >conftest.er1
4728 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +00004729 fi
cristycd4c5312009-11-22 01:19:08 +00004730 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +00004731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4732 test $ac_status = 0; }
4733done
cristy3ed852e2009-09-05 21:47:34 +00004734
cristy8b350f62009-11-15 23:12:43 +00004735cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004736/* end confdefs.h. */
cristycd4c5312009-11-22 01:19:08 +00004737
cristy3ed852e2009-09-05 21:47:34 +00004738int
4739main ()
4740{
4741
4742 ;
4743 return 0;
4744}
4745_ACEOF
4746ac_clean_files_save=$ac_clean_files
cristycd4c5312009-11-22 01:19:08 +00004747ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
cristy3ed852e2009-09-05 21:47:34 +00004748# Try to create an executable without -o first, disregard a.out.
4749# It will help us diagnose broken compilers, and finding out an intuition
4750# of exeext.
cristycd4c5312009-11-22 01:19:08 +00004751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4752$as_echo_n "checking whether the C compiler works... " >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004753ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4754
4755# The possible output files:
4756ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4757
4758ac_rmfiles=
4759for ac_file in $ac_files
4760do
4761 case $ac_file in
4762 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4763 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4764 esac
4765done
4766rm -f $ac_rmfiles
4767
cristy8b350f62009-11-15 23:12:43 +00004768if { { ac_try="$ac_link_default"
cristy3ed852e2009-09-05 21:47:34 +00004769case "(($ac_try" in
4770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4771 *) ac_try_echo=$ac_try;;
4772esac
cristy8b350f62009-11-15 23:12:43 +00004773eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4774$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004775 (eval "$ac_link_default") 2>&5
4776 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4778 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004779 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4780# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4781# in a Makefile. We should not override ac_cv_exeext if it was cached,
4782# so that the user can short-circuit this test for compilers unknown to
4783# Autoconf.
4784for ac_file in $ac_files ''
4785do
4786 test -f "$ac_file" || continue
4787 case $ac_file in
4788 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4789 ;;
4790 [ab].out )
4791 # We found the default executable, but exeext='' is most
4792 # certainly right.
4793 break;;
4794 *.* )
cristy8b350f62009-11-15 23:12:43 +00004795 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
cristy3ed852e2009-09-05 21:47:34 +00004796 then :; else
4797 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4798 fi
4799 # We set ac_cv_exeext here because the later test for it is not
4800 # safe: cross compilers may not add the suffix if given an `-o'
4801 # argument, so we may need to know it at that point already.
4802 # Even if this section looks crufty: it has the advantage of
4803 # actually working.
4804 break;;
4805 * )
4806 break;;
4807 esac
4808done
4809test "$ac_cv_exeext" = no && ac_cv_exeext=
4810
4811else
4812 ac_file=''
4813fi
cristy8b350f62009-11-15 23:12:43 +00004814if test -z "$ac_file"; then :
cristycd4c5312009-11-22 01:19:08 +00004815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4816$as_echo "no" >&6; }
4817$as_echo "$as_me: failed program was:" >&5
cristy3ed852e2009-09-05 21:47:34 +00004818sed 's/^/| /' conftest.$ac_ext >&5
4819
cristy8b350f62009-11-15 23:12:43 +00004820{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004821$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004822as_fn_error 77 "C compiler cannot create executables
4823See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00004824else
4825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4826$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004827fi
cristycd4c5312009-11-22 01:19:08 +00004828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4829$as_echo_n "checking for C compiler default output file name... " >&6; }
4830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4831$as_echo "$ac_file" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004832ac_exeext=$ac_cv_exeext
4833
cristycd4c5312009-11-22 01:19:08 +00004834rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
cristy3ed852e2009-09-05 21:47:34 +00004835ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
cristy3ed852e2009-09-05 21:47:34 +00004837$as_echo_n "checking for suffix of executables... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004838if { { ac_try="$ac_link"
cristy3ed852e2009-09-05 21:47:34 +00004839case "(($ac_try" in
4840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4841 *) ac_try_echo=$ac_try;;
4842esac
cristy8b350f62009-11-15 23:12:43 +00004843eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4844$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004845 (eval "$ac_link") 2>&5
4846 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004847 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4848 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004849 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4850# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4851# work properly (i.e., refer to `conftest.exe'), while it won't with
4852# `rm'.
4853for ac_file in conftest.exe conftest conftest.*; do
4854 test -f "$ac_file" || continue
4855 case $ac_file in
4856 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4857 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4858 break;;
4859 * ) break;;
4860 esac
4861done
4862else
cristy8b350f62009-11-15 23:12:43 +00004863 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004864$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004865as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4866See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004867fi
cristycd4c5312009-11-22 01:19:08 +00004868rm -f conftest conftest$ac_cv_exeext
cristy8b350f62009-11-15 23:12:43 +00004869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004870$as_echo "$ac_cv_exeext" >&6; }
4871
4872rm -f conftest.$ac_ext
4873EXEEXT=$ac_cv_exeext
4874ac_exeext=$EXEEXT
cristycd4c5312009-11-22 01:19:08 +00004875cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4876/* end confdefs.h. */
4877#include <stdio.h>
4878int
4879main ()
4880{
4881FILE *f = fopen ("conftest.out", "w");
4882 return ferror (f) || fclose (f) != 0;
4883
4884 ;
4885 return 0;
4886}
4887_ACEOF
4888ac_clean_files="$ac_clean_files conftest.out"
4889# Check that the compiler produces executables we can run. If not, either
4890# the compiler is broken, or we cross compile.
4891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4892$as_echo_n "checking whether we are cross compiling... " >&6; }
4893if test "$cross_compiling" != yes; then
4894 { { ac_try="$ac_link"
4895case "(($ac_try" in
4896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4897 *) ac_try_echo=$ac_try;;
4898esac
4899eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4900$as_echo "$ac_try_echo"; } >&5
4901 (eval "$ac_link") 2>&5
4902 ac_status=$?
4903 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4904 test $ac_status = 0; }
4905 if { ac_try='./conftest$ac_cv_exeext'
4906 { { case "(($ac_try" in
4907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4908 *) ac_try_echo=$ac_try;;
4909esac
4910eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4911$as_echo "$ac_try_echo"; } >&5
4912 (eval "$ac_try") 2>&5
4913 ac_status=$?
4914 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4915 test $ac_status = 0; }; }; then
4916 cross_compiling=no
4917 else
4918 if test "$cross_compiling" = maybe; then
4919 cross_compiling=yes
4920 else
4921 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4922$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004923as_fn_error $? "cannot run C compiled programs.
cristycd4c5312009-11-22 01:19:08 +00004924If you meant to cross compile, use \`--host'.
cristy98dddb52010-11-04 00:30:15 +00004925See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00004926 fi
4927 fi
4928fi
4929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4930$as_echo "$cross_compiling" >&6; }
4931
4932rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4933ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00004935$as_echo_n "checking for suffix of object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004936if ${ac_cv_objext+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004937 $as_echo_n "(cached) " >&6
4938else
cristy8b350f62009-11-15 23:12:43 +00004939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004940/* end confdefs.h. */
4941
4942int
4943main ()
4944{
4945
4946 ;
4947 return 0;
4948}
4949_ACEOF
4950rm -f conftest.o conftest.obj
cristy8b350f62009-11-15 23:12:43 +00004951if { { ac_try="$ac_compile"
cristy3ed852e2009-09-05 21:47:34 +00004952case "(($ac_try" in
4953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4954 *) ac_try_echo=$ac_try;;
4955esac
cristy8b350f62009-11-15 23:12:43 +00004956eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4957$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004958 (eval "$ac_compile") 2>&5
4959 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004960 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4961 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004962 for ac_file in conftest.o conftest.obj conftest.*; do
4963 test -f "$ac_file" || continue;
4964 case $ac_file in
4965 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4966 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4967 break;;
4968 esac
4969done
4970else
4971 $as_echo "$as_me: failed program was:" >&5
4972sed 's/^/| /' conftest.$ac_ext >&5
4973
cristy8b350f62009-11-15 23:12:43 +00004974{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004975$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004976as_fn_error $? "cannot compute suffix of object files: cannot compile
4977See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004978fi
cristy3ed852e2009-09-05 21:47:34 +00004979rm -f conftest.$ac_cv_objext conftest.$ac_ext
4980fi
cristy8b350f62009-11-15 23:12:43 +00004981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004982$as_echo "$ac_cv_objext" >&6; }
4983OBJEXT=$ac_cv_objext
4984ac_objext=$OBJEXT
cristy8b350f62009-11-15 23:12:43 +00004985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +00004986$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004987if ${ac_cv_c_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004988 $as_echo_n "(cached) " >&6
4989else
cristy8b350f62009-11-15 23:12:43 +00004990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004991/* end confdefs.h. */
4992
4993int
4994main ()
4995{
4996#ifndef __GNUC__
4997 choke me
4998#endif
4999
5000 ;
5001 return 0;
5002}
5003_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005004if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005005 ac_compiler_gnu=yes
5006else
cristy8b350f62009-11-15 23:12:43 +00005007 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +00005008fi
cristy3ed852e2009-09-05 21:47:34 +00005009rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5010ac_cv_c_compiler_gnu=$ac_compiler_gnu
5011
5012fi
cristy8b350f62009-11-15 23:12:43 +00005013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +00005014$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5015if test $ac_compiler_gnu = yes; then
5016 GCC=yes
5017else
5018 GCC=
5019fi
5020ac_test_CFLAGS=${CFLAGS+set}
5021ac_save_CFLAGS=$CFLAGS
cristy8b350f62009-11-15 23:12:43 +00005022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +00005023$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005024if ${ac_cv_prog_cc_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005025 $as_echo_n "(cached) " >&6
5026else
5027 ac_save_c_werror_flag=$ac_c_werror_flag
5028 ac_c_werror_flag=yes
5029 ac_cv_prog_cc_g=no
5030 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00005031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005032/* end confdefs.h. */
5033
5034int
5035main ()
5036{
5037
5038 ;
5039 return 0;
5040}
5041_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005042if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005043 ac_cv_prog_cc_g=yes
5044else
cristy8b350f62009-11-15 23:12:43 +00005045 CFLAGS=""
5046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005047/* end confdefs.h. */
5048
5049int
5050main ()
5051{
5052
5053 ;
5054 return 0;
5055}
5056_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005057if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005058
cristy8b350f62009-11-15 23:12:43 +00005059else
5060 ac_c_werror_flag=$ac_save_c_werror_flag
cristy3ed852e2009-09-05 21:47:34 +00005061 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00005062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005063/* end confdefs.h. */
5064
5065int
5066main ()
5067{
5068
5069 ;
5070 return 0;
5071}
5072_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005073if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005074 ac_cv_prog_cc_g=yes
cristy3ed852e2009-09-05 21:47:34 +00005075fi
cristy3ed852e2009-09-05 21:47:34 +00005076rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5077fi
cristy3ed852e2009-09-05 21:47:34 +00005078rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5079fi
cristy3ed852e2009-09-05 21:47:34 +00005080rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5081 ac_c_werror_flag=$ac_save_c_werror_flag
5082fi
cristy8b350f62009-11-15 23:12:43 +00005083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
cristy3ed852e2009-09-05 21:47:34 +00005084$as_echo "$ac_cv_prog_cc_g" >&6; }
5085if test "$ac_test_CFLAGS" = set; then
5086 CFLAGS=$ac_save_CFLAGS
5087elif test $ac_cv_prog_cc_g = yes; then
5088 if test "$GCC" = yes; then
5089 CFLAGS="-g -O2"
5090 else
5091 CFLAGS="-g"
5092 fi
5093else
5094 if test "$GCC" = yes; then
5095 CFLAGS="-O2"
5096 else
5097 CFLAGS=
5098 fi
5099fi
cristy8b350f62009-11-15 23:12:43 +00005100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005101$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005102if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005103 $as_echo_n "(cached) " >&6
5104else
5105 ac_cv_prog_cc_c89=no
5106ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00005107cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005108/* end confdefs.h. */
5109#include <stdarg.h>
5110#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00005111struct stat;
cristy3ed852e2009-09-05 21:47:34 +00005112/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5113struct buf { int x; };
5114FILE * (*rcsopen) (struct buf *, struct stat *, int);
5115static char *e (p, i)
5116 char **p;
5117 int i;
5118{
5119 return p[i];
5120}
5121static char *f (char * (*g) (char **, int), char **p, ...)
5122{
5123 char *s;
5124 va_list v;
5125 va_start (v,p);
5126 s = g (p, va_arg (v,int));
5127 va_end (v);
5128 return s;
5129}
5130
5131/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5132 function prototypes and stuff, but not '\xHH' hex character constants.
5133 These don't provoke an error unfortunately, instead are silently treated
5134 as 'x'. The following induces an error, until -std is added to get
5135 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5136 array size at least. It's necessary to write '\x00'==0 to get something
5137 that's true only with -std. */
5138int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5139
5140/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5141 inside strings and character constants. */
5142#define FOO(x) 'x'
5143int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5144
5145int test (int i, double x);
5146struct s1 {int (*f) (int a);};
5147struct s2 {int (*f) (double a);};
5148int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5149int argc;
5150char **argv;
5151int
5152main ()
5153{
5154return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5155 ;
5156 return 0;
5157}
5158_ACEOF
5159for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5160 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5161do
5162 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00005163 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005164 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00005165fi
cristy3ed852e2009-09-05 21:47:34 +00005166rm -f core conftest.err conftest.$ac_objext
5167 test "x$ac_cv_prog_cc_c89" != "xno" && break
5168done
5169rm -f conftest.$ac_ext
5170CC=$ac_save_CC
5171
5172fi
5173# AC_CACHE_VAL
5174case "x$ac_cv_prog_cc_c89" in
5175 x)
cristy8b350f62009-11-15 23:12:43 +00005176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00005177$as_echo "none needed" >&6; } ;;
5178 xno)
cristy8b350f62009-11-15 23:12:43 +00005179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00005180$as_echo "unsupported" >&6; } ;;
5181 *)
5182 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00005183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005184$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5185esac
cristy8b350f62009-11-15 23:12:43 +00005186if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00005187
cristy8b350f62009-11-15 23:12:43 +00005188fi
cristy3ed852e2009-09-05 21:47:34 +00005189
5190ac_ext=c
5191ac_cpp='$CPP $CPPFLAGS'
5192ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5193ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5194ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy3ed852e2009-09-05 21:47:34 +00005195
cristy73bd4a52010-10-05 11:24:23 +00005196depcc="$CC" am_compiler_list=
5197
5198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5199$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005200if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00005201 $as_echo_n "(cached) " >&6
5202else
5203 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5204 # We make a subdir and do the tests there. Otherwise we can end up
5205 # making bogus files that we don't know about and never remove. For
5206 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00005207 # making a dummy file named 'D' -- because '-MD' means "put the output
5208 # in D".
cristy7247bba2012-02-05 16:37:27 +00005209 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00005210 mkdir conftest.dir
5211 # Copy depcomp to subdir because otherwise we won't find it if we're
5212 # using a relative directory.
5213 cp "$am_depcomp" conftest.dir
5214 cd conftest.dir
5215 # We will build objects and dependencies in a subdirectory because
5216 # it helps to detect inapplicable dependency modes. For instance
5217 # both Tru64's cc and ICC support -MD to output dependencies as a
5218 # side effect of compilation, but ICC will put the dependencies in
5219 # the current directory while Tru64 will put them in the object
5220 # directory.
5221 mkdir sub
5222
5223 am_cv_CC_dependencies_compiler_type=none
5224 if test "$am_compiler_list" = ""; then
5225 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5226 fi
5227 am__universal=false
5228 case " $depcc " in #(
5229 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5230 esac
5231
5232 for depmode in $am_compiler_list; do
5233 # Setup a source with many dependencies, because some compilers
5234 # like to wrap large dependency lists on column 80 (with \), and
5235 # we should not choose a depcomp mode which is confused by this.
5236 #
5237 # We need to recreate these files for each test, as the compiler may
5238 # overwrite some of them when testing with obscure command lines.
5239 # This happens at least with the AIX C compiler.
5240 : > sub/conftest.c
5241 for i in 1 2 3 4 5 6; do
5242 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00005243 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5244 # Solaris 10 /bin/sh.
5245 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00005246 done
5247 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5248
cristyc0890a62012-07-19 00:18:20 +00005249 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00005250 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00005251 # handle '-M -o', and we need to detect this. Also, some Intel
5252 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00005253 am__obj=sub/conftest.${OBJEXT-o}
5254 am__minus_obj="-o $am__obj"
5255 case $depmode in
5256 gcc)
5257 # This depmode causes a compiler race in universal mode.
5258 test "$am__universal" = false || continue
5259 ;;
5260 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00005261 # After this tag, mechanisms are not by side-effect, so they'll
5262 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00005263 if test "x$enable_dependency_tracking" = xyes; then
5264 continue
5265 else
5266 break
5267 fi
5268 ;;
cristy7247bba2012-02-05 16:37:27 +00005269 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00005270 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00005271 # not run yet. These depmodes are late enough in the game, and
5272 # so weak that their functioning should not be impacted.
5273 am__obj=conftest.${OBJEXT-o}
5274 am__minus_obj=
5275 ;;
5276 none) break ;;
5277 esac
5278 if depmode=$depmode \
5279 source=sub/conftest.c object=$am__obj \
5280 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5281 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5282 >/dev/null 2>conftest.err &&
5283 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5284 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5285 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5286 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5287 # icc doesn't choke on unknown options, it will just issue warnings
5288 # or remarks (even with -Werror). So we grep stderr for any message
5289 # that says an option was ignored or not supported.
5290 # When given -MP, icc 7.0 and 7.1 complain thusly:
5291 # icc: Command line warning: ignoring option '-M'; no argument required
5292 # The diagnosis changed in icc 8.0:
5293 # icc: Command line remark: option '-MP' not supported
5294 if (grep 'ignoring option' conftest.err ||
5295 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5296 am_cv_CC_dependencies_compiler_type=$depmode
5297 break
5298 fi
5299 fi
5300 done
5301
5302 cd ..
5303 rm -rf conftest.dir
5304else
5305 am_cv_CC_dependencies_compiler_type=none
5306fi
5307
5308fi
5309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5310$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5311CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5312
5313 if
5314 test "x$enable_dependency_tracking" != xno \
5315 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5316 am__fastdepCC_TRUE=
5317 am__fastdepCC_FALSE='#'
5318else
5319 am__fastdepCC_TRUE='#'
5320 am__fastdepCC_FALSE=
5321fi
5322
5323
cristy3ed852e2009-09-05 21:47:34 +00005324
cristya0b81c32010-01-22 02:54:33 +00005325ac_ext=c
5326ac_cpp='$CPP $CPPFLAGS'
5327ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5328ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5329ac_compiler_gnu=$ac_cv_c_compiler_gnu
5330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5331$as_echo_n "checking how to run the C preprocessor... " >&6; }
5332# On Suns, sometimes $CPP names a directory.
5333if test -n "$CPP" && test -d "$CPP"; then
5334 CPP=
5335fi
5336if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00005337 if ${ac_cv_prog_CPP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005338 $as_echo_n "(cached) " >&6
5339else
5340 # Double quotes because CPP needs to be expanded
5341 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5342 do
5343 ac_preproc_ok=false
5344for ac_c_preproc_warn_flag in '' yes
5345do
5346 # Use a header file that comes with gcc, so configuring glibc
5347 # with a fresh cross-compiler works.
5348 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5349 # <limits.h> exists even on freestanding compilers.
5350 # On the NeXT, cc -E runs the code through the compiler's parser,
5351 # not just through cpp. "Syntax error" is here to catch this case.
5352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5353/* end confdefs.h. */
5354#ifdef __STDC__
5355# include <limits.h>
5356#else
5357# include <assert.h>
5358#endif
5359 Syntax error
5360_ACEOF
5361if ac_fn_c_try_cpp "$LINENO"; then :
5362
5363else
5364 # Broken: fails on valid input.
5365continue
5366fi
cristyda16f162011-02-19 23:52:17 +00005367rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005368
5369 # OK, works on sane cases. Now check whether nonexistent headers
5370 # can be detected and how.
5371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5372/* end confdefs.h. */
5373#include <ac_nonexistent.h>
5374_ACEOF
5375if ac_fn_c_try_cpp "$LINENO"; then :
5376 # Broken: success on invalid input.
5377continue
5378else
5379 # Passes both tests.
5380ac_preproc_ok=:
5381break
5382fi
cristyda16f162011-02-19 23:52:17 +00005383rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005384
5385done
5386# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005387rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005388if $ac_preproc_ok; then :
5389 break
5390fi
5391
5392 done
5393 ac_cv_prog_CPP=$CPP
5394
5395fi
5396 CPP=$ac_cv_prog_CPP
5397else
5398 ac_cv_prog_CPP=$CPP
5399fi
5400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5401$as_echo "$CPP" >&6; }
5402ac_preproc_ok=false
5403for ac_c_preproc_warn_flag in '' yes
5404do
5405 # Use a header file that comes with gcc, so configuring glibc
5406 # with a fresh cross-compiler works.
5407 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5408 # <limits.h> exists even on freestanding compilers.
5409 # On the NeXT, cc -E runs the code through the compiler's parser,
5410 # not just through cpp. "Syntax error" is here to catch this case.
5411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5412/* end confdefs.h. */
5413#ifdef __STDC__
5414# include <limits.h>
5415#else
5416# include <assert.h>
5417#endif
5418 Syntax error
5419_ACEOF
5420if ac_fn_c_try_cpp "$LINENO"; then :
5421
5422else
5423 # Broken: fails on valid input.
5424continue
5425fi
cristyda16f162011-02-19 23:52:17 +00005426rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005427
5428 # OK, works on sane cases. Now check whether nonexistent headers
5429 # can be detected and how.
5430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5431/* end confdefs.h. */
5432#include <ac_nonexistent.h>
5433_ACEOF
5434if ac_fn_c_try_cpp "$LINENO"; then :
5435 # Broken: success on invalid input.
5436continue
5437else
5438 # Passes both tests.
5439ac_preproc_ok=:
5440break
5441fi
cristyda16f162011-02-19 23:52:17 +00005442rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005443
5444done
5445# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005446rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005447if $ac_preproc_ok; then :
5448
5449else
5450 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5451$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005452as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5453See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00005454fi
5455
5456ac_ext=c
5457ac_cpp='$CPP $CPPFLAGS'
5458ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5459ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5460ac_compiler_gnu=$ac_cv_c_compiler_gnu
5461
5462
5463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5464$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005465if ${ac_cv_path_GREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005466 $as_echo_n "(cached) " >&6
5467else
5468 if test -z "$GREP"; then
5469 ac_path_GREP_found=false
5470 # Loop through the user's path and test for each of PROGNAME-LIST
5471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5472for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5473do
5474 IFS=$as_save_IFS
5475 test -z "$as_dir" && as_dir=.
5476 for ac_prog in grep ggrep; do
5477 for ac_exec_ext in '' $ac_executable_extensions; do
5478 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00005479 as_fn_executable_p "$ac_path_GREP" || continue
cristya0b81c32010-01-22 02:54:33 +00005480# Check for GNU ac_path_GREP and select it if it is found.
5481 # Check for GNU $ac_path_GREP
5482case `"$ac_path_GREP" --version 2>&1` in
5483*GNU*)
5484 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5485*)
5486 ac_count=0
5487 $as_echo_n 0123456789 >"conftest.in"
5488 while :
5489 do
5490 cat "conftest.in" "conftest.in" >"conftest.tmp"
5491 mv "conftest.tmp" "conftest.in"
5492 cp "conftest.in" "conftest.nl"
5493 $as_echo 'GREP' >> "conftest.nl"
5494 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5495 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5496 as_fn_arith $ac_count + 1 && ac_count=$as_val
5497 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5498 # Best one so far, save it but keep looking for a better one
5499 ac_cv_path_GREP="$ac_path_GREP"
5500 ac_path_GREP_max=$ac_count
5501 fi
5502 # 10*(2^10) chars as input seems more than enough
5503 test $ac_count -gt 10 && break
5504 done
5505 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5506esac
5507
5508 $ac_path_GREP_found && break 3
5509 done
5510 done
5511 done
5512IFS=$as_save_IFS
5513 if test -z "$ac_cv_path_GREP"; then
cristy98dddb52010-11-04 00:30:15 +00005514 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005515 fi
5516else
5517 ac_cv_path_GREP=$GREP
5518fi
5519
5520fi
5521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5522$as_echo "$ac_cv_path_GREP" >&6; }
5523 GREP="$ac_cv_path_GREP"
5524
5525
5526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5527$as_echo_n "checking for egrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005528if ${ac_cv_path_EGREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005529 $as_echo_n "(cached) " >&6
5530else
5531 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5532 then ac_cv_path_EGREP="$GREP -E"
5533 else
5534 if test -z "$EGREP"; then
5535 ac_path_EGREP_found=false
5536 # Loop through the user's path and test for each of PROGNAME-LIST
5537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5538for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5539do
5540 IFS=$as_save_IFS
5541 test -z "$as_dir" && as_dir=.
5542 for ac_prog in egrep; do
5543 for ac_exec_ext in '' $ac_executable_extensions; do
5544 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00005545 as_fn_executable_p "$ac_path_EGREP" || continue
cristya0b81c32010-01-22 02:54:33 +00005546# Check for GNU ac_path_EGREP and select it if it is found.
5547 # Check for GNU $ac_path_EGREP
5548case `"$ac_path_EGREP" --version 2>&1` in
5549*GNU*)
5550 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5551*)
5552 ac_count=0
5553 $as_echo_n 0123456789 >"conftest.in"
5554 while :
5555 do
5556 cat "conftest.in" "conftest.in" >"conftest.tmp"
5557 mv "conftest.tmp" "conftest.in"
5558 cp "conftest.in" "conftest.nl"
5559 $as_echo 'EGREP' >> "conftest.nl"
5560 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5561 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5562 as_fn_arith $ac_count + 1 && ac_count=$as_val
5563 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5564 # Best one so far, save it but keep looking for a better one
5565 ac_cv_path_EGREP="$ac_path_EGREP"
5566 ac_path_EGREP_max=$ac_count
5567 fi
5568 # 10*(2^10) chars as input seems more than enough
5569 test $ac_count -gt 10 && break
5570 done
5571 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5572esac
5573
5574 $ac_path_EGREP_found && break 3
5575 done
5576 done
5577 done
5578IFS=$as_save_IFS
5579 if test -z "$ac_cv_path_EGREP"; then
cristy98dddb52010-11-04 00:30:15 +00005580 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005581 fi
5582else
5583 ac_cv_path_EGREP=$EGREP
5584fi
5585
5586 fi
5587fi
5588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5589$as_echo "$ac_cv_path_EGREP" >&6; }
5590 EGREP="$ac_cv_path_EGREP"
5591
5592
5593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5594$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005595if ${ac_cv_header_stdc+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005596 $as_echo_n "(cached) " >&6
5597else
5598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5599/* end confdefs.h. */
5600#include <stdlib.h>
5601#include <stdarg.h>
5602#include <string.h>
5603#include <float.h>
5604
5605int
5606main ()
5607{
5608
5609 ;
5610 return 0;
5611}
5612_ACEOF
5613if ac_fn_c_try_compile "$LINENO"; then :
5614 ac_cv_header_stdc=yes
5615else
5616 ac_cv_header_stdc=no
5617fi
5618rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5619
5620if test $ac_cv_header_stdc = yes; then
5621 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5623/* end confdefs.h. */
5624#include <string.h>
5625
5626_ACEOF
5627if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5628 $EGREP "memchr" >/dev/null 2>&1; then :
5629
5630else
5631 ac_cv_header_stdc=no
5632fi
5633rm -f conftest*
5634
5635fi
5636
5637if test $ac_cv_header_stdc = yes; then
5638 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5640/* end confdefs.h. */
5641#include <stdlib.h>
5642
5643_ACEOF
5644if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5645 $EGREP "free" >/dev/null 2>&1; then :
5646
5647else
5648 ac_cv_header_stdc=no
5649fi
5650rm -f conftest*
5651
5652fi
5653
5654if test $ac_cv_header_stdc = yes; then
5655 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5656 if test "$cross_compiling" = yes; then :
5657 :
5658else
5659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5660/* end confdefs.h. */
5661#include <ctype.h>
5662#include <stdlib.h>
5663#if ((' ' & 0x0FF) == 0x020)
5664# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5665# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5666#else
5667# define ISLOWER(c) \
5668 (('a' <= (c) && (c) <= 'i') \
5669 || ('j' <= (c) && (c) <= 'r') \
5670 || ('s' <= (c) && (c) <= 'z'))
5671# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5672#endif
5673
5674#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5675int
5676main ()
5677{
5678 int i;
5679 for (i = 0; i < 256; i++)
5680 if (XOR (islower (i), ISLOWER (i))
5681 || toupper (i) != TOUPPER (i))
5682 return 2;
5683 return 0;
5684}
5685_ACEOF
5686if ac_fn_c_try_run "$LINENO"; then :
5687
5688else
5689 ac_cv_header_stdc=no
5690fi
5691rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5692 conftest.$ac_objext conftest.beam conftest.$ac_ext
5693fi
5694
5695fi
5696fi
5697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5698$as_echo "$ac_cv_header_stdc" >&6; }
5699if test $ac_cv_header_stdc = yes; then
5700
5701$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5702
5703fi
5704
5705# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5706for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5707 inttypes.h stdint.h unistd.h
5708do :
5709 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5710ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5711"
cristy98dddb52010-11-04 00:30:15 +00005712if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristya0b81c32010-01-22 02:54:33 +00005713 cat >>confdefs.h <<_ACEOF
5714#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5715_ACEOF
5716
5717fi
5718
5719done
5720
5721
5722
5723 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 +00005724if test "x$ac_cv_header_minix_config_h" = xyes; then :
cristya0b81c32010-01-22 02:54:33 +00005725 MINIX=yes
5726else
5727 MINIX=
5728fi
5729
5730
5731 if test "$MINIX" = yes; then
5732
5733$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5734
5735
5736$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5737
5738
5739$as_echo "#define _MINIX 1" >>confdefs.h
5740
5741 fi
5742
5743
5744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5745$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005746if ${ac_cv_safe_to_define___extensions__+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005747 $as_echo_n "(cached) " >&6
5748else
5749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5750/* end confdefs.h. */
5751
cristy14fefe52012-05-21 00:59:18 +00005752# define __EXTENSIONS__ 1
5753 $ac_includes_default
cristya0b81c32010-01-22 02:54:33 +00005754int
5755main ()
5756{
5757
5758 ;
5759 return 0;
5760}
5761_ACEOF
5762if ac_fn_c_try_compile "$LINENO"; then :
5763 ac_cv_safe_to_define___extensions__=yes
5764else
5765 ac_cv_safe_to_define___extensions__=no
5766fi
5767rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5768fi
5769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5770$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5771 test $ac_cv_safe_to_define___extensions__ = yes &&
5772 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5773
5774 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5775
5776 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5777
5778 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5779
5780 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5781
5782
5783
5784# Check for programs
5785ac_ext=c
5786ac_cpp='$CPP $CPPFLAGS'
5787ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5788ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5789ac_compiler_gnu=$ac_cv_c_compiler_gnu
5790if test -n "$ac_tool_prefix"; then
5791 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5792set dummy ${ac_tool_prefix}gcc; ac_word=$2
5793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5794$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005795if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005796 $as_echo_n "(cached) " >&6
5797else
5798 if test -n "$CC"; then
5799 ac_cv_prog_CC="$CC" # Let the user override the test.
5800else
5801as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5802for as_dir in $PATH
5803do
5804 IFS=$as_save_IFS
5805 test -z "$as_dir" && as_dir=.
5806 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00005807 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00005808 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5810 break 2
5811 fi
5812done
5813 done
5814IFS=$as_save_IFS
5815
5816fi
5817fi
5818CC=$ac_cv_prog_CC
5819if test -n "$CC"; then
5820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5821$as_echo "$CC" >&6; }
5822else
5823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5824$as_echo "no" >&6; }
5825fi
5826
5827
5828fi
5829if test -z "$ac_cv_prog_CC"; then
5830 ac_ct_CC=$CC
5831 # Extract the first word of "gcc", so it can be a program name with args.
5832set dummy gcc; ac_word=$2
5833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5834$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005835if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005836 $as_echo_n "(cached) " >&6
5837else
5838 if test -n "$ac_ct_CC"; then
5839 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5840else
5841as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5842for as_dir in $PATH
5843do
5844 IFS=$as_save_IFS
5845 test -z "$as_dir" && as_dir=.
5846 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00005847 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00005848 ac_cv_prog_ac_ct_CC="gcc"
5849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5850 break 2
5851 fi
5852done
5853 done
5854IFS=$as_save_IFS
5855
5856fi
5857fi
5858ac_ct_CC=$ac_cv_prog_ac_ct_CC
5859if test -n "$ac_ct_CC"; then
5860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5861$as_echo "$ac_ct_CC" >&6; }
5862else
5863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5864$as_echo "no" >&6; }
5865fi
5866
5867 if test "x$ac_ct_CC" = x; then
5868 CC=""
5869 else
5870 case $cross_compiling:$ac_tool_warned in
5871yes:)
5872{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5873$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5874ac_tool_warned=yes ;;
5875esac
5876 CC=$ac_ct_CC
5877 fi
5878else
5879 CC="$ac_cv_prog_CC"
5880fi
5881
5882if test -z "$CC"; then
5883 if test -n "$ac_tool_prefix"; then
5884 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5885set dummy ${ac_tool_prefix}cc; ac_word=$2
5886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5887$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005888if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005889 $as_echo_n "(cached) " >&6
5890else
5891 if test -n "$CC"; then
5892 ac_cv_prog_CC="$CC" # Let the user override the test.
5893else
5894as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5895for as_dir in $PATH
5896do
5897 IFS=$as_save_IFS
5898 test -z "$as_dir" && as_dir=.
5899 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00005900 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00005901 ac_cv_prog_CC="${ac_tool_prefix}cc"
5902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5903 break 2
5904 fi
5905done
5906 done
5907IFS=$as_save_IFS
5908
5909fi
5910fi
5911CC=$ac_cv_prog_CC
5912if test -n "$CC"; then
5913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5914$as_echo "$CC" >&6; }
5915else
5916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5917$as_echo "no" >&6; }
5918fi
5919
5920
5921 fi
5922fi
5923if test -z "$CC"; then
5924 # Extract the first word of "cc", so it can be a program name with args.
5925set dummy cc; ac_word=$2
5926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5927$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005928if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005929 $as_echo_n "(cached) " >&6
5930else
5931 if test -n "$CC"; then
5932 ac_cv_prog_CC="$CC" # Let the user override the test.
5933else
5934 ac_prog_rejected=no
5935as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5936for as_dir in $PATH
5937do
5938 IFS=$as_save_IFS
5939 test -z "$as_dir" && as_dir=.
5940 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00005941 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00005942 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5943 ac_prog_rejected=yes
5944 continue
5945 fi
5946 ac_cv_prog_CC="cc"
5947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5948 break 2
5949 fi
5950done
5951 done
5952IFS=$as_save_IFS
5953
5954if test $ac_prog_rejected = yes; then
5955 # We found a bogon in the path, so make sure we never use it.
5956 set dummy $ac_cv_prog_CC
5957 shift
5958 if test $# != 0; then
5959 # We chose a different compiler from the bogus one.
5960 # However, it has the same basename, so the bogon will be chosen
5961 # first if we set CC to just the basename; use the full file name.
5962 shift
5963 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5964 fi
5965fi
5966fi
5967fi
5968CC=$ac_cv_prog_CC
5969if test -n "$CC"; then
5970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5971$as_echo "$CC" >&6; }
5972else
5973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5974$as_echo "no" >&6; }
5975fi
5976
5977
5978fi
5979if test -z "$CC"; then
5980 if test -n "$ac_tool_prefix"; then
5981 for ac_prog in cl.exe
5982 do
5983 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5984set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5986$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005987if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005988 $as_echo_n "(cached) " >&6
5989else
5990 if test -n "$CC"; then
5991 ac_cv_prog_CC="$CC" # Let the user override the test.
5992else
5993as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5994for as_dir in $PATH
5995do
5996 IFS=$as_save_IFS
5997 test -z "$as_dir" && as_dir=.
5998 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00005999 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006000 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6002 break 2
6003 fi
6004done
6005 done
6006IFS=$as_save_IFS
6007
6008fi
6009fi
6010CC=$ac_cv_prog_CC
6011if test -n "$CC"; then
6012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6013$as_echo "$CC" >&6; }
6014else
6015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6016$as_echo "no" >&6; }
6017fi
6018
6019
6020 test -n "$CC" && break
6021 done
6022fi
6023if test -z "$CC"; then
6024 ac_ct_CC=$CC
6025 for ac_prog in cl.exe
6026do
6027 # Extract the first word of "$ac_prog", so it can be a program name with args.
6028set dummy $ac_prog; ac_word=$2
6029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6030$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006031if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006032 $as_echo_n "(cached) " >&6
6033else
6034 if test -n "$ac_ct_CC"; then
6035 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6036else
6037as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6038for as_dir in $PATH
6039do
6040 IFS=$as_save_IFS
6041 test -z "$as_dir" && as_dir=.
6042 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006043 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006044 ac_cv_prog_ac_ct_CC="$ac_prog"
6045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6046 break 2
6047 fi
6048done
6049 done
6050IFS=$as_save_IFS
6051
6052fi
6053fi
6054ac_ct_CC=$ac_cv_prog_ac_ct_CC
6055if test -n "$ac_ct_CC"; then
6056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6057$as_echo "$ac_ct_CC" >&6; }
6058else
6059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6060$as_echo "no" >&6; }
6061fi
6062
6063
6064 test -n "$ac_ct_CC" && break
6065done
6066
6067 if test "x$ac_ct_CC" = x; then
6068 CC=""
6069 else
6070 case $cross_compiling:$ac_tool_warned in
6071yes:)
6072{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6073$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6074ac_tool_warned=yes ;;
6075esac
6076 CC=$ac_ct_CC
6077 fi
6078fi
6079
6080fi
6081
6082
6083test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6084$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00006085as_fn_error $? "no acceptable C compiler found in \$PATH
6086See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00006087
6088# Provide some information about the compiler.
6089$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6090set X $ac_compile
6091ac_compiler=$2
6092for ac_option in --version -v -V -qversion; do
6093 { { ac_try="$ac_compiler $ac_option >&5"
6094case "(($ac_try" in
6095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6096 *) ac_try_echo=$ac_try;;
6097esac
6098eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6099$as_echo "$ac_try_echo"; } >&5
6100 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6101 ac_status=$?
6102 if test -s conftest.err; then
6103 sed '10a\
6104... rest of stderr output deleted ...
6105 10q' conftest.err >conftest.er1
6106 cat conftest.er1 >&5
6107 fi
6108 rm -f conftest.er1 conftest.err
6109 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6110 test $ac_status = 0; }
6111done
6112
6113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6114$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006115if ${ac_cv_c_compiler_gnu+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006116 $as_echo_n "(cached) " >&6
6117else
6118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6119/* end confdefs.h. */
6120
6121int
6122main ()
6123{
6124#ifndef __GNUC__
6125 choke me
6126#endif
6127
6128 ;
6129 return 0;
6130}
6131_ACEOF
6132if ac_fn_c_try_compile "$LINENO"; then :
6133 ac_compiler_gnu=yes
6134else
6135 ac_compiler_gnu=no
6136fi
6137rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6138ac_cv_c_compiler_gnu=$ac_compiler_gnu
6139
6140fi
6141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6142$as_echo "$ac_cv_c_compiler_gnu" >&6; }
6143if test $ac_compiler_gnu = yes; then
6144 GCC=yes
6145else
6146 GCC=
6147fi
6148ac_test_CFLAGS=${CFLAGS+set}
6149ac_save_CFLAGS=$CFLAGS
6150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6151$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006152if ${ac_cv_prog_cc_g+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006153 $as_echo_n "(cached) " >&6
6154else
6155 ac_save_c_werror_flag=$ac_c_werror_flag
6156 ac_c_werror_flag=yes
6157 ac_cv_prog_cc_g=no
6158 CFLAGS="-g"
6159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6160/* end confdefs.h. */
6161
6162int
6163main ()
6164{
6165
6166 ;
6167 return 0;
6168}
6169_ACEOF
6170if ac_fn_c_try_compile "$LINENO"; then :
6171 ac_cv_prog_cc_g=yes
6172else
6173 CFLAGS=""
6174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6175/* end confdefs.h. */
6176
6177int
6178main ()
6179{
6180
6181 ;
6182 return 0;
6183}
6184_ACEOF
6185if ac_fn_c_try_compile "$LINENO"; then :
6186
6187else
6188 ac_c_werror_flag=$ac_save_c_werror_flag
6189 CFLAGS="-g"
6190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6191/* end confdefs.h. */
6192
6193int
6194main ()
6195{
6196
6197 ;
6198 return 0;
6199}
6200_ACEOF
6201if ac_fn_c_try_compile "$LINENO"; then :
6202 ac_cv_prog_cc_g=yes
6203fi
6204rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6205fi
6206rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6207fi
6208rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6209 ac_c_werror_flag=$ac_save_c_werror_flag
6210fi
6211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6212$as_echo "$ac_cv_prog_cc_g" >&6; }
6213if test "$ac_test_CFLAGS" = set; then
6214 CFLAGS=$ac_save_CFLAGS
6215elif test $ac_cv_prog_cc_g = yes; then
6216 if test "$GCC" = yes; then
6217 CFLAGS="-g -O2"
6218 else
6219 CFLAGS="-g"
6220 fi
6221else
6222 if test "$GCC" = yes; then
6223 CFLAGS="-O2"
6224 else
6225 CFLAGS=
6226 fi
6227fi
6228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6229$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006230if ${ac_cv_prog_cc_c89+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006231 $as_echo_n "(cached) " >&6
6232else
6233 ac_cv_prog_cc_c89=no
6234ac_save_CC=$CC
6235cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6236/* end confdefs.h. */
6237#include <stdarg.h>
6238#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00006239struct stat;
cristya0b81c32010-01-22 02:54:33 +00006240/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6241struct buf { int x; };
6242FILE * (*rcsopen) (struct buf *, struct stat *, int);
6243static char *e (p, i)
6244 char **p;
6245 int i;
6246{
6247 return p[i];
6248}
6249static char *f (char * (*g) (char **, int), char **p, ...)
6250{
6251 char *s;
6252 va_list v;
6253 va_start (v,p);
6254 s = g (p, va_arg (v,int));
6255 va_end (v);
6256 return s;
6257}
6258
6259/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6260 function prototypes and stuff, but not '\xHH' hex character constants.
6261 These don't provoke an error unfortunately, instead are silently treated
6262 as 'x'. The following induces an error, until -std is added to get
6263 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6264 array size at least. It's necessary to write '\x00'==0 to get something
6265 that's true only with -std. */
6266int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6267
6268/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6269 inside strings and character constants. */
6270#define FOO(x) 'x'
6271int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6272
6273int test (int i, double x);
6274struct s1 {int (*f) (int a);};
6275struct s2 {int (*f) (double a);};
6276int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6277int argc;
6278char **argv;
6279int
6280main ()
6281{
6282return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6283 ;
6284 return 0;
6285}
6286_ACEOF
6287for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6288 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6289do
6290 CC="$ac_save_CC $ac_arg"
6291 if ac_fn_c_try_compile "$LINENO"; then :
6292 ac_cv_prog_cc_c89=$ac_arg
6293fi
6294rm -f core conftest.err conftest.$ac_objext
6295 test "x$ac_cv_prog_cc_c89" != "xno" && break
6296done
6297rm -f conftest.$ac_ext
6298CC=$ac_save_CC
6299
6300fi
6301# AC_CACHE_VAL
6302case "x$ac_cv_prog_cc_c89" in
6303 x)
6304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6305$as_echo "none needed" >&6; } ;;
6306 xno)
6307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6308$as_echo "unsupported" >&6; } ;;
6309 *)
6310 CC="$CC $ac_cv_prog_cc_c89"
6311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6312$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6313esac
6314if test "x$ac_cv_prog_cc_c89" != xno; then :
6315
6316fi
6317
6318ac_ext=c
6319ac_cpp='$CPP $CPPFLAGS'
6320ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6321ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6322ac_compiler_gnu=$ac_cv_c_compiler_gnu
6323
cristy73bd4a52010-10-05 11:24:23 +00006324depcc="$CC" am_compiler_list=
6325
6326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6327$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006328if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006329 $as_echo_n "(cached) " >&6
6330else
6331 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6332 # We make a subdir and do the tests there. Otherwise we can end up
6333 # making bogus files that we don't know about and never remove. For
6334 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00006335 # making a dummy file named 'D' -- because '-MD' means "put the output
6336 # in D".
cristy7247bba2012-02-05 16:37:27 +00006337 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00006338 mkdir conftest.dir
6339 # Copy depcomp to subdir because otherwise we won't find it if we're
6340 # using a relative directory.
6341 cp "$am_depcomp" conftest.dir
6342 cd conftest.dir
6343 # We will build objects and dependencies in a subdirectory because
6344 # it helps to detect inapplicable dependency modes. For instance
6345 # both Tru64's cc and ICC support -MD to output dependencies as a
6346 # side effect of compilation, but ICC will put the dependencies in
6347 # the current directory while Tru64 will put them in the object
6348 # directory.
6349 mkdir sub
6350
6351 am_cv_CC_dependencies_compiler_type=none
6352 if test "$am_compiler_list" = ""; then
6353 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6354 fi
6355 am__universal=false
6356 case " $depcc " in #(
6357 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6358 esac
6359
6360 for depmode in $am_compiler_list; do
6361 # Setup a source with many dependencies, because some compilers
6362 # like to wrap large dependency lists on column 80 (with \), and
6363 # we should not choose a depcomp mode which is confused by this.
6364 #
6365 # We need to recreate these files for each test, as the compiler may
6366 # overwrite some of them when testing with obscure command lines.
6367 # This happens at least with the AIX C compiler.
6368 : > sub/conftest.c
6369 for i in 1 2 3 4 5 6; do
6370 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00006371 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6372 # Solaris 10 /bin/sh.
6373 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00006374 done
6375 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6376
cristyc0890a62012-07-19 00:18:20 +00006377 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00006378 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00006379 # handle '-M -o', and we need to detect this. Also, some Intel
6380 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00006381 am__obj=sub/conftest.${OBJEXT-o}
6382 am__minus_obj="-o $am__obj"
6383 case $depmode in
6384 gcc)
6385 # This depmode causes a compiler race in universal mode.
6386 test "$am__universal" = false || continue
6387 ;;
6388 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00006389 # After this tag, mechanisms are not by side-effect, so they'll
6390 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00006391 if test "x$enable_dependency_tracking" = xyes; then
6392 continue
6393 else
6394 break
6395 fi
6396 ;;
cristy7247bba2012-02-05 16:37:27 +00006397 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00006398 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00006399 # not run yet. These depmodes are late enough in the game, and
6400 # so weak that their functioning should not be impacted.
6401 am__obj=conftest.${OBJEXT-o}
6402 am__minus_obj=
6403 ;;
6404 none) break ;;
6405 esac
6406 if depmode=$depmode \
6407 source=sub/conftest.c object=$am__obj \
6408 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6409 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6410 >/dev/null 2>conftest.err &&
6411 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6412 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6413 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6414 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6415 # icc doesn't choke on unknown options, it will just issue warnings
6416 # or remarks (even with -Werror). So we grep stderr for any message
6417 # that says an option was ignored or not supported.
6418 # When given -MP, icc 7.0 and 7.1 complain thusly:
6419 # icc: Command line warning: ignoring option '-M'; no argument required
6420 # The diagnosis changed in icc 8.0:
6421 # icc: Command line remark: option '-MP' not supported
6422 if (grep 'ignoring option' conftest.err ||
6423 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6424 am_cv_CC_dependencies_compiler_type=$depmode
6425 break
6426 fi
6427 fi
6428 done
6429
6430 cd ..
6431 rm -rf conftest.dir
6432else
6433 am_cv_CC_dependencies_compiler_type=none
6434fi
6435
6436fi
6437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6438$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6439CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6440
6441 if
6442 test "x$enable_dependency_tracking" != xno \
6443 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6444 am__fastdepCC_TRUE=
6445 am__fastdepCC_FALSE='#'
6446else
6447 am__fastdepCC_TRUE='#'
6448 am__fastdepCC_FALSE=
6449fi
6450
6451
cristy95646052009-11-28 23:05:30 +00006452ac_ext=cpp
6453ac_cpp='$CXXCPP $CPPFLAGS'
6454ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6455ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6456ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6457if test -z "$CXX"; then
6458 if test -n "$CCC"; then
6459 CXX=$CCC
6460 else
6461 if test -n "$ac_tool_prefix"; then
6462 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6463 do
6464 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6465set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6467$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006468if ${ac_cv_prog_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006469 $as_echo_n "(cached) " >&6
6470else
6471 if test -n "$CXX"; then
6472 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6473else
6474as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6475for as_dir in $PATH
6476do
6477 IFS=$as_save_IFS
6478 test -z "$as_dir" && as_dir=.
6479 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006480 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy95646052009-11-28 23:05:30 +00006481 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6483 break 2
6484 fi
6485done
6486 done
6487IFS=$as_save_IFS
6488
6489fi
6490fi
6491CXX=$ac_cv_prog_CXX
6492if test -n "$CXX"; then
6493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6494$as_echo "$CXX" >&6; }
6495else
6496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6497$as_echo "no" >&6; }
6498fi
6499
6500
6501 test -n "$CXX" && break
6502 done
6503fi
6504if test -z "$CXX"; then
6505 ac_ct_CXX=$CXX
6506 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6507do
6508 # Extract the first word of "$ac_prog", so it can be a program name with args.
6509set dummy $ac_prog; ac_word=$2
6510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6511$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006512if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006513 $as_echo_n "(cached) " >&6
6514else
6515 if test -n "$ac_ct_CXX"; then
6516 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6517else
6518as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6519for as_dir in $PATH
6520do
6521 IFS=$as_save_IFS
6522 test -z "$as_dir" && as_dir=.
6523 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006524 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy95646052009-11-28 23:05:30 +00006525 ac_cv_prog_ac_ct_CXX="$ac_prog"
6526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6527 break 2
6528 fi
6529done
6530 done
6531IFS=$as_save_IFS
6532
6533fi
6534fi
6535ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6536if test -n "$ac_ct_CXX"; then
6537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6538$as_echo "$ac_ct_CXX" >&6; }
6539else
6540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6541$as_echo "no" >&6; }
6542fi
6543
6544
6545 test -n "$ac_ct_CXX" && break
6546done
6547
6548 if test "x$ac_ct_CXX" = x; then
6549 CXX="g++"
6550 else
6551 case $cross_compiling:$ac_tool_warned in
6552yes:)
6553{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6554$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6555ac_tool_warned=yes ;;
6556esac
6557 CXX=$ac_ct_CXX
6558 fi
6559fi
6560
6561 fi
6562fi
6563# Provide some information about the compiler.
6564$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6565set X $ac_compile
6566ac_compiler=$2
6567for ac_option in --version -v -V -qversion; do
6568 { { ac_try="$ac_compiler $ac_option >&5"
6569case "(($ac_try" in
6570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6571 *) ac_try_echo=$ac_try;;
6572esac
6573eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6574$as_echo "$ac_try_echo"; } >&5
6575 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6576 ac_status=$?
6577 if test -s conftest.err; then
6578 sed '10a\
6579... rest of stderr output deleted ...
6580 10q' conftest.err >conftest.er1
6581 cat conftest.er1 >&5
6582 fi
6583 rm -f conftest.er1 conftest.err
6584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6585 test $ac_status = 0; }
6586done
6587
6588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6589$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006590if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy95646052009-11-28 23:05:30 +00006591 $as_echo_n "(cached) " >&6
6592else
6593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6594/* end confdefs.h. */
6595
6596int
6597main ()
6598{
6599#ifndef __GNUC__
6600 choke me
6601#endif
6602
6603 ;
6604 return 0;
6605}
6606_ACEOF
6607if ac_fn_cxx_try_compile "$LINENO"; then :
6608 ac_compiler_gnu=yes
6609else
6610 ac_compiler_gnu=no
6611fi
6612rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6613ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6614
6615fi
6616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6617$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6618if test $ac_compiler_gnu = yes; then
6619 GXX=yes
6620else
6621 GXX=
6622fi
6623ac_test_CXXFLAGS=${CXXFLAGS+set}
6624ac_save_CXXFLAGS=$CXXFLAGS
6625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6626$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006627if ${ac_cv_prog_cxx_g+:} false; then :
cristy95646052009-11-28 23:05:30 +00006628 $as_echo_n "(cached) " >&6
6629else
6630 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6631 ac_cxx_werror_flag=yes
6632 ac_cv_prog_cxx_g=no
6633 CXXFLAGS="-g"
6634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6635/* end confdefs.h. */
6636
6637int
6638main ()
6639{
6640
6641 ;
6642 return 0;
6643}
6644_ACEOF
6645if ac_fn_cxx_try_compile "$LINENO"; then :
6646 ac_cv_prog_cxx_g=yes
6647else
6648 CXXFLAGS=""
6649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6650/* end confdefs.h. */
6651
6652int
6653main ()
6654{
6655
6656 ;
6657 return 0;
6658}
6659_ACEOF
6660if ac_fn_cxx_try_compile "$LINENO"; then :
6661
6662else
6663 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6664 CXXFLAGS="-g"
6665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6666/* end confdefs.h. */
6667
6668int
6669main ()
6670{
6671
6672 ;
6673 return 0;
6674}
6675_ACEOF
6676if ac_fn_cxx_try_compile "$LINENO"; then :
6677 ac_cv_prog_cxx_g=yes
6678fi
6679rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6680fi
6681rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6682fi
6683rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6684 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6685fi
6686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6687$as_echo "$ac_cv_prog_cxx_g" >&6; }
6688if test "$ac_test_CXXFLAGS" = set; then
6689 CXXFLAGS=$ac_save_CXXFLAGS
6690elif test $ac_cv_prog_cxx_g = yes; then
6691 if test "$GXX" = yes; then
6692 CXXFLAGS="-g -O2"
6693 else
6694 CXXFLAGS="-g"
6695 fi
6696else
6697 if test "$GXX" = yes; then
6698 CXXFLAGS="-O2"
6699 else
6700 CXXFLAGS=
6701 fi
6702fi
6703ac_ext=c
6704ac_cpp='$CPP $CPPFLAGS'
6705ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6706ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6707ac_compiler_gnu=$ac_cv_c_compiler_gnu
6708
cristy73bd4a52010-10-05 11:24:23 +00006709depcc="$CXX" am_compiler_list=
6710
6711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6712$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006713if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006714 $as_echo_n "(cached) " >&6
6715else
6716 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6717 # We make a subdir and do the tests there. Otherwise we can end up
6718 # making bogus files that we don't know about and never remove. For
6719 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00006720 # making a dummy file named 'D' -- because '-MD' means "put the output
6721 # in D".
cristy7247bba2012-02-05 16:37:27 +00006722 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00006723 mkdir conftest.dir
6724 # Copy depcomp to subdir because otherwise we won't find it if we're
6725 # using a relative directory.
6726 cp "$am_depcomp" conftest.dir
6727 cd conftest.dir
6728 # We will build objects and dependencies in a subdirectory because
6729 # it helps to detect inapplicable dependency modes. For instance
6730 # both Tru64's cc and ICC support -MD to output dependencies as a
6731 # side effect of compilation, but ICC will put the dependencies in
6732 # the current directory while Tru64 will put them in the object
6733 # directory.
6734 mkdir sub
6735
6736 am_cv_CXX_dependencies_compiler_type=none
6737 if test "$am_compiler_list" = ""; then
6738 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6739 fi
6740 am__universal=false
6741 case " $depcc " in #(
6742 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6743 esac
6744
6745 for depmode in $am_compiler_list; do
6746 # Setup a source with many dependencies, because some compilers
6747 # like to wrap large dependency lists on column 80 (with \), and
6748 # we should not choose a depcomp mode which is confused by this.
6749 #
6750 # We need to recreate these files for each test, as the compiler may
6751 # overwrite some of them when testing with obscure command lines.
6752 # This happens at least with the AIX C compiler.
6753 : > sub/conftest.c
6754 for i in 1 2 3 4 5 6; do
6755 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00006756 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6757 # Solaris 10 /bin/sh.
6758 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00006759 done
6760 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6761
cristyc0890a62012-07-19 00:18:20 +00006762 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00006763 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00006764 # handle '-M -o', and we need to detect this. Also, some Intel
6765 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00006766 am__obj=sub/conftest.${OBJEXT-o}
6767 am__minus_obj="-o $am__obj"
6768 case $depmode in
6769 gcc)
6770 # This depmode causes a compiler race in universal mode.
6771 test "$am__universal" = false || continue
6772 ;;
6773 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00006774 # After this tag, mechanisms are not by side-effect, so they'll
6775 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00006776 if test "x$enable_dependency_tracking" = xyes; then
6777 continue
6778 else
6779 break
6780 fi
6781 ;;
cristy7247bba2012-02-05 16:37:27 +00006782 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00006783 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00006784 # not run yet. These depmodes are late enough in the game, and
6785 # so weak that their functioning should not be impacted.
6786 am__obj=conftest.${OBJEXT-o}
6787 am__minus_obj=
6788 ;;
6789 none) break ;;
6790 esac
6791 if depmode=$depmode \
6792 source=sub/conftest.c object=$am__obj \
6793 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6794 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6795 >/dev/null 2>conftest.err &&
6796 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6797 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6798 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6799 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6800 # icc doesn't choke on unknown options, it will just issue warnings
6801 # or remarks (even with -Werror). So we grep stderr for any message
6802 # that says an option was ignored or not supported.
6803 # When given -MP, icc 7.0 and 7.1 complain thusly:
6804 # icc: Command line warning: ignoring option '-M'; no argument required
6805 # The diagnosis changed in icc 8.0:
6806 # icc: Command line remark: option '-MP' not supported
6807 if (grep 'ignoring option' conftest.err ||
6808 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6809 am_cv_CXX_dependencies_compiler_type=$depmode
6810 break
6811 fi
6812 fi
6813 done
6814
6815 cd ..
6816 rm -rf conftest.dir
6817else
6818 am_cv_CXX_dependencies_compiler_type=none
6819fi
6820
6821fi
6822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6823$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6824CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6825
6826 if
6827 test "x$enable_dependency_tracking" != xno \
6828 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6829 am__fastdepCXX_TRUE=
6830 am__fastdepCXX_FALSE='#'
6831else
6832 am__fastdepCXX_TRUE='#'
6833 am__fastdepCXX_FALSE=
6834fi
6835
6836
cristy8b350f62009-11-15 23:12:43 +00006837 case $ac_cv_prog_cc_stdc in #(
6838 no) :
6839 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6840 *) :
6841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
cristy3ed852e2009-09-05 21:47:34 +00006842$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006843if ${ac_cv_prog_cc_c99+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00006844 $as_echo_n "(cached) " >&6
6845else
6846 ac_cv_prog_cc_c99=no
6847ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00006848cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006849/* end confdefs.h. */
6850#include <stdarg.h>
6851#include <stdbool.h>
6852#include <stdlib.h>
6853#include <wchar.h>
6854#include <stdio.h>
6855
6856// Check varargs macros. These examples are taken from C99 6.10.3.5.
6857#define debug(...) fprintf (stderr, __VA_ARGS__)
6858#define showlist(...) puts (#__VA_ARGS__)
6859#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6860static void
6861test_varargs_macros (void)
6862{
6863 int x = 1234;
6864 int y = 5678;
6865 debug ("Flag");
6866 debug ("X = %d\n", x);
6867 showlist (The first, second, and third items.);
6868 report (x>y, "x is %d but y is %d", x, y);
6869}
6870
6871// Check long long types.
6872#define BIG64 18446744073709551615ull
6873#define BIG32 4294967295ul
6874#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6875#if !BIG_OK
6876 your preprocessor is broken;
6877#endif
6878#if BIG_OK
6879#else
6880 your preprocessor is broken;
6881#endif
6882static long long int bignum = -9223372036854775807LL;
6883static unsigned long long int ubignum = BIG64;
6884
6885struct incomplete_array
6886{
6887 int datasize;
6888 double data[];
6889};
6890
6891struct named_init {
6892 int number;
6893 const wchar_t *name;
6894 double average;
6895};
6896
6897typedef const char *ccp;
6898
6899static inline int
6900test_restrict (ccp restrict text)
6901{
6902 // See if C++-style comments work.
6903 // Iterate through items via the restricted pointer.
6904 // Also check for declarations in for loops.
6905 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6906 continue;
6907 return 0;
6908}
6909
6910// Check varargs and va_copy.
6911static void
6912test_varargs (const char *format, ...)
6913{
6914 va_list args;
6915 va_start (args, format);
6916 va_list args_copy;
6917 va_copy (args_copy, args);
6918
6919 const char *str;
6920 int number;
6921 float fnumber;
6922
6923 while (*format)
6924 {
6925 switch (*format++)
6926 {
6927 case 's': // string
6928 str = va_arg (args_copy, const char *);
6929 break;
6930 case 'd': // int
6931 number = va_arg (args_copy, int);
6932 break;
6933 case 'f': // float
6934 fnumber = va_arg (args_copy, double);
6935 break;
6936 default:
6937 break;
6938 }
6939 }
6940 va_end (args_copy);
6941 va_end (args);
6942}
6943
6944int
6945main ()
6946{
6947
6948 // Check bool.
6949 _Bool success = false;
6950
6951 // Check restrict.
6952 if (test_restrict ("String literal") == 0)
6953 success = true;
6954 char *restrict newvar = "Another string";
6955
6956 // Check varargs.
6957 test_varargs ("s, d' f .", "string", 65, 34.234);
6958 test_varargs_macros ();
6959
6960 // Check flexible array members.
6961 struct incomplete_array *ia =
6962 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6963 ia->datasize = 10;
6964 for (int i = 0; i < ia->datasize; ++i)
6965 ia->data[i] = i * 1.234;
6966
6967 // Check named initializers.
6968 struct named_init ni = {
6969 .number = 34,
6970 .name = L"Test wide string",
6971 .average = 543.34343,
6972 };
6973
6974 ni.number = 58;
6975
6976 int dynamic_array[ni.number];
6977 dynamic_array[ni.number - 1] = 543;
6978
6979 // work around unused variable warnings
6980 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6981 || dynamic_array[ni.number - 1] != 543);
6982
6983 ;
6984 return 0;
6985}
6986_ACEOF
cristy14fefe52012-05-21 00:59:18 +00006987for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
cristy3ed852e2009-09-05 21:47:34 +00006988do
6989 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00006990 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006991 ac_cv_prog_cc_c99=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00006992fi
cristy3ed852e2009-09-05 21:47:34 +00006993rm -f core conftest.err conftest.$ac_objext
6994 test "x$ac_cv_prog_cc_c99" != "xno" && break
6995done
6996rm -f conftest.$ac_ext
6997CC=$ac_save_CC
6998
6999fi
7000# AC_CACHE_VAL
7001case "x$ac_cv_prog_cc_c99" in
7002 x)
cristy8b350f62009-11-15 23:12:43 +00007003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00007004$as_echo "none needed" >&6; } ;;
7005 xno)
cristy8b350f62009-11-15 23:12:43 +00007006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00007007$as_echo "unsupported" >&6; } ;;
7008 *)
7009 CC="$CC $ac_cv_prog_cc_c99"
cristy8b350f62009-11-15 23:12:43 +00007010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
cristy3ed852e2009-09-05 21:47:34 +00007011$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7012esac
cristy8b350f62009-11-15 23:12:43 +00007013if test "x$ac_cv_prog_cc_c99" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00007014 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
7015else
cristy8b350f62009-11-15 23:12:43 +00007016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00007017$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007018if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007019 $as_echo_n "(cached) " >&6
7020else
7021 ac_cv_prog_cc_c89=no
7022ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00007023cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007024/* end confdefs.h. */
7025#include <stdarg.h>
7026#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00007027struct stat;
cristy3ed852e2009-09-05 21:47:34 +00007028/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7029struct buf { int x; };
7030FILE * (*rcsopen) (struct buf *, struct stat *, int);
7031static char *e (p, i)
7032 char **p;
7033 int i;
7034{
7035 return p[i];
7036}
7037static char *f (char * (*g) (char **, int), char **p, ...)
7038{
7039 char *s;
7040 va_list v;
7041 va_start (v,p);
7042 s = g (p, va_arg (v,int));
7043 va_end (v);
7044 return s;
7045}
7046
7047/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
7048 function prototypes and stuff, but not '\xHH' hex character constants.
7049 These don't provoke an error unfortunately, instead are silently treated
7050 as 'x'. The following induces an error, until -std is added to get
7051 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
7052 array size at least. It's necessary to write '\x00'==0 to get something
7053 that's true only with -std. */
7054int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7055
7056/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
7057 inside strings and character constants. */
7058#define FOO(x) 'x'
7059int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7060
7061int test (int i, double x);
7062struct s1 {int (*f) (int a);};
7063struct s2 {int (*f) (double a);};
7064int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7065int argc;
7066char **argv;
7067int
7068main ()
7069{
7070return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7071 ;
7072 return 0;
7073}
7074_ACEOF
7075for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
7076 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7077do
7078 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00007079 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007080 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00007081fi
cristy3ed852e2009-09-05 21:47:34 +00007082rm -f core conftest.err conftest.$ac_objext
7083 test "x$ac_cv_prog_cc_c89" != "xno" && break
7084done
7085rm -f conftest.$ac_ext
7086CC=$ac_save_CC
7087
7088fi
7089# AC_CACHE_VAL
7090case "x$ac_cv_prog_cc_c89" in
7091 x)
cristy8b350f62009-11-15 23:12:43 +00007092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00007093$as_echo "none needed" >&6; } ;;
7094 xno)
cristy8b350f62009-11-15 23:12:43 +00007095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00007096$as_echo "unsupported" >&6; } ;;
7097 *)
7098 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00007099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00007100$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7101esac
cristy8b350f62009-11-15 23:12:43 +00007102if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00007103 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
7104else
7105 ac_cv_prog_cc_stdc=no
7106fi
7107
cristy3ed852e2009-09-05 21:47:34 +00007108fi
cristy3ed852e2009-09-05 21:47:34 +00007109 ;;
7110esac
cristy8b350f62009-11-15 23:12:43 +00007111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
cristy3ed852e2009-09-05 21:47:34 +00007112$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007113 if ${ac_cv_prog_cc_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007114 $as_echo_n "(cached) " >&6
7115fi
7116
cristy8b350f62009-11-15 23:12:43 +00007117 case $ac_cv_prog_cc_stdc in #(
7118 no) :
7119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7120$as_echo "unsupported" >&6; } ;; #(
7121 '') :
7122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7123$as_echo "none needed" >&6; } ;; #(
7124 *) :
7125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +00007126$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
7127esac
7128
cristy3ed852e2009-09-05 21:47:34 +00007129ac_ext=c
7130ac_cpp='$CPP $CPPFLAGS'
7131ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7132ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7133ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy8b350f62009-11-15 23:12:43 +00007134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
cristy3ed852e2009-09-05 21:47:34 +00007135$as_echo_n "checking how to run the C preprocessor... " >&6; }
7136# On Suns, sometimes $CPP names a directory.
7137if test -n "$CPP" && test -d "$CPP"; then
7138 CPP=
7139fi
7140if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00007141 if ${ac_cv_prog_CPP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007142 $as_echo_n "(cached) " >&6
7143else
7144 # Double quotes because CPP needs to be expanded
7145 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7146 do
7147 ac_preproc_ok=false
7148for ac_c_preproc_warn_flag in '' yes
7149do
7150 # Use a header file that comes with gcc, so configuring glibc
7151 # with a fresh cross-compiler works.
7152 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7153 # <limits.h> exists even on freestanding compilers.
7154 # On the NeXT, cc -E runs the code through the compiler's parser,
7155 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007157/* end confdefs.h. */
7158#ifdef __STDC__
7159# include <limits.h>
7160#else
7161# include <assert.h>
7162#endif
7163 Syntax error
7164_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007165if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007166
cristy8b350f62009-11-15 23:12:43 +00007167else
cristy3ed852e2009-09-05 21:47:34 +00007168 # Broken: fails on valid input.
7169continue
7170fi
cristyda16f162011-02-19 23:52:17 +00007171rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007172
7173 # OK, works on sane cases. Now check whether nonexistent headers
7174 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007176/* end confdefs.h. */
7177#include <ac_nonexistent.h>
7178_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007179if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007180 # Broken: success on invalid input.
7181continue
7182else
cristy3ed852e2009-09-05 21:47:34 +00007183 # Passes both tests.
7184ac_preproc_ok=:
7185break
7186fi
cristyda16f162011-02-19 23:52:17 +00007187rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007188
7189done
7190# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007191rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007192if $ac_preproc_ok; then :
cristy3ed852e2009-09-05 21:47:34 +00007193 break
7194fi
7195
7196 done
7197 ac_cv_prog_CPP=$CPP
7198
7199fi
7200 CPP=$ac_cv_prog_CPP
7201else
7202 ac_cv_prog_CPP=$CPP
7203fi
cristy8b350f62009-11-15 23:12:43 +00007204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
cristy3ed852e2009-09-05 21:47:34 +00007205$as_echo "$CPP" >&6; }
7206ac_preproc_ok=false
7207for ac_c_preproc_warn_flag in '' yes
7208do
7209 # Use a header file that comes with gcc, so configuring glibc
7210 # with a fresh cross-compiler works.
7211 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7212 # <limits.h> exists even on freestanding compilers.
7213 # On the NeXT, cc -E runs the code through the compiler's parser,
7214 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007216/* end confdefs.h. */
7217#ifdef __STDC__
7218# include <limits.h>
7219#else
7220# include <assert.h>
7221#endif
7222 Syntax error
7223_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007224if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007225
cristy8b350f62009-11-15 23:12:43 +00007226else
cristy3ed852e2009-09-05 21:47:34 +00007227 # Broken: fails on valid input.
7228continue
7229fi
cristyda16f162011-02-19 23:52:17 +00007230rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007231
7232 # OK, works on sane cases. Now check whether nonexistent headers
7233 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007235/* end confdefs.h. */
7236#include <ac_nonexistent.h>
7237_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007238if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007239 # Broken: success on invalid input.
7240continue
7241else
cristy3ed852e2009-09-05 21:47:34 +00007242 # Passes both tests.
7243ac_preproc_ok=:
7244break
7245fi
cristyda16f162011-02-19 23:52:17 +00007246rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007247
7248done
7249# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007250rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007251if $ac_preproc_ok; then :
7252
cristy3ed852e2009-09-05 21:47:34 +00007253else
cristy8b350f62009-11-15 23:12:43 +00007254 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00007255$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00007256as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7257See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00007258fi
7259
7260ac_ext=c
7261ac_cpp='$CPP $CPPFLAGS'
7262ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7263ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7264ac_compiler_gnu=$ac_cv_c_compiler_gnu
7265
cristy73bd4a52010-10-05 11:24:23 +00007266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7267$as_echo_n "checking for a sed that does not truncate output... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007268if ${ac_cv_path_SED+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007269 $as_echo_n "(cached) " >&6
7270else
7271 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7272 for ac_i in 1 2 3 4 5 6 7; do
7273 ac_script="$ac_script$as_nl$ac_script"
7274 done
7275 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7276 { ac_script=; unset ac_script;}
7277 if test -z "$SED"; then
7278 ac_path_SED_found=false
7279 # Loop through the user's path and test for each of PROGNAME-LIST
7280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7281for as_dir in $PATH
7282do
7283 IFS=$as_save_IFS
7284 test -z "$as_dir" && as_dir=.
7285 for ac_prog in sed gsed; do
7286 for ac_exec_ext in '' $ac_executable_extensions; do
7287 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00007288 as_fn_executable_p "$ac_path_SED" || continue
cristy73bd4a52010-10-05 11:24:23 +00007289# Check for GNU ac_path_SED and select it if it is found.
7290 # Check for GNU $ac_path_SED
7291case `"$ac_path_SED" --version 2>&1` in
7292*GNU*)
7293 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7294*)
7295 ac_count=0
7296 $as_echo_n 0123456789 >"conftest.in"
7297 while :
7298 do
7299 cat "conftest.in" "conftest.in" >"conftest.tmp"
7300 mv "conftest.tmp" "conftest.in"
7301 cp "conftest.in" "conftest.nl"
7302 $as_echo '' >> "conftest.nl"
7303 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7304 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7305 as_fn_arith $ac_count + 1 && ac_count=$as_val
7306 if test $ac_count -gt ${ac_path_SED_max-0}; then
7307 # Best one so far, save it but keep looking for a better one
7308 ac_cv_path_SED="$ac_path_SED"
7309 ac_path_SED_max=$ac_count
7310 fi
7311 # 10*(2^10) chars as input seems more than enough
7312 test $ac_count -gt 10 && break
7313 done
7314 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7315esac
7316
7317 $ac_path_SED_found && break 3
7318 done
7319 done
7320 done
7321IFS=$as_save_IFS
7322 if test -z "$ac_cv_path_SED"; then
cristy98dddb52010-11-04 00:30:15 +00007323 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007324 fi
7325else
7326 ac_cv_path_SED=$SED
7327fi
7328
7329fi
7330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7331$as_echo "$ac_cv_path_SED" >&6; }
7332 SED="$ac_cv_path_SED"
7333 rm -f conftest.sed
7334
7335test -z "$SED" && SED=sed
7336Xsed="$SED -e 1s/^X//"
7337
7338
7339
7340
7341
7342
7343
7344
7345
7346
7347
7348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7349$as_echo_n "checking for fgrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007350if ${ac_cv_path_FGREP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007351 $as_echo_n "(cached) " >&6
7352else
7353 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7354 then ac_cv_path_FGREP="$GREP -F"
7355 else
7356 if test -z "$FGREP"; then
7357 ac_path_FGREP_found=false
7358 # Loop through the user's path and test for each of PROGNAME-LIST
7359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7360for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7361do
7362 IFS=$as_save_IFS
7363 test -z "$as_dir" && as_dir=.
7364 for ac_prog in fgrep; do
7365 for ac_exec_ext in '' $ac_executable_extensions; do
7366 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00007367 as_fn_executable_p "$ac_path_FGREP" || continue
cristy73bd4a52010-10-05 11:24:23 +00007368# Check for GNU ac_path_FGREP and select it if it is found.
7369 # Check for GNU $ac_path_FGREP
7370case `"$ac_path_FGREP" --version 2>&1` in
7371*GNU*)
7372 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7373*)
7374 ac_count=0
7375 $as_echo_n 0123456789 >"conftest.in"
7376 while :
7377 do
7378 cat "conftest.in" "conftest.in" >"conftest.tmp"
7379 mv "conftest.tmp" "conftest.in"
7380 cp "conftest.in" "conftest.nl"
7381 $as_echo 'FGREP' >> "conftest.nl"
7382 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7383 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7384 as_fn_arith $ac_count + 1 && ac_count=$as_val
7385 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7386 # Best one so far, save it but keep looking for a better one
7387 ac_cv_path_FGREP="$ac_path_FGREP"
7388 ac_path_FGREP_max=$ac_count
7389 fi
7390 # 10*(2^10) chars as input seems more than enough
7391 test $ac_count -gt 10 && break
7392 done
7393 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7394esac
7395
7396 $ac_path_FGREP_found && break 3
7397 done
7398 done
7399 done
7400IFS=$as_save_IFS
7401 if test -z "$ac_cv_path_FGREP"; then
cristy98dddb52010-11-04 00:30:15 +00007402 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007403 fi
7404else
7405 ac_cv_path_FGREP=$FGREP
7406fi
7407
7408 fi
7409fi
7410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7411$as_echo "$ac_cv_path_FGREP" >&6; }
7412 FGREP="$ac_cv_path_FGREP"
7413
7414
7415test -z "$GREP" && GREP=grep
7416
7417
7418
7419
7420
7421
7422
7423
7424
7425
7426
7427
7428
7429
7430
7431
7432
cristy0c60a692010-11-04 01:09:47 +00007433ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7434ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7435ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7436
7437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7438$as_echo_n "checking how to print strings... " >&6; }
7439# Test print first, because it will be a builtin if present.
cristyda16f162011-02-19 23:52:17 +00007440if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
cristy0c60a692010-11-04 01:09:47 +00007441 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7442 ECHO='print -r --'
7443elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7444 ECHO='printf %s\n'
7445else
7446 # Use this function as a fallback that always works.
7447 func_fallback_echo ()
7448 {
7449 eval 'cat <<_LTECHO_EOF
7450$1
7451_LTECHO_EOF'
7452 }
7453 ECHO='func_fallback_echo'
7454fi
7455
7456# func_echo_all arg...
7457# Invoke $ECHO with all args, space-separated.
7458func_echo_all ()
7459{
7460 $ECHO ""
7461}
7462
7463case "$ECHO" in
7464 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7465$as_echo "printf" >&6; } ;;
7466 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7467$as_echo "print -r" >&6; } ;;
7468 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7469$as_echo "cat" >&6; } ;;
7470esac
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484
cristy73bd4a52010-10-05 11:24:23 +00007485
7486
7487# Check whether --with-gnu-ld was given.
7488if test "${with_gnu_ld+set}" = set; then :
7489 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7490else
7491 with_gnu_ld=no
7492fi
7493
7494ac_prog=ld
7495if test "$GCC" = yes; then
7496 # Check if gcc -print-prog-name=ld gives a path.
7497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7498$as_echo_n "checking for ld used by $CC... " >&6; }
7499 case $host in
7500 *-*-mingw*)
7501 # gcc leaves a trailing carriage return which upsets mingw
7502 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7503 *)
7504 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7505 esac
7506 case $ac_prog in
7507 # Accept absolute paths.
7508 [\\/]* | ?:[\\/]*)
7509 re_direlt='/[^/][^/]*/\.\./'
7510 # Canonicalize the pathname of ld
7511 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7512 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7513 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7514 done
7515 test -z "$LD" && LD="$ac_prog"
7516 ;;
7517 "")
7518 # If it fails, then pretend we aren't using GCC.
7519 ac_prog=ld
7520 ;;
7521 *)
7522 # If it is relative, then search for the first ld in PATH.
7523 with_gnu_ld=unknown
7524 ;;
7525 esac
7526elif test "$with_gnu_ld" = yes; then
7527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7528$as_echo_n "checking for GNU ld... " >&6; }
7529else
7530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7531$as_echo_n "checking for non-GNU ld... " >&6; }
7532fi
cristyda16f162011-02-19 23:52:17 +00007533if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007534 $as_echo_n "(cached) " >&6
7535else
7536 if test -z "$LD"; then
7537 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7538 for ac_dir in $PATH; do
7539 IFS="$lt_save_ifs"
7540 test -z "$ac_dir" && ac_dir=.
7541 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7542 lt_cv_path_LD="$ac_dir/$ac_prog"
7543 # Check to see if the program is GNU ld. I'd rather use --version,
7544 # but apparently some variants of GNU ld only accept -v.
7545 # Break only if it was the GNU/non-GNU ld that we prefer.
7546 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7547 *GNU* | *'with BFD'*)
7548 test "$with_gnu_ld" != no && break
7549 ;;
7550 *)
7551 test "$with_gnu_ld" != yes && break
7552 ;;
7553 esac
7554 fi
7555 done
7556 IFS="$lt_save_ifs"
7557else
7558 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7559fi
7560fi
7561
7562LD="$lt_cv_path_LD"
7563if test -n "$LD"; then
7564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7565$as_echo "$LD" >&6; }
7566else
7567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7568$as_echo "no" >&6; }
7569fi
cristy98dddb52010-11-04 00:30:15 +00007570test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7572$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007573if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007574 $as_echo_n "(cached) " >&6
7575else
7576 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7577case `$LD -v 2>&1 </dev/null` in
7578*GNU* | *'with BFD'*)
7579 lt_cv_prog_gnu_ld=yes
7580 ;;
7581*)
7582 lt_cv_prog_gnu_ld=no
7583 ;;
7584esac
7585fi
7586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7587$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7588with_gnu_ld=$lt_cv_prog_gnu_ld
7589
7590
7591
7592
7593
7594
7595
7596
7597
cristy3ed852e2009-09-05 21:47:34 +00007598
cristy837d6dc2010-02-27 01:16:57 +00007599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
7600$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007601if ${ac_cv_prog_cc_c99+:} false; then :
cristy837d6dc2010-02-27 01:16:57 +00007602 $as_echo_n "(cached) " >&6
7603else
7604 ac_cv_prog_cc_c99=no
7605ac_save_CC=$CC
7606cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7607/* end confdefs.h. */
7608#include <stdarg.h>
7609#include <stdbool.h>
7610#include <stdlib.h>
7611#include <wchar.h>
7612#include <stdio.h>
7613
7614// Check varargs macros. These examples are taken from C99 6.10.3.5.
7615#define debug(...) fprintf (stderr, __VA_ARGS__)
7616#define showlist(...) puts (#__VA_ARGS__)
7617#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7618static void
7619test_varargs_macros (void)
7620{
7621 int x = 1234;
7622 int y = 5678;
7623 debug ("Flag");
7624 debug ("X = %d\n", x);
7625 showlist (The first, second, and third items.);
7626 report (x>y, "x is %d but y is %d", x, y);
7627}
7628
7629// Check long long types.
7630#define BIG64 18446744073709551615ull
7631#define BIG32 4294967295ul
7632#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7633#if !BIG_OK
7634 your preprocessor is broken;
7635#endif
7636#if BIG_OK
7637#else
7638 your preprocessor is broken;
7639#endif
7640static long long int bignum = -9223372036854775807LL;
7641static unsigned long long int ubignum = BIG64;
7642
7643struct incomplete_array
7644{
7645 int datasize;
7646 double data[];
7647};
7648
7649struct named_init {
7650 int number;
7651 const wchar_t *name;
7652 double average;
7653};
7654
7655typedef const char *ccp;
7656
7657static inline int
7658test_restrict (ccp restrict text)
7659{
7660 // See if C++-style comments work.
7661 // Iterate through items via the restricted pointer.
7662 // Also check for declarations in for loops.
7663 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7664 continue;
7665 return 0;
7666}
7667
7668// Check varargs and va_copy.
7669static void
7670test_varargs (const char *format, ...)
7671{
7672 va_list args;
7673 va_start (args, format);
7674 va_list args_copy;
7675 va_copy (args_copy, args);
7676
7677 const char *str;
7678 int number;
7679 float fnumber;
7680
7681 while (*format)
7682 {
7683 switch (*format++)
7684 {
7685 case 's': // string
7686 str = va_arg (args_copy, const char *);
7687 break;
7688 case 'd': // int
7689 number = va_arg (args_copy, int);
7690 break;
7691 case 'f': // float
7692 fnumber = va_arg (args_copy, double);
7693 break;
7694 default:
7695 break;
7696 }
7697 }
7698 va_end (args_copy);
7699 va_end (args);
7700}
7701
7702int
7703main ()
7704{
7705
7706 // Check bool.
7707 _Bool success = false;
7708
7709 // Check restrict.
7710 if (test_restrict ("String literal") == 0)
7711 success = true;
7712 char *restrict newvar = "Another string";
7713
7714 // Check varargs.
7715 test_varargs ("s, d' f .", "string", 65, 34.234);
7716 test_varargs_macros ();
7717
7718 // Check flexible array members.
7719 struct incomplete_array *ia =
7720 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7721 ia->datasize = 10;
7722 for (int i = 0; i < ia->datasize; ++i)
7723 ia->data[i] = i * 1.234;
7724
7725 // Check named initializers.
7726 struct named_init ni = {
7727 .number = 34,
7728 .name = L"Test wide string",
7729 .average = 543.34343,
7730 };
7731
7732 ni.number = 58;
7733
7734 int dynamic_array[ni.number];
7735 dynamic_array[ni.number - 1] = 543;
7736
7737 // work around unused variable warnings
7738 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7739 || dynamic_array[ni.number - 1] != 543);
7740
7741 ;
7742 return 0;
7743}
7744_ACEOF
cristy14fefe52012-05-21 00:59:18 +00007745for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
cristy837d6dc2010-02-27 01:16:57 +00007746do
7747 CC="$ac_save_CC $ac_arg"
7748 if ac_fn_c_try_compile "$LINENO"; then :
7749 ac_cv_prog_cc_c99=$ac_arg
7750fi
7751rm -f core conftest.err conftest.$ac_objext
7752 test "x$ac_cv_prog_cc_c99" != "xno" && break
7753done
7754rm -f conftest.$ac_ext
7755CC=$ac_save_CC
7756
7757fi
7758# AC_CACHE_VAL
7759case "x$ac_cv_prog_cc_c99" in
7760 x)
7761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7762$as_echo "none needed" >&6; } ;;
7763 xno)
7764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7765$as_echo "unsupported" >&6; } ;;
7766 *)
7767 CC="$CC $ac_cv_prog_cc_c99"
7768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
7769$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7770esac
7771if test "x$ac_cv_prog_cc_c99" != xno; then :
7772
7773fi
7774
7775
cristy73bd4a52010-10-05 11:24:23 +00007776if test "x$CC" != xcc; then
7777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
7778$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
7779else
7780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
7781$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
7782fi
7783set dummy $CC; ac_cc=`$as_echo "$2" |
7784 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
cristyda16f162011-02-19 23:52:17 +00007785if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007786 $as_echo_n "(cached) " >&6
7787else
cristy73bd4a52010-10-05 11:24:23 +00007788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7789/* end confdefs.h. */
7790
7791int
7792main ()
7793{
7794
7795 ;
7796 return 0;
7797}
7798_ACEOF
7799# Make sure it works both with $CC and with simple cc.
7800# We do the test twice because some compilers refuse to overwrite an
7801# existing .o file with -o, though they will create one.
7802ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7803rm -f conftest2.*
7804if { { case "(($ac_try" in
7805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7806 *) ac_try_echo=$ac_try;;
7807esac
7808eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7809$as_echo "$ac_try_echo"; } >&5
7810 (eval "$ac_try") 2>&5
7811 ac_status=$?
7812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7813 test $ac_status = 0; } &&
7814 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7816 *) ac_try_echo=$ac_try;;
7817esac
7818eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7819$as_echo "$ac_try_echo"; } >&5
7820 (eval "$ac_try") 2>&5
7821 ac_status=$?
7822 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7823 test $ac_status = 0; };
7824then
7825 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
7826 if test "x$CC" != xcc; then
7827 # Test first that cc exists at all.
7828 if { ac_try='cc -c conftest.$ac_ext >&5'
7829 { { case "(($ac_try" in
7830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7831 *) ac_try_echo=$ac_try;;
7832esac
7833eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7834$as_echo "$ac_try_echo"; } >&5
7835 (eval "$ac_try") 2>&5
7836 ac_status=$?
7837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7838 test $ac_status = 0; }; }; then
7839 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7840 rm -f conftest2.*
7841 if { { case "(($ac_try" in
7842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7843 *) ac_try_echo=$ac_try;;
7844esac
7845eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7846$as_echo "$ac_try_echo"; } >&5
7847 (eval "$ac_try") 2>&5
7848 ac_status=$?
7849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7850 test $ac_status = 0; } &&
7851 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7853 *) ac_try_echo=$ac_try;;
7854esac
7855eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7856$as_echo "$ac_try_echo"; } >&5
7857 (eval "$ac_try") 2>&5
7858 ac_status=$?
7859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7860 test $ac_status = 0; };
7861 then
7862 # cc works too.
7863 :
7864 else
7865 # cc exists but doesn't like -o.
7866 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7867 fi
7868 fi
7869 fi
7870else
7871 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7872fi
7873rm -f core conftest*
7874
7875fi
7876if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
7877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7878$as_echo "yes" >&6; }
7879else
7880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7881$as_echo "no" >&6; }
7882
7883$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
7884
7885fi
7886
7887# FIXME: we rely on the cache variable name because
7888# there is no other way.
7889set dummy $CC
7890am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7891eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
7892if test "$am_t" != yes; then
7893 # Losing compiler, so override with the script.
7894 # FIXME: It is wrong to rewrite CC.
7895 # But if we don't then we get into trouble of one sort or another.
7896 # A longer-term fix would be to have automake use am__CC in this case,
7897 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7898 CC="$am_aux_dir/compile $CC"
7899fi
7900
7901
7902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
7903$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007904if ${ac_cv_cflags_warn_all+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007905 $as_echo_n "(cached) " >&6
7906else
7907 ac_cv_cflags_warn_all="no, unknown"
cristy73bd4a52010-10-05 11:24:23 +00007908 ac_ext=c
7909ac_cpp='$CPP $CPPFLAGS'
7910ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7911ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7912ac_compiler_gnu=$ac_cv_c_compiler_gnu
7913
7914 ac_save_CFLAGS="$CFLAGS"
7915for 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" #
7916do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
7917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7918/* end confdefs.h. */
7919
7920int
7921main ()
7922{
cristy24fc1fe2010-10-23 21:13:01 +00007923
cristy73bd4a52010-10-05 11:24:23 +00007924 ;
7925 return 0;
7926}
7927_ACEOF
7928if ac_fn_c_try_compile "$LINENO"; then :
7929 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
7930fi
7931rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7932done
7933 CFLAGS="$ac_save_CFLAGS"
7934 ac_ext=c
7935ac_cpp='$CPP $CPPFLAGS'
7936ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7937ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7938ac_compiler_gnu=$ac_cv_c_compiler_gnu
7939
7940
7941fi
7942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
7943$as_echo "$ac_cv_cflags_warn_all" >&6; }
7944case ".$ac_cv_cflags_warn_all" in
7945 .ok|.ok,*) ;;
7946 .|.no|.no,*)
7947 ;;
7948 *)
7949 if echo " $CFLAGS " | grep " $ac_cv_cflags_warn_all " 2>&1 >/dev/null
7950 then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_warn_all"; } >&5
7951 (: CFLAGS does contain $ac_cv_cflags_warn_all) 2>&5
7952 ac_status=$?
7953 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7954 test $ac_status = 0; }
7955 else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
7956 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
7957 ac_status=$?
7958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7959 test $ac_status = 0; }
7960 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
7961 fi
7962 ;;
nicolas6237c462010-10-05 06:11:49 +00007963esac
cristy3ed852e2009-09-05 21:47:34 +00007964
cristy568c2d42012-07-27 01:41:20 +00007965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5
7966$as_echo_n "checking for C compiler vendor... " >&6; }
7967if ${ax_cv_c_compiler_vendor+:} false; then :
7968 $as_echo_n "(cached) " >&6
7969else
7970 # note: don't check for gcc first since some other compilers define __GNUC__
7971 vendors="intel: __ICC,__ECC,__INTEL_COMPILER
7972 ibm: __xlc__,__xlC__,__IBMC__,__IBMCPP__
7973 pathscale: __PATHCC__,__PATHSCALE__
7974 clang: __clang__
7975 gnu: __GNUC__
7976 sun: __SUNPRO_C,__SUNPRO_CC
7977 hp: __HP_cc,__HP_aCC
7978 dec: __DECC,__DECCXX,__DECC_VER,__DECCXX_VER
7979 borland: __BORLANDC__,__TURBOC__
7980 comeau: __COMO__
7981 cray: _CRAYC
7982 kai: __KCC
7983 lcc: __LCC__
7984 sgi: __sgi,sgi
7985 microsoft: _MSC_VER
7986 metrowerks: __MWERKS__
7987 watcom: __WATCOMC__
7988 portland: __PGI
7989 unknown: UNKNOWN"
7990 for ventest in $vendors; do
7991 case $ventest in
7992 *:) vendor=$ventest; continue ;;
7993 *) vencpp="defined("`echo $ventest | sed 's/,/) || defined(/g'`")" ;;
7994 esac
7995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7996/* end confdefs.h. */
7997
7998int
7999main ()
8000{
8001
8002 #if !($vencpp)
8003 thisisanerror;
8004 #endif
8005
8006 ;
8007 return 0;
8008}
8009_ACEOF
8010if ac_fn_c_try_compile "$LINENO"; then :
8011 break
8012fi
8013rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8014 done
8015 ax_cv_c_compiler_vendor=`echo $vendor | cut -d: -f1`
8016
8017fi
8018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_vendor" >&5
8019$as_echo "$ax_cv_c_compiler_vendor" >&6; }
8020
cristya0b81c32010-01-22 02:54:33 +00008021
8022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8023$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8024set x ${MAKE-make}
8025ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00008026if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00008027 $as_echo_n "(cached) " >&6
8028else
8029 cat >conftest.make <<\_ACEOF
8030SHELL = /bin/sh
8031all:
8032 @echo '@@@%%%=$(MAKE)=@@@%%%'
8033_ACEOF
cristy98dddb52010-11-04 00:30:15 +00008034# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristya0b81c32010-01-22 02:54:33 +00008035case `${MAKE-make} -f conftest.make 2>/dev/null` in
8036 *@@@%%%=?*=@@@%%%*)
8037 eval ac_cv_prog_make_${ac_make}_set=yes;;
8038 *)
8039 eval ac_cv_prog_make_${ac_make}_set=no;;
8040esac
8041rm -f conftest.make
8042fi
8043if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8045$as_echo "yes" >&6; }
8046 SET_MAKE=
8047else
8048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8049$as_echo "no" >&6; }
8050 SET_MAKE="MAKE=${MAKE-make}"
8051fi
8052
cristy8b350f62009-11-15 23:12:43 +00008053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
cristy3ed852e2009-09-05 21:47:34 +00008054$as_echo_n "checking whether ln -s works... " >&6; }
8055LN_S=$as_ln_s
8056if test "$LN_S" = "ln -s"; then
cristy8b350f62009-11-15 23:12:43 +00008057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00008058$as_echo "yes" >&6; }
8059else
cristy8b350f62009-11-15 23:12:43 +00008060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
cristy3ed852e2009-09-05 21:47:34 +00008061$as_echo "no, using $LN_S" >&6; }
8062fi
8063
cristybc556452012-08-17 19:44:03 +00008064for ac_prog in gawk mawk nawk awk
8065do
8066 # Extract the first word of "$ac_prog", so it can be a program name with args.
8067set dummy $ac_prog; ac_word=$2
8068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8069$as_echo_n "checking for $ac_word... " >&6; }
8070if ${ac_cv_prog_AWK+:} false; then :
8071 $as_echo_n "(cached) " >&6
8072else
8073 if test -n "$AWK"; then
8074 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8075else
8076as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8077for as_dir in $PATH
8078do
8079 IFS=$as_save_IFS
8080 test -z "$as_dir" && as_dir=.
8081 for ac_exec_ext in '' $ac_executable_extensions; do
8082 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8083 ac_cv_prog_AWK="$ac_prog"
8084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8085 break 2
8086 fi
8087done
8088 done
8089IFS=$as_save_IFS
8090
8091fi
8092fi
8093AWK=$ac_cv_prog_AWK
8094if test -n "$AWK"; then
8095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8096$as_echo "$AWK" >&6; }
8097else
8098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8099$as_echo "no" >&6; }
8100fi
8101
8102
8103 test -n "$AWK" && break
8104done
8105
cristy73bd4a52010-10-05 11:24:23 +00008106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
8107$as_echo_n "checking if malloc debugging is wanted... " >&6; }
8108
8109# Check whether --with-dmalloc was given.
8110if test "${with_dmalloc+set}" = set; then :
8111 withval=$with_dmalloc; if test "$withval" = yes; then
8112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8113$as_echo "yes" >&6; }
8114
8115$as_echo "#define WITH_DMALLOC 1" >>confdefs.h
8116
8117 LIBS="$LIBS -ldmalloc"
8118 LDFLAGS="$LDFLAGS -g"
8119else
8120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8121$as_echo "no" >&6; }
8122fi
8123else
8124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8125$as_echo "no" >&6; }
8126fi
8127
8128
8129
8130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
8131$as_echo_n "checking for __attribute__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008132if ${ax_cv___attribute__+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008133 $as_echo_n "(cached) " >&6
8134else
8135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8136/* end confdefs.h. */
8137#include <stdlib.h>
cristy73380532012-02-18 20:26:28 +00008138 static void foo(void) __attribute__ ((__unused__));
cristy73bd4a52010-10-05 11:24:23 +00008139 static void
8140 foo(void) {
8141 exit(1);
8142 }
8143
8144int
8145main ()
8146{
8147
8148 ;
8149 return 0;
8150}
8151_ACEOF
8152if ac_fn_c_try_compile "$LINENO"; then :
8153 ax_cv___attribute__=yes
8154else
8155 ax_cv___attribute__=no
8156
8157fi
8158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8159
8160fi
8161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv___attribute__" >&5
8162$as_echo "$ax_cv___attribute__" >&6; }
8163 if test "$ax_cv___attribute__" = "yes"; then
8164
8165$as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
8166
8167 fi
8168
8169
8170
cristy37110d62012-03-01 18:38:20 +00008171
8172
8173# Check whether --with-gcc-arch was given.
8174if test "${with_gcc_arch+set}" = set; then :
8175 withval=$with_gcc_arch; ax_gcc_arch=$withval
8176else
cristya32d1812012-03-02 19:24:21 +00008177 ax_gcc_arch=no
cristy37110d62012-03-01 18:38:20 +00008178fi
8179
8180
8181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
8182$as_echo_n "checking for gcc architecture flag... " >&6; }
8183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
8184$as_echo "" >&6; }
8185if ${ax_cv_gcc_archflag+:} false; then :
8186 $as_echo_n "(cached) " >&6
8187else
8188
8189ax_cv_gcc_archflag="unknown"
8190
8191if test "$GCC" = yes; then
8192
8193if test "x$ax_gcc_arch" = xyes; then
8194ax_gcc_arch=""
8195if test "$cross_compiling" = no; then
8196case $host_cpu in
8197 i[3456]86*|x86_64*) # use cpuid codes
8198
8199ac_ext=c
8200ac_cpp='$CPP $CPPFLAGS'
8201ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8202ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8203ac_compiler_gnu=$ac_cv_c_compiler_gnu
8204
8205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0 output" >&5
8206$as_echo_n "checking for x86 cpuid 0 output... " >&6; }
8207if ${ax_cv_gcc_x86_cpuid_0+:} false; then :
8208 $as_echo_n "(cached) " >&6
8209else
8210 if test "$cross_compiling" = yes; then :
8211 ax_cv_gcc_x86_cpuid_0=unknown
8212else
8213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8214/* end confdefs.h. */
8215#include <stdio.h>
8216int
8217main ()
8218{
8219
8220 int op = 0, eax, ebx, ecx, edx;
8221 FILE *f;
8222 __asm__("cpuid"
8223 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8224 : "a" (op));
8225 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8226 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8227 fclose(f);
8228 return 0;
8229
8230 ;
8231 return 0;
8232}
8233_ACEOF
8234if ac_fn_c_try_run "$LINENO"; then :
8235 ax_cv_gcc_x86_cpuid_0=`cat conftest_cpuid`; rm -f conftest_cpuid
8236else
8237 ax_cv_gcc_x86_cpuid_0=unknown; rm -f conftest_cpuid
8238fi
8239rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8240 conftest.$ac_objext conftest.beam conftest.$ac_ext
8241fi
8242
8243fi
8244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0" >&5
8245$as_echo "$ax_cv_gcc_x86_cpuid_0" >&6; }
8246ac_ext=c
8247ac_cpp='$CPP $CPPFLAGS'
8248ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8249ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8250ac_compiler_gnu=$ac_cv_c_compiler_gnu
8251
8252
8253
8254ac_ext=c
8255ac_cpp='$CPP $CPPFLAGS'
8256ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8257ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8258ac_compiler_gnu=$ac_cv_c_compiler_gnu
8259
8260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 1 output" >&5
8261$as_echo_n "checking for x86 cpuid 1 output... " >&6; }
8262if ${ax_cv_gcc_x86_cpuid_1+:} false; then :
8263 $as_echo_n "(cached) " >&6
8264else
8265 if test "$cross_compiling" = yes; then :
8266 ax_cv_gcc_x86_cpuid_1=unknown
8267else
8268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8269/* end confdefs.h. */
8270#include <stdio.h>
8271int
8272main ()
8273{
8274
8275 int op = 1, eax, ebx, ecx, edx;
8276 FILE *f;
8277 __asm__("cpuid"
8278 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8279 : "a" (op));
8280 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8281 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8282 fclose(f);
8283 return 0;
8284
8285 ;
8286 return 0;
8287}
8288_ACEOF
8289if ac_fn_c_try_run "$LINENO"; then :
8290 ax_cv_gcc_x86_cpuid_1=`cat conftest_cpuid`; rm -f conftest_cpuid
8291else
8292 ax_cv_gcc_x86_cpuid_1=unknown; rm -f conftest_cpuid
8293fi
8294rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8295 conftest.$ac_objext conftest.beam conftest.$ac_ext
8296fi
8297
8298fi
8299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_1" >&5
8300$as_echo "$ax_cv_gcc_x86_cpuid_1" >&6; }
8301ac_ext=c
8302ac_cpp='$CPP $CPPFLAGS'
8303ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8304ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8305ac_compiler_gnu=$ac_cv_c_compiler_gnu
8306
8307
8308 case $ax_cv_gcc_x86_cpuid_0 in
8309 *:756e6547:*:*) # Intel
8310 case $ax_cv_gcc_x86_cpuid_1 in
8311 *5[48]?:*:*:*) ax_gcc_arch="pentium-mmx pentium" ;;
8312 *5??:*:*:*) ax_gcc_arch=pentium ;;
8313 *0?6[3456]?:*:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
8314 *0?6a?:*[01]:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
8315 *0?6a?:*[234]:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
8316 *0?6[9de]?:*:*:*) ax_gcc_arch="pentium-m pentium3 pentiumpro" ;;
8317 *0?6[78b]?:*:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
8318 *0?6f?:*:*:*|*1?66?:*:*:*) ax_gcc_arch="core2 pentium-m pentium3 pentiumpro" ;;
8319 *1?6[7d]?:*:*:*) ax_gcc_arch="penryn core2 pentium-m pentium3 pentiumpro" ;;
8320 *1?6[aef]?:*:*:*|*2?6[5cef]?:*:*:*) ax_gcc_arch="corei7 core2 pentium-m pentium3 pentiumpro" ;;
8321 *1?6c?:*:*:*|*[23]?66?:*:*:*) ax_gcc_arch="atom core2 pentium-m pentium3 pentiumpro" ;;
8322 *2?6[ad]?:*:*:*) ax_gcc_arch="corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;;
8323 *0?6??:*:*:*) ax_gcc_arch=pentiumpro ;;
8324 *6??:*:*:*) ax_gcc_arch="core2 pentiumpro" ;;
8325 ?000?f3[347]:*:*:*|?000?f41347:*:*:*|?000?f6?:*:*:*)
8326 case $host_cpu in
8327 x86_64*) ax_gcc_arch="nocona pentium4 pentiumpro" ;;
8328 *) ax_gcc_arch="prescott pentium4 pentiumpro" ;;
8329 esac ;;
8330 ?000?f??:*:*:*) ax_gcc_arch="pentium4 pentiumpro";;
8331 esac ;;
8332 *:68747541:*:*) # AMD
8333 case $ax_cv_gcc_x86_cpuid_1 in
8334 *5[67]?:*:*:*) ax_gcc_arch=k6 ;;
8335 *5[8d]?:*:*:*) ax_gcc_arch="k6-2 k6" ;;
8336 *5[9]?:*:*:*) ax_gcc_arch="k6-3 k6" ;;
8337 *60?:*:*:*) ax_gcc_arch=k7 ;;
8338 *6[12]?:*:*:*) ax_gcc_arch="athlon k7" ;;
8339 *6[34]?:*:*:*) ax_gcc_arch="athlon-tbird k7" ;;
8340 *67?:*:*:*) ax_gcc_arch="athlon-4 athlon k7" ;;
8341 *6[68a]?:*:*:*)
8342
8343ac_ext=c
8344ac_cpp='$CPP $CPPFLAGS'
8345ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8346ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8347ac_compiler_gnu=$ac_cv_c_compiler_gnu
8348
8349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0x80000006 output" >&5
8350$as_echo_n "checking for x86 cpuid 0x80000006 output... " >&6; }
8351if ${ax_cv_gcc_x86_cpuid_0x80000006+:} false; then :
8352 $as_echo_n "(cached) " >&6
8353else
8354 if test "$cross_compiling" = yes; then :
8355 ax_cv_gcc_x86_cpuid_0x80000006=unknown
8356else
8357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8358/* end confdefs.h. */
8359#include <stdio.h>
8360int
8361main ()
8362{
8363
8364 int op = 0x80000006, eax, ebx, ecx, edx;
8365 FILE *f;
8366 __asm__("cpuid"
8367 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8368 : "a" (op));
8369 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8370 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8371 fclose(f);
8372 return 0;
8373
8374 ;
8375 return 0;
8376}
8377_ACEOF
8378if ac_fn_c_try_run "$LINENO"; then :
8379 ax_cv_gcc_x86_cpuid_0x80000006=`cat conftest_cpuid`; rm -f conftest_cpuid
8380else
8381 ax_cv_gcc_x86_cpuid_0x80000006=unknown; rm -f conftest_cpuid
8382fi
8383rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8384 conftest.$ac_objext conftest.beam conftest.$ac_ext
8385fi
8386
8387fi
8388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0x80000006" >&5
8389$as_echo "$ax_cv_gcc_x86_cpuid_0x80000006" >&6; }
8390ac_ext=c
8391ac_cpp='$CPP $CPPFLAGS'
8392ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8393ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8394ac_compiler_gnu=$ac_cv_c_compiler_gnu
8395
8396 # L2 cache size
8397 case $ax_cv_gcc_x86_cpuid_0x80000006 in
8398 *:*:*[1-9a-f]??????:*) # (L2 = ecx >> 16) >= 256
8399 ax_gcc_arch="athlon-xp athlon-4 athlon k7" ;;
8400 *) ax_gcc_arch="athlon-4 athlon k7" ;;
8401 esac ;;
8402 ?00??f[4cef8b]?:*:*:*) ax_gcc_arch="athlon64 k8" ;;
8403 ?00??f5?:*:*:*) ax_gcc_arch="opteron k8" ;;
8404 ?00??f7?:*:*:*) ax_gcc_arch="athlon-fx opteron k8" ;;
8405 ?00??f??:*:*:*) ax_gcc_arch="k8" ;;
8406 ?05??f??:*:*:*) ax_gcc_arch="btver1 amdfam10 k8" ;;
8407 ?06??f??:*:*:*) ax_gcc_arch="bdver1 amdfam10 k8" ;;
8408 *f??:*:*:*) ax_gcc_arch="amdfam10 k8" ;;
8409 esac ;;
8410 *:746e6543:*:*) # IDT
8411 case $ax_cv_gcc_x86_cpuid_1 in
8412 *54?:*:*:*) ax_gcc_arch=winchip-c6 ;;
8413 *58?:*:*:*) ax_gcc_arch=winchip2 ;;
8414 *6[78]?:*:*:*) ax_gcc_arch=c3 ;;
8415 *69?:*:*:*) ax_gcc_arch="c3-2 c3" ;;
8416 esac ;;
8417 esac
8418 if test x"$ax_gcc_arch" = x; then # fallback
8419 case $host_cpu in
8420 i586*) ax_gcc_arch=pentium ;;
8421 i686*) ax_gcc_arch=pentiumpro ;;
8422 esac
8423 fi
8424 ;;
8425
8426 sparc*)
8427 # Extract the first word of "prtdiag", so it can be a program name with args.
8428set dummy prtdiag; ac_word=$2
8429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8430$as_echo_n "checking for $ac_word... " >&6; }
8431if ${ac_cv_path_PRTDIAG+:} false; then :
8432 $as_echo_n "(cached) " >&6
8433else
8434 case $PRTDIAG in
8435 [\\/]* | ?:[\\/]*)
8436 ac_cv_path_PRTDIAG="$PRTDIAG" # Let the user override the test with a path.
8437 ;;
8438 *)
8439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8440as_dummy="$PATH:/usr/platform/`uname -i`/sbin/:/usr/platform/`uname -m`/sbin/"
8441for as_dir in $as_dummy
8442do
8443 IFS=$as_save_IFS
8444 test -z "$as_dir" && as_dir=.
8445 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00008446 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy37110d62012-03-01 18:38:20 +00008447 ac_cv_path_PRTDIAG="$as_dir/$ac_word$ac_exec_ext"
8448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8449 break 2
8450 fi
8451done
8452 done
8453IFS=$as_save_IFS
8454
8455 test -z "$ac_cv_path_PRTDIAG" && ac_cv_path_PRTDIAG="prtdiag"
8456 ;;
8457esac
8458fi
8459PRTDIAG=$ac_cv_path_PRTDIAG
8460if test -n "$PRTDIAG"; then
8461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRTDIAG" >&5
8462$as_echo "$PRTDIAG" >&6; }
8463else
8464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8465$as_echo "no" >&6; }
8466fi
8467
8468
8469 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`
8470 cputype=`echo "$cputype" | tr -d ' -' |tr $as_cr_LETTERS $as_cr_letters`
8471 case $cputype in
8472 *ultrasparciv*) ax_gcc_arch="ultrasparc4 ultrasparc3 ultrasparc v9" ;;
8473 *ultrasparciii*) ax_gcc_arch="ultrasparc3 ultrasparc v9" ;;
8474 *ultrasparc*) ax_gcc_arch="ultrasparc v9" ;;
8475 *supersparc*|*tms390z5[05]*) ax_gcc_arch="supersparc v8" ;;
8476 *hypersparc*|*rt62[056]*) ax_gcc_arch="hypersparc v8" ;;
8477 *cypress*) ax_gcc_arch=cypress ;;
8478 esac ;;
8479
8480 alphaev5) ax_gcc_arch=ev5 ;;
8481 alphaev56) ax_gcc_arch=ev56 ;;
8482 alphapca56) ax_gcc_arch="pca56 ev56" ;;
8483 alphapca57) ax_gcc_arch="pca57 pca56 ev56" ;;
8484 alphaev6) ax_gcc_arch=ev6 ;;
8485 alphaev67) ax_gcc_arch=ev67 ;;
8486 alphaev68) ax_gcc_arch="ev68 ev67" ;;
8487 alphaev69) ax_gcc_arch="ev69 ev68 ev67" ;;
8488 alphaev7) ax_gcc_arch="ev7 ev69 ev68 ev67" ;;
8489 alphaev79) ax_gcc_arch="ev79 ev7 ev69 ev68 ev67" ;;
8490
8491 powerpc*)
8492 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`
8493 cputype=`echo $cputype | sed -e 's/ppc//g;s/ *//g'`
8494 case $cputype in
8495 *750*) ax_gcc_arch="750 G3" ;;
8496 *740[0-9]*) ax_gcc_arch="$cputype 7400 G4" ;;
8497 *74[4-5][0-9]*) ax_gcc_arch="$cputype 7450 G4" ;;
8498 *74[0-9][0-9]*) ax_gcc_arch="$cputype G4" ;;
8499 *970*) ax_gcc_arch="970 G5 power4";;
8500 *POWER4*|*power4*|*gq*) ax_gcc_arch="power4 970";;
8501 *POWER5*|*power5*|*gr*|*gs*) ax_gcc_arch="power5 power4 970";;
8502 603ev|8240) ax_gcc_arch="$cputype 603e 603";;
8503 *) ax_gcc_arch=$cputype ;;
8504 esac
8505 ax_gcc_arch="$ax_gcc_arch powerpc"
8506 ;;
8507esac
8508fi # not cross-compiling
8509fi # guess arch
8510
8511if test "x$ax_gcc_arch" != x -a "x$ax_gcc_arch" != xno; then
8512for arch in $ax_gcc_arch; do
cristya32d1812012-03-02 19:24:21 +00008513 if test "xno" = xyes; then # if we require portable code
cristy37110d62012-03-01 18:38:20 +00008514 flags="-mtune=$arch"
8515 # -mcpu=$arch and m$arch generate nonportable code on every arch except
8516 # x86. And some other arches (e.g. Alpha) don't accept -mtune. Grrr.
8517 case $host_cpu in i*86|x86_64*) flags="$flags -mcpu=$arch -m$arch";; esac
8518 else
8519 flags="-march=$arch -mcpu=$arch -m$arch"
8520 fi
8521 for flag in $flags; do
8522 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
8523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
8524$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
8525if eval \${$as_CACHEVAR+:} false; then :
8526 $as_echo_n "(cached) " >&6
8527else
8528
8529 ax_check_save_flags=$CFLAGS
8530 CFLAGS="$CFLAGS $flag"
8531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8532/* end confdefs.h. */
8533
8534int
8535main ()
8536{
8537
8538 ;
8539 return 0;
8540}
8541_ACEOF
8542if ac_fn_c_try_compile "$LINENO"; then :
8543 eval "$as_CACHEVAR=yes"
8544else
8545 eval "$as_CACHEVAR=no"
8546fi
8547rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8548 CFLAGS=$ax_check_save_flags
8549fi
8550eval ac_res=\$$as_CACHEVAR
8551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8552$as_echo "$ac_res" >&6; }
8553if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
8554 ax_cv_gcc_archflag=$flag; break
8555else
8556 :
8557fi
8558
8559 done
8560 test "x$ax_cv_gcc_archflag" = xunknown || break
8561done
8562fi
8563
8564fi # $GCC=yes
8565
8566fi
8567
8568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
8569$as_echo_n "checking for gcc architecture flag... " >&6; }
8570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_archflag" >&5
8571$as_echo "$ax_cv_gcc_archflag" >&6; }
8572if test "x$ax_cv_gcc_archflag" = xunknown; then
8573 :
8574else
8575 CFLAGS="$CFLAGS $ax_cv_gcc_archflag"
8576fi
8577
8578
8579
cristy73bd4a52010-10-05 11:24:23 +00008580if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
8581 if test -n "$ac_tool_prefix"; then
8582 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
8583set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
8584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8585$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008586if ${ac_cv_path_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008587 $as_echo_n "(cached) " >&6
8588else
8589 case $PKG_CONFIG in
8590 [\\/]* | ?:[\\/]*)
8591 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8592 ;;
8593 *)
8594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8595for as_dir in $PATH
8596do
8597 IFS=$as_save_IFS
8598 test -z "$as_dir" && as_dir=.
8599 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00008600 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00008601 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8603 break 2
8604 fi
8605done
8606 done
8607IFS=$as_save_IFS
8608
8609 ;;
8610esac
8611fi
8612PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8613if test -n "$PKG_CONFIG"; then
8614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8615$as_echo "$PKG_CONFIG" >&6; }
8616else
8617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8618$as_echo "no" >&6; }
8619fi
8620
8621
8622fi
8623if test -z "$ac_cv_path_PKG_CONFIG"; then
8624 ac_pt_PKG_CONFIG=$PKG_CONFIG
8625 # Extract the first word of "pkg-config", so it can be a program name with args.
8626set dummy pkg-config; ac_word=$2
8627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8628$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008629if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008630 $as_echo_n "(cached) " >&6
8631else
8632 case $ac_pt_PKG_CONFIG in
8633 [\\/]* | ?:[\\/]*)
8634 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
8635 ;;
8636 *)
8637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8638for as_dir in $PATH
8639do
8640 IFS=$as_save_IFS
8641 test -z "$as_dir" && as_dir=.
8642 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00008643 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00008644 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8646 break 2
8647 fi
8648done
8649 done
8650IFS=$as_save_IFS
8651
8652 ;;
8653esac
8654fi
8655ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
8656if test -n "$ac_pt_PKG_CONFIG"; then
8657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
8658$as_echo "$ac_pt_PKG_CONFIG" >&6; }
8659else
8660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8661$as_echo "no" >&6; }
8662fi
8663
8664 if test "x$ac_pt_PKG_CONFIG" = x; then
8665 PKG_CONFIG=""
8666 else
8667 case $cross_compiling:$ac_tool_warned in
8668yes:)
8669{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8670$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8671ac_tool_warned=yes ;;
8672esac
8673 PKG_CONFIG=$ac_pt_PKG_CONFIG
8674 fi
8675else
8676 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8677fi
8678
8679fi
8680if test -n "$PKG_CONFIG"; then
8681 _pkg_min_version=0.9.0
8682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
8683$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
8684 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8686$as_echo "yes" >&6; }
8687 else
8688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8689$as_echo "no" >&6; }
8690 PKG_CONFIG=""
8691 fi
8692
8693fi
cristy3ed852e2009-09-05 21:47:34 +00008694
cristy9b86f202012-11-28 21:55:35 +00008695# Check for linker script support
8696
8697 # Check whether --enable-ld-version-script was given.
8698if test "${enable_ld_version_script+set}" = set; then :
8699 enableval=$enable_ld_version_script; have_ld_version_script=$enableval
8700fi
8701
8702 if test -z "$have_ld_version_script"; then
8703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LD -Wl,--version-script works" >&5
8704$as_echo_n "checking if LD -Wl,--version-script works... " >&6; }
8705 save_LDFLAGS="$LDFLAGS"
8706 LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.map"
8707 cat > conftest.map <<EOF
8708foo
8709EOF
8710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8711/* end confdefs.h. */
8712
8713int
8714main ()
8715{
8716
8717 ;
8718 return 0;
8719}
8720_ACEOF
8721if ac_fn_c_try_link "$LINENO"; then :
8722 accepts_syntax_errors=yes
8723else
8724 accepts_syntax_errors=no
8725fi
8726rm -f core conftest.err conftest.$ac_objext \
8727 conftest$ac_exeext conftest.$ac_ext
8728 if test "$accepts_syntax_errors" = no; then
8729 cat > conftest.map <<EOF
8730VERS_1 {
8731 global: sym;
8732};
8733
8734VERS_2 {
8735 global: sym;
8736} VERS_1;
8737EOF
8738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8739/* end confdefs.h. */
8740
8741int
8742main ()
8743{
8744
8745 ;
8746 return 0;
8747}
8748_ACEOF
8749if ac_fn_c_try_link "$LINENO"; then :
8750 have_ld_version_script=yes
8751else
8752 have_ld_version_script=no
8753fi
8754rm -f core conftest.err conftest.$ac_objext \
8755 conftest$ac_exeext conftest.$ac_ext
8756 else
8757 have_ld_version_script=no
8758 fi
8759 rm -f conftest.map
8760 LDFLAGS="$save_LDFLAGS"
8761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ld_version_script" >&5
8762$as_echo "$have_ld_version_script" >&6; }
8763 fi
8764 if test "$have_ld_version_script" = "yes"; then
8765 HAVE_LD_VERSION_SCRIPT_TRUE=
8766 HAVE_LD_VERSION_SCRIPT_FALSE='#'
8767else
8768 HAVE_LD_VERSION_SCRIPT_TRUE='#'
8769 HAVE_LD_VERSION_SCRIPT_FALSE=
8770fi
8771
8772
8773
cristy3ed852e2009-09-05 21:47:34 +00008774#
cristy3ed852e2009-09-05 21:47:34 +00008775# Enable run-time checking.
8776#
8777# Check whether --enable-bounds-checking was given.
cristy8b350f62009-11-15 23:12:43 +00008778if test "${enable_bounds_checking+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008779 enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
8780else
8781 enable_bounds_checking='no'
8782fi
8783
8784
8785if test "$enable_bounds_checking" = yes; then
8786
cristy8b350f62009-11-15 23:12:43 +00008787$as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008788
8789fi
8790
8791#
8792# Tests for Windows
8793#
8794
8795
8796
8797GDI32_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +00008798native_win32_build='no'
8799cygwin_build='no'
8800case "${host_os}" in
8801 cygwin* )
cristy3ed852e2009-09-05 21:47:34 +00008802 cygwin_build='yes'
8803 GDI32_LIBS='-lgdi32'
8804 ;;
8805 mingw* )
cristy3ed852e2009-09-05 21:47:34 +00008806 native_win32_build='yes'
8807 GDI32_LIBS='-lgdi32'
8808 ;;
8809esac
8810if test "${GDI32_LIBS}x" != 'x'; then
8811
cristy8b350f62009-11-15 23:12:43 +00008812$as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008813
8814fi
8815
cristy73bd4a52010-10-05 11:24:23 +00008816 if test "${GDI32_LIBS}x" != 'x' ; then
8817 WINGDI32_DELEGATE_TRUE=
8818 WINGDI32_DELEGATE_FALSE='#'
8819else
8820 WINGDI32_DELEGATE_TRUE='#'
8821 WINGDI32_DELEGATE_FALSE=
8822fi
8823
8824 if test "${native_win32_build}" = 'yes' ; then
8825 WIN32_NATIVE_BUILD_TRUE=
8826 WIN32_NATIVE_BUILD_FALSE='#'
8827else
8828 WIN32_NATIVE_BUILD_TRUE='#'
8829 WIN32_NATIVE_BUILD_FALSE=
8830fi
8831
8832 if test "${cygwin_build}" = 'yes' ; then
8833 CYGWIN_BUILD_TRUE=
8834 CYGWIN_BUILD_FALSE='#'
8835else
8836 CYGWIN_BUILD_TRUE='#'
8837 CYGWIN_BUILD_FALSE=
8838fi
8839
8840 if test "x${CC}" = 'xcl.exe' ; then
8841 USING_CL_TRUE=
8842 USING_CL_FALSE='#'
8843else
8844 USING_CL_TRUE='#'
8845 USING_CL_FALSE=
8846fi
8847
cristy3ed852e2009-09-05 21:47:34 +00008848
8849WinPathScript="${srcdirfull}/winpath.sh"
8850
8851
8852#
8853# Compiler flags tweaks
8854#
8855if test "${GCC}" != "yes"; then
8856 case "${host}" in
8857 *-*-hpux* )
8858 # aCC: HP ANSI C++ B3910B A.03.34
8859 CFLAGS="${CFLAGS} -Wp,-H30000"
8860 if test -n "${CXXFLAGS}"; then
8861 CXXFLAGS='-AA'
8862 else
8863 CXXFLAGS="${CXXFLAGS} -AA"
8864 fi
8865 ;;
8866 *-dec-osf5.* )
8867 # Compaq alphaev68-dec-osf5.1 compiler
8868 if test -n "${CXXFLAGS}"; then
8869 CXXFLAGS='-std strict_ansi -noimplicit_include'
8870 else
8871 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
8872 fi
8873 esac
8874fi
8875
8876# Check for lazy-loading.
cristy8b350f62009-11-15 23:12:43 +00008877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
cristy3ed852e2009-09-05 21:47:34 +00008878$as_echo_n "checking for linker lazyload option... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008879if ${im_cv_ld_lazyload+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00008880 $as_echo_n "(cached) " >&6
8881else
8882
8883im_cv_ld_lazyload='none'
8884case "${host}" in
8885 *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
8886 if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
8887 im_cv_ld_lazyload='-Wl,-zlazyload'
8888 fi
8889 ;;
8890esac
8891
8892fi
cristy8b350f62009-11-15 23:12:43 +00008893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
cristy3ed852e2009-09-05 21:47:34 +00008894$as_echo "$im_cv_ld_lazyload" >&6; }
8895if test "${im_cv_ld_lazyload}" != 'none' ; then
8896 if test -z "${LDFLAGS}" ; then
8897 LDFLAGS="${im_cv_ld_lazyload}"
8898 else
8899 LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
8900 fi
8901fi
8902
8903case "$host" in
8904*darwin* | *-macos10*)
cristy3ed852e2009-09-05 21:47:34 +00008905 # Check whether --enable-osx-universal-binary was given.
cristy8b350f62009-11-15 23:12:43 +00008906if test "${enable_osx_universal_binary+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008907 enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
8908else
8909 build_osxuniversal=no
8910fi
8911
8912
8913 if test "${build_osxuniversal}" != no ; then
8914 if test "$enable_dependency_tracking" != no ; then
cristy98dddb52010-11-04 00:30:15 +00008915 as_fn_error $? "--enable-osx-universal-binary requires --disable-dependency-tracking.
cristy3ed852e2009-09-05 21:47:34 +00008916Please re-run configure with these options:
8917 --disable-dependency-tracking --enable-osx-universal-binary
cristy8b350f62009-11-15 23:12:43 +00008918 " "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00008919 fi
8920 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8921 CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8922 LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8923 fi
8924 ;;
8925esac
8926
cristy0151ae12011-10-28 16:32:29 +00008927#
8928# ARCH specific include directory
8929#
8930
cristy670aa3c2011-11-03 00:54:00 +00008931# Check whether --with-includearch-dir was given.
8932if test "${with_includearch_dir+set}" = set; then :
8933 withval=$with_includearch_dir; includearch_dir=$withval
cristy0151ae12011-10-28 16:32:29 +00008934else
cristy670aa3c2011-11-03 00:54:00 +00008935 includearch_dir=$INCLUDE_DIR
cristy0151ae12011-10-28 16:32:29 +00008936fi
8937
8938
cristy670aa3c2011-11-03 00:54:00 +00008939eval "eval INCLUDEARCH_DIR=$includearch_dir"
cristyac9041a2011-10-28 16:52:32 +00008940
cristy0151ae12011-10-28 16:32:29 +00008941
8942#
8943# ARCH specific configuration directory
8944#
8945
cristy670aa3c2011-11-03 00:54:00 +00008946# Check whether --with-sharearch-dir was given.
8947if test "${with_sharearch_dir+set}" = set; then :
8948 withval=$with_sharearch_dir; sharearch_dir=$withval
cristy0151ae12011-10-28 16:32:29 +00008949else
cristy408ebcd2011-11-14 01:36:57 +00008950 sharearch_dir="${LIB_DIR}"
cristy0151ae12011-10-28 16:32:29 +00008951fi
8952
8953
cristy670aa3c2011-11-03 00:54:00 +00008954eval "eval SHAREARCH_DIR=$sharearch_dir"
8955SHAREARCH_DIR="$sharearch_dir"
cristyac9041a2011-10-28 16:52:32 +00008956
cristy0151ae12011-10-28 16:32:29 +00008957
8958#
cristy3ed852e2009-09-05 21:47:34 +00008959# Enable support for threads
8960
8961# Check whether --with-threads was given.
cristy8b350f62009-11-15 23:12:43 +00008962if test "${with_threads+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008963 withval=$with_threads; with_threads=$withval
8964else
8965 with_threads='yes'
8966fi
8967
8968
8969have_threads=no
8970if test "$with_threads" != 'no'; then
cristy73bd4a52010-10-05 11:24:23 +00008971
8972
cristy73bd4a52010-10-05 11:24:23 +00008973ac_ext=c
8974ac_cpp='$CPP $CPPFLAGS'
8975ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8976ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8977ac_compiler_gnu=$ac_cv_c_compiler_gnu
8978
8979ax_pthread_ok=no
8980
8981# We used to check for pthread.h first, but this fails if pthread.h
8982# requires special compiler flags (e.g. on True64 or Sequent).
8983# It gets checked for in the link test anyway.
8984
8985# First of all, check if the user has set any of the PTHREAD_LIBS,
8986# etcetera environment variables, and if threads linking works using
8987# them:
8988if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8989 save_CFLAGS="$CFLAGS"
8990 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8991 save_LIBS="$LIBS"
8992 LIBS="$PTHREAD_LIBS $LIBS"
8993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
8994$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
8995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8996/* end confdefs.h. */
8997
8998/* Override any GCC internal prototype to avoid an error.
8999 Use char because int might match the return type of a GCC
9000 builtin and then its argument prototype would still apply. */
9001#ifdef __cplusplus
9002extern "C"
9003#endif
9004char pthread_join ();
9005int
9006main ()
9007{
9008return pthread_join ();
9009 ;
9010 return 0;
9011}
9012_ACEOF
9013if ac_fn_c_try_link "$LINENO"; then :
9014 ax_pthread_ok=yes
9015fi
9016rm -f core conftest.err conftest.$ac_objext \
9017 conftest$ac_exeext conftest.$ac_ext
9018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9019$as_echo "$ax_pthread_ok" >&6; }
9020 if test x"$ax_pthread_ok" = xno; then
9021 PTHREAD_LIBS=""
9022 PTHREAD_CFLAGS=""
9023 fi
9024 LIBS="$save_LIBS"
9025 CFLAGS="$save_CFLAGS"
9026fi
9027
9028# We must check for the threads library under a number of different
9029# names; the ordering is very important because some systems
9030# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
9031# libraries is broken (non-POSIX).
9032
9033# Create a list of thread flags to try. Items starting with a "-" are
9034# C compiler flags, and other items are library names, except for "none"
9035# which indicates that we try without any flags at all, and "pthread-config"
9036# which is a program returning the flags for the Pth emulation library.
9037
cristy18307f12011-12-30 01:20:16 +00009038ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt lpthread pthread-config"
cristy73bd4a52010-10-05 11:24:23 +00009039
9040# The ordering *is* (sometimes) important. Some notes on the
9041# individual items follow:
9042
9043# pthreads: AIX (must check this before -lpthread)
9044# none: in case threads are in libc; should be tried before -Kthread and
9045# other compiler flags to prevent continual compiler warnings
9046# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
9047# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
9048# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
9049# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
9050# -pthreads: Solaris/gcc
9051# -mthreads: Mingw32/gcc, Lynx/gcc
9052# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
9053# doesn't hurt to check since this sometimes defines pthreads too;
9054# also defines -D_REENTRANT)
9055# ... -mt is also the pthreads flag for HP/aCC
9056# pthread: Linux, etcetera
9057# --thread-safe: KAI C++
9058# pthread-config: use pthread-config program (for GNU Pth library)
9059
9060case "${host_cpu}-${host_os}" in
9061 *solaris*)
9062
9063 # On Solaris (at least, for some versions), libc contains stubbed
9064 # (non-functional) versions of the pthreads routines, so link-based
9065 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
9066 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
9067 # a function called by this macro, so we could check for that, but
9068 # who knows whether they'll stub that too in a future libc.) So,
9069 # we'll just look for -pthreads and -lpthread first:
9070
9071 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
9072 ;;
9073
cristya316db12011-10-24 00:49:45 +00009074 *-darwin*)
9075 ax_pthread_flags="-pthread $ax_pthread_flags"
9076 ;;
cristy73bd4a52010-10-05 11:24:23 +00009077esac
9078
9079if test x"$ax_pthread_ok" = xno; then
9080for flag in $ax_pthread_flags; do
9081
9082 case $flag in
9083 none)
9084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
9085$as_echo_n "checking whether pthreads work without any flags... " >&6; }
9086 ;;
9087
9088 -*)
9089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
9090$as_echo_n "checking whether pthreads work with $flag... " >&6; }
9091 PTHREAD_CFLAGS="$flag"
9092 ;;
9093
cristya316db12011-10-24 00:49:45 +00009094 pthread-config)
9095 # Extract the first word of "pthread-config", so it can be a program name with args.
cristy73bd4a52010-10-05 11:24:23 +00009096set dummy pthread-config; ac_word=$2
9097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9098$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009099if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009100 $as_echo_n "(cached) " >&6
9101else
9102 if test -n "$ax_pthread_config"; then
9103 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
9104else
9105as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9106for as_dir in $PATH
9107do
9108 IFS=$as_save_IFS
9109 test -z "$as_dir" && as_dir=.
9110 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009111 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009112 ac_cv_prog_ax_pthread_config="yes"
9113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9114 break 2
9115 fi
9116done
9117 done
9118IFS=$as_save_IFS
9119
9120 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
9121fi
9122fi
9123ax_pthread_config=$ac_cv_prog_ax_pthread_config
9124if test -n "$ax_pthread_config"; then
9125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
9126$as_echo "$ax_pthread_config" >&6; }
9127else
9128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9129$as_echo "no" >&6; }
9130fi
9131
9132
cristya316db12011-10-24 00:49:45 +00009133 if test x"$ax_pthread_config" = xno; then continue; fi
9134 PTHREAD_CFLAGS="`pthread-config --cflags`"
9135 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
9136 ;;
cristy73bd4a52010-10-05 11:24:23 +00009137
9138 *)
9139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
9140$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
9141 PTHREAD_LIBS="-l$flag"
9142 ;;
9143 esac
9144
9145 save_LIBS="$LIBS"
9146 save_CFLAGS="$CFLAGS"
9147 LIBS="$PTHREAD_LIBS $LIBS"
9148 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9149
9150 # Check for various functions. We must include pthread.h,
9151 # since some functions may be macros. (On the Sequent, we
9152 # need a special flag -Kthread to make this header compile.)
9153 # We check for pthread_join because it is in -lpthread on IRIX
9154 # while pthread_create is in libc. We check for pthread_attr_init
9155 # due to DEC craziness with -lpthreads. We check for
9156 # pthread_cleanup_push because it is one of the few pthread
9157 # functions on Solaris that doesn't have a non-functional libc stub.
9158 # We try pthread_create on general principles.
9159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9160/* end confdefs.h. */
9161#include <pthread.h>
cristya316db12011-10-24 00:49:45 +00009162 static void routine(void *a) { a = 0; }
9163 static void *start_routine(void *a) { return a; }
cristy73bd4a52010-10-05 11:24:23 +00009164int
9165main ()
9166{
9167pthread_t th; pthread_attr_t attr;
cristya316db12011-10-24 00:49:45 +00009168 pthread_create(&th, 0, start_routine, 0);
9169 pthread_join(th, 0);
9170 pthread_attr_init(&attr);
9171 pthread_cleanup_push(routine, 0);
9172 pthread_cleanup_pop(0) /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009173 ;
9174 return 0;
9175}
9176_ACEOF
9177if ac_fn_c_try_link "$LINENO"; then :
9178 ax_pthread_ok=yes
9179fi
9180rm -f core conftest.err conftest.$ac_objext \
9181 conftest$ac_exeext conftest.$ac_ext
9182
9183 LIBS="$save_LIBS"
9184 CFLAGS="$save_CFLAGS"
9185
9186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9187$as_echo "$ax_pthread_ok" >&6; }
9188 if test "x$ax_pthread_ok" = xyes; then
9189 break;
9190 fi
9191
9192 PTHREAD_LIBS=""
9193 PTHREAD_CFLAGS=""
9194done
9195fi
9196
9197# Various other checks:
9198if test "x$ax_pthread_ok" = xyes; then
9199 save_LIBS="$LIBS"
9200 LIBS="$PTHREAD_LIBS $LIBS"
9201 save_CFLAGS="$CFLAGS"
9202 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9203
9204 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristya316db12011-10-24 00:49:45 +00009205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy73bd4a52010-10-05 11:24:23 +00009206$as_echo_n "checking for joinable pthread attribute... " >&6; }
cristya316db12011-10-24 00:49:45 +00009207 attr_name=unknown
9208 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
9209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +00009210/* end confdefs.h. */
9211#include <pthread.h>
9212int
9213main ()
9214{
cristya316db12011-10-24 00:49:45 +00009215int attr = $attr; return attr /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009216 ;
9217 return 0;
9218}
9219_ACEOF
9220if ac_fn_c_try_link "$LINENO"; then :
9221 attr_name=$attr; break
9222fi
9223rm -f core conftest.err conftest.$ac_objext \
9224 conftest$ac_exeext conftest.$ac_ext
cristya316db12011-10-24 00:49:45 +00009225 done
cristy73bd4a52010-10-05 11:24:23 +00009226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
9227$as_echo "$attr_name" >&6; }
9228 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
9229
9230cat >>confdefs.h <<_ACEOF
9231#define PTHREAD_CREATE_JOINABLE $attr_name
9232_ACEOF
9233
9234 fi
9235
9236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
9237$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
9238 flag=no
9239 case "${host_cpu}-${host_os}" in
9240 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
9241 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
9242 esac
9243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
9244$as_echo "${flag}" >&6; }
9245 if test "x$flag" != xno; then
9246 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
9247 fi
9248
cristya316db12011-10-24 00:49:45 +00009249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
9250$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
9251if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
9252 $as_echo_n "(cached) " >&6
9253else
9254
9255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9256/* end confdefs.h. */
9257
9258 #include <pthread.h>
9259int
9260main ()
9261{
9262int i = PTHREAD_PRIO_INHERIT;
9263 ;
9264 return 0;
9265}
9266_ACEOF
9267if ac_fn_c_try_link "$LINENO"; then :
9268 ax_cv_PTHREAD_PRIO_INHERIT=yes
9269else
9270 ax_cv_PTHREAD_PRIO_INHERIT=no
9271fi
9272rm -f core conftest.err conftest.$ac_objext \
9273 conftest$ac_exeext conftest.$ac_ext
9274
9275fi
9276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
9277$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
9278 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
9279
9280$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
9281
9282fi
9283
cristy73bd4a52010-10-05 11:24:23 +00009284 LIBS="$save_LIBS"
9285 CFLAGS="$save_CFLAGS"
9286
9287 # More AIX lossage: must compile with xlc_r or cc_r
cristya316db12011-10-24 00:49:45 +00009288 if test x"$GCC" != xyes; then
cristy73bd4a52010-10-05 11:24:23 +00009289 for ac_prog in xlc_r cc_r
9290do
9291 # Extract the first word of "$ac_prog", so it can be a program name with args.
9292set dummy $ac_prog; ac_word=$2
9293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9294$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009295if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009296 $as_echo_n "(cached) " >&6
9297else
9298 if test -n "$PTHREAD_CC"; then
9299 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
9300else
9301as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9302for as_dir in $PATH
9303do
9304 IFS=$as_save_IFS
9305 test -z "$as_dir" && as_dir=.
9306 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009307 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009308 ac_cv_prog_PTHREAD_CC="$ac_prog"
9309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9310 break 2
9311 fi
9312done
9313 done
9314IFS=$as_save_IFS
9315
9316fi
9317fi
9318PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
9319if test -n "$PTHREAD_CC"; then
9320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
9321$as_echo "$PTHREAD_CC" >&6; }
9322else
9323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9324$as_echo "no" >&6; }
9325fi
9326
9327
9328 test -n "$PTHREAD_CC" && break
9329done
9330test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
9331
9332 else
9333 PTHREAD_CC=$CC
cristya316db12011-10-24 00:49:45 +00009334 fi
cristy73bd4a52010-10-05 11:24:23 +00009335else
9336 PTHREAD_CC="$CC"
9337fi
9338
9339
9340
9341
9342
9343# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
9344if test x"$ax_pthread_ok" = xyes; then
9345
9346$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
9347
9348 :
9349else
9350 ax_pthread_ok=no
9351
9352fi
9353ac_ext=c
9354ac_cpp='$CPP $CPPFLAGS'
9355ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9356ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9357ac_compiler_gnu=$ac_cv_c_compiler_gnu
9358
9359
cristy7acf8fb2010-09-23 19:58:53 +00009360 if test "$ax_pthread_ok" = yes; then
cristy3ed852e2009-09-05 21:47:34 +00009361 have_threads=yes
9362 DEF_THREAD="$PTHREAD_CFLAGS"
9363 CFLAGS="$CFLAGS $DEF_THREAD"
9364 CXXFLAGS="$CXXFLAGS $DEF_THREAD"
9365 if test "$CC" != "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +00009366 { $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 +00009367$as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
9368 CC="$PTHREAD_CC"
9369 fi
cristy55bf91c2010-09-24 00:29:41 +00009370
9371$as_echo "#define THREAD_SUPPORT 1" >>confdefs.h
9372
cristy3ed852e2009-09-05 21:47:34 +00009373 fi
9374fi
9375
9376# Enable support for OpenMP
9377if test "$have_threads" != 'yes'; then
9378 ac_cv_prog_c_openmp=unsupported
9379fi
9380
9381 OPENMP_CFLAGS=
9382 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +00009383if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009384 enableval=$enable_openmp;
9385fi
9386
9387 if test "$enable_openmp" != no; then
cristy8b350f62009-11-15 23:12:43 +00009388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00009389$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009390if ${ac_cv_prog_c_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009391 $as_echo_n "(cached) " >&6
9392else
cristy8b350f62009-11-15 23:12:43 +00009393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9394/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00009395
9396#ifndef _OPENMP
9397 choke me
9398#endif
9399#include <omp.h>
9400int main () { return omp_get_num_threads (); }
9401
9402_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009403if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009404 ac_cv_prog_c_openmp='none needed'
9405else
cristy8b350f62009-11-15 23:12:43 +00009406 ac_cv_prog_c_openmp='unsupported'
cristy14fefe52012-05-21 00:59:18 +00009407 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
9408 -Popenmp --openmp; do
cristy3ed852e2009-09-05 21:47:34 +00009409 ac_save_CFLAGS=$CFLAGS
9410 CFLAGS="$CFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +00009411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9412/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00009413
9414#ifndef _OPENMP
9415 choke me
9416#endif
9417#include <omp.h>
9418int main () { return omp_get_num_threads (); }
9419
9420_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009421if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009422 ac_cv_prog_c_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +00009423fi
cristy8b350f62009-11-15 23:12:43 +00009424rm -f core conftest.err conftest.$ac_objext \
9425 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009426 CFLAGS=$ac_save_CFLAGS
9427 if test "$ac_cv_prog_c_openmp" != unsupported; then
9428 break
9429 fi
9430 done
9431fi
cristy8b350f62009-11-15 23:12:43 +00009432rm -f core conftest.err conftest.$ac_objext \
9433 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009434fi
cristy8b350f62009-11-15 23:12:43 +00009435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +00009436$as_echo "$ac_cv_prog_c_openmp" >&6; }
9437 case $ac_cv_prog_c_openmp in #(
9438 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +00009439 ;; #(
cristy3ed852e2009-09-05 21:47:34 +00009440 *)
cristy8b350f62009-11-15 23:12:43 +00009441 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +00009442 esac
9443 fi
9444
9445
9446CFLAGS="$OPENMP_CFLAGS $CFLAGS"
9447MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
9448
cristy391f1ce2010-09-09 17:23:28 +00009449if test "$enable_openmp" != no; then
9450 if test "$ac_cv_prog_c_openmp" != 'unsupported'; then
9451 MAGICK_FEATURES="OpenMP $MAGICK_FEATURES"
9452 fi
9453fi
cristy3ed852e2009-09-05 21:47:34 +00009454
cristy736173a2009-09-20 21:18:22 +00009455# Enable support for OpenCL
cristy73bd4a52010-10-05 11:24:23 +00009456
9457
cristy73bd4a52010-10-05 11:24:23 +00009458ac_ext=c
9459ac_cpp='$CPP $CPPFLAGS'
9460ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9461ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9462ac_compiler_gnu=$ac_cv_c_compiler_gnu
9463
9464ax_pthread_ok=no
9465
9466# We used to check for pthread.h first, but this fails if pthread.h
9467# requires special compiler flags (e.g. on True64 or Sequent).
9468# It gets checked for in the link test anyway.
9469
9470# First of all, check if the user has set any of the PTHREAD_LIBS,
9471# etcetera environment variables, and if threads linking works using
9472# them:
9473if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
9474 save_CFLAGS="$CFLAGS"
9475 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9476 save_LIBS="$LIBS"
9477 LIBS="$PTHREAD_LIBS $LIBS"
9478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
9479$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
9480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9481/* end confdefs.h. */
9482
9483/* Override any GCC internal prototype to avoid an error.
9484 Use char because int might match the return type of a GCC
9485 builtin and then its argument prototype would still apply. */
9486#ifdef __cplusplus
9487extern "C"
9488#endif
9489char pthread_join ();
9490int
9491main ()
9492{
9493return pthread_join ();
9494 ;
9495 return 0;
9496}
9497_ACEOF
9498if ac_fn_c_try_link "$LINENO"; then :
9499 ax_pthread_ok=yes
9500fi
9501rm -f core conftest.err conftest.$ac_objext \
9502 conftest$ac_exeext conftest.$ac_ext
9503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9504$as_echo "$ax_pthread_ok" >&6; }
9505 if test x"$ax_pthread_ok" = xno; then
9506 PTHREAD_LIBS=""
9507 PTHREAD_CFLAGS=""
9508 fi
9509 LIBS="$save_LIBS"
9510 CFLAGS="$save_CFLAGS"
9511fi
9512
9513# We must check for the threads library under a number of different
9514# names; the ordering is very important because some systems
9515# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
9516# libraries is broken (non-POSIX).
9517
9518# Create a list of thread flags to try. Items starting with a "-" are
9519# C compiler flags, and other items are library names, except for "none"
9520# which indicates that we try without any flags at all, and "pthread-config"
9521# which is a program returning the flags for the Pth emulation library.
9522
cristy18307f12011-12-30 01:20:16 +00009523ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt lpthread pthread-config"
cristy73bd4a52010-10-05 11:24:23 +00009524
9525# The ordering *is* (sometimes) important. Some notes on the
9526# individual items follow:
9527
9528# pthreads: AIX (must check this before -lpthread)
9529# none: in case threads are in libc; should be tried before -Kthread and
9530# other compiler flags to prevent continual compiler warnings
9531# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
9532# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
9533# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
9534# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
9535# -pthreads: Solaris/gcc
9536# -mthreads: Mingw32/gcc, Lynx/gcc
9537# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
9538# doesn't hurt to check since this sometimes defines pthreads too;
9539# also defines -D_REENTRANT)
9540# ... -mt is also the pthreads flag for HP/aCC
9541# pthread: Linux, etcetera
9542# --thread-safe: KAI C++
9543# pthread-config: use pthread-config program (for GNU Pth library)
9544
9545case "${host_cpu}-${host_os}" in
9546 *solaris*)
9547
9548 # On Solaris (at least, for some versions), libc contains stubbed
9549 # (non-functional) versions of the pthreads routines, so link-based
9550 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
9551 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
9552 # a function called by this macro, so we could check for that, but
9553 # who knows whether they'll stub that too in a future libc.) So,
9554 # we'll just look for -pthreads and -lpthread first:
9555
9556 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
9557 ;;
9558
cristya316db12011-10-24 00:49:45 +00009559 *-darwin*)
9560 ax_pthread_flags="-pthread $ax_pthread_flags"
9561 ;;
cristy73bd4a52010-10-05 11:24:23 +00009562esac
9563
9564if test x"$ax_pthread_ok" = xno; then
9565for flag in $ax_pthread_flags; do
9566
9567 case $flag in
9568 none)
9569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
9570$as_echo_n "checking whether pthreads work without any flags... " >&6; }
9571 ;;
9572
9573 -*)
9574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
9575$as_echo_n "checking whether pthreads work with $flag... " >&6; }
9576 PTHREAD_CFLAGS="$flag"
9577 ;;
9578
cristya316db12011-10-24 00:49:45 +00009579 pthread-config)
9580 # Extract the first word of "pthread-config", so it can be a program name with args.
cristy73bd4a52010-10-05 11:24:23 +00009581set dummy pthread-config; ac_word=$2
9582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9583$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009584if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009585 $as_echo_n "(cached) " >&6
9586else
9587 if test -n "$ax_pthread_config"; then
9588 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
9589else
9590as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9591for as_dir in $PATH
9592do
9593 IFS=$as_save_IFS
9594 test -z "$as_dir" && as_dir=.
9595 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009596 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009597 ac_cv_prog_ax_pthread_config="yes"
9598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9599 break 2
9600 fi
9601done
9602 done
9603IFS=$as_save_IFS
9604
9605 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
9606fi
9607fi
9608ax_pthread_config=$ac_cv_prog_ax_pthread_config
9609if test -n "$ax_pthread_config"; then
9610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
9611$as_echo "$ax_pthread_config" >&6; }
9612else
9613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9614$as_echo "no" >&6; }
9615fi
9616
9617
cristya316db12011-10-24 00:49:45 +00009618 if test x"$ax_pthread_config" = xno; then continue; fi
9619 PTHREAD_CFLAGS="`pthread-config --cflags`"
9620 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
9621 ;;
cristy73bd4a52010-10-05 11:24:23 +00009622
9623 *)
9624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
9625$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
9626 PTHREAD_LIBS="-l$flag"
9627 ;;
9628 esac
9629
9630 save_LIBS="$LIBS"
9631 save_CFLAGS="$CFLAGS"
9632 LIBS="$PTHREAD_LIBS $LIBS"
9633 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9634
9635 # Check for various functions. We must include pthread.h,
9636 # since some functions may be macros. (On the Sequent, we
9637 # need a special flag -Kthread to make this header compile.)
9638 # We check for pthread_join because it is in -lpthread on IRIX
9639 # while pthread_create is in libc. We check for pthread_attr_init
9640 # due to DEC craziness with -lpthreads. We check for
9641 # pthread_cleanup_push because it is one of the few pthread
9642 # functions on Solaris that doesn't have a non-functional libc stub.
9643 # We try pthread_create on general principles.
9644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9645/* end confdefs.h. */
9646#include <pthread.h>
cristya316db12011-10-24 00:49:45 +00009647 static void routine(void *a) { a = 0; }
9648 static void *start_routine(void *a) { return a; }
cristy73bd4a52010-10-05 11:24:23 +00009649int
9650main ()
9651{
9652pthread_t th; pthread_attr_t attr;
cristya316db12011-10-24 00:49:45 +00009653 pthread_create(&th, 0, start_routine, 0);
9654 pthread_join(th, 0);
9655 pthread_attr_init(&attr);
9656 pthread_cleanup_push(routine, 0);
9657 pthread_cleanup_pop(0) /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009658 ;
9659 return 0;
9660}
9661_ACEOF
9662if ac_fn_c_try_link "$LINENO"; then :
9663 ax_pthread_ok=yes
9664fi
9665rm -f core conftest.err conftest.$ac_objext \
9666 conftest$ac_exeext conftest.$ac_ext
9667
9668 LIBS="$save_LIBS"
9669 CFLAGS="$save_CFLAGS"
9670
9671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9672$as_echo "$ax_pthread_ok" >&6; }
9673 if test "x$ax_pthread_ok" = xyes; then
9674 break;
9675 fi
9676
9677 PTHREAD_LIBS=""
9678 PTHREAD_CFLAGS=""
9679done
9680fi
9681
9682# Various other checks:
9683if test "x$ax_pthread_ok" = xyes; then
9684 save_LIBS="$LIBS"
9685 LIBS="$PTHREAD_LIBS $LIBS"
9686 save_CFLAGS="$CFLAGS"
9687 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9688
9689 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristya316db12011-10-24 00:49:45 +00009690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy73bd4a52010-10-05 11:24:23 +00009691$as_echo_n "checking for joinable pthread attribute... " >&6; }
cristya316db12011-10-24 00:49:45 +00009692 attr_name=unknown
9693 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
9694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +00009695/* end confdefs.h. */
9696#include <pthread.h>
9697int
9698main ()
9699{
cristya316db12011-10-24 00:49:45 +00009700int attr = $attr; return attr /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009701 ;
9702 return 0;
9703}
9704_ACEOF
9705if ac_fn_c_try_link "$LINENO"; then :
9706 attr_name=$attr; break
9707fi
9708rm -f core conftest.err conftest.$ac_objext \
9709 conftest$ac_exeext conftest.$ac_ext
cristya316db12011-10-24 00:49:45 +00009710 done
cristy73bd4a52010-10-05 11:24:23 +00009711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
9712$as_echo "$attr_name" >&6; }
9713 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
9714
9715cat >>confdefs.h <<_ACEOF
9716#define PTHREAD_CREATE_JOINABLE $attr_name
9717_ACEOF
9718
9719 fi
9720
9721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
9722$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
9723 flag=no
9724 case "${host_cpu}-${host_os}" in
9725 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
9726 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
9727 esac
9728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
9729$as_echo "${flag}" >&6; }
9730 if test "x$flag" != xno; then
9731 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
9732 fi
9733
cristya316db12011-10-24 00:49:45 +00009734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
9735$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
9736if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
9737 $as_echo_n "(cached) " >&6
9738else
9739
9740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9741/* end confdefs.h. */
9742
9743 #include <pthread.h>
9744int
9745main ()
9746{
9747int i = PTHREAD_PRIO_INHERIT;
9748 ;
9749 return 0;
9750}
9751_ACEOF
9752if ac_fn_c_try_link "$LINENO"; then :
9753 ax_cv_PTHREAD_PRIO_INHERIT=yes
9754else
9755 ax_cv_PTHREAD_PRIO_INHERIT=no
9756fi
9757rm -f core conftest.err conftest.$ac_objext \
9758 conftest$ac_exeext conftest.$ac_ext
9759
9760fi
9761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
9762$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
9763 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
9764
9765$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
9766
9767fi
9768
cristy73bd4a52010-10-05 11:24:23 +00009769 LIBS="$save_LIBS"
9770 CFLAGS="$save_CFLAGS"
9771
9772 # More AIX lossage: must compile with xlc_r or cc_r
cristya316db12011-10-24 00:49:45 +00009773 if test x"$GCC" != xyes; then
cristy73bd4a52010-10-05 11:24:23 +00009774 for ac_prog in xlc_r cc_r
9775do
9776 # Extract the first word of "$ac_prog", so it can be a program name with args.
9777set dummy $ac_prog; ac_word=$2
9778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9779$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009780if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009781 $as_echo_n "(cached) " >&6
9782else
9783 if test -n "$PTHREAD_CC"; then
9784 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
9785else
9786as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9787for as_dir in $PATH
9788do
9789 IFS=$as_save_IFS
9790 test -z "$as_dir" && as_dir=.
9791 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009792 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009793 ac_cv_prog_PTHREAD_CC="$ac_prog"
9794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9795 break 2
9796 fi
9797done
9798 done
9799IFS=$as_save_IFS
9800
9801fi
9802fi
9803PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
9804if test -n "$PTHREAD_CC"; then
9805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
9806$as_echo "$PTHREAD_CC" >&6; }
9807else
9808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9809$as_echo "no" >&6; }
9810fi
9811
9812
9813 test -n "$PTHREAD_CC" && break
9814done
9815test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
9816
9817 else
9818 PTHREAD_CC=$CC
cristya316db12011-10-24 00:49:45 +00009819 fi
cristy73bd4a52010-10-05 11:24:23 +00009820else
9821 PTHREAD_CC="$CC"
9822fi
9823
9824
9825
9826
9827
9828# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
9829if test x"$ax_pthread_ok" = xyes; then
9830
9831$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
9832
9833 :
9834else
9835 ax_pthread_ok=no
9836
9837fi
9838ac_ext=c
9839ac_cpp='$CPP $CPPFLAGS'
9840ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9841ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9842ac_compiler_gnu=$ac_cv_c_compiler_gnu
9843
9844
9845
9846# Check whether --enable-opencl was given.
9847if test "${enable_opencl+set}" = set; then :
cristy48794642012-09-02 15:19:08 +00009848 enableval=$enable_opencl; enable_opencl=$enableval
cristy73bd4a52010-10-05 11:24:23 +00009849else
cristy48794642012-09-02 15:19:08 +00009850 enable_opencl='no'
cristy73bd4a52010-10-05 11:24:23 +00009851fi
9852
9853
cristy48794642012-09-02 15:19:08 +00009854if test "$enable_opencl" = 'yes'; then
cristy73bd4a52010-10-05 11:24:23 +00009855 ac_ext=c
9856ac_cpp='$CPP $CPPFLAGS'
9857ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9858ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9859ac_compiler_gnu=$ac_cv_c_compiler_gnu
9860
cristy75314cc2012-09-15 23:08:29 +00009861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
9862$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
9863if ${ax_cv_c_compiler_ms+:} false; then :
9864 $as_echo_n "(cached) " >&6
9865else
9866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9867/* end confdefs.h. */
9868
9869int
9870main ()
9871{
9872#ifndef _MSC_VER
9873 choke me
9874#endif
9875
9876 ;
9877 return 0;
9878}
9879_ACEOF
9880if ac_fn_c_try_compile "$LINENO"; then :
9881 ax_compiler_ms=yes
9882else
9883 ax_compiler_ms=no
9884fi
9885rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9886ax_cv_c_compiler_ms=$ax_compiler_ms
9887
9888fi
9889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
9890$as_echo "$ax_cv_c_compiler_ms" >&6; }
cristy73bd4a52010-10-05 11:24:23 +00009891 if test X$ax_compiler_ms = Xno; then :
9892 CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
9893fi
9894
9895 ax_save_CPPFLAGS=$CPPFLAGS
9896 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
9897 for ac_header in CL/cl.h OpenCL/cl.h
9898do :
9899 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9900ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +00009901if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +00009902 cat >>confdefs.h <<_ACEOF
9903#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9904_ACEOF
9905
9906fi
9907
9908done
9909
9910 CPPFLAGS=$ax_save_CPPFLAGS
9911
9912 for ac_header in windows.h
9913do :
9914 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +00009915if test "x$ac_cv_header_windows_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +00009916 cat >>confdefs.h <<_ACEOF
9917#define HAVE_WINDOWS_H 1
9918_ACEOF
9919
9920fi
9921
9922done
9923
9924
9925
9926
9927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
9928$as_echo_n "checking for OpenCL library... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009929if ${ax_cv_check_cl_libcl+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009930 $as_echo_n "(cached) " >&6
9931else
9932 ax_cv_check_cl_libcl=no
9933 case $host_cpu in
9934 x86_64) ax_check_cl_libdir=lib64 ;;
9935 *) ax_check_cl_libdir=lib ;;
9936 esac
9937 ax_save_CPPFLAGS=$CPPFLAGS
9938 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
9939 ax_save_LIBS=$LIBS
9940 LIBS=""
9941 ax_check_libs="-lOpenCL -lCL -lclparser"
9942 for ax_lib in $ax_check_libs; do
9943 if test X$ax_compiler_ms = Xyes; then :
9944 ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
9945else
9946 ax_try_lib=$ax_lib
9947fi
9948 LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
9949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9950/* end confdefs.h. */
9951
9952 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9953 # include <windows.h>
9954 # endif
9955 # ifdef HAVE_CL_CL_H
9956 # include <CL/cl.h>
9957 # elif defined(HAVE_OPENCL_CL_H)
9958 # include <OpenCL/cl.h>
9959 # else
9960 # error no CL.h
9961 # endif
9962int
9963main ()
9964{
9965clCreateContextFromType(0,0,0,0,0)
9966 ;
9967 return 0;
9968}
9969_ACEOF
9970if ac_fn_c_try_link "$LINENO"; then :
9971 ax_cv_check_cl_libcl=$ax_try_lib; break
9972else
9973 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"
9974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9975/* end confdefs.h. */
9976
9977 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9978 # include <windows.h>
9979 # endif
9980 # ifdef HAVE_CL_CL_H
9981 # include <CL/cl.h>
9982 # elif defined(HAVE_OPENCL_CL_H)
9983 # include <OpenCL/cl.h>
9984 # else
9985 # error no CL.h
9986 # endif
9987int
9988main ()
9989{
9990clCreateContextFromType(0,0,0,0,0)
9991 ;
9992 return 0;
9993}
9994_ACEOF
9995if ac_fn_c_try_link "$LINENO"; then :
9996 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
9997else
cristy78c5a0c2010-12-04 20:00:59 +00009998 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 +00009999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10000/* end confdefs.h. */
10001
10002 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10003 # include <windows.h>
10004 # endif
10005 # ifdef HAVE_CL_CL_H
10006 # include <CL/cl.h>
10007 # elif defined(HAVE_OPENCL_CL_H)
10008 # include <OpenCL/cl.h>
10009 # else
10010 # error no CL.h
10011 # endif
10012int
10013main ()
10014{
10015clCreateContextFromType(0,0,0,0,0)
10016 ;
10017 return 0;
10018}
10019_ACEOF
10020if ac_fn_c_try_link "$LINENO"; then :
10021 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
10022fi
10023rm -f core conftest.err conftest.$ac_objext \
10024 conftest$ac_exeext conftest.$ac_ext
10025fi
10026rm -f core conftest.err conftest.$ac_objext \
10027 conftest$ac_exeext conftest.$ac_ext
10028fi
10029rm -f core conftest.err conftest.$ac_objext \
10030 conftest$ac_exeext conftest.$ac_ext
10031 done
10032
cristyc3f8b8e2011-12-22 14:55:16 +000010033 if test "X$ax_cv_check_cl_libcl" = Xno; then :
cristy78c5a0c2010-12-04 20:00:59 +000010034 LIBS='-Wl,-framework,OpenCL'
cristy73bd4a52010-10-05 11:24:23 +000010035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10036/* end confdefs.h. */
10037
10038 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10039 # include <windows.h>
10040 # endif
10041 # ifdef HAVE_CL_CL_H
10042 # include <CL/cl.h>
10043 # elif defined(HAVE_OPENCL_CL_H)
10044 # include <OpenCL/cl.h>
10045 # else
10046 # error no CL.h
10047 # endif
10048int
10049main ()
10050{
10051clCreateContextFromType(0,0,0,0,0)
10052 ;
10053 return 0;
10054}
10055_ACEOF
10056if ac_fn_c_try_link "$LINENO"; then :
10057 ax_cv_check_cl_libcl=$LIBS
10058fi
10059rm -f core conftest.err conftest.$ac_objext \
10060 conftest$ac_exeext conftest.$ac_ext
10061fi
10062
10063 LIBS=$ax_save_LIBS
10064 CPPFLAGS=$ax_save_CPPFLAGS
10065fi
10066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
10067$as_echo "$ax_cv_check_cl_libcl" >&6; }
10068
10069 if test "X$ax_cv_check_cl_libcl" = Xno; then :
10070 no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
10071else
10072 CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS";
10073$as_echo "#define _OPENCL 1" >>confdefs.h
10074
10075fi
10076 ac_ext=c
10077ac_cpp='$CPP $CPPFLAGS'
10078ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10079ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10080ac_compiler_gnu=$ac_cv_c_compiler_gnu
10081
10082fi
10083
10084
10085
10086
cristyc7083c12009-10-14 03:16:55 +000010087CFLAGS="$CL_CFLAGS $CFLAGS"
10088LIBS="$CL_LIBS $LIBS"
cristy736173a2009-09-20 21:18:22 +000010089
cristy391f1ce2010-09-09 17:23:28 +000010090if test "$enable_opencl" != no; then
cristy6e3607c2011-09-13 13:59:17 +000010091 if test "X$ax_cv_check_cl_libcl" != Xno; then :
cristy391f1ce2010-09-09 17:23:28 +000010092 MAGICK_FEATURES="OpenCL $MAGICK_FEATURES"
10093 fi
cristyfd9dcd42010-08-08 18:07:02 +000010094fi
cristy2e8b51d2009-10-17 18:26:15 +000010095
cristy3ed852e2009-09-05 21:47:34 +000010096########
10097#
10098# Check for large file support
10099#
10100########
10101# Check whether --enable-largefile was given.
cristy8b350f62009-11-15 23:12:43 +000010102if test "${enable_largefile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010103 enableval=$enable_largefile;
10104fi
10105
10106if test "$enable_largefile" != no; then
10107
cristy8b350f62009-11-15 23:12:43 +000010108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010109$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010110if ${ac_cv_sys_largefile_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010111 $as_echo_n "(cached) " >&6
10112else
10113 ac_cv_sys_largefile_CC=no
10114 if test "$GCC" != yes; then
10115 ac_save_CC=$CC
10116 while :; do
10117 # IRIX 6.2 and later do not support large files by default,
10118 # so use the C compiler's -n32 option if that helps.
cristy8b350f62009-11-15 23:12:43 +000010119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010120/* end confdefs.h. */
10121#include <sys/types.h>
10122 /* Check that off_t can represent 2**63 - 1 correctly.
10123 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10124 since some C++ compilers masquerading as C compilers
10125 incorrectly reject 9223372036854775807. */
10126#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10127 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10128 && LARGE_OFF_T % 2147483647 == 1)
10129 ? 1 : -1];
10130int
10131main ()
10132{
10133
10134 ;
10135 return 0;
10136}
10137_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010138 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010139 break
cristy3ed852e2009-09-05 21:47:34 +000010140fi
cristy3ed852e2009-09-05 21:47:34 +000010141rm -f core conftest.err conftest.$ac_objext
10142 CC="$CC -n32"
cristy8b350f62009-11-15 23:12:43 +000010143 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010144 ac_cv_sys_largefile_CC=' -n32'; break
cristy3ed852e2009-09-05 21:47:34 +000010145fi
cristy3ed852e2009-09-05 21:47:34 +000010146rm -f core conftest.err conftest.$ac_objext
10147 break
10148 done
10149 CC=$ac_save_CC
10150 rm -f conftest.$ac_ext
10151 fi
10152fi
cristy8b350f62009-11-15 23:12:43 +000010153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +000010154$as_echo "$ac_cv_sys_largefile_CC" >&6; }
10155 if test "$ac_cv_sys_largefile_CC" != no; then
10156 CC=$CC$ac_cv_sys_largefile_CC
10157 fi
10158
cristy8b350f62009-11-15 23:12:43 +000010159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010160$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010161if ${ac_cv_sys_file_offset_bits+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010162 $as_echo_n "(cached) " >&6
10163else
10164 while :; do
cristy8b350f62009-11-15 23:12:43 +000010165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010166/* end confdefs.h. */
10167#include <sys/types.h>
10168 /* Check that off_t can represent 2**63 - 1 correctly.
10169 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10170 since some C++ compilers masquerading as C compilers
10171 incorrectly reject 9223372036854775807. */
10172#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10173 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10174 && LARGE_OFF_T % 2147483647 == 1)
10175 ? 1 : -1];
10176int
10177main ()
10178{
10179
10180 ;
10181 return 0;
10182}
10183_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010184if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010185 ac_cv_sys_file_offset_bits=no; break
cristy3ed852e2009-09-05 21:47:34 +000010186fi
cristy3ed852e2009-09-05 21:47:34 +000010187rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010189/* end confdefs.h. */
10190#define _FILE_OFFSET_BITS 64
10191#include <sys/types.h>
10192 /* Check that off_t can represent 2**63 - 1 correctly.
10193 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10194 since some C++ compilers masquerading as C compilers
10195 incorrectly reject 9223372036854775807. */
10196#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10197 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10198 && LARGE_OFF_T % 2147483647 == 1)
10199 ? 1 : -1];
10200int
10201main ()
10202{
10203
10204 ;
10205 return 0;
10206}
10207_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010208if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010209 ac_cv_sys_file_offset_bits=64; break
cristy3ed852e2009-09-05 21:47:34 +000010210fi
cristy3ed852e2009-09-05 21:47:34 +000010211rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10212 ac_cv_sys_file_offset_bits=unknown
10213 break
10214done
10215fi
cristy8b350f62009-11-15 23:12:43 +000010216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
cristy3ed852e2009-09-05 21:47:34 +000010217$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
10218case $ac_cv_sys_file_offset_bits in #(
10219 no | unknown) ;;
10220 *)
10221cat >>confdefs.h <<_ACEOF
10222#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10223_ACEOF
10224;;
10225esac
10226rm -rf conftest*
10227 if test $ac_cv_sys_file_offset_bits = unknown; then
cristy8b350f62009-11-15 23:12:43 +000010228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010229$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010230if ${ac_cv_sys_large_files+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010231 $as_echo_n "(cached) " >&6
10232else
10233 while :; do
cristy8b350f62009-11-15 23:12:43 +000010234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010235/* end confdefs.h. */
10236#include <sys/types.h>
10237 /* Check that off_t can represent 2**63 - 1 correctly.
10238 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10239 since some C++ compilers masquerading as C compilers
10240 incorrectly reject 9223372036854775807. */
10241#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10242 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10243 && LARGE_OFF_T % 2147483647 == 1)
10244 ? 1 : -1];
10245int
10246main ()
10247{
10248
10249 ;
10250 return 0;
10251}
10252_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010253if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010254 ac_cv_sys_large_files=no; break
cristy3ed852e2009-09-05 21:47:34 +000010255fi
cristy3ed852e2009-09-05 21:47:34 +000010256rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010258/* end confdefs.h. */
10259#define _LARGE_FILES 1
10260#include <sys/types.h>
10261 /* Check that off_t can represent 2**63 - 1 correctly.
10262 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10263 since some C++ compilers masquerading as C compilers
10264 incorrectly reject 9223372036854775807. */
10265#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10266 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10267 && LARGE_OFF_T % 2147483647 == 1)
10268 ? 1 : -1];
10269int
10270main ()
10271{
10272
10273 ;
10274 return 0;
10275}
10276_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010277if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010278 ac_cv_sys_large_files=1; break
cristy3ed852e2009-09-05 21:47:34 +000010279fi
cristy3ed852e2009-09-05 21:47:34 +000010280rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10281 ac_cv_sys_large_files=unknown
10282 break
10283done
10284fi
cristy8b350f62009-11-15 23:12:43 +000010285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010286$as_echo "$ac_cv_sys_large_files" >&6; }
10287case $ac_cv_sys_large_files in #(
10288 no | unknown) ;;
10289 *)
10290cat >>confdefs.h <<_ACEOF
10291#define _LARGE_FILES $ac_cv_sys_large_files
10292_ACEOF
10293;;
10294esac
10295rm -rf conftest*
10296 fi
cristy14fefe52012-05-21 00:59:18 +000010297
10298
cristy3ed852e2009-09-05 21:47:34 +000010299fi
10300
cristy8b350f62009-11-15 23:12:43 +000010301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010302$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010303if ${ac_cv_sys_largefile_source+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010304 $as_echo_n "(cached) " >&6
10305else
10306 while :; do
cristy8b350f62009-11-15 23:12:43 +000010307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010308/* end confdefs.h. */
10309#include <sys/types.h> /* for off_t */
10310 #include <stdio.h>
10311int
10312main ()
10313{
10314int (*fp) (FILE *, off_t, int) = fseeko;
10315 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
10316 ;
10317 return 0;
10318}
10319_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010320if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010321 ac_cv_sys_largefile_source=no; break
cristy3ed852e2009-09-05 21:47:34 +000010322fi
cristy8b350f62009-11-15 23:12:43 +000010323rm -f core conftest.err conftest.$ac_objext \
10324 conftest$ac_exeext conftest.$ac_ext
10325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010326/* end confdefs.h. */
10327#define _LARGEFILE_SOURCE 1
10328#include <sys/types.h> /* for off_t */
10329 #include <stdio.h>
10330int
10331main ()
10332{
10333int (*fp) (FILE *, off_t, int) = fseeko;
10334 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
10335 ;
10336 return 0;
10337}
10338_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010339if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010340 ac_cv_sys_largefile_source=1; break
cristy3ed852e2009-09-05 21:47:34 +000010341fi
cristy8b350f62009-11-15 23:12:43 +000010342rm -f core conftest.err conftest.$ac_objext \
10343 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010344 ac_cv_sys_largefile_source=unknown
10345 break
10346done
10347fi
cristy8b350f62009-11-15 23:12:43 +000010348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
cristy3ed852e2009-09-05 21:47:34 +000010349$as_echo "$ac_cv_sys_largefile_source" >&6; }
10350case $ac_cv_sys_largefile_source in #(
10351 no | unknown) ;;
10352 *)
10353cat >>confdefs.h <<_ACEOF
10354#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
10355_ACEOF
10356;;
10357esac
10358rm -rf conftest*
10359
10360# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
10361# in glibc 2.1.3, but that breaks too many other things.
10362# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
10363if test $ac_cv_sys_largefile_source != unknown; then
10364
cristy8b350f62009-11-15 23:12:43 +000010365$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000010366
10367fi
10368
10369LFS_CPPFLAGS=''
10370if test "$enable_largefile" != no; then
cristyc1e0cc12011-09-21 16:41:16 +000010371 case $ac_cv_sys_file_offset_bits in
10372 no)
10373 # nothing to do here as the host supports LFS fine
10374 ;;
10375 unknown)
cristy8b350f62009-11-15 23:12:43 +000010376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
cristy3ed852e2009-09-05 21:47:34 +000010377$as_echo_n "checking for native large file support... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010378 if test "$cross_compiling" = yes; then :
10379 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000010380$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000010381as_fn_error $? "cannot run test program while cross compiling
10382See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000010383else
cristy8b350f62009-11-15 23:12:43 +000010384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10385/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000010386#include <unistd.h>
10387 main () {
10388 exit(!(sizeof(off_t) == 8));
10389 }
cristyda16f162011-02-19 23:52:17 +000010390int
10391main ()
10392{
10393
10394 ;
10395 return 0;
10396}
cristy3ed852e2009-09-05 21:47:34 +000010397_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010398if ac_fn_c_try_run "$LINENO"; then :
10399 ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000010400
cristy09b53e12011-10-14 12:47:22 +000010401 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
10402$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000010403else
cristy09b53e12011-10-14 12:47:22 +000010404 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
10405$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000010406fi
cristy8b350f62009-11-15 23:12:43 +000010407rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10408 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010409fi
10410
cristyc1e0cc12011-09-21 16:41:16 +000010411 ;;
10412 *)
10413 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
10414 ;;
10415 esac
cristy3ed852e2009-09-05 21:47:34 +000010416 if test "$ac_cv_sys_large_files" != 'no'; then
10417 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
10418 fi
10419 if test "$ac_cv_sys_largefile_source" != 'no'; then
10420 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
10421 fi
10422fi
10423
10424
cristy3ed852e2009-09-05 21:47:34 +000010425# Configure libtool
cristy73bd4a52010-10-05 11:24:23 +000010426enable_dlopen=yes
10427
10428
10429
10430case `pwd` in
10431 *\ * | *\ *)
10432 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
10433$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
10434esac
10435
10436
10437
cristy99bd5232011-12-07 14:38:20 +000010438macro_version='2.4.2'
10439macro_revision='1.3337'
cristy73bd4a52010-10-05 11:24:23 +000010440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453ltmain="$ac_aux_dir/ltmain.sh"
10454
cristy0c60a692010-11-04 01:09:47 +000010455# Backslashify metacharacters that are still active within
10456# double-quoted strings.
10457sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
10458
10459# Same as above, but do not quote variable references.
10460double_quote_subst='s/\(["`\\]\)/\\\1/g'
10461
10462# Sed substitution to delay expansion of an escaped shell variable in a
10463# double_quote_subst'ed string.
10464delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
10465
10466# Sed substitution to delay expansion of an escaped single quote.
10467delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
10468
10469# Sed substitution to avoid accidental globbing in evaled expressions
10470no_glob_subst='s/\*/\\\*/g'
10471
cristy73bd4a52010-10-05 11:24:23 +000010472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
10473$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010474if ${lt_cv_path_NM+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010475 $as_echo_n "(cached) " >&6
10476else
10477 if test -n "$NM"; then
10478 # Let the user override the test.
10479 lt_cv_path_NM="$NM"
10480else
10481 lt_nm_to_check="${ac_tool_prefix}nm"
10482 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
10483 lt_nm_to_check="$lt_nm_to_check nm"
10484 fi
10485 for lt_tmp_nm in $lt_nm_to_check; do
10486 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10487 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
10488 IFS="$lt_save_ifs"
10489 test -z "$ac_dir" && ac_dir=.
10490 tmp_nm="$ac_dir/$lt_tmp_nm"
10491 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
10492 # Check to see if the nm accepts a BSD-compat flag.
10493 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
10494 # nm: unknown option "B" ignored
10495 # Tru64's nm complains that /dev/null is an invalid object file
10496 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
10497 */dev/null* | *'Invalid file or object type'*)
10498 lt_cv_path_NM="$tmp_nm -B"
10499 break
10500 ;;
10501 *)
10502 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
10503 */dev/null*)
10504 lt_cv_path_NM="$tmp_nm -p"
10505 break
10506 ;;
10507 *)
10508 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
10509 continue # so that we can try to find one that supports BSD flags
10510 ;;
10511 esac
10512 ;;
10513 esac
10514 fi
10515 done
10516 IFS="$lt_save_ifs"
10517 done
10518 : ${lt_cv_path_NM=no}
10519fi
10520fi
10521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
10522$as_echo "$lt_cv_path_NM" >&6; }
10523if test "$lt_cv_path_NM" != "no"; then
10524 NM="$lt_cv_path_NM"
10525else
10526 # Didn't find any BSD compatible name lister, look for dumpbin.
cristy0c60a692010-11-04 01:09:47 +000010527 if test -n "$DUMPBIN"; then :
10528 # Let the user override the test.
10529 else
10530 if test -n "$ac_tool_prefix"; then
10531 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +000010532 do
10533 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10534set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10536$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010537if ${ac_cv_prog_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010538 $as_echo_n "(cached) " >&6
10539else
10540 if test -n "$DUMPBIN"; then
10541 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
10542else
10543as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10544for as_dir in $PATH
10545do
10546 IFS=$as_save_IFS
10547 test -z "$as_dir" && as_dir=.
10548 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010549 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010550 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
10551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10552 break 2
10553 fi
10554done
10555 done
10556IFS=$as_save_IFS
10557
10558fi
10559fi
10560DUMPBIN=$ac_cv_prog_DUMPBIN
10561if test -n "$DUMPBIN"; then
10562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
10563$as_echo "$DUMPBIN" >&6; }
10564else
10565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10566$as_echo "no" >&6; }
10567fi
10568
10569
10570 test -n "$DUMPBIN" && break
10571 done
10572fi
10573if test -z "$DUMPBIN"; then
10574 ac_ct_DUMPBIN=$DUMPBIN
cristy0c60a692010-11-04 01:09:47 +000010575 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +000010576do
10577 # Extract the first word of "$ac_prog", so it can be a program name with args.
10578set dummy $ac_prog; ac_word=$2
10579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10580$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010581if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010582 $as_echo_n "(cached) " >&6
10583else
10584 if test -n "$ac_ct_DUMPBIN"; then
10585 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
10586else
10587as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10588for as_dir in $PATH
10589do
10590 IFS=$as_save_IFS
10591 test -z "$as_dir" && as_dir=.
10592 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010593 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010594 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
10595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10596 break 2
10597 fi
10598done
10599 done
10600IFS=$as_save_IFS
10601
10602fi
10603fi
10604ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
10605if test -n "$ac_ct_DUMPBIN"; then
10606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
10607$as_echo "$ac_ct_DUMPBIN" >&6; }
10608else
10609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10610$as_echo "no" >&6; }
10611fi
10612
10613
10614 test -n "$ac_ct_DUMPBIN" && break
10615done
10616
10617 if test "x$ac_ct_DUMPBIN" = x; then
10618 DUMPBIN=":"
10619 else
10620 case $cross_compiling:$ac_tool_warned in
10621yes:)
10622{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10623$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10624ac_tool_warned=yes ;;
10625esac
10626 DUMPBIN=$ac_ct_DUMPBIN
10627 fi
10628fi
10629
cristy0c60a692010-11-04 01:09:47 +000010630 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
10631 *COFF*)
10632 DUMPBIN="$DUMPBIN -symbols"
10633 ;;
10634 *)
10635 DUMPBIN=:
10636 ;;
10637 esac
10638 fi
cristy73bd4a52010-10-05 11:24:23 +000010639
10640 if test "$DUMPBIN" != ":"; then
10641 NM="$DUMPBIN"
10642 fi
10643fi
10644test -z "$NM" && NM=nm
10645
10646
10647
10648
10649
10650
10651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
10652$as_echo_n "checking the name lister ($NM) interface... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010653if ${lt_cv_nm_interface+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010654 $as_echo_n "(cached) " >&6
10655else
10656 lt_cv_nm_interface="BSD nm"
10657 echo "int some_variable = 0;" > conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000010658 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000010659 (eval "$ac_compile" 2>conftest.err)
10660 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000010661 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000010662 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
10663 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000010664 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000010665 cat conftest.out >&5
10666 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
10667 lt_cv_nm_interface="MS dumpbin"
10668 fi
10669 rm -f conftest*
10670fi
10671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
10672$as_echo "$lt_cv_nm_interface" >&6; }
10673
10674# find the maximum length of command line arguments
10675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
10676$as_echo_n "checking the maximum length of command line arguments... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010677if ${lt_cv_sys_max_cmd_len+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010678 $as_echo_n "(cached) " >&6
10679else
10680 i=0
10681 teststring="ABCD"
10682
10683 case $build_os in
10684 msdosdjgpp*)
10685 # On DJGPP, this test can blow up pretty badly due to problems in libc
10686 # (any single argument exceeding 2000 bytes causes a buffer overrun
10687 # during glob expansion). Even if it were fixed, the result of this
10688 # check would be larger than it should be.
10689 lt_cv_sys_max_cmd_len=12288; # 12K is about right
10690 ;;
10691
10692 gnu*)
10693 # Under GNU Hurd, this test is not required because there is
10694 # no limit to the length of command line arguments.
10695 # Libtool will interpret -1 as no limit whatsoever
10696 lt_cv_sys_max_cmd_len=-1;
10697 ;;
10698
10699 cygwin* | mingw* | cegcc*)
10700 # On Win9x/ME, this test blows up -- it succeeds, but takes
10701 # about 5 minutes as the teststring grows exponentially.
10702 # Worse, since 9x/ME are not pre-emptively multitasking,
10703 # you end up with a "frozen" computer, even though with patience
10704 # the test eventually succeeds (with a max line length of 256k).
10705 # Instead, let's just punt: use the minimum linelength reported by
10706 # all of the supported platforms: 8192 (on NT/2K/XP).
10707 lt_cv_sys_max_cmd_len=8192;
10708 ;;
10709
cristy0c60a692010-11-04 01:09:47 +000010710 mint*)
10711 # On MiNT this can take a long time and run out of memory.
10712 lt_cv_sys_max_cmd_len=8192;
10713 ;;
10714
cristy73bd4a52010-10-05 11:24:23 +000010715 amigaos*)
10716 # On AmigaOS with pdksh, this test takes hours, literally.
10717 # So we just punt and use a minimum line length of 8192.
10718 lt_cv_sys_max_cmd_len=8192;
10719 ;;
10720
10721 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
10722 # This has been around since 386BSD, at least. Likely further.
10723 if test -x /sbin/sysctl; then
10724 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
10725 elif test -x /usr/sbin/sysctl; then
10726 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
10727 else
10728 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
10729 fi
10730 # And add a safety zone
10731 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10732 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
10733 ;;
10734
10735 interix*)
10736 # We know the value 262144 and hardcode it with a safety zone (like BSD)
10737 lt_cv_sys_max_cmd_len=196608
10738 ;;
10739
cristy99bd5232011-12-07 14:38:20 +000010740 os2*)
10741 # The test takes a long time on OS/2.
10742 lt_cv_sys_max_cmd_len=8192
10743 ;;
10744
cristy73bd4a52010-10-05 11:24:23 +000010745 osf*)
10746 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
10747 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
10748 # nice to cause kernel panics so lets avoid the loop below.
10749 # First set a reasonable default.
10750 lt_cv_sys_max_cmd_len=16384
10751 #
10752 if test -x /sbin/sysconfig; then
10753 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
10754 *1*) lt_cv_sys_max_cmd_len=-1 ;;
10755 esac
10756 fi
10757 ;;
10758 sco3.2v5*)
10759 lt_cv_sys_max_cmd_len=102400
10760 ;;
10761 sysv5* | sco5v6* | sysv4.2uw2*)
10762 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
10763 if test -n "$kargmax"; then
10764 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
10765 else
10766 lt_cv_sys_max_cmd_len=32768
10767 fi
10768 ;;
10769 *)
10770 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
10771 if test -n "$lt_cv_sys_max_cmd_len"; then
10772 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10773 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
10774 else
10775 # Make teststring a little bigger before we do anything with it.
10776 # a 1K string should be a reasonable start.
10777 for i in 1 2 3 4 5 6 7 8 ; do
10778 teststring=$teststring$teststring
10779 done
10780 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
10781 # If test is not a shell built-in, we'll probably end up computing a
10782 # maximum length that is only half of the actual maximum length, but
10783 # we can't tell.
cristy99bd5232011-12-07 14:38:20 +000010784 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
cristy0c60a692010-11-04 01:09:47 +000010785 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
cristy73bd4a52010-10-05 11:24:23 +000010786 test $i != 17 # 1/2 MB should be enough
10787 do
10788 i=`expr $i + 1`
10789 teststring=$teststring$teststring
10790 done
10791 # Only check the string length outside the loop.
10792 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
10793 teststring=
10794 # Add a significant safety factor because C++ compilers can tack on
10795 # massive amounts of additional arguments before passing them to the
10796 # linker. It appears as though 1/2 is a usable value.
10797 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
10798 fi
10799 ;;
10800 esac
10801
10802fi
10803
10804if test -n $lt_cv_sys_max_cmd_len ; then
10805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
10806$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
10807else
10808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
10809$as_echo "none" >&6; }
10810fi
10811max_cmd_len=$lt_cv_sys_max_cmd_len
10812
10813
10814
10815
10816
10817
10818: ${CP="cp -f"}
10819: ${MV="mv -f"}
10820: ${RM="rm -f"}
10821
10822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
10823$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
10824# Try some XSI features
10825xsi_shell=no
10826( _lt_dummy="a/b/c"
cristyda16f162011-02-19 23:52:17 +000010827 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
10828 = c,a/b,b/c, \
cristy73bd4a52010-10-05 11:24:23 +000010829 && eval 'test $(( 1 + 1 )) -eq 2 \
10830 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
10831 && xsi_shell=yes
10832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
10833$as_echo "$xsi_shell" >&6; }
10834
10835
10836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
10837$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
10838lt_shell_append=no
10839( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
10840 >/dev/null 2>&1 \
10841 && lt_shell_append=yes
10842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
10843$as_echo "$lt_shell_append" >&6; }
10844
10845
10846if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10847 lt_unset=unset
10848else
10849 lt_unset=false
10850fi
10851
10852
10853
10854
10855
10856# test EBCDIC or ASCII
10857case `echo X|tr X '\101'` in
10858 A) # ASCII based system
10859 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
10860 lt_SP2NL='tr \040 \012'
10861 lt_NL2SP='tr \015\012 \040\040'
10862 ;;
10863 *) # EBCDIC based system
10864 lt_SP2NL='tr \100 \n'
10865 lt_NL2SP='tr \r\n \100\100'
10866 ;;
10867esac
10868
10869
10870
10871
10872
10873
10874
10875
10876
cristyda16f162011-02-19 23:52:17 +000010877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
10878$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
10879if ${lt_cv_to_host_file_cmd+:} false; then :
10880 $as_echo_n "(cached) " >&6
10881else
10882 case $host in
10883 *-*-mingw* )
10884 case $build in
10885 *-*-mingw* ) # actually msys
10886 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
10887 ;;
10888 *-*-cygwin* )
10889 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
10890 ;;
10891 * ) # otherwise, assume *nix
10892 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
10893 ;;
10894 esac
10895 ;;
10896 *-*-cygwin* )
10897 case $build in
10898 *-*-mingw* ) # actually msys
10899 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
10900 ;;
10901 *-*-cygwin* )
10902 lt_cv_to_host_file_cmd=func_convert_file_noop
10903 ;;
10904 * ) # otherwise, assume *nix
10905 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
10906 ;;
10907 esac
10908 ;;
10909 * ) # unhandled hosts (and "normal" native builds)
10910 lt_cv_to_host_file_cmd=func_convert_file_noop
10911 ;;
10912esac
10913
10914fi
10915
10916to_host_file_cmd=$lt_cv_to_host_file_cmd
10917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
10918$as_echo "$lt_cv_to_host_file_cmd" >&6; }
10919
10920
10921
10922
10923
10924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
10925$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
10926if ${lt_cv_to_tool_file_cmd+:} false; then :
10927 $as_echo_n "(cached) " >&6
10928else
10929 #assume ordinary cross tools, or native build.
10930lt_cv_to_tool_file_cmd=func_convert_file_noop
10931case $host in
10932 *-*-mingw* )
10933 case $build in
10934 *-*-mingw* ) # actually msys
10935 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
10936 ;;
10937 esac
10938 ;;
10939esac
10940
10941fi
10942
10943to_tool_file_cmd=$lt_cv_to_tool_file_cmd
10944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
10945$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
10946
10947
10948
10949
10950
cristy73bd4a52010-10-05 11:24:23 +000010951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
10952$as_echo_n "checking for $LD option to reload object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010953if ${lt_cv_ld_reload_flag+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010954 $as_echo_n "(cached) " >&6
10955else
10956 lt_cv_ld_reload_flag='-r'
10957fi
10958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
10959$as_echo "$lt_cv_ld_reload_flag" >&6; }
10960reload_flag=$lt_cv_ld_reload_flag
10961case $reload_flag in
10962"" | " "*) ;;
10963*) reload_flag=" $reload_flag" ;;
10964esac
10965reload_cmds='$LD$reload_flag -o $output$reload_objs'
10966case $host_os in
cristyda16f162011-02-19 23:52:17 +000010967 cygwin* | mingw* | pw32* | cegcc*)
10968 if test "$GCC" != yes; then
10969 reload_cmds=false
10970 fi
10971 ;;
cristy73bd4a52010-10-05 11:24:23 +000010972 darwin*)
10973 if test "$GCC" = yes; then
10974 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
10975 else
10976 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10977 fi
10978 ;;
10979esac
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989if test -n "$ac_tool_prefix"; then
10990 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
10991set dummy ${ac_tool_prefix}objdump; ac_word=$2
10992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10993$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010994if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010995 $as_echo_n "(cached) " >&6
10996else
10997 if test -n "$OBJDUMP"; then
10998 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10999else
11000as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11001for as_dir in $PATH
11002do
11003 IFS=$as_save_IFS
11004 test -z "$as_dir" && as_dir=.
11005 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011006 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011007 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11009 break 2
11010 fi
11011done
11012 done
11013IFS=$as_save_IFS
11014
11015fi
11016fi
11017OBJDUMP=$ac_cv_prog_OBJDUMP
11018if test -n "$OBJDUMP"; then
11019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11020$as_echo "$OBJDUMP" >&6; }
11021else
11022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11023$as_echo "no" >&6; }
11024fi
11025
11026
11027fi
11028if test -z "$ac_cv_prog_OBJDUMP"; then
11029 ac_ct_OBJDUMP=$OBJDUMP
11030 # Extract the first word of "objdump", so it can be a program name with args.
11031set dummy objdump; ac_word=$2
11032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11033$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011034if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011035 $as_echo_n "(cached) " >&6
11036else
11037 if test -n "$ac_ct_OBJDUMP"; then
11038 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11039else
11040as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11041for as_dir in $PATH
11042do
11043 IFS=$as_save_IFS
11044 test -z "$as_dir" && as_dir=.
11045 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011046 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011047 ac_cv_prog_ac_ct_OBJDUMP="objdump"
11048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11049 break 2
11050 fi
11051done
11052 done
11053IFS=$as_save_IFS
11054
11055fi
11056fi
11057ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11058if test -n "$ac_ct_OBJDUMP"; then
11059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11060$as_echo "$ac_ct_OBJDUMP" >&6; }
11061else
11062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11063$as_echo "no" >&6; }
11064fi
11065
11066 if test "x$ac_ct_OBJDUMP" = x; then
11067 OBJDUMP="false"
11068 else
11069 case $cross_compiling:$ac_tool_warned in
11070yes:)
11071{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11072$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11073ac_tool_warned=yes ;;
11074esac
11075 OBJDUMP=$ac_ct_OBJDUMP
11076 fi
11077else
11078 OBJDUMP="$ac_cv_prog_OBJDUMP"
11079fi
11080
11081test -z "$OBJDUMP" && OBJDUMP=objdump
11082
11083
11084
11085
11086
11087
11088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
11089$as_echo_n "checking how to recognize dependent libraries... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011090if ${lt_cv_deplibs_check_method+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011091 $as_echo_n "(cached) " >&6
11092else
11093 lt_cv_file_magic_cmd='$MAGIC_CMD'
11094lt_cv_file_magic_test_file=
11095lt_cv_deplibs_check_method='unknown'
11096# Need to set the preceding variable on all platforms that support
11097# interlibrary dependencies.
11098# 'none' -- dependencies not supported.
11099# `unknown' -- same as none, but documents that we really don't know.
11100# 'pass_all' -- all dependencies passed with no checks.
11101# 'test_compile' -- check by making test program.
11102# 'file_magic [[regex]]' -- check by looking for files in library path
11103# which responds to the $file_magic_cmd with a given extended regex.
11104# If you have `file' or equivalent on your system and you're not sure
11105# whether `pass_all' will *always* work, you probably want this one.
11106
11107case $host_os in
11108aix[4-9]*)
11109 lt_cv_deplibs_check_method=pass_all
11110 ;;
11111
11112beos*)
11113 lt_cv_deplibs_check_method=pass_all
11114 ;;
11115
11116bsdi[45]*)
11117 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11118 lt_cv_file_magic_cmd='/usr/bin/file -L'
11119 lt_cv_file_magic_test_file=/shlib/libc.so
11120 ;;
11121
11122cygwin*)
11123 # func_win32_libid is a shell function defined in ltmain.sh
11124 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11125 lt_cv_file_magic_cmd='func_win32_libid'
11126 ;;
11127
11128mingw* | pw32*)
11129 # Base MSYS/MinGW do not provide the 'file' command needed by
11130 # func_win32_libid shell function, so use a weaker test based on 'objdump',
11131 # unless we find 'file', for example because we are cross-compiling.
cristy0c60a692010-11-04 01:09:47 +000011132 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
11133 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
cristy73bd4a52010-10-05 11:24:23 +000011134 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11135 lt_cv_file_magic_cmd='func_win32_libid'
11136 else
cristy0c60a692010-11-04 01:09:47 +000011137 # Keep this pattern in sync with the one in func_win32_libid.
11138 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 +000011139 lt_cv_file_magic_cmd='$OBJDUMP -f'
11140 fi
11141 ;;
11142
cristy0c60a692010-11-04 01:09:47 +000011143cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000011144 # use the weaker test based on 'objdump'. See mingw*.
11145 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
11146 lt_cv_file_magic_cmd='$OBJDUMP -f'
11147 ;;
11148
11149darwin* | rhapsody*)
11150 lt_cv_deplibs_check_method=pass_all
11151 ;;
11152
11153freebsd* | dragonfly*)
11154 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11155 case $host_cpu in
11156 i*86 )
11157 # Not sure whether the presence of OpenBSD here was a mistake.
11158 # Let's accept both of them until this is cleared up.
11159 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11160 lt_cv_file_magic_cmd=/usr/bin/file
11161 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11162 ;;
11163 esac
11164 else
11165 lt_cv_deplibs_check_method=pass_all
11166 fi
11167 ;;
11168
11169gnu*)
11170 lt_cv_deplibs_check_method=pass_all
11171 ;;
11172
cristy0c60a692010-11-04 01:09:47 +000011173haiku*)
11174 lt_cv_deplibs_check_method=pass_all
11175 ;;
11176
cristy73bd4a52010-10-05 11:24:23 +000011177hpux10.20* | hpux11*)
11178 lt_cv_file_magic_cmd=/usr/bin/file
11179 case $host_cpu in
11180 ia64*)
11181 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11182 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11183 ;;
11184 hppa*64*)
cristy0c60a692010-11-04 01:09:47 +000011185 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 +000011186 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11187 ;;
11188 *)
cristy0c60a692010-11-04 01:09:47 +000011189 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 +000011190 lt_cv_file_magic_test_file=/usr/lib/libc.sl
11191 ;;
11192 esac
11193 ;;
11194
11195interix[3-9]*)
11196 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11197 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11198 ;;
11199
11200irix5* | irix6* | nonstopux*)
11201 case $LD in
11202 *-32|*"-32 ") libmagic=32-bit;;
11203 *-n32|*"-n32 ") libmagic=N32;;
11204 *-64|*"-64 ") libmagic=64-bit;;
11205 *) libmagic=never-match;;
11206 esac
11207 lt_cv_deplibs_check_method=pass_all
11208 ;;
11209
cristy99bd5232011-12-07 14:38:20 +000011210# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000011211linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000011212 lt_cv_deplibs_check_method=pass_all
11213 ;;
11214
11215netbsd*)
11216 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11217 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11218 else
11219 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
11220 fi
11221 ;;
11222
11223newos6*)
11224 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
11225 lt_cv_file_magic_cmd=/usr/bin/file
11226 lt_cv_file_magic_test_file=/usr/lib/libnls.so
11227 ;;
11228
11229*nto* | *qnx*)
11230 lt_cv_deplibs_check_method=pass_all
11231 ;;
11232
11233openbsd*)
11234 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11235 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
11236 else
11237 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11238 fi
11239 ;;
11240
11241osf3* | osf4* | osf5*)
11242 lt_cv_deplibs_check_method=pass_all
11243 ;;
11244
11245rdos*)
11246 lt_cv_deplibs_check_method=pass_all
11247 ;;
11248
11249solaris*)
11250 lt_cv_deplibs_check_method=pass_all
11251 ;;
11252
11253sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11254 lt_cv_deplibs_check_method=pass_all
11255 ;;
11256
11257sysv4 | sysv4.3*)
11258 case $host_vendor in
11259 motorola)
11260 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]'
11261 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
11262 ;;
11263 ncr)
11264 lt_cv_deplibs_check_method=pass_all
11265 ;;
11266 sequent)
11267 lt_cv_file_magic_cmd='/bin/file'
11268 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
11269 ;;
11270 sni)
11271 lt_cv_file_magic_cmd='/bin/file'
11272 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
11273 lt_cv_file_magic_test_file=/lib/libc.so
11274 ;;
11275 siemens)
11276 lt_cv_deplibs_check_method=pass_all
11277 ;;
11278 pc)
11279 lt_cv_deplibs_check_method=pass_all
11280 ;;
11281 esac
11282 ;;
11283
11284tpf*)
11285 lt_cv_deplibs_check_method=pass_all
11286 ;;
11287esac
11288
11289fi
11290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
11291$as_echo "$lt_cv_deplibs_check_method" >&6; }
cristyda16f162011-02-19 23:52:17 +000011292
11293file_magic_glob=
11294want_nocaseglob=no
11295if test "$build" = "$host"; then
11296 case $host_os in
11297 mingw* | pw32*)
11298 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
11299 want_nocaseglob=yes
11300 else
11301 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
11302 fi
11303 ;;
11304 esac
11305fi
11306
cristy73bd4a52010-10-05 11:24:23 +000011307file_magic_cmd=$lt_cv_file_magic_cmd
11308deplibs_check_method=$lt_cv_deplibs_check_method
11309test -z "$deplibs_check_method" && deplibs_check_method=unknown
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
cristyda16f162011-02-19 23:52:17 +000011322
11323
11324
11325
11326
11327
11328
11329
11330
11331
cristy73bd4a52010-10-05 11:24:23 +000011332if test -n "$ac_tool_prefix"; then
cristyda16f162011-02-19 23:52:17 +000011333 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11334set dummy ${ac_tool_prefix}dlltool; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000011335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11336$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011337if ${ac_cv_prog_DLLTOOL+:} false; then :
11338 $as_echo_n "(cached) " >&6
11339else
11340 if test -n "$DLLTOOL"; then
11341 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11342else
11343as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11344for as_dir in $PATH
11345do
11346 IFS=$as_save_IFS
11347 test -z "$as_dir" && as_dir=.
11348 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011349 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011350 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11352 break 2
11353 fi
11354done
11355 done
11356IFS=$as_save_IFS
11357
11358fi
11359fi
11360DLLTOOL=$ac_cv_prog_DLLTOOL
11361if test -n "$DLLTOOL"; then
11362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11363$as_echo "$DLLTOOL" >&6; }
11364else
11365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11366$as_echo "no" >&6; }
11367fi
11368
11369
11370fi
11371if test -z "$ac_cv_prog_DLLTOOL"; then
11372 ac_ct_DLLTOOL=$DLLTOOL
11373 # Extract the first word of "dlltool", so it can be a program name with args.
11374set dummy dlltool; ac_word=$2
11375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11376$as_echo_n "checking for $ac_word... " >&6; }
11377if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
11378 $as_echo_n "(cached) " >&6
11379else
11380 if test -n "$ac_ct_DLLTOOL"; then
11381 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11382else
11383as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11384for as_dir in $PATH
11385do
11386 IFS=$as_save_IFS
11387 test -z "$as_dir" && as_dir=.
11388 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011389 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011390 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11392 break 2
11393 fi
11394done
11395 done
11396IFS=$as_save_IFS
11397
11398fi
11399fi
11400ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11401if test -n "$ac_ct_DLLTOOL"; then
11402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11403$as_echo "$ac_ct_DLLTOOL" >&6; }
11404else
11405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11406$as_echo "no" >&6; }
11407fi
11408
11409 if test "x$ac_ct_DLLTOOL" = x; then
11410 DLLTOOL="false"
11411 else
11412 case $cross_compiling:$ac_tool_warned in
11413yes:)
11414{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11415$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11416ac_tool_warned=yes ;;
11417esac
11418 DLLTOOL=$ac_ct_DLLTOOL
11419 fi
11420else
11421 DLLTOOL="$ac_cv_prog_DLLTOOL"
11422fi
11423
11424test -z "$DLLTOOL" && DLLTOOL=dlltool
11425
11426
11427
11428
11429
11430
11431
11432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
11433$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
11434if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
11435 $as_echo_n "(cached) " >&6
11436else
11437 lt_cv_sharedlib_from_linklib_cmd='unknown'
11438
11439case $host_os in
11440cygwin* | mingw* | pw32* | cegcc*)
11441 # two different shell functions defined in ltmain.sh
11442 # decide which to use based on capabilities of $DLLTOOL
11443 case `$DLLTOOL --help 2>&1` in
11444 *--identify-strict*)
11445 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
11446 ;;
11447 *)
11448 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
11449 ;;
11450 esac
11451 ;;
11452*)
11453 # fallback: assume linklib IS sharedlib
11454 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
11455 ;;
11456esac
11457
11458fi
11459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
11460$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
11461sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
11462test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
11463
11464
11465
11466
11467
11468
11469
11470if test -n "$ac_tool_prefix"; then
11471 for ac_prog in ar
11472 do
11473 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11474set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11476$as_echo_n "checking for $ac_word... " >&6; }
11477if ${ac_cv_prog_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011478 $as_echo_n "(cached) " >&6
11479else
11480 if test -n "$AR"; then
11481 ac_cv_prog_AR="$AR" # Let the user override the test.
11482else
11483as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11484for as_dir in $PATH
11485do
11486 IFS=$as_save_IFS
11487 test -z "$as_dir" && as_dir=.
11488 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011489 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011490 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000011491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11492 break 2
11493 fi
11494done
11495 done
11496IFS=$as_save_IFS
11497
11498fi
11499fi
11500AR=$ac_cv_prog_AR
11501if test -n "$AR"; then
11502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
11503$as_echo "$AR" >&6; }
11504else
11505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11506$as_echo "no" >&6; }
11507fi
11508
11509
cristyda16f162011-02-19 23:52:17 +000011510 test -n "$AR" && break
11511 done
cristy73bd4a52010-10-05 11:24:23 +000011512fi
cristyda16f162011-02-19 23:52:17 +000011513if test -z "$AR"; then
cristy73bd4a52010-10-05 11:24:23 +000011514 ac_ct_AR=$AR
cristyda16f162011-02-19 23:52:17 +000011515 for ac_prog in ar
11516do
11517 # Extract the first word of "$ac_prog", so it can be a program name with args.
11518set dummy $ac_prog; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000011519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11520$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011521if ${ac_cv_prog_ac_ct_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011522 $as_echo_n "(cached) " >&6
11523else
11524 if test -n "$ac_ct_AR"; then
11525 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11526else
11527as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11528for as_dir in $PATH
11529do
11530 IFS=$as_save_IFS
11531 test -z "$as_dir" && as_dir=.
11532 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011533 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011534 ac_cv_prog_ac_ct_AR="$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000011535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11536 break 2
11537 fi
11538done
11539 done
11540IFS=$as_save_IFS
11541
11542fi
11543fi
11544ac_ct_AR=$ac_cv_prog_ac_ct_AR
11545if test -n "$ac_ct_AR"; then
11546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
11547$as_echo "$ac_ct_AR" >&6; }
11548else
11549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11550$as_echo "no" >&6; }
11551fi
11552
cristyda16f162011-02-19 23:52:17 +000011553
11554 test -n "$ac_ct_AR" && break
11555done
11556
cristy73bd4a52010-10-05 11:24:23 +000011557 if test "x$ac_ct_AR" = x; then
11558 AR="false"
11559 else
11560 case $cross_compiling:$ac_tool_warned in
11561yes:)
11562{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11563$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11564ac_tool_warned=yes ;;
11565esac
11566 AR=$ac_ct_AR
11567 fi
cristy73bd4a52010-10-05 11:24:23 +000011568fi
11569
cristyda16f162011-02-19 23:52:17 +000011570: ${AR=ar}
11571: ${AR_FLAGS=cru}
cristy73bd4a52010-10-05 11:24:23 +000011572
11573
11574
11575
11576
11577
11578
11579
11580
11581
11582
cristyda16f162011-02-19 23:52:17 +000011583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
11584$as_echo_n "checking for archiver @FILE support... " >&6; }
11585if ${lt_cv_ar_at_file+:} false; then :
11586 $as_echo_n "(cached) " >&6
11587else
11588 lt_cv_ar_at_file=no
11589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11590/* end confdefs.h. */
11591
11592int
11593main ()
11594{
11595
11596 ;
11597 return 0;
11598}
11599_ACEOF
11600if ac_fn_c_try_compile "$LINENO"; then :
11601 echo conftest.$ac_objext > conftest.lst
11602 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
11603 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
11604 (eval $lt_ar_try) 2>&5
11605 ac_status=$?
11606 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11607 test $ac_status = 0; }
11608 if test "$ac_status" -eq 0; then
11609 # Ensure the archiver fails upon bogus file names.
11610 rm -f conftest.$ac_objext libconftest.a
11611 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
11612 (eval $lt_ar_try) 2>&5
11613 ac_status=$?
11614 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11615 test $ac_status = 0; }
11616 if test "$ac_status" -ne 0; then
11617 lt_cv_ar_at_file=@
11618 fi
11619 fi
11620 rm -f conftest.* libconftest.a
11621
11622fi
11623rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11624
11625fi
11626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
11627$as_echo "$lt_cv_ar_at_file" >&6; }
11628
11629if test "x$lt_cv_ar_at_file" = xno; then
11630 archiver_list_spec=
11631else
11632 archiver_list_spec=$lt_cv_ar_at_file
11633fi
11634
11635
11636
11637
11638
11639
11640
cristy73bd4a52010-10-05 11:24:23 +000011641if test -n "$ac_tool_prefix"; then
11642 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11643set dummy ${ac_tool_prefix}strip; ac_word=$2
11644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11645$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011646if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011647 $as_echo_n "(cached) " >&6
11648else
11649 if test -n "$STRIP"; then
11650 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11651else
11652as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11653for as_dir in $PATH
11654do
11655 IFS=$as_save_IFS
11656 test -z "$as_dir" && as_dir=.
11657 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011658 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011659 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11661 break 2
11662 fi
11663done
11664 done
11665IFS=$as_save_IFS
11666
11667fi
11668fi
11669STRIP=$ac_cv_prog_STRIP
11670if test -n "$STRIP"; then
11671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11672$as_echo "$STRIP" >&6; }
11673else
11674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11675$as_echo "no" >&6; }
11676fi
11677
11678
11679fi
11680if test -z "$ac_cv_prog_STRIP"; then
11681 ac_ct_STRIP=$STRIP
11682 # Extract the first word of "strip", so it can be a program name with args.
11683set dummy strip; ac_word=$2
11684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11685$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011686if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011687 $as_echo_n "(cached) " >&6
11688else
11689 if test -n "$ac_ct_STRIP"; then
11690 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11691else
11692as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11693for as_dir in $PATH
11694do
11695 IFS=$as_save_IFS
11696 test -z "$as_dir" && as_dir=.
11697 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011698 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011699 ac_cv_prog_ac_ct_STRIP="strip"
11700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11701 break 2
11702 fi
11703done
11704 done
11705IFS=$as_save_IFS
11706
11707fi
11708fi
11709ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11710if test -n "$ac_ct_STRIP"; then
11711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
11712$as_echo "$ac_ct_STRIP" >&6; }
11713else
11714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11715$as_echo "no" >&6; }
11716fi
11717
11718 if test "x$ac_ct_STRIP" = x; then
11719 STRIP=":"
11720 else
11721 case $cross_compiling:$ac_tool_warned in
11722yes:)
11723{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11724$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11725ac_tool_warned=yes ;;
11726esac
11727 STRIP=$ac_ct_STRIP
11728 fi
11729else
11730 STRIP="$ac_cv_prog_STRIP"
11731fi
11732
11733test -z "$STRIP" && STRIP=:
11734
11735
11736
11737
11738
11739
11740if test -n "$ac_tool_prefix"; then
11741 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11742set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11744$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011745if ${ac_cv_prog_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011746 $as_echo_n "(cached) " >&6
11747else
11748 if test -n "$RANLIB"; then
11749 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11750else
11751as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11752for as_dir in $PATH
11753do
11754 IFS=$as_save_IFS
11755 test -z "$as_dir" && as_dir=.
11756 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011757 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011758 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11760 break 2
11761 fi
11762done
11763 done
11764IFS=$as_save_IFS
11765
11766fi
11767fi
11768RANLIB=$ac_cv_prog_RANLIB
11769if test -n "$RANLIB"; then
11770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11771$as_echo "$RANLIB" >&6; }
11772else
11773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11774$as_echo "no" >&6; }
11775fi
11776
11777
11778fi
11779if test -z "$ac_cv_prog_RANLIB"; then
11780 ac_ct_RANLIB=$RANLIB
11781 # Extract the first word of "ranlib", so it can be a program name with args.
11782set dummy ranlib; ac_word=$2
11783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11784$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011785if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011786 $as_echo_n "(cached) " >&6
11787else
11788 if test -n "$ac_ct_RANLIB"; then
11789 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11790else
11791as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11792for as_dir in $PATH
11793do
11794 IFS=$as_save_IFS
11795 test -z "$as_dir" && as_dir=.
11796 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011797 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011798 ac_cv_prog_ac_ct_RANLIB="ranlib"
11799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11800 break 2
11801 fi
11802done
11803 done
11804IFS=$as_save_IFS
11805
11806fi
11807fi
11808ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11809if test -n "$ac_ct_RANLIB"; then
11810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
11811$as_echo "$ac_ct_RANLIB" >&6; }
11812else
11813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11814$as_echo "no" >&6; }
11815fi
11816
11817 if test "x$ac_ct_RANLIB" = x; then
11818 RANLIB=":"
11819 else
11820 case $cross_compiling:$ac_tool_warned in
11821yes:)
11822{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11823$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11824ac_tool_warned=yes ;;
11825esac
11826 RANLIB=$ac_ct_RANLIB
11827 fi
11828else
11829 RANLIB="$ac_cv_prog_RANLIB"
11830fi
11831
11832test -z "$RANLIB" && RANLIB=:
11833
11834
11835
11836
11837
11838
11839# Determine commands to create old-style static archives.
11840old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
11841old_postinstall_cmds='chmod 644 $oldlib'
11842old_postuninstall_cmds=
11843
11844if test -n "$RANLIB"; then
11845 case $host_os in
11846 openbsd*)
cristy99bd5232011-12-07 14:38:20 +000011847 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000011848 ;;
11849 *)
cristy99bd5232011-12-07 14:38:20 +000011850 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000011851 ;;
11852 esac
cristy99bd5232011-12-07 14:38:20 +000011853 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000011854fi
11855
cristy0c60a692010-11-04 01:09:47 +000011856case $host_os in
11857 darwin*)
11858 lock_old_archive_extraction=yes ;;
11859 *)
11860 lock_old_archive_extraction=no ;;
11861esac
11862
11863
11864
11865
11866
11867
cristy73bd4a52010-10-05 11:24:23 +000011868
11869
11870
11871
11872
11873
11874
11875
11876
11877
11878
11879
11880
11881
11882
11883
11884
11885
11886
11887
11888
11889
11890
11891
11892
11893
11894
11895
11896
11897
11898
11899
11900
11901# If no C compiler was specified, use CC.
11902LTCC=${LTCC-"$CC"}
11903
11904# If no C compiler flags were specified, use CFLAGS.
11905LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11906
11907# Allow CC to be a program name with arguments.
11908compiler=$CC
11909
11910
11911# Check for command to grab the raw symbol name followed by C symbol from nm.
11912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
11913$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011914if ${lt_cv_sys_global_symbol_pipe+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011915 $as_echo_n "(cached) " >&6
11916else
11917
11918# These are sane defaults that work on at least a few old systems.
11919# [They come from Ultrix. What could be older than Ultrix?!! ;)]
11920
11921# Character class describing NM global symbol codes.
11922symcode='[BCDEGRST]'
11923
11924# Regexp to match symbols that can be accessed directly from C.
11925sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
11926
11927# Define system-specific variables.
11928case $host_os in
11929aix*)
11930 symcode='[BCDT]'
11931 ;;
11932cygwin* | mingw* | pw32* | cegcc*)
11933 symcode='[ABCDGISTW]'
11934 ;;
11935hpux*)
11936 if test "$host_cpu" = ia64; then
11937 symcode='[ABCDEGRST]'
11938 fi
11939 ;;
11940irix* | nonstopux*)
11941 symcode='[BCDEGRST]'
11942 ;;
11943osf*)
11944 symcode='[BCDEGQRST]'
11945 ;;
11946solaris*)
11947 symcode='[BDRT]'
11948 ;;
11949sco3.2v5*)
11950 symcode='[DT]'
11951 ;;
11952sysv4.2uw2*)
11953 symcode='[DT]'
11954 ;;
11955sysv5* | sco5v6* | unixware* | OpenUNIX*)
11956 symcode='[ABDT]'
11957 ;;
11958sysv4)
11959 symcode='[DFNSTU]'
11960 ;;
11961esac
11962
11963# If we're using GNU nm, then use its standard symbol codes.
11964case `$NM -V 2>&1` in
11965*GNU* | *'with BFD'*)
11966 symcode='[ABCDGIRSTW]' ;;
11967esac
11968
11969# Transform an extracted symbol line into a proper C declaration.
11970# Some systems (esp. on ia64) link data and code symbols differently,
11971# so use this general approach.
11972lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11973
11974# Transform an extracted symbol line into symbol name and symbol address
cristyda16f162011-02-19 23:52:17 +000011975lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
11976lt_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 +000011977
11978# Handle CRLF in mingw tool chain
11979opt_cr=
11980case $build_os in
11981mingw*)
11982 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11983 ;;
11984esac
11985
11986# Try without a prefix underscore, then with it.
11987for ac_symprfx in "" "_"; do
11988
11989 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
11990 symxfrm="\\1 $ac_symprfx\\2 \\2"
11991
11992 # Write the raw and C identifiers.
11993 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
11994 # Fake it for dumpbin and say T for any non-static function
11995 # and D for any global variable.
11996 # Also find C++ and __fastcall symbols from MSVC++,
11997 # which start with @ or ?.
11998 lt_cv_sys_global_symbol_pipe="$AWK '"\
11999" {last_section=section; section=\$ 3};"\
cristy99bd5232011-12-07 14:38:20 +000012000" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
cristy73bd4a52010-10-05 11:24:23 +000012001" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12002" \$ 0!~/External *\|/{next};"\
12003" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12004" {if(hide[section]) next};"\
12005" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
12006" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
12007" s[1]~/^[@?]/{print s[1], s[1]; next};"\
12008" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
12009" ' prfx=^$ac_symprfx"
12010 else
12011 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12012 fi
cristyda16f162011-02-19 23:52:17 +000012013 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
cristy73bd4a52010-10-05 11:24:23 +000012014
12015 # Check to see that the pipe works correctly.
12016 pipe_works=no
12017
12018 rm -f conftest*
12019 cat > conftest.$ac_ext <<_LT_EOF
12020#ifdef __cplusplus
12021extern "C" {
12022#endif
12023char nm_test_var;
12024void nm_test_func(void);
12025void nm_test_func(void){}
12026#ifdef __cplusplus
12027}
12028#endif
12029int main(){nm_test_var='a';nm_test_func();return(0);}
12030_LT_EOF
12031
12032 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12033 (eval $ac_compile) 2>&5
12034 ac_status=$?
12035 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12036 test $ac_status = 0; }; then
12037 # Now try to grab the symbols.
12038 nlist=conftest.nm
cristy0c60a692010-11-04 01:09:47 +000012039 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
12040 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
cristy73bd4a52010-10-05 11:24:23 +000012041 ac_status=$?
12042 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12043 test $ac_status = 0; } && test -s "$nlist"; then
12044 # Try sorting and uniquifying the output.
12045 if sort "$nlist" | uniq > "$nlist"T; then
12046 mv -f "$nlist"T "$nlist"
12047 else
12048 rm -f "$nlist"T
12049 fi
12050
12051 # Make sure that we snagged all the symbols we need.
12052 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12053 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12054 cat <<_LT_EOF > conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000012055/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
12056#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
12057/* DATA imports from DLLs on WIN32 con't be const, because runtime
12058 relocations are performed -- see ld's documentation on pseudo-relocs. */
12059# define LT_DLSYM_CONST
12060#elif defined(__osf__)
12061/* This system does not cope well with relocations in const data. */
12062# define LT_DLSYM_CONST
12063#else
12064# define LT_DLSYM_CONST const
12065#endif
12066
cristy73bd4a52010-10-05 11:24:23 +000012067#ifdef __cplusplus
12068extern "C" {
12069#endif
12070
12071_LT_EOF
12072 # Now generate the symbol file.
12073 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12074
12075 cat <<_LT_EOF >> conftest.$ac_ext
12076
12077/* The mapping between symbol names and symbols. */
cristyda16f162011-02-19 23:52:17 +000012078LT_DLSYM_CONST struct {
cristy73bd4a52010-10-05 11:24:23 +000012079 const char *name;
12080 void *address;
12081}
12082lt__PROGRAM__LTX_preloaded_symbols[] =
12083{
12084 { "@PROGRAM@", (void *) 0 },
12085_LT_EOF
12086 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12087 cat <<\_LT_EOF >> conftest.$ac_ext
12088 {0, (void *) 0}
12089};
12090
12091/* This works around a problem in FreeBSD linker */
12092#ifdef FREEBSD_WORKAROUND
12093static const void *lt_preloaded_setup() {
12094 return lt__PROGRAM__LTX_preloaded_symbols;
12095}
12096#endif
12097
12098#ifdef __cplusplus
12099}
12100#endif
12101_LT_EOF
12102 # Now try linking the two files.
12103 mv conftest.$ac_objext conftstm.$ac_objext
cristyda16f162011-02-19 23:52:17 +000012104 lt_globsym_save_LIBS=$LIBS
12105 lt_globsym_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000012106 LIBS="conftstm.$ac_objext"
12107 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12108 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12109 (eval $ac_link) 2>&5
12110 ac_status=$?
12111 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12112 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
12113 pipe_works=yes
12114 fi
cristyda16f162011-02-19 23:52:17 +000012115 LIBS=$lt_globsym_save_LIBS
12116 CFLAGS=$lt_globsym_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000012117 else
12118 echo "cannot find nm_test_func in $nlist" >&5
12119 fi
12120 else
12121 echo "cannot find nm_test_var in $nlist" >&5
12122 fi
12123 else
12124 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12125 fi
12126 else
12127 echo "$progname: failed program was:" >&5
12128 cat conftest.$ac_ext >&5
12129 fi
12130 rm -rf conftest* conftst*
12131
12132 # Do not use the global_symbol_pipe unless it works.
12133 if test "$pipe_works" = yes; then
12134 break
12135 else
12136 lt_cv_sys_global_symbol_pipe=
12137 fi
12138done
12139
12140fi
12141
12142if test -z "$lt_cv_sys_global_symbol_pipe"; then
12143 lt_cv_sys_global_symbol_to_cdecl=
12144fi
12145if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12147$as_echo "failed" >&6; }
12148else
12149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12150$as_echo "ok" >&6; }
12151fi
12152
cristyda16f162011-02-19 23:52:17 +000012153# Response file support.
12154if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12155 nm_file_list_spec='@'
12156elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
12157 nm_file_list_spec='@'
12158fi
cristy73bd4a52010-10-05 11:24:23 +000012159
12160
12161
12162
12163
12164
12165
12166
12167
12168
12169
12170
12171
12172
12173
12174
12175
12176
12177
12178
12179
cristyda16f162011-02-19 23:52:17 +000012180
12181
12182
12183
12184
12185
12186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
12187$as_echo_n "checking for sysroot... " >&6; }
12188
12189# Check whether --with-sysroot was given.
12190if test "${with_sysroot+set}" = set; then :
12191 withval=$with_sysroot;
12192else
12193 with_sysroot=no
12194fi
12195
12196
12197lt_sysroot=
12198case ${with_sysroot} in #(
12199 yes)
12200 if test "$GCC" = yes; then
12201 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
12202 fi
12203 ;; #(
12204 /*)
12205 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
12206 ;; #(
12207 no|'')
12208 ;; #(
12209 *)
12210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
12211$as_echo "${with_sysroot}" >&6; }
12212 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
12213 ;;
12214esac
12215
12216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
12217$as_echo "${lt_sysroot:-no}" >&6; }
12218
12219
12220
12221
12222
cristy73bd4a52010-10-05 11:24:23 +000012223# Check whether --enable-libtool-lock was given.
12224if test "${enable_libtool_lock+set}" = set; then :
12225 enableval=$enable_libtool_lock;
12226fi
12227
12228test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12229
12230# Some flags need to be propagated to the compiler or linker for good
12231# libtool support.
12232case $host in
12233ia64-*-hpux*)
12234 # Find out which ABI we are using.
12235 echo 'int i;' > conftest.$ac_ext
12236 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12237 (eval $ac_compile) 2>&5
12238 ac_status=$?
12239 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12240 test $ac_status = 0; }; then
12241 case `/usr/bin/file conftest.$ac_objext` in
12242 *ELF-32*)
12243 HPUX_IA64_MODE="32"
12244 ;;
12245 *ELF-64*)
12246 HPUX_IA64_MODE="64"
12247 ;;
12248 esac
12249 fi
12250 rm -rf conftest*
12251 ;;
12252*-*-irix6*)
12253 # Find out which ABI we are using.
cristy0c60a692010-11-04 01:09:47 +000012254 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000012255 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12256 (eval $ac_compile) 2>&5
12257 ac_status=$?
12258 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12259 test $ac_status = 0; }; then
12260 if test "$lt_cv_prog_gnu_ld" = yes; then
12261 case `/usr/bin/file conftest.$ac_objext` in
12262 *32-bit*)
12263 LD="${LD-ld} -melf32bsmip"
12264 ;;
12265 *N32*)
12266 LD="${LD-ld} -melf32bmipn32"
12267 ;;
12268 *64-bit*)
12269 LD="${LD-ld} -melf64bmip"
12270 ;;
12271 esac
12272 else
12273 case `/usr/bin/file conftest.$ac_objext` in
12274 *32-bit*)
12275 LD="${LD-ld} -32"
12276 ;;
12277 *N32*)
12278 LD="${LD-ld} -n32"
12279 ;;
12280 *64-bit*)
12281 LD="${LD-ld} -64"
12282 ;;
12283 esac
12284 fi
12285 fi
12286 rm -rf conftest*
12287 ;;
12288
12289x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
12290s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
12291 # Find out which ABI we are using.
12292 echo 'int i;' > conftest.$ac_ext
12293 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12294 (eval $ac_compile) 2>&5
12295 ac_status=$?
12296 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12297 test $ac_status = 0; }; then
12298 case `/usr/bin/file conftest.o` in
12299 *32-bit*)
12300 case $host in
12301 x86_64-*kfreebsd*-gnu)
12302 LD="${LD-ld} -m elf_i386_fbsd"
12303 ;;
12304 x86_64-*linux*)
12305 LD="${LD-ld} -m elf_i386"
12306 ;;
12307 ppc64-*linux*|powerpc64-*linux*)
12308 LD="${LD-ld} -m elf32ppclinux"
12309 ;;
12310 s390x-*linux*)
12311 LD="${LD-ld} -m elf_s390"
12312 ;;
12313 sparc64-*linux*)
12314 LD="${LD-ld} -m elf32_sparc"
12315 ;;
12316 esac
12317 ;;
12318 *64-bit*)
12319 case $host in
12320 x86_64-*kfreebsd*-gnu)
12321 LD="${LD-ld} -m elf_x86_64_fbsd"
12322 ;;
12323 x86_64-*linux*)
12324 LD="${LD-ld} -m elf_x86_64"
12325 ;;
12326 ppc*-*linux*|powerpc*-*linux*)
12327 LD="${LD-ld} -m elf64ppc"
12328 ;;
12329 s390*-*linux*|s390*-*tpf*)
12330 LD="${LD-ld} -m elf64_s390"
12331 ;;
12332 sparc*-*linux*)
12333 LD="${LD-ld} -m elf64_sparc"
12334 ;;
12335 esac
12336 ;;
12337 esac
12338 fi
12339 rm -rf conftest*
12340 ;;
12341
12342*-*-sco3.2v5*)
12343 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12344 SAVE_CFLAGS="$CFLAGS"
12345 CFLAGS="$CFLAGS -belf"
12346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
12347$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012348if ${lt_cv_cc_needs_belf+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012349 $as_echo_n "(cached) " >&6
12350else
12351 ac_ext=c
12352ac_cpp='$CPP $CPPFLAGS'
12353ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12354ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12355ac_compiler_gnu=$ac_cv_c_compiler_gnu
12356
12357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12358/* end confdefs.h. */
12359
12360int
12361main ()
12362{
12363
12364 ;
12365 return 0;
12366}
12367_ACEOF
12368if ac_fn_c_try_link "$LINENO"; then :
12369 lt_cv_cc_needs_belf=yes
12370else
12371 lt_cv_cc_needs_belf=no
12372fi
12373rm -f core conftest.err conftest.$ac_objext \
12374 conftest$ac_exeext conftest.$ac_ext
12375 ac_ext=c
12376ac_cpp='$CPP $CPPFLAGS'
12377ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12378ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12379ac_compiler_gnu=$ac_cv_c_compiler_gnu
12380
12381fi
12382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
12383$as_echo "$lt_cv_cc_needs_belf" >&6; }
12384 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12385 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12386 CFLAGS="$SAVE_CFLAGS"
12387 fi
12388 ;;
cristy99bd5232011-12-07 14:38:20 +000012389*-*solaris*)
cristy73bd4a52010-10-05 11:24:23 +000012390 # Find out which ABI we are using.
12391 echo 'int i;' > conftest.$ac_ext
12392 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12393 (eval $ac_compile) 2>&5
12394 ac_status=$?
12395 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12396 test $ac_status = 0; }; then
12397 case `/usr/bin/file conftest.o` in
12398 *64-bit*)
12399 case $lt_cv_prog_gnu_ld in
cristy99bd5232011-12-07 14:38:20 +000012400 yes*)
12401 case $host in
12402 i?86-*-solaris*)
12403 LD="${LD-ld} -m elf_x86_64"
12404 ;;
12405 sparc*-*-solaris*)
12406 LD="${LD-ld} -m elf64_sparc"
12407 ;;
12408 esac
12409 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
12410 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
12411 LD="${LD-ld}_sol2"
12412 fi
12413 ;;
cristy73bd4a52010-10-05 11:24:23 +000012414 *)
12415 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
12416 LD="${LD-ld} -64"
12417 fi
12418 ;;
12419 esac
12420 ;;
12421 esac
12422 fi
12423 rm -rf conftest*
12424 ;;
12425esac
12426
12427need_locks="$enable_libtool_lock"
12428
cristyda16f162011-02-19 23:52:17 +000012429if test -n "$ac_tool_prefix"; then
12430 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
12431set dummy ${ac_tool_prefix}mt; 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; }
12434if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
12435 $as_echo_n "(cached) " >&6
12436else
12437 if test -n "$MANIFEST_TOOL"; then
12438 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # 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
cristyda16f162011-02-19 23:52:17 +000012447 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
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
12457MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
12458if test -n "$MANIFEST_TOOL"; then
12459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
12460$as_echo "$MANIFEST_TOOL" >&6; }
12461else
12462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12463$as_echo "no" >&6; }
12464fi
12465
12466
12467fi
12468if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
12469 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
12470 # Extract the first word of "mt", so it can be a program name with args.
12471set dummy mt; ac_word=$2
12472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12473$as_echo_n "checking for $ac_word... " >&6; }
12474if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
12475 $as_echo_n "(cached) " >&6
12476else
12477 if test -n "$ac_ct_MANIFEST_TOOL"; then
12478 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
12479else
12480as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12481for as_dir in $PATH
12482do
12483 IFS=$as_save_IFS
12484 test -z "$as_dir" && as_dir=.
12485 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012486 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000012487 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
12488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12489 break 2
12490 fi
12491done
12492 done
12493IFS=$as_save_IFS
12494
12495fi
12496fi
12497ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
12498if test -n "$ac_ct_MANIFEST_TOOL"; then
12499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
12500$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
12501else
12502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12503$as_echo "no" >&6; }
12504fi
12505
12506 if test "x$ac_ct_MANIFEST_TOOL" = x; then
12507 MANIFEST_TOOL=":"
12508 else
12509 case $cross_compiling:$ac_tool_warned in
12510yes:)
12511{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12512$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12513ac_tool_warned=yes ;;
12514esac
12515 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
12516 fi
12517else
12518 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
12519fi
12520
12521test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
12522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
12523$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
12524if ${lt_cv_path_mainfest_tool+:} false; then :
12525 $as_echo_n "(cached) " >&6
12526else
12527 lt_cv_path_mainfest_tool=no
12528 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
12529 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
12530 cat conftest.err >&5
12531 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
12532 lt_cv_path_mainfest_tool=yes
12533 fi
12534 rm -f conftest*
12535fi
12536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
12537$as_echo "$lt_cv_path_mainfest_tool" >&6; }
12538if test "x$lt_cv_path_mainfest_tool" != xyes; then
12539 MANIFEST_TOOL=:
12540fi
12541
12542
12543
12544
12545
cristy73bd4a52010-10-05 11:24:23 +000012546
12547 case $host_os in
12548 rhapsody* | darwin*)
12549 if test -n "$ac_tool_prefix"; then
12550 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
12551set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
12552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12553$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012554if ${ac_cv_prog_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012555 $as_echo_n "(cached) " >&6
12556else
12557 if test -n "$DSYMUTIL"; then
12558 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
12559else
12560as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12561for as_dir in $PATH
12562do
12563 IFS=$as_save_IFS
12564 test -z "$as_dir" && as_dir=.
12565 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012566 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012567 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
12568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12569 break 2
12570 fi
12571done
12572 done
12573IFS=$as_save_IFS
12574
12575fi
12576fi
12577DSYMUTIL=$ac_cv_prog_DSYMUTIL
12578if test -n "$DSYMUTIL"; then
12579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
12580$as_echo "$DSYMUTIL" >&6; }
12581else
12582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12583$as_echo "no" >&6; }
12584fi
12585
12586
12587fi
12588if test -z "$ac_cv_prog_DSYMUTIL"; then
12589 ac_ct_DSYMUTIL=$DSYMUTIL
12590 # Extract the first word of "dsymutil", so it can be a program name with args.
12591set dummy dsymutil; ac_word=$2
12592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12593$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012594if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012595 $as_echo_n "(cached) " >&6
12596else
12597 if test -n "$ac_ct_DSYMUTIL"; then
12598 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
12599else
12600as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12601for as_dir in $PATH
12602do
12603 IFS=$as_save_IFS
12604 test -z "$as_dir" && as_dir=.
12605 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012606 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012607 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
12608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12609 break 2
12610 fi
12611done
12612 done
12613IFS=$as_save_IFS
12614
12615fi
12616fi
12617ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
12618if test -n "$ac_ct_DSYMUTIL"; then
12619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
12620$as_echo "$ac_ct_DSYMUTIL" >&6; }
12621else
12622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12623$as_echo "no" >&6; }
12624fi
12625
12626 if test "x$ac_ct_DSYMUTIL" = x; then
12627 DSYMUTIL=":"
12628 else
12629 case $cross_compiling:$ac_tool_warned in
12630yes:)
12631{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12632$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12633ac_tool_warned=yes ;;
12634esac
12635 DSYMUTIL=$ac_ct_DSYMUTIL
12636 fi
12637else
12638 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
12639fi
12640
12641 if test -n "$ac_tool_prefix"; then
12642 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
12643set dummy ${ac_tool_prefix}nmedit; ac_word=$2
12644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12645$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012646if ${ac_cv_prog_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012647 $as_echo_n "(cached) " >&6
12648else
12649 if test -n "$NMEDIT"; then
12650 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
12651else
12652as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12653for as_dir in $PATH
12654do
12655 IFS=$as_save_IFS
12656 test -z "$as_dir" && as_dir=.
12657 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012658 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012659 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
12660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12661 break 2
12662 fi
12663done
12664 done
12665IFS=$as_save_IFS
12666
12667fi
12668fi
12669NMEDIT=$ac_cv_prog_NMEDIT
12670if test -n "$NMEDIT"; then
12671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
12672$as_echo "$NMEDIT" >&6; }
12673else
12674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12675$as_echo "no" >&6; }
12676fi
12677
12678
12679fi
12680if test -z "$ac_cv_prog_NMEDIT"; then
12681 ac_ct_NMEDIT=$NMEDIT
12682 # Extract the first word of "nmedit", so it can be a program name with args.
12683set dummy nmedit; ac_word=$2
12684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12685$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012686if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012687 $as_echo_n "(cached) " >&6
12688else
12689 if test -n "$ac_ct_NMEDIT"; then
12690 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
12691else
12692as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12693for as_dir in $PATH
12694do
12695 IFS=$as_save_IFS
12696 test -z "$as_dir" && as_dir=.
12697 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012698 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012699 ac_cv_prog_ac_ct_NMEDIT="nmedit"
12700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12701 break 2
12702 fi
12703done
12704 done
12705IFS=$as_save_IFS
12706
12707fi
12708fi
12709ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
12710if test -n "$ac_ct_NMEDIT"; then
12711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
12712$as_echo "$ac_ct_NMEDIT" >&6; }
12713else
12714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12715$as_echo "no" >&6; }
12716fi
12717
12718 if test "x$ac_ct_NMEDIT" = x; then
12719 NMEDIT=":"
12720 else
12721 case $cross_compiling:$ac_tool_warned in
12722yes:)
12723{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12724$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12725ac_tool_warned=yes ;;
12726esac
12727 NMEDIT=$ac_ct_NMEDIT
12728 fi
12729else
12730 NMEDIT="$ac_cv_prog_NMEDIT"
12731fi
12732
12733 if test -n "$ac_tool_prefix"; then
12734 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
12735set dummy ${ac_tool_prefix}lipo; ac_word=$2
12736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12737$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012738if ${ac_cv_prog_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012739 $as_echo_n "(cached) " >&6
12740else
12741 if test -n "$LIPO"; then
12742 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
12743else
12744as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12745for as_dir in $PATH
12746do
12747 IFS=$as_save_IFS
12748 test -z "$as_dir" && as_dir=.
12749 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012750 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012751 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
12752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12753 break 2
12754 fi
12755done
12756 done
12757IFS=$as_save_IFS
12758
12759fi
12760fi
12761LIPO=$ac_cv_prog_LIPO
12762if test -n "$LIPO"; then
12763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
12764$as_echo "$LIPO" >&6; }
12765else
12766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12767$as_echo "no" >&6; }
12768fi
12769
12770
12771fi
12772if test -z "$ac_cv_prog_LIPO"; then
12773 ac_ct_LIPO=$LIPO
12774 # Extract the first word of "lipo", so it can be a program name with args.
12775set dummy lipo; ac_word=$2
12776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12777$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012778if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012779 $as_echo_n "(cached) " >&6
12780else
12781 if test -n "$ac_ct_LIPO"; then
12782 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
12783else
12784as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12785for as_dir in $PATH
12786do
12787 IFS=$as_save_IFS
12788 test -z "$as_dir" && as_dir=.
12789 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012790 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012791 ac_cv_prog_ac_ct_LIPO="lipo"
12792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12793 break 2
12794 fi
12795done
12796 done
12797IFS=$as_save_IFS
12798
12799fi
12800fi
12801ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
12802if test -n "$ac_ct_LIPO"; then
12803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
12804$as_echo "$ac_ct_LIPO" >&6; }
12805else
12806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12807$as_echo "no" >&6; }
12808fi
12809
12810 if test "x$ac_ct_LIPO" = x; then
12811 LIPO=":"
12812 else
12813 case $cross_compiling:$ac_tool_warned in
12814yes:)
12815{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12816$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12817ac_tool_warned=yes ;;
12818esac
12819 LIPO=$ac_ct_LIPO
12820 fi
12821else
12822 LIPO="$ac_cv_prog_LIPO"
12823fi
12824
12825 if test -n "$ac_tool_prefix"; then
12826 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
12827set dummy ${ac_tool_prefix}otool; ac_word=$2
12828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12829$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012830if ${ac_cv_prog_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012831 $as_echo_n "(cached) " >&6
12832else
12833 if test -n "$OTOOL"; then
12834 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12835else
12836as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12837for as_dir in $PATH
12838do
12839 IFS=$as_save_IFS
12840 test -z "$as_dir" && as_dir=.
12841 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012842 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012843 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
12844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12845 break 2
12846 fi
12847done
12848 done
12849IFS=$as_save_IFS
12850
12851fi
12852fi
12853OTOOL=$ac_cv_prog_OTOOL
12854if test -n "$OTOOL"; then
12855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12856$as_echo "$OTOOL" >&6; }
12857else
12858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12859$as_echo "no" >&6; }
12860fi
12861
12862
12863fi
12864if test -z "$ac_cv_prog_OTOOL"; then
12865 ac_ct_OTOOL=$OTOOL
12866 # Extract the first word of "otool", so it can be a program name with args.
12867set dummy otool; ac_word=$2
12868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12869$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012870if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012871 $as_echo_n "(cached) " >&6
12872else
12873 if test -n "$ac_ct_OTOOL"; then
12874 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
12875else
12876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12877for as_dir in $PATH
12878do
12879 IFS=$as_save_IFS
12880 test -z "$as_dir" && as_dir=.
12881 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012882 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012883 ac_cv_prog_ac_ct_OTOOL="otool"
12884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12885 break 2
12886 fi
12887done
12888 done
12889IFS=$as_save_IFS
12890
12891fi
12892fi
12893ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
12894if test -n "$ac_ct_OTOOL"; then
12895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
12896$as_echo "$ac_ct_OTOOL" >&6; }
12897else
12898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12899$as_echo "no" >&6; }
12900fi
12901
12902 if test "x$ac_ct_OTOOL" = x; then
12903 OTOOL=":"
12904 else
12905 case $cross_compiling:$ac_tool_warned in
12906yes:)
12907{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12908$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12909ac_tool_warned=yes ;;
12910esac
12911 OTOOL=$ac_ct_OTOOL
12912 fi
12913else
12914 OTOOL="$ac_cv_prog_OTOOL"
12915fi
12916
12917 if test -n "$ac_tool_prefix"; then
12918 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
12919set dummy ${ac_tool_prefix}otool64; ac_word=$2
12920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12921$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012922if ${ac_cv_prog_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012923 $as_echo_n "(cached) " >&6
12924else
12925 if test -n "$OTOOL64"; then
12926 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
12927else
12928as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12929for as_dir in $PATH
12930do
12931 IFS=$as_save_IFS
12932 test -z "$as_dir" && as_dir=.
12933 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012934 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012935 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
12936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12937 break 2
12938 fi
12939done
12940 done
12941IFS=$as_save_IFS
12942
12943fi
12944fi
12945OTOOL64=$ac_cv_prog_OTOOL64
12946if test -n "$OTOOL64"; then
12947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
12948$as_echo "$OTOOL64" >&6; }
12949else
12950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12951$as_echo "no" >&6; }
12952fi
12953
12954
12955fi
12956if test -z "$ac_cv_prog_OTOOL64"; then
12957 ac_ct_OTOOL64=$OTOOL64
12958 # Extract the first word of "otool64", so it can be a program name with args.
12959set dummy otool64; ac_word=$2
12960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12961$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012962if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012963 $as_echo_n "(cached) " >&6
12964else
12965 if test -n "$ac_ct_OTOOL64"; then
12966 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
12967else
12968as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12969for as_dir in $PATH
12970do
12971 IFS=$as_save_IFS
12972 test -z "$as_dir" && as_dir=.
12973 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012974 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012975 ac_cv_prog_ac_ct_OTOOL64="otool64"
12976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12977 break 2
12978 fi
12979done
12980 done
12981IFS=$as_save_IFS
12982
12983fi
12984fi
12985ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
12986if test -n "$ac_ct_OTOOL64"; then
12987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
12988$as_echo "$ac_ct_OTOOL64" >&6; }
12989else
12990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12991$as_echo "no" >&6; }
12992fi
12993
12994 if test "x$ac_ct_OTOOL64" = x; then
12995 OTOOL64=":"
12996 else
12997 case $cross_compiling:$ac_tool_warned in
12998yes:)
12999{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13000$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13001ac_tool_warned=yes ;;
13002esac
13003 OTOOL64=$ac_ct_OTOOL64
13004 fi
13005else
13006 OTOOL64="$ac_cv_prog_OTOOL64"
13007fi
13008
13009
13010
13011
13012
13013
13014
13015
13016
13017
13018
13019
13020
13021
13022
13023
13024
13025
13026
13027
13028
13029
13030
13031
13032
13033
13034
13035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
13036$as_echo_n "checking for -single_module linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013037if ${lt_cv_apple_cc_single_mod+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013038 $as_echo_n "(cached) " >&6
13039else
13040 lt_cv_apple_cc_single_mod=no
13041 if test -z "${LT_MULTI_MODULE}"; then
13042 # By default we will add the -single_module flag. You can override
13043 # by either setting the environment variable LT_MULTI_MODULE
13044 # non-empty at configure time, or by adding -multi_module to the
13045 # link flags.
13046 rm -rf libconftest.dylib*
13047 echo "int foo(void){return 1;}" > conftest.c
13048 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13049-dynamiclib -Wl,-single_module conftest.c" >&5
13050 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13051 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
13052 _lt_result=$?
cristy99bd5232011-12-07 14:38:20 +000013053 # If there is a non-empty error log, and "single_module"
13054 # appears in it, assume the flag caused a linker warning
13055 if test -s conftest.err && $GREP single_module conftest.err; then
13056 cat conftest.err >&5
13057 # Otherwise, if the output was created with a 0 exit code from
13058 # the compiler, it worked.
13059 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
cristy73bd4a52010-10-05 11:24:23 +000013060 lt_cv_apple_cc_single_mod=yes
13061 else
13062 cat conftest.err >&5
13063 fi
13064 rm -rf libconftest.dylib*
13065 rm -f conftest.*
13066 fi
13067fi
13068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
13069$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
cristy99bd5232011-12-07 14:38:20 +000013070
cristy73bd4a52010-10-05 11:24:23 +000013071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
13072$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013073if ${lt_cv_ld_exported_symbols_list+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013074 $as_echo_n "(cached) " >&6
13075else
13076 lt_cv_ld_exported_symbols_list=no
13077 save_LDFLAGS=$LDFLAGS
13078 echo "_main" > conftest.sym
13079 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
13080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13081/* end confdefs.h. */
13082
13083int
13084main ()
13085{
13086
13087 ;
13088 return 0;
13089}
13090_ACEOF
13091if ac_fn_c_try_link "$LINENO"; then :
13092 lt_cv_ld_exported_symbols_list=yes
13093else
13094 lt_cv_ld_exported_symbols_list=no
13095fi
13096rm -f core conftest.err conftest.$ac_objext \
13097 conftest$ac_exeext conftest.$ac_ext
13098 LDFLAGS="$save_LDFLAGS"
13099
13100fi
13101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
13102$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
cristy99bd5232011-12-07 14:38:20 +000013103
cristy0c60a692010-11-04 01:09:47 +000013104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
13105$as_echo_n "checking for -force_load linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013106if ${lt_cv_ld_force_load+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000013107 $as_echo_n "(cached) " >&6
13108else
13109 lt_cv_ld_force_load=no
13110 cat > conftest.c << _LT_EOF
13111int forced_loaded() { return 2;}
13112_LT_EOF
13113 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
13114 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
13115 echo "$AR cru libconftest.a conftest.o" >&5
13116 $AR cru libconftest.a conftest.o 2>&5
13117 echo "$RANLIB libconftest.a" >&5
13118 $RANLIB libconftest.a 2>&5
13119 cat > conftest.c << _LT_EOF
13120int main() { return 0;}
13121_LT_EOF
13122 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
13123 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
13124 _lt_result=$?
cristy99bd5232011-12-07 14:38:20 +000013125 if test -s conftest.err && $GREP force_load conftest.err; then
13126 cat conftest.err >&5
13127 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
cristy0c60a692010-11-04 01:09:47 +000013128 lt_cv_ld_force_load=yes
13129 else
13130 cat conftest.err >&5
13131 fi
13132 rm -f conftest.err libconftest.a conftest conftest.c
13133 rm -rf conftest.dSYM
13134
13135fi
13136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
13137$as_echo "$lt_cv_ld_force_load" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000013138 case $host_os in
13139 rhapsody* | darwin1.[012])
13140 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
13141 darwin1.*)
13142 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13143 darwin*) # darwin 5.x on
13144 # if running on 10.5 or later, the deployment target defaults
13145 # to the OS version, if on x86, and 10.4, the deployment
13146 # target defaults to 10.4. Don't you love it?
13147 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
13148 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
13149 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13150 10.[012]*)
13151 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13152 10.*)
13153 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13154 esac
13155 ;;
13156 esac
13157 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
13158 _lt_dar_single_mod='$single_module'
13159 fi
13160 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
13161 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
13162 else
13163 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
13164 fi
cristy0c60a692010-11-04 01:09:47 +000013165 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
cristy73bd4a52010-10-05 11:24:23 +000013166 _lt_dsymutil='~$DSYMUTIL $lib || :'
13167 else
13168 _lt_dsymutil=
13169 fi
13170 ;;
13171 esac
13172
13173for ac_header in dlfcn.h
13174do :
13175 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
13176"
cristyda16f162011-02-19 23:52:17 +000013177if test "x$ac_cv_header_dlfcn_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000013178 cat >>confdefs.h <<_ACEOF
13179#define HAVE_DLFCN_H 1
13180_ACEOF
13181
13182fi
13183
13184done
13185
13186
13187
cristy73bd4a52010-10-05 11:24:23 +000013188
cristyda16f162011-02-19 23:52:17 +000013189func_stripname_cnf ()
13190{
13191 case ${2} in
13192 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
13193 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
13194 esac
13195} # func_stripname_cnf
13196
13197
13198
cristy73bd4a52010-10-05 11:24:23 +000013199
13200
13201# Set options
13202enable_win32_dll=yes
13203
13204case $host in
cristy0c60a692010-11-04 01:09:47 +000013205*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000013206 if test -n "$ac_tool_prefix"; then
13207 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
13208set dummy ${ac_tool_prefix}as; ac_word=$2
13209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13210$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013211if ${ac_cv_prog_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013212 $as_echo_n "(cached) " >&6
13213else
13214 if test -n "$AS"; then
13215 ac_cv_prog_AS="$AS" # Let the user override the test.
13216else
13217as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13218for as_dir in $PATH
13219do
13220 IFS=$as_save_IFS
13221 test -z "$as_dir" && as_dir=.
13222 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013223 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013224 ac_cv_prog_AS="${ac_tool_prefix}as"
13225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13226 break 2
13227 fi
13228done
13229 done
13230IFS=$as_save_IFS
13231
13232fi
13233fi
13234AS=$ac_cv_prog_AS
13235if test -n "$AS"; then
13236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
13237$as_echo "$AS" >&6; }
13238else
13239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13240$as_echo "no" >&6; }
13241fi
13242
13243
13244fi
13245if test -z "$ac_cv_prog_AS"; then
13246 ac_ct_AS=$AS
13247 # Extract the first word of "as", so it can be a program name with args.
13248set dummy as; ac_word=$2
13249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13250$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013251if ${ac_cv_prog_ac_ct_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013252 $as_echo_n "(cached) " >&6
13253else
13254 if test -n "$ac_ct_AS"; then
13255 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
13256else
13257as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13258for as_dir in $PATH
13259do
13260 IFS=$as_save_IFS
13261 test -z "$as_dir" && as_dir=.
13262 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013263 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013264 ac_cv_prog_ac_ct_AS="as"
13265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13266 break 2
13267 fi
13268done
13269 done
13270IFS=$as_save_IFS
13271
13272fi
13273fi
13274ac_ct_AS=$ac_cv_prog_ac_ct_AS
13275if test -n "$ac_ct_AS"; then
13276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
13277$as_echo "$ac_ct_AS" >&6; }
13278else
13279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13280$as_echo "no" >&6; }
13281fi
13282
13283 if test "x$ac_ct_AS" = x; then
13284 AS="false"
13285 else
13286 case $cross_compiling:$ac_tool_warned in
13287yes:)
13288{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13289$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13290ac_tool_warned=yes ;;
13291esac
13292 AS=$ac_ct_AS
13293 fi
13294else
13295 AS="$ac_cv_prog_AS"
13296fi
13297
13298 if test -n "$ac_tool_prefix"; then
13299 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
13300set dummy ${ac_tool_prefix}dlltool; ac_word=$2
13301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13302$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013303if ${ac_cv_prog_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013304 $as_echo_n "(cached) " >&6
13305else
13306 if test -n "$DLLTOOL"; then
13307 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
13308else
13309as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13310for as_dir in $PATH
13311do
13312 IFS=$as_save_IFS
13313 test -z "$as_dir" && as_dir=.
13314 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013315 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013316 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
13317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13318 break 2
13319 fi
13320done
13321 done
13322IFS=$as_save_IFS
13323
13324fi
13325fi
13326DLLTOOL=$ac_cv_prog_DLLTOOL
13327if test -n "$DLLTOOL"; then
13328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
13329$as_echo "$DLLTOOL" >&6; }
13330else
13331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13332$as_echo "no" >&6; }
13333fi
13334
13335
13336fi
13337if test -z "$ac_cv_prog_DLLTOOL"; then
13338 ac_ct_DLLTOOL=$DLLTOOL
13339 # Extract the first word of "dlltool", so it can be a program name with args.
13340set dummy dlltool; ac_word=$2
13341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13342$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013343if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013344 $as_echo_n "(cached) " >&6
13345else
13346 if test -n "$ac_ct_DLLTOOL"; then
13347 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
13348else
13349as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13350for as_dir in $PATH
13351do
13352 IFS=$as_save_IFS
13353 test -z "$as_dir" && as_dir=.
13354 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013355 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013356 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
13357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13358 break 2
13359 fi
13360done
13361 done
13362IFS=$as_save_IFS
13363
13364fi
13365fi
13366ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
13367if test -n "$ac_ct_DLLTOOL"; then
13368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
13369$as_echo "$ac_ct_DLLTOOL" >&6; }
13370else
13371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13372$as_echo "no" >&6; }
13373fi
13374
13375 if test "x$ac_ct_DLLTOOL" = x; then
13376 DLLTOOL="false"
13377 else
13378 case $cross_compiling:$ac_tool_warned in
13379yes:)
13380{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13381$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13382ac_tool_warned=yes ;;
13383esac
13384 DLLTOOL=$ac_ct_DLLTOOL
13385 fi
13386else
13387 DLLTOOL="$ac_cv_prog_DLLTOOL"
13388fi
13389
13390 if test -n "$ac_tool_prefix"; then
13391 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
13392set dummy ${ac_tool_prefix}objdump; ac_word=$2
13393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13394$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013395if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013396 $as_echo_n "(cached) " >&6
13397else
13398 if test -n "$OBJDUMP"; then
13399 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13400else
13401as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13402for as_dir in $PATH
13403do
13404 IFS=$as_save_IFS
13405 test -z "$as_dir" && as_dir=.
13406 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013407 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013408 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
13409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13410 break 2
13411 fi
13412done
13413 done
13414IFS=$as_save_IFS
13415
13416fi
13417fi
13418OBJDUMP=$ac_cv_prog_OBJDUMP
13419if test -n "$OBJDUMP"; then
13420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
13421$as_echo "$OBJDUMP" >&6; }
13422else
13423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13424$as_echo "no" >&6; }
13425fi
13426
13427
13428fi
13429if test -z "$ac_cv_prog_OBJDUMP"; then
13430 ac_ct_OBJDUMP=$OBJDUMP
13431 # Extract the first word of "objdump", so it can be a program name with args.
13432set dummy objdump; ac_word=$2
13433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13434$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013435if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013436 $as_echo_n "(cached) " >&6
13437else
13438 if test -n "$ac_ct_OBJDUMP"; then
13439 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
13440else
13441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13442for as_dir in $PATH
13443do
13444 IFS=$as_save_IFS
13445 test -z "$as_dir" && as_dir=.
13446 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013447 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013448 ac_cv_prog_ac_ct_OBJDUMP="objdump"
13449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13450 break 2
13451 fi
13452done
13453 done
13454IFS=$as_save_IFS
13455
13456fi
13457fi
13458ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
13459if test -n "$ac_ct_OBJDUMP"; then
13460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
13461$as_echo "$ac_ct_OBJDUMP" >&6; }
13462else
13463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13464$as_echo "no" >&6; }
13465fi
13466
13467 if test "x$ac_ct_OBJDUMP" = x; then
13468 OBJDUMP="false"
13469 else
13470 case $cross_compiling:$ac_tool_warned in
13471yes:)
13472{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13473$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13474ac_tool_warned=yes ;;
13475esac
13476 OBJDUMP=$ac_ct_OBJDUMP
13477 fi
13478else
13479 OBJDUMP="$ac_cv_prog_OBJDUMP"
13480fi
13481
13482 ;;
13483esac
13484
13485test -z "$AS" && AS=as
13486
13487
13488
13489
13490
13491test -z "$DLLTOOL" && DLLTOOL=dlltool
13492
13493
13494
13495
13496
13497test -z "$OBJDUMP" && OBJDUMP=objdump
13498
13499
13500
13501
13502
13503
13504
13505
13506
13507 # Check whether --enable-shared was given.
13508if test "${enable_shared+set}" = set; then :
13509 enableval=$enable_shared; p=${PACKAGE-default}
13510 case $enableval in
13511 yes) enable_shared=yes ;;
13512 no) enable_shared=no ;;
13513 *)
13514 enable_shared=no
13515 # Look at the argument we got. We use all the common list separators.
13516 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13517 for pkg in $enableval; do
13518 IFS="$lt_save_ifs"
13519 if test "X$pkg" = "X$p"; then
13520 enable_shared=yes
13521 fi
13522 done
13523 IFS="$lt_save_ifs"
13524 ;;
13525 esac
13526else
13527 enable_shared=yes
13528fi
13529
13530
13531
13532
13533
13534
13535
13536
13537
13538 # Check whether --enable-static was given.
13539if test "${enable_static+set}" = set; then :
13540 enableval=$enable_static; p=${PACKAGE-default}
13541 case $enableval in
13542 yes) enable_static=yes ;;
13543 no) enable_static=no ;;
13544 *)
13545 enable_static=no
13546 # Look at the argument we got. We use all the common list separators.
13547 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13548 for pkg in $enableval; do
13549 IFS="$lt_save_ifs"
13550 if test "X$pkg" = "X$p"; then
13551 enable_static=yes
13552 fi
13553 done
13554 IFS="$lt_save_ifs"
13555 ;;
13556 esac
13557else
13558 enable_static=yes
13559fi
13560
13561
13562
13563
13564
13565
13566
13567
13568
13569
13570# Check whether --with-pic was given.
13571if test "${with_pic+set}" = set; then :
cristy99bd5232011-12-07 14:38:20 +000013572 withval=$with_pic; lt_p=${PACKAGE-default}
13573 case $withval in
13574 yes|no) pic_mode=$withval ;;
13575 *)
13576 pic_mode=default
13577 # Look at the argument we got. We use all the common list separators.
13578 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13579 for lt_pkg in $withval; do
13580 IFS="$lt_save_ifs"
13581 if test "X$lt_pkg" = "X$lt_p"; then
13582 pic_mode=yes
13583 fi
13584 done
13585 IFS="$lt_save_ifs"
13586 ;;
13587 esac
cristy73bd4a52010-10-05 11:24:23 +000013588else
13589 pic_mode=default
13590fi
13591
13592
13593test -z "$pic_mode" && pic_mode=default
13594
13595
13596
13597
13598
13599
13600
13601 # Check whether --enable-fast-install was given.
13602if test "${enable_fast_install+set}" = set; then :
13603 enableval=$enable_fast_install; p=${PACKAGE-default}
13604 case $enableval in
13605 yes) enable_fast_install=yes ;;
13606 no) enable_fast_install=no ;;
13607 *)
13608 enable_fast_install=no
13609 # Look at the argument we got. We use all the common list separators.
13610 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13611 for pkg in $enableval; do
13612 IFS="$lt_save_ifs"
13613 if test "X$pkg" = "X$p"; then
13614 enable_fast_install=yes
13615 fi
13616 done
13617 IFS="$lt_save_ifs"
13618 ;;
13619 esac
13620else
13621 enable_fast_install=yes
13622fi
13623
13624
13625
13626
13627
13628
13629
13630
13631
13632
13633
13634# This can be used to rebuild libtool when needed
13635LIBTOOL_DEPS="$ltmain"
13636
13637# Always use our own libtool.
13638LIBTOOL='$(SHELL) $(top_builddir)/libtool'
13639
13640
13641
13642
13643
13644
13645
13646
13647
13648
13649
13650
13651
13652
13653
13654
13655
13656
13657
13658
13659
13660
13661
13662
13663
cristy0c60a692010-11-04 01:09:47 +000013664
cristy99bd5232011-12-07 14:38:20 +000013665
13666
13667
13668
cristy73bd4a52010-10-05 11:24:23 +000013669test -z "$LN_S" && LN_S="ln -s"
13670
13671
13672
13673
13674
13675
13676
13677
13678
13679
13680
13681
13682
13683
13684if test -n "${ZSH_VERSION+set}" ; then
13685 setopt NO_GLOB_SUBST
13686fi
13687
13688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
13689$as_echo_n "checking for objdir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013690if ${lt_cv_objdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013691 $as_echo_n "(cached) " >&6
13692else
13693 rm -f .libs 2>/dev/null
13694mkdir .libs 2>/dev/null
13695if test -d .libs; then
13696 lt_cv_objdir=.libs
13697else
13698 # MS-DOS does not allow filenames that begin with a dot.
13699 lt_cv_objdir=_libs
13700fi
13701rmdir .libs 2>/dev/null
13702fi
13703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
13704$as_echo "$lt_cv_objdir" >&6; }
13705objdir=$lt_cv_objdir
13706
13707
13708
13709
13710
13711cat >>confdefs.h <<_ACEOF
13712#define LT_OBJDIR "$lt_cv_objdir/"
13713_ACEOF
13714
13715
13716
13717
cristy73bd4a52010-10-05 11:24:23 +000013718case $host_os in
13719aix3*)
13720 # AIX sometimes has problems with the GCC collect2 program. For some
13721 # reason, if we set the COLLECT_NAMES environment variable, the problems
13722 # vanish in a puff of smoke.
13723 if test "X${COLLECT_NAMES+set}" != Xset; then
13724 COLLECT_NAMES=
13725 export COLLECT_NAMES
13726 fi
13727 ;;
13728esac
13729
cristy73bd4a52010-10-05 11:24:23 +000013730# Global variables:
13731ofile=libtool
13732can_build_shared=yes
13733
13734# All known linkers require a `.a' archive for static linking (except MSVC,
13735# which needs '.lib').
13736libext=a
13737
13738with_gnu_ld="$lt_cv_prog_gnu_ld"
13739
13740old_CC="$CC"
13741old_CFLAGS="$CFLAGS"
13742
13743# Set sane defaults for various variables
13744test -z "$CC" && CC=cc
13745test -z "$LTCC" && LTCC=$CC
13746test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13747test -z "$LD" && LD=ld
13748test -z "$ac_objext" && ac_objext=o
13749
13750for cc_temp in $compiler""; do
13751 case $cc_temp in
13752 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13753 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13754 \-*) ;;
13755 *) break;;
13756 esac
13757done
cristy0c60a692010-11-04 01:09:47 +000013758cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000013759
13760
13761# Only perform the check for file, if the check method requires it
13762test -z "$MAGIC_CMD" && MAGIC_CMD=file
13763case $deplibs_check_method in
13764file_magic*)
13765 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
13766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
13767$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013768if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013769 $as_echo_n "(cached) " >&6
13770else
13771 case $MAGIC_CMD in
13772[\\/*] | ?:[\\/]*)
13773 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13774 ;;
13775*)
13776 lt_save_MAGIC_CMD="$MAGIC_CMD"
13777 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13778 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13779 for ac_dir in $ac_dummy; do
13780 IFS="$lt_save_ifs"
13781 test -z "$ac_dir" && ac_dir=.
13782 if test -f $ac_dir/${ac_tool_prefix}file; then
13783 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
13784 if test -n "$file_magic_test_file"; then
13785 case $deplibs_check_method in
13786 "file_magic "*)
13787 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13788 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13789 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13790 $EGREP "$file_magic_regex" > /dev/null; then
13791 :
13792 else
13793 cat <<_LT_EOF 1>&2
13794
13795*** Warning: the command libtool uses to detect shared libraries,
13796*** $file_magic_cmd, produces output that libtool cannot recognize.
13797*** The result is that libtool may fail to recognize shared libraries
13798*** as such. This will affect the creation of libtool libraries that
13799*** depend on shared libraries, but programs linked with such libtool
13800*** libraries will work regardless of this problem. Nevertheless, you
13801*** may want to report the problem to your system manager and/or to
13802*** bug-libtool@gnu.org
13803
13804_LT_EOF
13805 fi ;;
13806 esac
13807 fi
13808 break
13809 fi
13810 done
13811 IFS="$lt_save_ifs"
13812 MAGIC_CMD="$lt_save_MAGIC_CMD"
13813 ;;
13814esac
13815fi
13816
13817MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13818if test -n "$MAGIC_CMD"; then
13819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13820$as_echo "$MAGIC_CMD" >&6; }
13821else
13822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13823$as_echo "no" >&6; }
13824fi
13825
13826
13827
13828
13829
13830if test -z "$lt_cv_path_MAGIC_CMD"; then
13831 if test -n "$ac_tool_prefix"; then
13832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
13833$as_echo_n "checking for file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013834if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013835 $as_echo_n "(cached) " >&6
13836else
13837 case $MAGIC_CMD in
13838[\\/*] | ?:[\\/]*)
13839 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13840 ;;
13841*)
13842 lt_save_MAGIC_CMD="$MAGIC_CMD"
13843 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13844 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13845 for ac_dir in $ac_dummy; do
13846 IFS="$lt_save_ifs"
13847 test -z "$ac_dir" && ac_dir=.
13848 if test -f $ac_dir/file; then
13849 lt_cv_path_MAGIC_CMD="$ac_dir/file"
13850 if test -n "$file_magic_test_file"; then
13851 case $deplibs_check_method in
13852 "file_magic "*)
13853 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13854 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13855 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13856 $EGREP "$file_magic_regex" > /dev/null; then
13857 :
13858 else
13859 cat <<_LT_EOF 1>&2
13860
13861*** Warning: the command libtool uses to detect shared libraries,
13862*** $file_magic_cmd, produces output that libtool cannot recognize.
13863*** The result is that libtool may fail to recognize shared libraries
13864*** as such. This will affect the creation of libtool libraries that
13865*** depend on shared libraries, but programs linked with such libtool
13866*** libraries will work regardless of this problem. Nevertheless, you
13867*** may want to report the problem to your system manager and/or to
13868*** bug-libtool@gnu.org
13869
13870_LT_EOF
13871 fi ;;
13872 esac
13873 fi
13874 break
13875 fi
13876 done
13877 IFS="$lt_save_ifs"
13878 MAGIC_CMD="$lt_save_MAGIC_CMD"
13879 ;;
13880esac
13881fi
13882
13883MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13884if test -n "$MAGIC_CMD"; then
13885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13886$as_echo "$MAGIC_CMD" >&6; }
13887else
13888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13889$as_echo "no" >&6; }
13890fi
13891
13892
13893 else
13894 MAGIC_CMD=:
13895 fi
13896fi
13897
13898 fi
13899 ;;
13900esac
13901
13902# Use C for the default configuration in the libtool script
13903
13904lt_save_CC="$CC"
13905ac_ext=c
13906ac_cpp='$CPP $CPPFLAGS'
13907ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13908ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13909ac_compiler_gnu=$ac_cv_c_compiler_gnu
13910
13911
13912# Source file extension for C test sources.
13913ac_ext=c
13914
13915# Object file extension for compiled C test sources.
13916objext=o
13917objext=$objext
13918
13919# Code to be used in simple compile tests
13920lt_simple_compile_test_code="int some_variable = 0;"
13921
13922# Code to be used in simple link tests
13923lt_simple_link_test_code='int main(){return(0);}'
13924
13925
13926
13927
13928
13929
13930
13931# If no C compiler was specified, use CC.
13932LTCC=${LTCC-"$CC"}
13933
13934# If no C compiler flags were specified, use CFLAGS.
13935LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13936
13937# Allow CC to be a program name with arguments.
13938compiler=$CC
13939
13940# Save the default compiler, since it gets overwritten when the other
13941# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
13942compiler_DEFAULT=$CC
13943
13944# save warnings/boilerplate of simple test code
13945ac_outfile=conftest.$ac_objext
13946echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13947eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13948_lt_compiler_boilerplate=`cat conftest.err`
13949$RM conftest*
13950
13951ac_outfile=conftest.$ac_objext
13952echo "$lt_simple_link_test_code" >conftest.$ac_ext
13953eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13954_lt_linker_boilerplate=`cat conftest.err`
13955$RM -r conftest*
13956
13957
13958## CAVEAT EMPTOR:
13959## There is no encapsulation within the following macros, do not change
13960## the running order or otherwise move them around unless you know exactly
13961## what you are doing...
13962if test -n "$compiler"; then
13963
13964lt_prog_compiler_no_builtin_flag=
13965
13966if test "$GCC" = yes; then
cristy0c60a692010-11-04 01:09:47 +000013967 case $cc_basename in
13968 nvcc*)
13969 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
13970 *)
13971 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
13972 esac
cristy73bd4a52010-10-05 11:24:23 +000013973
13974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
13975$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013976if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013977 $as_echo_n "(cached) " >&6
13978else
13979 lt_cv_prog_compiler_rtti_exceptions=no
13980 ac_outfile=conftest.$ac_objext
13981 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13982 lt_compiler_flag="-fno-rtti -fno-exceptions"
13983 # Insert the option either (1) after the last *FLAGS variable, or
13984 # (2) before a word containing "conftest.", or (3) at the end.
13985 # Note that $ac_compile itself does not contain backslashes and begins
13986 # with a dollar sign (not a hyphen), so the echo should work correctly.
13987 # The option is referenced via a variable to avoid confusing sed.
13988 lt_compile=`echo "$ac_compile" | $SED \
13989 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13990 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13991 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000013992 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000013993 (eval "$lt_compile" 2>conftest.err)
13994 ac_status=$?
13995 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000013996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000013997 if (exit $ac_status) && test -s "$ac_outfile"; then
13998 # The compiler can only warn and ignore the option if not recognized
13999 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000014000 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014001 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14002 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14003 lt_cv_prog_compiler_rtti_exceptions=yes
14004 fi
14005 fi
14006 $RM conftest*
14007
14008fi
14009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14010$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14011
14012if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14013 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14014else
14015 :
14016fi
14017
14018fi
14019
14020
14021
14022
14023
14024
14025 lt_prog_compiler_wl=
14026lt_prog_compiler_pic=
14027lt_prog_compiler_static=
14028
cristy73bd4a52010-10-05 11:24:23 +000014029
14030 if test "$GCC" = yes; then
14031 lt_prog_compiler_wl='-Wl,'
14032 lt_prog_compiler_static='-static'
14033
14034 case $host_os in
14035 aix*)
14036 # All AIX code is PIC.
14037 if test "$host_cpu" = ia64; then
14038 # AIX 5 now supports IA64 processor
14039 lt_prog_compiler_static='-Bstatic'
14040 fi
14041 ;;
14042
14043 amigaos*)
14044 case $host_cpu in
14045 powerpc)
14046 # see comment about AmigaOS4 .so support
14047 lt_prog_compiler_pic='-fPIC'
14048 ;;
14049 m68k)
14050 # FIXME: we need at least 68020 code to build shared libraries, but
14051 # adding the `-m68020' flag to GCC prevents building anything better,
14052 # like `-m68040'.
14053 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14054 ;;
14055 esac
14056 ;;
14057
14058 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14059 # PIC is the default for these OSes.
14060 ;;
14061
14062 mingw* | cygwin* | pw32* | os2* | cegcc*)
14063 # This hack is so that the source file can tell whether it is being
14064 # built for inclusion in a dll (and should export symbols for example).
14065 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14066 # (--disable-auto-import) libraries
14067 lt_prog_compiler_pic='-DDLL_EXPORT'
14068 ;;
14069
14070 darwin* | rhapsody*)
14071 # PIC is the default on this platform
14072 # Common symbols not allowed in MH_DYLIB files
14073 lt_prog_compiler_pic='-fno-common'
14074 ;;
14075
cristy0c60a692010-11-04 01:09:47 +000014076 haiku*)
14077 # PIC is the default for Haiku.
14078 # The "-static" flag exists, but is broken.
14079 lt_prog_compiler_static=
14080 ;;
14081
cristy73bd4a52010-10-05 11:24:23 +000014082 hpux*)
14083 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14084 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14085 # sets the default TLS model and affects inlining.
14086 case $host_cpu in
14087 hppa*64*)
14088 # +Z the default
14089 ;;
14090 *)
14091 lt_prog_compiler_pic='-fPIC'
14092 ;;
14093 esac
14094 ;;
14095
14096 interix[3-9]*)
14097 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14098 # Instead, we relocate shared libraries at runtime.
14099 ;;
14100
14101 msdosdjgpp*)
14102 # Just because we use GCC doesn't mean we suddenly get shared libraries
14103 # on systems that don't support them.
14104 lt_prog_compiler_can_build_shared=no
14105 enable_shared=no
14106 ;;
14107
14108 *nto* | *qnx*)
14109 # QNX uses GNU C++, but need to define -shared option too, otherwise
14110 # it will coredump.
14111 lt_prog_compiler_pic='-fPIC -shared'
14112 ;;
14113
14114 sysv4*MP*)
14115 if test -d /usr/nec; then
14116 lt_prog_compiler_pic=-Kconform_pic
14117 fi
14118 ;;
14119
14120 *)
14121 lt_prog_compiler_pic='-fPIC'
14122 ;;
14123 esac
cristy0c60a692010-11-04 01:09:47 +000014124
14125 case $cc_basename in
14126 nvcc*) # Cuda Compiler Driver 2.2
14127 lt_prog_compiler_wl='-Xlinker '
cristy99bd5232011-12-07 14:38:20 +000014128 if test -n "$lt_prog_compiler_pic"; then
14129 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
14130 fi
cristy0c60a692010-11-04 01:09:47 +000014131 ;;
14132 esac
cristy73bd4a52010-10-05 11:24:23 +000014133 else
14134 # PORTME Check for flag to pass linker flags through the system compiler.
14135 case $host_os in
14136 aix*)
14137 lt_prog_compiler_wl='-Wl,'
14138 if test "$host_cpu" = ia64; then
14139 # AIX 5 now supports IA64 processor
14140 lt_prog_compiler_static='-Bstatic'
14141 else
14142 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14143 fi
14144 ;;
14145
14146 mingw* | cygwin* | pw32* | os2* | cegcc*)
14147 # This hack is so that the source file can tell whether it is being
14148 # built for inclusion in a dll (and should export symbols for example).
14149 lt_prog_compiler_pic='-DDLL_EXPORT'
14150 ;;
14151
14152 hpux9* | hpux10* | hpux11*)
14153 lt_prog_compiler_wl='-Wl,'
14154 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14155 # not for PA HP-UX.
14156 case $host_cpu in
14157 hppa*64*|ia64*)
14158 # +Z the default
14159 ;;
14160 *)
14161 lt_prog_compiler_pic='+Z'
14162 ;;
14163 esac
14164 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14165 lt_prog_compiler_static='${wl}-a ${wl}archive'
14166 ;;
14167
14168 irix5* | irix6* | nonstopux*)
14169 lt_prog_compiler_wl='-Wl,'
14170 # PIC (with -KPIC) is the default.
14171 lt_prog_compiler_static='-non_shared'
14172 ;;
14173
cristy0c60a692010-11-04 01:09:47 +000014174 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000014175 case $cc_basename in
14176 # old Intel for x86_64 which still supported -KPIC.
14177 ecc*)
14178 lt_prog_compiler_wl='-Wl,'
14179 lt_prog_compiler_pic='-KPIC'
14180 lt_prog_compiler_static='-static'
14181 ;;
14182 # icc used to be incompatible with GCC.
14183 # ICC 10 doesn't accept -KPIC any more.
14184 icc* | ifort*)
14185 lt_prog_compiler_wl='-Wl,'
14186 lt_prog_compiler_pic='-fPIC'
14187 lt_prog_compiler_static='-static'
14188 ;;
14189 # Lahey Fortran 8.1.
14190 lf95*)
14191 lt_prog_compiler_wl='-Wl,'
14192 lt_prog_compiler_pic='--shared'
14193 lt_prog_compiler_static='--static'
14194 ;;
cristyda16f162011-02-19 23:52:17 +000014195 nagfor*)
14196 # NAG Fortran compiler
14197 lt_prog_compiler_wl='-Wl,-Wl,,'
14198 lt_prog_compiler_pic='-PIC'
14199 lt_prog_compiler_static='-Bstatic'
14200 ;;
cristy0c60a692010-11-04 01:09:47 +000014201 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
cristy73bd4a52010-10-05 11:24:23 +000014202 # Portland Group compilers (*not* the Pentium gcc compiler,
14203 # which looks to be a dead project)
14204 lt_prog_compiler_wl='-Wl,'
14205 lt_prog_compiler_pic='-fpic'
14206 lt_prog_compiler_static='-Bstatic'
14207 ;;
14208 ccc*)
14209 lt_prog_compiler_wl='-Wl,'
14210 # All Alpha code is PIC.
14211 lt_prog_compiler_static='-non_shared'
14212 ;;
cristy0c60a692010-11-04 01:09:47 +000014213 xl* | bgxl* | bgf* | mpixl*)
14214 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000014215 lt_prog_compiler_wl='-Wl,'
14216 lt_prog_compiler_pic='-qpic'
14217 lt_prog_compiler_static='-qstaticlink'
14218 ;;
14219 *)
14220 case `$CC -V 2>&1 | sed 5q` in
cristy99bd5232011-12-07 14:38:20 +000014221 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
cristy0c60a692010-11-04 01:09:47 +000014222 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14223 lt_prog_compiler_pic='-KPIC'
14224 lt_prog_compiler_static='-Bstatic'
14225 lt_prog_compiler_wl=''
14226 ;;
cristy99bd5232011-12-07 14:38:20 +000014227 *Sun\ F* | *Sun*Fortran*)
14228 lt_prog_compiler_pic='-KPIC'
14229 lt_prog_compiler_static='-Bstatic'
14230 lt_prog_compiler_wl='-Qoption ld '
14231 ;;
cristy73bd4a52010-10-05 11:24:23 +000014232 *Sun\ C*)
14233 # Sun C 5.9
14234 lt_prog_compiler_pic='-KPIC'
14235 lt_prog_compiler_static='-Bstatic'
14236 lt_prog_compiler_wl='-Wl,'
14237 ;;
cristy99bd5232011-12-07 14:38:20 +000014238 *Intel*\ [CF]*Compiler*)
14239 lt_prog_compiler_wl='-Wl,'
14240 lt_prog_compiler_pic='-fPIC'
14241 lt_prog_compiler_static='-static'
14242 ;;
14243 *Portland\ Group*)
14244 lt_prog_compiler_wl='-Wl,'
14245 lt_prog_compiler_pic='-fpic'
14246 lt_prog_compiler_static='-Bstatic'
14247 ;;
cristy73bd4a52010-10-05 11:24:23 +000014248 esac
14249 ;;
14250 esac
14251 ;;
14252
14253 newsos6)
14254 lt_prog_compiler_pic='-KPIC'
14255 lt_prog_compiler_static='-Bstatic'
14256 ;;
14257
14258 *nto* | *qnx*)
14259 # QNX uses GNU C++, but need to define -shared option too, otherwise
14260 # it will coredump.
14261 lt_prog_compiler_pic='-fPIC -shared'
14262 ;;
14263
14264 osf3* | osf4* | osf5*)
14265 lt_prog_compiler_wl='-Wl,'
14266 # All OSF/1 code is PIC.
14267 lt_prog_compiler_static='-non_shared'
14268 ;;
14269
14270 rdos*)
14271 lt_prog_compiler_static='-non_shared'
14272 ;;
14273
14274 solaris*)
14275 lt_prog_compiler_pic='-KPIC'
14276 lt_prog_compiler_static='-Bstatic'
14277 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000014278 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
cristy73bd4a52010-10-05 11:24:23 +000014279 lt_prog_compiler_wl='-Qoption ld ';;
14280 *)
14281 lt_prog_compiler_wl='-Wl,';;
14282 esac
14283 ;;
14284
14285 sunos4*)
14286 lt_prog_compiler_wl='-Qoption ld '
14287 lt_prog_compiler_pic='-PIC'
14288 lt_prog_compiler_static='-Bstatic'
14289 ;;
14290
14291 sysv4 | sysv4.2uw2* | sysv4.3*)
14292 lt_prog_compiler_wl='-Wl,'
14293 lt_prog_compiler_pic='-KPIC'
14294 lt_prog_compiler_static='-Bstatic'
14295 ;;
14296
14297 sysv4*MP*)
14298 if test -d /usr/nec ;then
14299 lt_prog_compiler_pic='-Kconform_pic'
14300 lt_prog_compiler_static='-Bstatic'
14301 fi
14302 ;;
14303
14304 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14305 lt_prog_compiler_wl='-Wl,'
14306 lt_prog_compiler_pic='-KPIC'
14307 lt_prog_compiler_static='-Bstatic'
14308 ;;
14309
14310 unicos*)
14311 lt_prog_compiler_wl='-Wl,'
14312 lt_prog_compiler_can_build_shared=no
14313 ;;
14314
14315 uts4*)
14316 lt_prog_compiler_pic='-pic'
14317 lt_prog_compiler_static='-Bstatic'
14318 ;;
14319
14320 *)
14321 lt_prog_compiler_can_build_shared=no
14322 ;;
14323 esac
14324 fi
14325
14326case $host_os in
14327 # For platforms which do not support PIC, -DPIC is meaningless:
14328 *djgpp*)
14329 lt_prog_compiler_pic=
14330 ;;
14331 *)
14332 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14333 ;;
14334esac
cristy73bd4a52010-10-05 11:24:23 +000014335
cristyda16f162011-02-19 23:52:17 +000014336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14337$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14338if ${lt_cv_prog_compiler_pic+:} false; then :
14339 $as_echo_n "(cached) " >&6
14340else
14341 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
14342fi
14343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
14344$as_echo "$lt_cv_prog_compiler_pic" >&6; }
14345lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
cristy73bd4a52010-10-05 11:24:23 +000014346
14347#
14348# Check to make sure the PIC flag actually works.
14349#
14350if test -n "$lt_prog_compiler_pic"; then
14351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14352$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014353if ${lt_cv_prog_compiler_pic_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014354 $as_echo_n "(cached) " >&6
14355else
14356 lt_cv_prog_compiler_pic_works=no
14357 ac_outfile=conftest.$ac_objext
14358 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14359 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14360 # Insert the option either (1) after the last *FLAGS variable, or
14361 # (2) before a word containing "conftest.", or (3) at the end.
14362 # Note that $ac_compile itself does not contain backslashes and begins
14363 # with a dollar sign (not a hyphen), so the echo should work correctly.
14364 # The option is referenced via a variable to avoid confusing sed.
14365 lt_compile=`echo "$ac_compile" | $SED \
14366 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14367 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14368 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014369 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014370 (eval "$lt_compile" 2>conftest.err)
14371 ac_status=$?
14372 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014374 if (exit $ac_status) && test -s "$ac_outfile"; then
14375 # The compiler can only warn and ignore the option if not recognized
14376 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000014377 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014378 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14379 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14380 lt_cv_prog_compiler_pic_works=yes
14381 fi
14382 fi
14383 $RM conftest*
14384
14385fi
14386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14387$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14388
14389if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
14390 case $lt_prog_compiler_pic in
14391 "" | " "*) ;;
14392 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14393 esac
14394else
14395 lt_prog_compiler_pic=
14396 lt_prog_compiler_can_build_shared=no
14397fi
14398
14399fi
14400
14401
14402
14403
14404
14405
cristyda16f162011-02-19 23:52:17 +000014406
14407
14408
14409
14410
cristy73bd4a52010-10-05 11:24:23 +000014411#
14412# Check to make sure the static flag actually works.
14413#
14414wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14416$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014417if ${lt_cv_prog_compiler_static_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014418 $as_echo_n "(cached) " >&6
14419else
14420 lt_cv_prog_compiler_static_works=no
14421 save_LDFLAGS="$LDFLAGS"
14422 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14423 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14424 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14425 # The linker can only warn and ignore the option if not recognized
14426 # So say no if there are warnings
14427 if test -s conftest.err; then
14428 # Append any errors to the config.log.
14429 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000014430 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014431 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14432 if diff conftest.exp conftest.er2 >/dev/null; then
14433 lt_cv_prog_compiler_static_works=yes
14434 fi
14435 else
14436 lt_cv_prog_compiler_static_works=yes
14437 fi
14438 fi
14439 $RM -r conftest*
14440 LDFLAGS="$save_LDFLAGS"
14441
14442fi
14443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14444$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
14445
14446if test x"$lt_cv_prog_compiler_static_works" = xyes; then
14447 :
14448else
14449 lt_prog_compiler_static=
14450fi
14451
14452
14453
14454
14455
14456
14457
14458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14459$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014460if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014461 $as_echo_n "(cached) " >&6
14462else
14463 lt_cv_prog_compiler_c_o=no
14464 $RM -r conftest 2>/dev/null
14465 mkdir conftest
14466 cd conftest
14467 mkdir out
14468 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14469
14470 lt_compiler_flag="-o out/conftest2.$ac_objext"
14471 # Insert the option either (1) after the last *FLAGS variable, or
14472 # (2) before a word containing "conftest.", or (3) at the end.
14473 # Note that $ac_compile itself does not contain backslashes and begins
14474 # with a dollar sign (not a hyphen), so the echo should work correctly.
14475 lt_compile=`echo "$ac_compile" | $SED \
14476 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14477 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14478 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014479 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014480 (eval "$lt_compile" 2>out/conftest.err)
14481 ac_status=$?
14482 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014484 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14485 then
14486 # The compiler can only warn and ignore the option if not recognized
14487 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000014488 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014489 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14490 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14491 lt_cv_prog_compiler_c_o=yes
14492 fi
14493 fi
14494 chmod u+w . 2>&5
14495 $RM conftest*
14496 # SGI C++ compiler will create directory out/ii_files/ for
14497 # template instantiation
14498 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14499 $RM out/* && rmdir out
14500 cd ..
14501 $RM -r conftest
14502 $RM conftest*
14503
14504fi
14505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14506$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14507
14508
14509
14510
14511
14512
14513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14514$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014515if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014516 $as_echo_n "(cached) " >&6
14517else
14518 lt_cv_prog_compiler_c_o=no
14519 $RM -r conftest 2>/dev/null
14520 mkdir conftest
14521 cd conftest
14522 mkdir out
14523 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14524
14525 lt_compiler_flag="-o out/conftest2.$ac_objext"
14526 # Insert the option either (1) after the last *FLAGS variable, or
14527 # (2) before a word containing "conftest.", or (3) at the end.
14528 # Note that $ac_compile itself does not contain backslashes and begins
14529 # with a dollar sign (not a hyphen), so the echo should work correctly.
14530 lt_compile=`echo "$ac_compile" | $SED \
14531 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14532 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14533 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014534 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014535 (eval "$lt_compile" 2>out/conftest.err)
14536 ac_status=$?
14537 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014539 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14540 then
14541 # The compiler can only warn and ignore the option if not recognized
14542 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000014543 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014544 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14545 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14546 lt_cv_prog_compiler_c_o=yes
14547 fi
14548 fi
14549 chmod u+w . 2>&5
14550 $RM conftest*
14551 # SGI C++ compiler will create directory out/ii_files/ for
14552 # template instantiation
14553 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14554 $RM out/* && rmdir out
14555 cd ..
14556 $RM -r conftest
14557 $RM conftest*
14558
14559fi
14560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14561$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14562
14563
14564
14565
14566hard_links="nottested"
14567if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14568 # do not overwrite the value of need_locks provided by the user
14569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14570$as_echo_n "checking if we can lock with hard links... " >&6; }
14571 hard_links=yes
14572 $RM conftest*
14573 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14574 touch conftest.a
14575 ln conftest.a conftest.b 2>&5 || hard_links=no
14576 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14578$as_echo "$hard_links" >&6; }
14579 if test "$hard_links" = no; then
14580 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14581$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14582 need_locks=warn
14583 fi
14584else
14585 need_locks=no
14586fi
14587
14588
14589
14590
14591
14592
14593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14594$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14595
14596 runpath_var=
14597 allow_undefined_flag=
14598 always_export_symbols=no
14599 archive_cmds=
14600 archive_expsym_cmds=
14601 compiler_needs_object=no
14602 enable_shared_with_static_runtimes=no
14603 export_dynamic_flag_spec=
14604 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14605 hardcode_automatic=no
14606 hardcode_direct=no
14607 hardcode_direct_absolute=no
14608 hardcode_libdir_flag_spec=
cristy73bd4a52010-10-05 11:24:23 +000014609 hardcode_libdir_separator=
14610 hardcode_minus_L=no
14611 hardcode_shlibpath_var=unsupported
14612 inherit_rpath=no
14613 link_all_deplibs=unknown
14614 module_cmds=
14615 module_expsym_cmds=
14616 old_archive_from_new_cmds=
14617 old_archive_from_expsyms_cmds=
14618 thread_safe_flag_spec=
14619 whole_archive_flag_spec=
14620 # include_expsyms should be a list of space-separated symbols to be *always*
14621 # included in the symbol list
14622 include_expsyms=
14623 # exclude_expsyms can be an extended regexp of symbols to exclude
14624 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14625 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14626 # as well as any symbol that contains `d'.
14627 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14628 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14629 # platforms (ab)use it in PIC code, but their linkers get confused if
14630 # the symbol is explicitly referenced. Since portable code cannot
14631 # rely on this symbol name, it's probably fine to never include it in
14632 # preloaded symbol tables.
14633 # Exclude shared library initialization/finalization symbols.
14634 extract_expsyms_cmds=
14635
14636 case $host_os in
14637 cygwin* | mingw* | pw32* | cegcc*)
14638 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14639 # When not using gcc, we currently assume that we are using
14640 # Microsoft Visual C++.
14641 if test "$GCC" != yes; then
14642 with_gnu_ld=no
14643 fi
14644 ;;
14645 interix*)
14646 # we just hope/assume this is gcc and not c89 (= MSVC++)
14647 with_gnu_ld=yes
14648 ;;
14649 openbsd*)
14650 with_gnu_ld=no
14651 ;;
14652 esac
14653
14654 ld_shlibs=yes
cristy0c60a692010-11-04 01:09:47 +000014655
14656 # On some targets, GNU ld is compatible enough with the native linker
14657 # that we're better off using the native interface for both.
14658 lt_use_gnu_ld_interface=no
cristy73bd4a52010-10-05 11:24:23 +000014659 if test "$with_gnu_ld" = yes; then
cristy0c60a692010-11-04 01:09:47 +000014660 case $host_os in
14661 aix*)
14662 # The AIX port of GNU ld has always aspired to compatibility
14663 # with the native linker. However, as the warning in the GNU ld
14664 # block says, versions before 2.19.5* couldn't really create working
14665 # shared libraries, regardless of the interface used.
14666 case `$LD -v 2>&1` in
14667 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
14668 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
14669 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
14670 *)
14671 lt_use_gnu_ld_interface=yes
14672 ;;
14673 esac
14674 ;;
14675 *)
14676 lt_use_gnu_ld_interface=yes
14677 ;;
14678 esac
14679 fi
14680
14681 if test "$lt_use_gnu_ld_interface" = yes; then
cristy73bd4a52010-10-05 11:24:23 +000014682 # If archive_cmds runs LD, not CC, wlarc should be empty
14683 wlarc='${wl}'
14684
14685 # Set some defaults for GNU ld with shared library support. These
14686 # are reset later if shared libraries are not supported. Putting them
14687 # here allows them to be overridden if necessary.
14688 runpath_var=LD_RUN_PATH
14689 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14690 export_dynamic_flag_spec='${wl}--export-dynamic'
14691 # ancient GNU ld didn't support --whole-archive et. al.
14692 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
14693 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14694 else
14695 whole_archive_flag_spec=
14696 fi
14697 supports_anon_versioning=no
14698 case `$LD -v 2>&1` in
cristy0c60a692010-11-04 01:09:47 +000014699 *GNU\ gold*) supports_anon_versioning=yes ;;
cristy73bd4a52010-10-05 11:24:23 +000014700 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14701 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14702 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14703 *\ 2.11.*) ;; # other 2.11 versions
14704 *) supports_anon_versioning=yes ;;
14705 esac
14706
14707 # See if GNU ld supports shared libraries.
14708 case $host_os in
14709 aix[3-9]*)
14710 # On AIX/PPC, the GNU linker is very broken
14711 if test "$host_cpu" != ia64; then
14712 ld_shlibs=no
14713 cat <<_LT_EOF 1>&2
14714
cristy0c60a692010-11-04 01:09:47 +000014715*** Warning: the GNU linker, at least up to release 2.19, is reported
cristy73bd4a52010-10-05 11:24:23 +000014716*** to be unable to reliably create shared libraries on AIX.
14717*** Therefore, libtool is disabling shared libraries support. If you
cristy0c60a692010-11-04 01:09:47 +000014718*** really care for shared libraries, you may want to install binutils
14719*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
14720*** You will then need to restart the configuration process.
cristy73bd4a52010-10-05 11:24:23 +000014721
14722_LT_EOF
14723 fi
14724 ;;
14725
14726 amigaos*)
14727 case $host_cpu in
14728 powerpc)
14729 # see comment about AmigaOS4 .so support
14730 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14731 archive_expsym_cmds=''
14732 ;;
14733 m68k)
14734 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)'
14735 hardcode_libdir_flag_spec='-L$libdir'
14736 hardcode_minus_L=yes
14737 ;;
14738 esac
14739 ;;
14740
14741 beos*)
14742 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14743 allow_undefined_flag=unsupported
14744 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14745 # support --undefined. This deserves some investigation. FIXME
14746 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14747 else
14748 ld_shlibs=no
14749 fi
14750 ;;
14751
14752 cygwin* | mingw* | pw32* | cegcc*)
14753 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14754 # as there is no search path for DLLs.
14755 hardcode_libdir_flag_spec='-L$libdir'
cristy0c60a692010-11-04 01:09:47 +000014756 export_dynamic_flag_spec='${wl}--export-all-symbols'
cristy73bd4a52010-10-05 11:24:23 +000014757 allow_undefined_flag=unsupported
14758 always_export_symbols=no
14759 enable_shared_with_static_runtimes=yes
cristyda16f162011-02-19 23:52:17 +000014760 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'
14761 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 +000014762
14763 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14764 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14765 # If the export-symbols file already is a .def file (1st line
14766 # is EXPORTS), use it as is; otherwise, prepend...
14767 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14768 cp $export_symbols $output_objdir/$soname.def;
14769 else
14770 echo EXPORTS > $output_objdir/$soname.def;
14771 cat $export_symbols >> $output_objdir/$soname.def;
14772 fi~
14773 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14774 else
14775 ld_shlibs=no
14776 fi
14777 ;;
14778
cristy0c60a692010-11-04 01:09:47 +000014779 haiku*)
14780 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14781 link_all_deplibs=yes
14782 ;;
14783
cristy73bd4a52010-10-05 11:24:23 +000014784 interix[3-9]*)
14785 hardcode_direct=no
14786 hardcode_shlibpath_var=no
14787 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14788 export_dynamic_flag_spec='${wl}-E'
14789 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14790 # Instead, shared libraries are loaded at an image base (0x10000000 by
14791 # default) and relocated if they conflict, which is a slow very memory
14792 # consuming and fragmenting process. To avoid this, we pick a random,
14793 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14794 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14795 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14796 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'
14797 ;;
14798
cristy0c60a692010-11-04 01:09:47 +000014799 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000014800 tmp_diet=no
14801 if test "$host_os" = linux-dietlibc; then
14802 case $cc_basename in
14803 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
14804 esac
14805 fi
14806 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
14807 && test "$tmp_diet" = no
14808 then
cristyda16f162011-02-19 23:52:17 +000014809 tmp_addflag=' $pic_flag'
cristy73bd4a52010-10-05 11:24:23 +000014810 tmp_sharedflag='-shared'
14811 case $cc_basename,$host_cpu in
14812 pgcc*) # Portland Group C compiler
cristy0c60a692010-11-04 01:09:47 +000014813 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 +000014814 tmp_addflag=' $pic_flag'
14815 ;;
cristy0c60a692010-11-04 01:09:47 +000014816 pgf77* | pgf90* | pgf95* | pgfortran*)
14817 # Portland Group f77 and f90 compilers
14818 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 +000014819 tmp_addflag=' $pic_flag -Mnomain' ;;
14820 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14821 tmp_addflag=' -i_dynamic' ;;
14822 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14823 tmp_addflag=' -i_dynamic -nofor_main' ;;
14824 ifc* | ifort*) # Intel Fortran compiler
14825 tmp_addflag=' -nofor_main' ;;
14826 lf95*) # Lahey Fortran 8.1
14827 whole_archive_flag_spec=
14828 tmp_sharedflag='--shared' ;;
cristy0c60a692010-11-04 01:09:47 +000014829 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
cristy73bd4a52010-10-05 11:24:23 +000014830 tmp_sharedflag='-qmkshrobj'
14831 tmp_addflag= ;;
cristy0c60a692010-11-04 01:09:47 +000014832 nvcc*) # Cuda Compiler Driver 2.2
14833 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'
14834 compiler_needs_object=yes
14835 ;;
cristy73bd4a52010-10-05 11:24:23 +000014836 esac
14837 case `$CC -V 2>&1 | sed 5q` in
14838 *Sun\ C*) # Sun C 5.9
cristy0c60a692010-11-04 01:09:47 +000014839 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 +000014840 compiler_needs_object=yes
14841 tmp_sharedflag='-G' ;;
14842 *Sun\ F*) # Sun Fortran 8.3
14843 tmp_sharedflag='-G' ;;
14844 esac
14845 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14846
14847 if test "x$supports_anon_versioning" = xyes; then
14848 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14849 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14850 echo "local: *; };" >> $output_objdir/$libname.ver~
14851 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14852 fi
14853
14854 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000014855 xlf* | bgf* | bgxlf* | mpixlf*)
cristy73bd4a52010-10-05 11:24:23 +000014856 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
14857 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
cristy99bd5232011-12-07 14:38:20 +000014858 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
cristy0c60a692010-11-04 01:09:47 +000014859 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000014860 if test "x$supports_anon_versioning" = xyes; then
14861 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14862 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14863 echo "local: *; };" >> $output_objdir/$libname.ver~
cristy0c60a692010-11-04 01:09:47 +000014864 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000014865 fi
14866 ;;
14867 esac
14868 else
14869 ld_shlibs=no
14870 fi
14871 ;;
14872
14873 netbsd*)
14874 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14875 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14876 wlarc=
14877 else
cristyda16f162011-02-19 23:52:17 +000014878 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14879 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 +000014880 fi
14881 ;;
14882
14883 solaris*)
14884 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
14885 ld_shlibs=no
14886 cat <<_LT_EOF 1>&2
14887
14888*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14889*** create shared libraries on Solaris systems. Therefore, libtool
14890*** is disabling shared libraries support. We urge you to upgrade GNU
14891*** binutils to release 2.9.1 or newer. Another option is to modify
14892*** your PATH or compiler configuration so that the native linker is
14893*** used, and then restart.
14894
14895_LT_EOF
14896 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000014897 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14898 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 +000014899 else
14900 ld_shlibs=no
14901 fi
14902 ;;
14903
14904 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14905 case `$LD -v 2>&1` in
14906 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14907 ld_shlibs=no
14908 cat <<_LT_EOF 1>&2
14909
14910*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14911*** reliably create shared libraries on SCO systems. Therefore, libtool
14912*** is disabling shared libraries support. We urge you to upgrade GNU
14913*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14914*** your PATH or compiler configuration so that the native linker is
14915*** used, and then restart.
14916
14917_LT_EOF
14918 ;;
14919 *)
14920 # For security reasons, it is highly recommended that you always
14921 # use absolute paths for naming shared libraries, and exclude the
14922 # DT_RUNPATH tag from executables and libraries. But doing so
14923 # requires that you compile everything twice, which is a pain.
14924 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14925 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14926 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14927 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14928 else
14929 ld_shlibs=no
14930 fi
14931 ;;
14932 esac
14933 ;;
14934
14935 sunos4*)
14936 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14937 wlarc=
14938 hardcode_direct=yes
14939 hardcode_shlibpath_var=no
14940 ;;
14941
14942 *)
14943 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000014944 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14945 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 +000014946 else
14947 ld_shlibs=no
14948 fi
14949 ;;
14950 esac
14951
14952 if test "$ld_shlibs" = no; then
14953 runpath_var=
14954 hardcode_libdir_flag_spec=
14955 export_dynamic_flag_spec=
14956 whole_archive_flag_spec=
14957 fi
14958 else
14959 # PORTME fill in a description of your system's linker (not GNU ld)
14960 case $host_os in
14961 aix3*)
14962 allow_undefined_flag=unsupported
14963 always_export_symbols=yes
14964 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'
14965 # Note: this linker hardcodes the directories in LIBPATH if there
14966 # are no directories specified by -L.
14967 hardcode_minus_L=yes
14968 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14969 # Neither direct hardcoding nor static linking is supported with a
14970 # broken collect2.
14971 hardcode_direct=unsupported
14972 fi
14973 ;;
14974
14975 aix[4-9]*)
14976 if test "$host_cpu" = ia64; then
14977 # On IA64, the linker does run time linking by default, so we don't
14978 # have to do anything special.
14979 aix_use_runtimelinking=no
14980 exp_sym_flag='-Bexport'
14981 no_entry_flag=""
14982 else
14983 # If we're using GNU nm, then we don't want the "-C" option.
14984 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000014985 # Also, AIX nm treats weak defined symbols like other global
14986 # defined symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000014987 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000014988 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 +000014989 else
14990 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'
14991 fi
14992 aix_use_runtimelinking=no
14993
14994 # Test if we are trying to use run time linking or normal
14995 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14996 # need to do runtime linking.
14997 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14998 for ld_flag in $LDFLAGS; do
14999 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15000 aix_use_runtimelinking=yes
15001 break
15002 fi
15003 done
15004 ;;
15005 esac
15006
15007 exp_sym_flag='-bexport'
15008 no_entry_flag='-bnoentry'
15009 fi
15010
15011 # When large executables or shared objects are built, AIX ld can
15012 # have problems creating the table of contents. If linking a library
15013 # or program results in "error TOC overflow" add -mminimal-toc to
15014 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15015 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15016
15017 archive_cmds=''
15018 hardcode_direct=yes
15019 hardcode_direct_absolute=yes
15020 hardcode_libdir_separator=':'
15021 link_all_deplibs=yes
15022 file_list_spec='${wl}-f,'
15023
15024 if test "$GCC" = yes; then
15025 case $host_os in aix4.[012]|aix4.[012].*)
15026 # We only want to do this on AIX 4.2 and lower, the check
15027 # below for broken collect2 doesn't work under 4.3+
15028 collect2name=`${CC} -print-prog-name=collect2`
15029 if test -f "$collect2name" &&
15030 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15031 then
15032 # We have reworked collect2
15033 :
15034 else
15035 # We have old collect2
15036 hardcode_direct=unsupported
15037 # It fails to find uninstalled libraries when the uninstalled
15038 # path is not listed in the libpath. Setting hardcode_minus_L
15039 # to unsupported forces relinking
15040 hardcode_minus_L=yes
15041 hardcode_libdir_flag_spec='-L$libdir'
15042 hardcode_libdir_separator=
15043 fi
15044 ;;
15045 esac
15046 shared_flag='-shared'
15047 if test "$aix_use_runtimelinking" = yes; then
15048 shared_flag="$shared_flag "'${wl}-G'
15049 fi
15050 else
15051 # not using gcc
15052 if test "$host_cpu" = ia64; then
15053 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15054 # chokes on -Wl,-G. The following line is correct:
15055 shared_flag='-G'
15056 else
15057 if test "$aix_use_runtimelinking" = yes; then
15058 shared_flag='${wl}-G'
15059 else
15060 shared_flag='${wl}-bM:SRE'
15061 fi
15062 fi
15063 fi
15064
15065 export_dynamic_flag_spec='${wl}-bexpall'
15066 # It seems that -bexpall does not export symbols beginning with
15067 # underscore (_), so it is better to generate a list of symbols to export.
15068 always_export_symbols=yes
15069 if test "$aix_use_runtimelinking" = yes; then
15070 # Warning - without using the other runtime loading flags (-brtl),
15071 # -berok will link without error, but may produce a broken library.
15072 allow_undefined_flag='-berok'
15073 # Determine the default libpath from the value encoded in an
15074 # empty executable.
cristyda16f162011-02-19 23:52:17 +000015075 if test "${lt_cv_aix_libpath+set}" = set; then
15076 aix_libpath=$lt_cv_aix_libpath
15077else
15078 if ${lt_cv_aix_libpath_+:} false; then :
15079 $as_echo_n "(cached) " >&6
15080else
15081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015082/* end confdefs.h. */
15083
15084int
15085main ()
15086{
15087
15088 ;
15089 return 0;
15090}
15091_ACEOF
15092if ac_fn_c_try_link "$LINENO"; then :
15093
cristyda16f162011-02-19 23:52:17 +000015094 lt_aix_libpath_sed='
15095 /Import File Strings/,/^$/ {
15096 /^0/ {
15097 s/^0 *\([^ ]*\) *$/\1/
15098 p
15099 }
15100 }'
15101 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15102 # Check for a 64-bit object if we didn't find anything.
15103 if test -z "$lt_cv_aix_libpath_"; then
15104 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15105 fi
cristy73bd4a52010-10-05 11:24:23 +000015106fi
15107rm -f core conftest.err conftest.$ac_objext \
15108 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000015109 if test -z "$lt_cv_aix_libpath_"; then
15110 lt_cv_aix_libpath_="/usr/lib:/lib"
15111 fi
15112
15113fi
15114
15115 aix_libpath=$lt_cv_aix_libpath_
15116fi
cristy73bd4a52010-10-05 11:24:23 +000015117
15118 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
cristy0c60a692010-11-04 01:09:47 +000015119 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 +000015120 else
15121 if test "$host_cpu" = ia64; then
15122 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15123 allow_undefined_flag="-z nodefs"
15124 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"
15125 else
15126 # Determine the default libpath from the value encoded in an
15127 # empty executable.
cristyda16f162011-02-19 23:52:17 +000015128 if test "${lt_cv_aix_libpath+set}" = set; then
15129 aix_libpath=$lt_cv_aix_libpath
15130else
15131 if ${lt_cv_aix_libpath_+:} false; then :
15132 $as_echo_n "(cached) " >&6
15133else
15134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015135/* end confdefs.h. */
15136
15137int
15138main ()
15139{
15140
15141 ;
15142 return 0;
15143}
15144_ACEOF
15145if ac_fn_c_try_link "$LINENO"; then :
15146
cristyda16f162011-02-19 23:52:17 +000015147 lt_aix_libpath_sed='
15148 /Import File Strings/,/^$/ {
15149 /^0/ {
15150 s/^0 *\([^ ]*\) *$/\1/
15151 p
15152 }
15153 }'
15154 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15155 # Check for a 64-bit object if we didn't find anything.
15156 if test -z "$lt_cv_aix_libpath_"; then
15157 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15158 fi
cristy73bd4a52010-10-05 11:24:23 +000015159fi
15160rm -f core conftest.err conftest.$ac_objext \
15161 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000015162 if test -z "$lt_cv_aix_libpath_"; then
15163 lt_cv_aix_libpath_="/usr/lib:/lib"
15164 fi
15165
15166fi
15167
15168 aix_libpath=$lt_cv_aix_libpath_
15169fi
cristy73bd4a52010-10-05 11:24:23 +000015170
15171 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15172 # Warning - without using the other run time loading flags,
15173 # -berok will link without error, but may produce a broken library.
15174 no_undefined_flag=' ${wl}-bernotok'
15175 allow_undefined_flag=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000015176 if test "$with_gnu_ld" = yes; then
15177 # We only use this code for GNU lds that support --whole-archive.
15178 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15179 else
15180 # Exported symbols can be pulled into shared objects from archives
15181 whole_archive_flag_spec='$convenience'
15182 fi
cristy73bd4a52010-10-05 11:24:23 +000015183 archive_cmds_need_lc=yes
15184 # This is similar to how AIX traditionally builds its shared libraries.
15185 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'
15186 fi
15187 fi
15188 ;;
15189
15190 amigaos*)
15191 case $host_cpu in
15192 powerpc)
15193 # see comment about AmigaOS4 .so support
15194 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15195 archive_expsym_cmds=''
15196 ;;
15197 m68k)
15198 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)'
15199 hardcode_libdir_flag_spec='-L$libdir'
15200 hardcode_minus_L=yes
15201 ;;
15202 esac
15203 ;;
15204
15205 bsdi[45]*)
15206 export_dynamic_flag_spec=-rdynamic
15207 ;;
15208
15209 cygwin* | mingw* | pw32* | cegcc*)
15210 # When not using gcc, we currently assume that we are using
15211 # Microsoft Visual C++.
15212 # hardcode_libdir_flag_spec is actually meaningless, as there is
15213 # no search path for DLLs.
cristyda16f162011-02-19 23:52:17 +000015214 case $cc_basename in
15215 cl*)
15216 # Native MSVC
15217 hardcode_libdir_flag_spec=' '
15218 allow_undefined_flag=unsupported
15219 always_export_symbols=yes
15220 file_list_spec='@'
15221 # Tell ltmain to make .lib files, not .a files.
15222 libext=lib
15223 # Tell ltmain to make .dll files, not .so files.
15224 shrext_cmds=".dll"
15225 # FIXME: Setting linknames here is a bad hack.
15226 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
15227 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15228 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
15229 else
15230 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
15231 fi~
15232 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15233 linknames='
15234 # The linker will not automatically build a static lib if we build a DLL.
15235 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
15236 enable_shared_with_static_runtimes=yes
cristy99bd5232011-12-07 14:38:20 +000015237 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
cristyda16f162011-02-19 23:52:17 +000015238 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15239 # Don't use ranlib
15240 old_postinstall_cmds='chmod 644 $oldlib'
15241 postlink_cmds='lt_outputfile="@OUTPUT@"~
15242 lt_tool_outputfile="@TOOL_OUTPUT@"~
15243 case $lt_outputfile in
15244 *.exe|*.EXE) ;;
15245 *)
15246 lt_outputfile="$lt_outputfile.exe"
15247 lt_tool_outputfile="$lt_tool_outputfile.exe"
15248 ;;
15249 esac~
15250 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
15251 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15252 $RM "$lt_outputfile.manifest";
15253 fi'
15254 ;;
15255 *)
15256 # Assume MSVC wrapper
15257 hardcode_libdir_flag_spec=' '
15258 allow_undefined_flag=unsupported
15259 # Tell ltmain to make .lib files, not .a files.
15260 libext=lib
15261 # Tell ltmain to make .dll files, not .so files.
15262 shrext_cmds=".dll"
15263 # FIXME: Setting linknames here is a bad hack.
15264 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15265 # The linker will automatically build a .lib file if we build a DLL.
15266 old_archive_from_new_cmds='true'
15267 # FIXME: Should let the user specify the lib program.
15268 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15269 enable_shared_with_static_runtimes=yes
15270 ;;
15271 esac
cristy73bd4a52010-10-05 11:24:23 +000015272 ;;
15273
15274 darwin* | rhapsody*)
15275
15276
15277 archive_cmds_need_lc=no
15278 hardcode_direct=no
15279 hardcode_automatic=yes
15280 hardcode_shlibpath_var=unsupported
cristy0c60a692010-11-04 01:09:47 +000015281 if test "$lt_cv_ld_force_load" = "yes"; then
15282 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 +000015283
cristy0c60a692010-11-04 01:09:47 +000015284 else
15285 whole_archive_flag_spec=''
15286 fi
cristy73bd4a52010-10-05 11:24:23 +000015287 link_all_deplibs=yes
15288 allow_undefined_flag="$_lt_dar_allow_undefined"
15289 case $cc_basename in
15290 ifort*) _lt_dar_can_shared=yes ;;
15291 *) _lt_dar_can_shared=$GCC ;;
15292 esac
15293 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000015294 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000015295 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15296 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15297 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}"
15298 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}"
15299
15300 else
15301 ld_shlibs=no
15302 fi
15303
15304 ;;
15305
15306 dgux*)
15307 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15308 hardcode_libdir_flag_spec='-L$libdir'
15309 hardcode_shlibpath_var=no
15310 ;;
15311
cristy73bd4a52010-10-05 11:24:23 +000015312 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15313 # support. Future versions do this automatically, but an explicit c++rt0.o
15314 # does not break anything, and helps significantly (at the cost of a little
15315 # extra space).
15316 freebsd2.2*)
15317 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15318 hardcode_libdir_flag_spec='-R$libdir'
15319 hardcode_direct=yes
15320 hardcode_shlibpath_var=no
15321 ;;
15322
15323 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
cristy99bd5232011-12-07 14:38:20 +000015324 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000015325 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15326 hardcode_direct=yes
15327 hardcode_minus_L=yes
15328 hardcode_shlibpath_var=no
15329 ;;
15330
15331 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15332 freebsd* | dragonfly*)
cristyda16f162011-02-19 23:52:17 +000015333 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000015334 hardcode_libdir_flag_spec='-R$libdir'
15335 hardcode_direct=yes
15336 hardcode_shlibpath_var=no
15337 ;;
15338
15339 hpux9*)
15340 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000015341 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 +000015342 else
15343 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'
15344 fi
15345 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15346 hardcode_libdir_separator=:
15347 hardcode_direct=yes
15348
15349 # hardcode_minus_L: Not really in the search PATH,
15350 # but as the default location of the library.
15351 hardcode_minus_L=yes
15352 export_dynamic_flag_spec='${wl}-E'
15353 ;;
15354
15355 hpux10*)
cristy0c60a692010-11-04 01:09:47 +000015356 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000015357 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 +000015358 else
15359 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15360 fi
15361 if test "$with_gnu_ld" = no; then
15362 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
cristy73bd4a52010-10-05 11:24:23 +000015363 hardcode_libdir_separator=:
15364 hardcode_direct=yes
15365 hardcode_direct_absolute=yes
15366 export_dynamic_flag_spec='${wl}-E'
15367 # hardcode_minus_L: Not really in the search PATH,
15368 # but as the default location of the library.
15369 hardcode_minus_L=yes
15370 fi
15371 ;;
15372
15373 hpux11*)
cristy0c60a692010-11-04 01:09:47 +000015374 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristy73bd4a52010-10-05 11:24:23 +000015375 case $host_cpu in
15376 hppa*64*)
15377 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15378 ;;
15379 ia64*)
cristyda16f162011-02-19 23:52:17 +000015380 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000015381 ;;
15382 *)
cristyda16f162011-02-19 23:52:17 +000015383 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 +000015384 ;;
15385 esac
15386 else
15387 case $host_cpu in
15388 hppa*64*)
15389 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15390 ;;
15391 ia64*)
15392 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15393 ;;
15394 *)
cristy0c60a692010-11-04 01:09:47 +000015395
15396 # Older versions of the 11.00 compiler do not understand -b yet
15397 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
15398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
15399$as_echo_n "checking if $CC understands -b... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015400if ${lt_cv_prog_compiler__b+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000015401 $as_echo_n "(cached) " >&6
15402else
15403 lt_cv_prog_compiler__b=no
15404 save_LDFLAGS="$LDFLAGS"
15405 LDFLAGS="$LDFLAGS -b"
15406 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15407 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15408 # The linker can only warn and ignore the option if not recognized
15409 # So say no if there are warnings
15410 if test -s conftest.err; then
15411 # Append any errors to the config.log.
15412 cat conftest.err 1>&5
15413 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15414 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15415 if diff conftest.exp conftest.er2 >/dev/null; then
15416 lt_cv_prog_compiler__b=yes
15417 fi
15418 else
15419 lt_cv_prog_compiler__b=yes
15420 fi
15421 fi
15422 $RM -r conftest*
15423 LDFLAGS="$save_LDFLAGS"
15424
15425fi
15426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
15427$as_echo "$lt_cv_prog_compiler__b" >&6; }
15428
15429if test x"$lt_cv_prog_compiler__b" = xyes; then
15430 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15431else
15432 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15433fi
15434
cristy73bd4a52010-10-05 11:24:23 +000015435 ;;
15436 esac
15437 fi
15438 if test "$with_gnu_ld" = no; then
15439 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15440 hardcode_libdir_separator=:
15441
15442 case $host_cpu in
15443 hppa*64*|ia64*)
15444 hardcode_direct=no
15445 hardcode_shlibpath_var=no
15446 ;;
15447 *)
15448 hardcode_direct=yes
15449 hardcode_direct_absolute=yes
15450 export_dynamic_flag_spec='${wl}-E'
15451
15452 # hardcode_minus_L: Not really in the search PATH,
15453 # but as the default location of the library.
15454 hardcode_minus_L=yes
15455 ;;
15456 esac
15457 fi
15458 ;;
15459
15460 irix5* | irix6* | nonstopux*)
15461 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000015462 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 +000015463 # Try to use the -exported_symbol ld option, if it does not
15464 # work, assume that -exports_file does not work either and
15465 # implicitly export all symbols.
cristyda16f162011-02-19 23:52:17 +000015466 # This should be the same for all languages, so no per-tag cache variable.
15467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
15468$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
15469if ${lt_cv_irix_exported_symbol+:} false; then :
15470 $as_echo_n "(cached) " >&6
15471else
15472 save_LDFLAGS="$LDFLAGS"
15473 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
15474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015475/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000015476int foo (void) { return 0; }
cristy73bd4a52010-10-05 11:24:23 +000015477_ACEOF
15478if ac_fn_c_try_link "$LINENO"; then :
cristyda16f162011-02-19 23:52:17 +000015479 lt_cv_irix_exported_symbol=yes
15480else
15481 lt_cv_irix_exported_symbol=no
cristy73bd4a52010-10-05 11:24:23 +000015482fi
15483rm -f core conftest.err conftest.$ac_objext \
15484 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000015485 LDFLAGS="$save_LDFLAGS"
15486fi
15487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
15488$as_echo "$lt_cv_irix_exported_symbol" >&6; }
15489 if test "$lt_cv_irix_exported_symbol" = yes; then
15490 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'
15491 fi
cristy73bd4a52010-10-05 11:24:23 +000015492 else
cristy0c60a692010-11-04 01:09:47 +000015493 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'
15494 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 +000015495 fi
15496 archive_cmds_need_lc='no'
15497 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15498 hardcode_libdir_separator=:
15499 inherit_rpath=yes
15500 link_all_deplibs=yes
15501 ;;
15502
15503 netbsd*)
15504 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15505 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15506 else
15507 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15508 fi
15509 hardcode_libdir_flag_spec='-R$libdir'
15510 hardcode_direct=yes
15511 hardcode_shlibpath_var=no
15512 ;;
15513
15514 newsos6)
15515 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15516 hardcode_direct=yes
15517 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15518 hardcode_libdir_separator=:
15519 hardcode_shlibpath_var=no
15520 ;;
15521
15522 *nto* | *qnx*)
15523 ;;
15524
15525 openbsd*)
15526 if test -f /usr/libexec/ld.so; then
15527 hardcode_direct=yes
15528 hardcode_shlibpath_var=no
15529 hardcode_direct_absolute=yes
15530 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15531 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15532 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15533 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15534 export_dynamic_flag_spec='${wl}-E'
15535 else
15536 case $host_os in
15537 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15538 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15539 hardcode_libdir_flag_spec='-R$libdir'
15540 ;;
15541 *)
15542 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15543 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15544 ;;
15545 esac
15546 fi
15547 else
15548 ld_shlibs=no
15549 fi
15550 ;;
15551
15552 os2*)
15553 hardcode_libdir_flag_spec='-L$libdir'
15554 hardcode_minus_L=yes
15555 allow_undefined_flag=unsupported
cristy0c60a692010-11-04 01:09:47 +000015556 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 +000015557 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15558 ;;
15559
15560 osf3*)
15561 if test "$GCC" = yes; then
15562 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000015563 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 +000015564 else
15565 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000015566 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 +000015567 fi
15568 archive_cmds_need_lc='no'
15569 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15570 hardcode_libdir_separator=:
15571 ;;
15572
15573 osf4* | osf5*) # as osf3* with the addition of -msym flag
15574 if test "$GCC" = yes; then
15575 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristyda16f162011-02-19 23:52:17 +000015576 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 +000015577 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15578 else
15579 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000015580 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 +000015581 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 +000015582 $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 +000015583
15584 # Both c and cxx compiler support -rpath directly
15585 hardcode_libdir_flag_spec='-rpath $libdir'
15586 fi
15587 archive_cmds_need_lc='no'
15588 hardcode_libdir_separator=:
15589 ;;
15590
15591 solaris*)
15592 no_undefined_flag=' -z defs'
15593 if test "$GCC" = yes; then
15594 wlarc='${wl}'
cristyda16f162011-02-19 23:52:17 +000015595 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 +000015596 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 +000015597 $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 +000015598 else
15599 case `$CC -V 2>&1` in
15600 *"Compilers 5.0"*)
15601 wlarc=''
15602 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15603 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15604 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
15605 ;;
15606 *)
15607 wlarc='${wl}'
15608 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
15609 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15610 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15611 ;;
15612 esac
15613 fi
15614 hardcode_libdir_flag_spec='-R$libdir'
15615 hardcode_shlibpath_var=no
15616 case $host_os in
15617 solaris2.[0-5] | solaris2.[0-5].*) ;;
15618 *)
15619 # The compiler driver will combine and reorder linker options,
15620 # but understands `-z linker_flag'. GCC discards it without `$wl',
15621 # but is careful enough not to reorder.
15622 # Supported since Solaris 2.6 (maybe 2.5.1?)
15623 if test "$GCC" = yes; then
15624 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15625 else
15626 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
15627 fi
15628 ;;
15629 esac
15630 link_all_deplibs=yes
15631 ;;
15632
15633 sunos4*)
15634 if test "x$host_vendor" = xsequent; then
15635 # Use $CC to link under sequent, because it throws in some extra .o
15636 # files that make .init and .fini sections work.
15637 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15638 else
15639 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15640 fi
15641 hardcode_libdir_flag_spec='-L$libdir'
15642 hardcode_direct=yes
15643 hardcode_minus_L=yes
15644 hardcode_shlibpath_var=no
15645 ;;
15646
15647 sysv4)
15648 case $host_vendor in
15649 sni)
15650 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15651 hardcode_direct=yes # is this really true???
15652 ;;
15653 siemens)
15654 ## LD is ld it makes a PLAMLIB
15655 ## CC just makes a GrossModule.
15656 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15657 reload_cmds='$CC -r -o $output$reload_objs'
15658 hardcode_direct=no
15659 ;;
15660 motorola)
15661 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15662 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15663 ;;
15664 esac
15665 runpath_var='LD_RUN_PATH'
15666 hardcode_shlibpath_var=no
15667 ;;
15668
15669 sysv4.3*)
15670 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15671 hardcode_shlibpath_var=no
15672 export_dynamic_flag_spec='-Bexport'
15673 ;;
15674
15675 sysv4*MP*)
15676 if test -d /usr/nec; then
15677 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15678 hardcode_shlibpath_var=no
15679 runpath_var=LD_RUN_PATH
15680 hardcode_runpath_var=yes
15681 ld_shlibs=yes
15682 fi
15683 ;;
15684
15685 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15686 no_undefined_flag='${wl}-z,text'
15687 archive_cmds_need_lc=no
15688 hardcode_shlibpath_var=no
15689 runpath_var='LD_RUN_PATH'
15690
15691 if test "$GCC" = yes; then
15692 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15693 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15694 else
15695 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15696 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15697 fi
15698 ;;
15699
15700 sysv5* | sco3.2v5* | sco5v6*)
15701 # Note: We can NOT use -z defs as we might desire, because we do not
15702 # link with -lc, and that would cause any symbols used from libc to
15703 # always be unresolved, which means just about no library would
15704 # ever link correctly. If we're not using GNU ld we use -z text
15705 # though, which does catch some bad symbols but isn't as heavy-handed
15706 # as -z defs.
15707 no_undefined_flag='${wl}-z,text'
15708 allow_undefined_flag='${wl}-z,nodefs'
15709 archive_cmds_need_lc=no
15710 hardcode_shlibpath_var=no
15711 hardcode_libdir_flag_spec='${wl}-R,$libdir'
15712 hardcode_libdir_separator=':'
15713 link_all_deplibs=yes
15714 export_dynamic_flag_spec='${wl}-Bexport'
15715 runpath_var='LD_RUN_PATH'
15716
15717 if test "$GCC" = yes; then
15718 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15719 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15720 else
15721 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15722 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15723 fi
15724 ;;
15725
15726 uts4*)
15727 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15728 hardcode_libdir_flag_spec='-L$libdir'
15729 hardcode_shlibpath_var=no
15730 ;;
15731
15732 *)
15733 ld_shlibs=no
15734 ;;
15735 esac
15736
15737 if test x$host_vendor = xsni; then
15738 case $host in
15739 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15740 export_dynamic_flag_spec='${wl}-Blargedynsym'
15741 ;;
15742 esac
15743 fi
15744 fi
15745
15746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
15747$as_echo "$ld_shlibs" >&6; }
15748test "$ld_shlibs" = no && can_build_shared=no
15749
15750with_gnu_ld=$with_gnu_ld
15751
15752
15753
15754
15755
15756
15757
15758
15759
15760
15761
15762
15763
15764
15765
15766#
15767# Do we need to explicitly link libc?
15768#
15769case "x$archive_cmds_need_lc" in
15770x|xyes)
15771 # Assume -lc should be added
15772 archive_cmds_need_lc=yes
15773
15774 if test "$enable_shared" = yes && test "$GCC" = yes; then
15775 case $archive_cmds in
15776 *'~'*)
15777 # FIXME: we may have to deal with multi-command sequences.
15778 ;;
15779 '$CC '*)
15780 # Test whether the compiler implicitly links with -lc since on some
15781 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15782 # to ld, don't add -lc before -lgcc.
15783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15784$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015785if ${lt_cv_archive_cmds_need_lc+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000015786 $as_echo_n "(cached) " >&6
15787else
15788 $RM conftest*
15789 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015790
cristy0c60a692010-11-04 01:09:47 +000015791 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000015792 (eval $ac_compile) 2>&5
15793 ac_status=$?
15794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15795 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000015796 soname=conftest
15797 lib=conftest
15798 libobjs=conftest.$ac_objext
15799 deplibs=
15800 wl=$lt_prog_compiler_wl
15801 pic_flag=$lt_prog_compiler_pic
15802 compiler_flags=-v
15803 linker_flags=-v
15804 verstring=
15805 output_objdir=.
15806 libname=conftest
15807 lt_save_allow_undefined_flag=$allow_undefined_flag
15808 allow_undefined_flag=
15809 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 +000015810 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15811 ac_status=$?
15812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15813 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000015814 then
15815 lt_cv_archive_cmds_need_lc=no
15816 else
15817 lt_cv_archive_cmds_need_lc=yes
15818 fi
15819 allow_undefined_flag=$lt_save_allow_undefined_flag
15820 else
15821 cat conftest.err 1>&5
15822 fi
15823 $RM conftest*
15824
15825fi
15826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
15827$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
15828 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
cristy73bd4a52010-10-05 11:24:23 +000015829 ;;
15830 esac
15831 fi
15832 ;;
15833esac
15834
15835
15836
15837
15838
15839
15840
15841
15842
15843
15844
15845
15846
15847
15848
15849
15850
15851
15852
15853
15854
15855
15856
15857
15858
15859
15860
15861
15862
15863
15864
15865
15866
15867
15868
15869
15870
15871
15872
15873
15874
15875
15876
15877
15878
15879
15880
15881
15882
15883
15884
15885
15886
15887
15888
15889
15890
15891
15892
15893
15894
15895
15896
15897
15898
15899
15900
15901
15902
15903
15904
15905
15906
15907
15908
15909
15910
15911
15912
15913
15914
15915
15916
15917
15918
15919
15920
15921
15922
15923
15924
15925
15926
15927
15928
15929
15930
15931
15932
15933
15934
15935
15936
15937
15938
15939
15940
15941
15942
15943
15944
15945
15946
15947
15948
15949
15950
15951
15952
15953
15954
15955
15956
15957
15958
15959
15960
15961
15962
15963
15964
15965
15966
15967
15968
15969
15970
15971
15972
15973
15974
15975
15976
15977
15978
15979
15980
15981
15982
15983
15984
15985
cristy73bd4a52010-10-05 11:24:23 +000015986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15987$as_echo_n "checking dynamic linker characteristics... " >&6; }
15988
15989if test "$GCC" = yes; then
15990 case $host_os in
15991 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
15992 *) lt_awk_arg="/^libraries:/" ;;
15993 esac
cristy0c60a692010-11-04 01:09:47 +000015994 case $host_os in
15995 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
15996 *) lt_sed_strip_eq="s,=/,/,g" ;;
15997 esac
15998 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
15999 case $lt_search_path_spec in
16000 *\;*)
cristy73bd4a52010-10-05 11:24:23 +000016001 # if the path contains ";" then we assume it to be the separator
16002 # otherwise default to the standard path separator (i.e. ":") - it is
16003 # assumed that no part of a normal pathname contains ";" but that should
16004 # okay in the real world where ";" in dirpaths is itself problematic.
cristy0c60a692010-11-04 01:09:47 +000016005 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16006 ;;
16007 *)
16008 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16009 ;;
16010 esac
cristy73bd4a52010-10-05 11:24:23 +000016011 # Ok, now we have the path, separated by spaces, we can step through it
16012 # and add multilib dir if necessary.
16013 lt_tmp_lt_search_path_spec=
16014 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16015 for lt_sys_path in $lt_search_path_spec; do
16016 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16017 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16018 else
16019 test -d "$lt_sys_path" && \
16020 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16021 fi
16022 done
cristy0c60a692010-11-04 01:09:47 +000016023 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
cristy73bd4a52010-10-05 11:24:23 +000016024BEGIN {RS=" "; FS="/|\n";} {
16025 lt_foo="";
16026 lt_count=0;
16027 for (lt_i = NF; lt_i > 0; lt_i--) {
16028 if ($lt_i != "" && $lt_i != ".") {
16029 if ($lt_i == "..") {
16030 lt_count++;
16031 } else {
16032 if (lt_count == 0) {
16033 lt_foo="/" $lt_i lt_foo;
16034 } else {
16035 lt_count--;
16036 }
16037 }
16038 }
16039 }
16040 if (lt_foo != "") { lt_freq[lt_foo]++; }
16041 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16042}'`
cristy0c60a692010-11-04 01:09:47 +000016043 # AWK program above erroneously prepends '/' to C:/dos/paths
16044 # for these hosts.
16045 case $host_os in
16046 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16047 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16048 esac
16049 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
cristy73bd4a52010-10-05 11:24:23 +000016050else
16051 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16052fi
16053library_names_spec=
16054libname_spec='lib$name'
16055soname_spec=
16056shrext_cmds=".so"
16057postinstall_cmds=
16058postuninstall_cmds=
16059finish_cmds=
16060finish_eval=
16061shlibpath_var=
16062shlibpath_overrides_runpath=unknown
16063version_type=none
16064dynamic_linker="$host_os ld.so"
16065sys_lib_dlsearch_path_spec="/lib /usr/lib"
16066need_lib_prefix=unknown
16067hardcode_into_libs=no
16068
16069# when you set need_version to no, make sure it does not cause -set_version
16070# flags to be left without arguments
16071need_version=unknown
16072
16073case $host_os in
16074aix3*)
cristy99bd5232011-12-07 14:38:20 +000016075 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016076 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16077 shlibpath_var=LIBPATH
16078
16079 # AIX 3 has no versioning support, so we append a major version to the name.
16080 soname_spec='${libname}${release}${shared_ext}$major'
16081 ;;
16082
16083aix[4-9]*)
cristy99bd5232011-12-07 14:38:20 +000016084 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016085 need_lib_prefix=no
16086 need_version=no
16087 hardcode_into_libs=yes
16088 if test "$host_cpu" = ia64; then
16089 # AIX 5 supports IA64
16090 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16091 shlibpath_var=LD_LIBRARY_PATH
16092 else
16093 # With GCC up to 2.95.x, collect2 would create an import file
16094 # for dependence libraries. The import file would start with
16095 # the line `#! .'. This would cause the generated library to
16096 # depend on `.', always an invalid library. This was fixed in
16097 # development snapshots of GCC prior to 3.0.
16098 case $host_os in
16099 aix4 | aix4.[01] | aix4.[01].*)
16100 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16101 echo ' yes '
16102 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16103 :
16104 else
16105 can_build_shared=no
16106 fi
16107 ;;
16108 esac
16109 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16110 # soname into executable. Probably we can add versioning support to
16111 # collect2, so additional links can be useful in future.
16112 if test "$aix_use_runtimelinking" = yes; then
16113 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16114 # instead of lib<name>.a to let people know that these are not
16115 # typical AIX shared libraries.
16116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16117 else
16118 # We preserve .a as extension for shared libraries through AIX4.2
16119 # and later when we are not doing run time linking.
16120 library_names_spec='${libname}${release}.a $libname.a'
16121 soname_spec='${libname}${release}${shared_ext}$major'
16122 fi
16123 shlibpath_var=LIBPATH
16124 fi
16125 ;;
16126
16127amigaos*)
16128 case $host_cpu in
16129 powerpc)
16130 # Since July 2007 AmigaOS4 officially supports .so libraries.
16131 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16133 ;;
16134 m68k)
16135 library_names_spec='$libname.ixlibrary $libname.a'
16136 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000016137 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 +000016138 ;;
16139 esac
16140 ;;
16141
16142beos*)
16143 library_names_spec='${libname}${shared_ext}'
16144 dynamic_linker="$host_os ld.so"
16145 shlibpath_var=LIBRARY_PATH
16146 ;;
16147
16148bsdi[45]*)
cristy99bd5232011-12-07 14:38:20 +000016149 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016150 need_version=no
16151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16152 soname_spec='${libname}${release}${shared_ext}$major'
16153 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16154 shlibpath_var=LD_LIBRARY_PATH
16155 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16156 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16157 # the default ld.so.conf also contains /usr/contrib/lib and
16158 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16159 # libtool to hard-code these into programs
16160 ;;
16161
16162cygwin* | mingw* | pw32* | cegcc*)
16163 version_type=windows
16164 shrext_cmds=".dll"
16165 need_version=no
16166 need_lib_prefix=no
16167
cristyda16f162011-02-19 23:52:17 +000016168 case $GCC,$cc_basename in
16169 yes,*)
16170 # gcc
cristy73bd4a52010-10-05 11:24:23 +000016171 library_names_spec='$libname.dll.a'
16172 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16173 postinstall_cmds='base_file=`basename \${file}`~
16174 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16175 dldir=$destdir/`dirname \$dlpath`~
16176 test -d \$dldir || mkdir -p \$dldir~
16177 $install_prog $dir/$dlname \$dldir/$dlname~
16178 chmod a+x \$dldir/$dlname~
16179 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16180 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16181 fi'
16182 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16183 dlpath=$dir/\$dldll~
16184 $RM \$dlpath'
16185 shlibpath_overrides_runpath=yes
16186
16187 case $host_os in
16188 cygwin*)
16189 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16190 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000016191
16192 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
cristy73bd4a52010-10-05 11:24:23 +000016193 ;;
16194 mingw* | cegcc*)
16195 # MinGW DLLs use traditional 'lib' prefix
16196 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000016197 ;;
16198 pw32*)
16199 # pw32 DLLs use 'pw' prefix rather than 'lib'
16200 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16201 ;;
16202 esac
cristyda16f162011-02-19 23:52:17 +000016203 dynamic_linker='Win32 ld.exe'
16204 ;;
16205
16206 *,cl*)
16207 # Native MSVC
16208 libname_spec='$name'
16209 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16210 library_names_spec='${libname}.dll.lib'
16211
16212 case $build_os in
16213 mingw*)
16214 sys_lib_search_path_spec=
16215 lt_save_ifs=$IFS
16216 IFS=';'
16217 for lt_path in $LIB
16218 do
16219 IFS=$lt_save_ifs
16220 # Let DOS variable expansion print the short 8.3 style file name.
16221 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16222 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16223 done
16224 IFS=$lt_save_ifs
16225 # Convert to MSYS style.
16226 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16227 ;;
16228 cygwin*)
16229 # Convert to unix form, then to dos form, then back to unix form
16230 # but this time dos style (no spaces!) so that the unix form looks
16231 # like /cygdrive/c/PROGRA~1:/cygdr...
16232 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16233 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16234 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16235 ;;
16236 *)
16237 sys_lib_search_path_spec="$LIB"
16238 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16239 # It is most probably a Windows format PATH.
16240 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16241 else
16242 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16243 fi
16244 # FIXME: find the short name or the path components, as spaces are
16245 # common. (e.g. "Program Files" -> "PROGRA~1")
16246 ;;
16247 esac
16248
16249 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16250 postinstall_cmds='base_file=`basename \${file}`~
16251 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16252 dldir=$destdir/`dirname \$dlpath`~
16253 test -d \$dldir || mkdir -p \$dldir~
16254 $install_prog $dir/$dlname \$dldir/$dlname'
16255 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16256 dlpath=$dir/\$dldll~
16257 $RM \$dlpath'
16258 shlibpath_overrides_runpath=yes
16259 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000016260 ;;
16261
16262 *)
cristyda16f162011-02-19 23:52:17 +000016263 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000016264 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000016265 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000016266 ;;
16267 esac
cristy73bd4a52010-10-05 11:24:23 +000016268 # FIXME: first we should search . and the directory the executable is in
16269 shlibpath_var=PATH
16270 ;;
16271
16272darwin* | rhapsody*)
16273 dynamic_linker="$host_os dyld"
16274 version_type=darwin
16275 need_lib_prefix=no
16276 need_version=no
16277 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16278 soname_spec='${libname}${release}${major}$shared_ext'
16279 shlibpath_overrides_runpath=yes
16280 shlibpath_var=DYLD_LIBRARY_PATH
16281 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16282
16283 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16284 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16285 ;;
16286
16287dgux*)
cristy99bd5232011-12-07 14:38:20 +000016288 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016289 need_lib_prefix=no
16290 need_version=no
16291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16292 soname_spec='${libname}${release}${shared_ext}$major'
16293 shlibpath_var=LD_LIBRARY_PATH
16294 ;;
16295
cristy73bd4a52010-10-05 11:24:23 +000016296freebsd* | dragonfly*)
16297 # DragonFly does not have aout. When/if they implement a new
16298 # versioning mechanism, adjust this.
16299 if test -x /usr/bin/objformat; then
16300 objformat=`/usr/bin/objformat`
16301 else
16302 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000016303 freebsd[23].*) objformat=aout ;;
cristy73bd4a52010-10-05 11:24:23 +000016304 *) objformat=elf ;;
16305 esac
16306 fi
16307 version_type=freebsd-$objformat
16308 case $version_type in
16309 freebsd-elf*)
16310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16311 need_version=no
16312 need_lib_prefix=no
16313 ;;
16314 freebsd-*)
16315 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16316 need_version=yes
16317 ;;
16318 esac
16319 shlibpath_var=LD_LIBRARY_PATH
16320 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000016321 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000016322 shlibpath_overrides_runpath=yes
16323 ;;
16324 freebsd3.[01]* | freebsdelf3.[01]*)
16325 shlibpath_overrides_runpath=yes
16326 hardcode_into_libs=yes
16327 ;;
16328 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16329 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16330 shlibpath_overrides_runpath=no
16331 hardcode_into_libs=yes
16332 ;;
16333 *) # from 4.6 on, and DragonFly
16334 shlibpath_overrides_runpath=yes
16335 hardcode_into_libs=yes
16336 ;;
16337 esac
16338 ;;
16339
16340gnu*)
cristy99bd5232011-12-07 14:38:20 +000016341 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016342 need_lib_prefix=no
16343 need_version=no
16344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16345 soname_spec='${libname}${release}${shared_ext}$major'
16346 shlibpath_var=LD_LIBRARY_PATH
cristy99bd5232011-12-07 14:38:20 +000016347 shlibpath_overrides_runpath=no
cristy73bd4a52010-10-05 11:24:23 +000016348 hardcode_into_libs=yes
16349 ;;
16350
cristy0c60a692010-11-04 01:09:47 +000016351haiku*)
cristy99bd5232011-12-07 14:38:20 +000016352 version_type=linux # correct to gnu/linux during the next big refactor
cristy0c60a692010-11-04 01:09:47 +000016353 need_lib_prefix=no
16354 need_version=no
16355 dynamic_linker="$host_os runtime_loader"
16356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16357 soname_spec='${libname}${release}${shared_ext}$major'
16358 shlibpath_var=LIBRARY_PATH
16359 shlibpath_overrides_runpath=yes
16360 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16361 hardcode_into_libs=yes
16362 ;;
16363
cristy73bd4a52010-10-05 11:24:23 +000016364hpux9* | hpux10* | hpux11*)
16365 # Give a soname corresponding to the major version so that dld.sl refuses to
16366 # link against other versions.
16367 version_type=sunos
16368 need_lib_prefix=no
16369 need_version=no
16370 case $host_cpu in
16371 ia64*)
16372 shrext_cmds='.so'
16373 hardcode_into_libs=yes
16374 dynamic_linker="$host_os dld.so"
16375 shlibpath_var=LD_LIBRARY_PATH
16376 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16378 soname_spec='${libname}${release}${shared_ext}$major'
16379 if test "X$HPUX_IA64_MODE" = X32; then
16380 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16381 else
16382 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16383 fi
16384 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16385 ;;
16386 hppa*64*)
16387 shrext_cmds='.sl'
16388 hardcode_into_libs=yes
16389 dynamic_linker="$host_os dld.sl"
16390 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16391 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16393 soname_spec='${libname}${release}${shared_ext}$major'
16394 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16395 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16396 ;;
16397 *)
16398 shrext_cmds='.sl'
16399 dynamic_linker="$host_os dld.sl"
16400 shlibpath_var=SHLIB_PATH
16401 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16403 soname_spec='${libname}${release}${shared_ext}$major'
16404 ;;
16405 esac
cristy0c60a692010-11-04 01:09:47 +000016406 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000016407 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000016408 # or fails outright, so override atomically:
16409 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000016410 ;;
16411
16412interix[3-9]*)
cristy99bd5232011-12-07 14:38:20 +000016413 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016414 need_lib_prefix=no
16415 need_version=no
16416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16417 soname_spec='${libname}${release}${shared_ext}$major'
16418 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16419 shlibpath_var=LD_LIBRARY_PATH
16420 shlibpath_overrides_runpath=no
16421 hardcode_into_libs=yes
16422 ;;
16423
16424irix5* | irix6* | nonstopux*)
16425 case $host_os in
16426 nonstopux*) version_type=nonstopux ;;
16427 *)
16428 if test "$lt_cv_prog_gnu_ld" = yes; then
cristy99bd5232011-12-07 14:38:20 +000016429 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016430 else
16431 version_type=irix
16432 fi ;;
16433 esac
16434 need_lib_prefix=no
16435 need_version=no
16436 soname_spec='${libname}${release}${shared_ext}$major'
16437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16438 case $host_os in
16439 irix5* | nonstopux*)
16440 libsuff= shlibsuff=
16441 ;;
16442 *)
16443 case $LD in # libtool.m4 will add one of these switches to LD
16444 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16445 libsuff= shlibsuff= libmagic=32-bit;;
16446 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16447 libsuff=32 shlibsuff=N32 libmagic=N32;;
16448 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16449 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16450 *) libsuff= shlibsuff= libmagic=never-match;;
16451 esac
16452 ;;
16453 esac
16454 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16455 shlibpath_overrides_runpath=no
16456 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16457 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16458 hardcode_into_libs=yes
16459 ;;
16460
16461# No shared lib support for Linux oldld, aout, or coff.
16462linux*oldld* | linux*aout* | linux*coff*)
16463 dynamic_linker=no
16464 ;;
16465
cristy99bd5232011-12-07 14:38:20 +000016466# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000016467linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy99bd5232011-12-07 14:38:20 +000016468 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016469 need_lib_prefix=no
16470 need_version=no
16471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16472 soname_spec='${libname}${release}${shared_ext}$major'
16473 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16474 shlibpath_var=LD_LIBRARY_PATH
16475 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000016476
cristy73bd4a52010-10-05 11:24:23 +000016477 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000016478 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000016479 $as_echo_n "(cached) " >&6
16480else
16481 lt_cv_shlibpath_overrides_runpath=no
16482 save_LDFLAGS=$LDFLAGS
16483 save_libdir=$libdir
16484 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
16485 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
16486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000016487/* end confdefs.h. */
16488
16489int
16490main ()
16491{
16492
16493 ;
16494 return 0;
16495}
16496_ACEOF
16497if ac_fn_c_try_link "$LINENO"; then :
16498 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000016499 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000016500fi
16501fi
16502rm -f core conftest.err conftest.$ac_objext \
16503 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016504 LDFLAGS=$save_LDFLAGS
16505 libdir=$save_libdir
16506
16507fi
16508
16509 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000016510
16511 # This implies no fast_install, which is unacceptable.
16512 # Some rework will be needed to allow for fast_install
16513 # before this can be enabled.
16514 hardcode_into_libs=yes
16515
16516 # Add ABI-specific directories to the system library path.
16517 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
16518
16519 # Append ld.so.conf contents to the search path
16520 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000016521 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 +000016522 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000016523
cristy73bd4a52010-10-05 11:24:23 +000016524 fi
16525
16526 # We used to test for /lib/ld.so.1 and disable shared libraries on
16527 # powerpc, because MkLinux only supported shared libraries with the
16528 # GNU dynamic linker. Since this was broken with cross compilers,
16529 # most powerpc-linux boxes support dynamic linking these days and
16530 # people can always --disable-shared, the test was removed, and we
16531 # assume the GNU/Linux dynamic linker is in use.
16532 dynamic_linker='GNU/Linux ld.so'
16533 ;;
16534
16535netbsd*)
16536 version_type=sunos
16537 need_lib_prefix=no
16538 need_version=no
16539 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16541 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16542 dynamic_linker='NetBSD (a.out) ld.so'
16543 else
16544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16545 soname_spec='${libname}${release}${shared_ext}$major'
16546 dynamic_linker='NetBSD ld.elf_so'
16547 fi
16548 shlibpath_var=LD_LIBRARY_PATH
16549 shlibpath_overrides_runpath=yes
16550 hardcode_into_libs=yes
16551 ;;
16552
16553newsos6)
cristy99bd5232011-12-07 14:38:20 +000016554 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16556 shlibpath_var=LD_LIBRARY_PATH
16557 shlibpath_overrides_runpath=yes
16558 ;;
16559
16560*nto* | *qnx*)
16561 version_type=qnx
16562 need_lib_prefix=no
16563 need_version=no
16564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16565 soname_spec='${libname}${release}${shared_ext}$major'
16566 shlibpath_var=LD_LIBRARY_PATH
16567 shlibpath_overrides_runpath=no
16568 hardcode_into_libs=yes
16569 dynamic_linker='ldqnx.so'
16570 ;;
16571
16572openbsd*)
16573 version_type=sunos
16574 sys_lib_dlsearch_path_spec="/usr/lib"
16575 need_lib_prefix=no
16576 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16577 case $host_os in
16578 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16579 *) need_version=no ;;
16580 esac
16581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16582 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16583 shlibpath_var=LD_LIBRARY_PATH
16584 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16585 case $host_os in
16586 openbsd2.[89] | openbsd2.[89].*)
16587 shlibpath_overrides_runpath=no
16588 ;;
16589 *)
16590 shlibpath_overrides_runpath=yes
16591 ;;
16592 esac
16593 else
16594 shlibpath_overrides_runpath=yes
16595 fi
16596 ;;
16597
16598os2*)
16599 libname_spec='$name'
16600 shrext_cmds=".dll"
16601 need_lib_prefix=no
16602 library_names_spec='$libname${shared_ext} $libname.a'
16603 dynamic_linker='OS/2 ld.exe'
16604 shlibpath_var=LIBPATH
16605 ;;
16606
16607osf3* | osf4* | osf5*)
16608 version_type=osf
16609 need_lib_prefix=no
16610 need_version=no
16611 soname_spec='${libname}${release}${shared_ext}$major'
16612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16613 shlibpath_var=LD_LIBRARY_PATH
16614 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16615 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16616 ;;
16617
16618rdos*)
16619 dynamic_linker=no
16620 ;;
16621
16622solaris*)
cristy99bd5232011-12-07 14:38:20 +000016623 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016624 need_lib_prefix=no
16625 need_version=no
16626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16627 soname_spec='${libname}${release}${shared_ext}$major'
16628 shlibpath_var=LD_LIBRARY_PATH
16629 shlibpath_overrides_runpath=yes
16630 hardcode_into_libs=yes
16631 # ldd complains unless libraries are executable
16632 postinstall_cmds='chmod +x $lib'
16633 ;;
16634
16635sunos4*)
16636 version_type=sunos
16637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16638 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16639 shlibpath_var=LD_LIBRARY_PATH
16640 shlibpath_overrides_runpath=yes
16641 if test "$with_gnu_ld" = yes; then
16642 need_lib_prefix=no
16643 fi
16644 need_version=yes
16645 ;;
16646
16647sysv4 | sysv4.3*)
cristy99bd5232011-12-07 14:38:20 +000016648 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16650 soname_spec='${libname}${release}${shared_ext}$major'
16651 shlibpath_var=LD_LIBRARY_PATH
16652 case $host_vendor in
16653 sni)
16654 shlibpath_overrides_runpath=no
16655 need_lib_prefix=no
16656 runpath_var=LD_RUN_PATH
16657 ;;
16658 siemens)
16659 need_lib_prefix=no
16660 ;;
16661 motorola)
16662 need_lib_prefix=no
16663 need_version=no
16664 shlibpath_overrides_runpath=no
16665 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16666 ;;
16667 esac
16668 ;;
16669
16670sysv4*MP*)
16671 if test -d /usr/nec ;then
cristy99bd5232011-12-07 14:38:20 +000016672 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016673 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16674 soname_spec='$libname${shared_ext}.$major'
16675 shlibpath_var=LD_LIBRARY_PATH
16676 fi
16677 ;;
16678
16679sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16680 version_type=freebsd-elf
16681 need_lib_prefix=no
16682 need_version=no
16683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16684 soname_spec='${libname}${release}${shared_ext}$major'
16685 shlibpath_var=LD_LIBRARY_PATH
16686 shlibpath_overrides_runpath=yes
16687 hardcode_into_libs=yes
16688 if test "$with_gnu_ld" = yes; then
16689 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16690 else
16691 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16692 case $host_os in
16693 sco3.2v5*)
16694 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16695 ;;
16696 esac
16697 fi
16698 sys_lib_dlsearch_path_spec='/usr/lib'
16699 ;;
16700
16701tpf*)
16702 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
cristy99bd5232011-12-07 14:38:20 +000016703 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016704 need_lib_prefix=no
16705 need_version=no
16706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16707 shlibpath_var=LD_LIBRARY_PATH
16708 shlibpath_overrides_runpath=no
16709 hardcode_into_libs=yes
16710 ;;
16711
16712uts4*)
cristy99bd5232011-12-07 14:38:20 +000016713 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16715 soname_spec='${libname}${release}${shared_ext}$major'
16716 shlibpath_var=LD_LIBRARY_PATH
16717 ;;
16718
16719*)
16720 dynamic_linker=no
16721 ;;
16722esac
16723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16724$as_echo "$dynamic_linker" >&6; }
16725test "$dynamic_linker" = no && can_build_shared=no
16726
16727variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16728if test "$GCC" = yes; then
16729 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16730fi
16731
16732if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16733 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16734fi
16735if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16736 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16737fi
16738
16739
16740
16741
16742
16743
16744
16745
16746
16747
16748
16749
16750
16751
16752
16753
16754
16755
16756
16757
16758
16759
16760
16761
16762
16763
16764
16765
16766
16767
16768
16769
16770
16771
16772
16773
16774
16775
16776
16777
16778
16779
16780
16781
16782
16783
16784
16785
16786
16787
16788
16789
16790
16791
16792
16793
16794
16795
16796
16797
16798
16799
16800
16801
16802
16803
16804
16805
16806
16807
16808
16809
16810
16811
16812
16813
16814
16815
16816
16817
16818
16819
16820
16821
16822
16823
16824
cristy0c60a692010-11-04 01:09:47 +000016825
16826
16827
16828
16829
cristy73bd4a52010-10-05 11:24:23 +000016830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16831$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16832hardcode_action=
16833if test -n "$hardcode_libdir_flag_spec" ||
16834 test -n "$runpath_var" ||
16835 test "X$hardcode_automatic" = "Xyes" ; then
16836
16837 # We can hardcode non-existent directories.
16838 if test "$hardcode_direct" != no &&
16839 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16840 # have to relink, otherwise we might link with an installed library
16841 # when we should be linking with a yet-to-be-installed one
16842 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
16843 test "$hardcode_minus_L" != no; then
16844 # Linking always hardcodes the temporary library directory.
16845 hardcode_action=relink
16846 else
16847 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16848 hardcode_action=immediate
16849 fi
16850else
16851 # We cannot hardcode anything, or else we can only hardcode existing
16852 # directories.
16853 hardcode_action=unsupported
16854fi
16855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
16856$as_echo "$hardcode_action" >&6; }
16857
16858if test "$hardcode_action" = relink ||
16859 test "$inherit_rpath" = yes; then
16860 # Fast installation is not supported
16861 enable_fast_install=no
16862elif test "$shlibpath_overrides_runpath" = yes ||
16863 test "$enable_shared" = no; then
16864 # Fast installation is not necessary
16865 enable_fast_install=needless
16866fi
16867
16868
16869
16870
16871
16872
16873 if test "x$enable_dlopen" != xyes; then
16874 enable_dlopen=unknown
16875 enable_dlopen_self=unknown
16876 enable_dlopen_self_static=unknown
16877else
16878 lt_cv_dlopen=no
16879 lt_cv_dlopen_libs=
16880
16881 case $host_os in
16882 beos*)
16883 lt_cv_dlopen="load_add_on"
16884 lt_cv_dlopen_libs=
16885 lt_cv_dlopen_self=yes
16886 ;;
16887
16888 mingw* | pw32* | cegcc*)
16889 lt_cv_dlopen="LoadLibrary"
16890 lt_cv_dlopen_libs=
16891 ;;
16892
16893 cygwin*)
16894 lt_cv_dlopen="dlopen"
16895 lt_cv_dlopen_libs=
16896 ;;
16897
16898 darwin*)
16899 # if libdl is installed we need to link against it
16900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16901$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016902if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016903 $as_echo_n "(cached) " >&6
16904else
16905 ac_check_lib_save_LIBS=$LIBS
16906LIBS="-ldl $LIBS"
16907cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16908/* end confdefs.h. */
16909
16910/* Override any GCC internal prototype to avoid an error.
16911 Use char because int might match the return type of a GCC
16912 builtin and then its argument prototype would still apply. */
16913#ifdef __cplusplus
16914extern "C"
16915#endif
16916char dlopen ();
16917int
16918main ()
16919{
16920return dlopen ();
16921 ;
16922 return 0;
16923}
16924_ACEOF
16925if ac_fn_c_try_link "$LINENO"; then :
16926 ac_cv_lib_dl_dlopen=yes
16927else
16928 ac_cv_lib_dl_dlopen=no
16929fi
16930rm -f core conftest.err conftest.$ac_objext \
16931 conftest$ac_exeext conftest.$ac_ext
16932LIBS=$ac_check_lib_save_LIBS
16933fi
16934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16935$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000016936if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016937 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16938else
16939
16940 lt_cv_dlopen="dyld"
16941 lt_cv_dlopen_libs=
16942 lt_cv_dlopen_self=yes
16943
16944fi
16945
16946 ;;
16947
16948 *)
16949 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
cristyda16f162011-02-19 23:52:17 +000016950if test "x$ac_cv_func_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016951 lt_cv_dlopen="shl_load"
16952else
16953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
16954$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016955if ${ac_cv_lib_dld_shl_load+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016956 $as_echo_n "(cached) " >&6
16957else
16958 ac_check_lib_save_LIBS=$LIBS
16959LIBS="-ldld $LIBS"
16960cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16961/* end confdefs.h. */
16962
16963/* Override any GCC internal prototype to avoid an error.
16964 Use char because int might match the return type of a GCC
16965 builtin and then its argument prototype would still apply. */
16966#ifdef __cplusplus
16967extern "C"
16968#endif
16969char shl_load ();
16970int
16971main ()
16972{
16973return shl_load ();
16974 ;
16975 return 0;
16976}
16977_ACEOF
16978if ac_fn_c_try_link "$LINENO"; then :
16979 ac_cv_lib_dld_shl_load=yes
16980else
16981 ac_cv_lib_dld_shl_load=no
16982fi
16983rm -f core conftest.err conftest.$ac_objext \
16984 conftest$ac_exeext conftest.$ac_ext
16985LIBS=$ac_check_lib_save_LIBS
16986fi
16987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
16988$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristyda16f162011-02-19 23:52:17 +000016989if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016990 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
16991else
16992 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
cristyda16f162011-02-19 23:52:17 +000016993if test "x$ac_cv_func_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016994 lt_cv_dlopen="dlopen"
16995else
16996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16997$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016998if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016999 $as_echo_n "(cached) " >&6
17000else
17001 ac_check_lib_save_LIBS=$LIBS
17002LIBS="-ldl $LIBS"
17003cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17004/* end confdefs.h. */
17005
17006/* Override any GCC internal prototype to avoid an error.
17007 Use char because int might match the return type of a GCC
17008 builtin and then its argument prototype would still apply. */
17009#ifdef __cplusplus
17010extern "C"
17011#endif
17012char dlopen ();
17013int
17014main ()
17015{
17016return dlopen ();
17017 ;
17018 return 0;
17019}
17020_ACEOF
17021if ac_fn_c_try_link "$LINENO"; then :
17022 ac_cv_lib_dl_dlopen=yes
17023else
17024 ac_cv_lib_dl_dlopen=no
17025fi
17026rm -f core conftest.err conftest.$ac_objext \
17027 conftest$ac_exeext conftest.$ac_ext
17028LIBS=$ac_check_lib_save_LIBS
17029fi
17030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17031$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000017032if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017033 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17034else
17035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17036$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017037if ${ac_cv_lib_svld_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017038 $as_echo_n "(cached) " >&6
17039else
17040 ac_check_lib_save_LIBS=$LIBS
17041LIBS="-lsvld $LIBS"
17042cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17043/* end confdefs.h. */
17044
17045/* Override any GCC internal prototype to avoid an error.
17046 Use char because int might match the return type of a GCC
17047 builtin and then its argument prototype would still apply. */
17048#ifdef __cplusplus
17049extern "C"
17050#endif
17051char dlopen ();
17052int
17053main ()
17054{
17055return dlopen ();
17056 ;
17057 return 0;
17058}
17059_ACEOF
17060if ac_fn_c_try_link "$LINENO"; then :
17061 ac_cv_lib_svld_dlopen=yes
17062else
17063 ac_cv_lib_svld_dlopen=no
17064fi
17065rm -f core conftest.err conftest.$ac_objext \
17066 conftest$ac_exeext conftest.$ac_ext
17067LIBS=$ac_check_lib_save_LIBS
17068fi
17069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17070$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000017071if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017072 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17073else
17074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17075$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017076if ${ac_cv_lib_dld_dld_link+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017077 $as_echo_n "(cached) " >&6
17078else
17079 ac_check_lib_save_LIBS=$LIBS
17080LIBS="-ldld $LIBS"
17081cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17082/* end confdefs.h. */
17083
17084/* Override any GCC internal prototype to avoid an error.
17085 Use char because int might match the return type of a GCC
17086 builtin and then its argument prototype would still apply. */
17087#ifdef __cplusplus
17088extern "C"
17089#endif
17090char dld_link ();
17091int
17092main ()
17093{
17094return dld_link ();
17095 ;
17096 return 0;
17097}
17098_ACEOF
17099if ac_fn_c_try_link "$LINENO"; then :
17100 ac_cv_lib_dld_dld_link=yes
17101else
17102 ac_cv_lib_dld_dld_link=no
17103fi
17104rm -f core conftest.err conftest.$ac_objext \
17105 conftest$ac_exeext conftest.$ac_ext
17106LIBS=$ac_check_lib_save_LIBS
17107fi
17108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17109$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristyda16f162011-02-19 23:52:17 +000017110if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017111 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17112fi
17113
17114
17115fi
17116
17117
17118fi
17119
17120
17121fi
17122
17123
17124fi
17125
17126
17127fi
17128
17129 ;;
17130 esac
17131
17132 if test "x$lt_cv_dlopen" != xno; then
17133 enable_dlopen=yes
17134 else
17135 enable_dlopen=no
17136 fi
17137
17138 case $lt_cv_dlopen in
17139 dlopen)
17140 save_CPPFLAGS="$CPPFLAGS"
17141 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17142
17143 save_LDFLAGS="$LDFLAGS"
17144 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17145
17146 save_LIBS="$LIBS"
17147 LIBS="$lt_cv_dlopen_libs $LIBS"
17148
17149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17150$as_echo_n "checking whether a program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017151if ${lt_cv_dlopen_self+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017152 $as_echo_n "(cached) " >&6
17153else
17154 if test "$cross_compiling" = yes; then :
17155 lt_cv_dlopen_self=cross
17156else
17157 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17158 lt_status=$lt_dlunknown
17159 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000017160#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000017161#include "confdefs.h"
17162
17163#if HAVE_DLFCN_H
17164#include <dlfcn.h>
17165#endif
17166
17167#include <stdio.h>
17168
17169#ifdef RTLD_GLOBAL
17170# define LT_DLGLOBAL RTLD_GLOBAL
17171#else
17172# ifdef DL_GLOBAL
17173# define LT_DLGLOBAL DL_GLOBAL
17174# else
17175# define LT_DLGLOBAL 0
17176# endif
17177#endif
17178
17179/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17180 find out it does not work in some platform. */
17181#ifndef LT_DLLAZY_OR_NOW
17182# ifdef RTLD_LAZY
17183# define LT_DLLAZY_OR_NOW RTLD_LAZY
17184# else
17185# ifdef DL_LAZY
17186# define LT_DLLAZY_OR_NOW DL_LAZY
17187# else
17188# ifdef RTLD_NOW
17189# define LT_DLLAZY_OR_NOW RTLD_NOW
17190# else
17191# ifdef DL_NOW
17192# define LT_DLLAZY_OR_NOW DL_NOW
17193# else
17194# define LT_DLLAZY_OR_NOW 0
17195# endif
17196# endif
17197# endif
17198# endif
17199#endif
17200
cristy0c60a692010-11-04 01:09:47 +000017201/* When -fvisbility=hidden is used, assume the code has been annotated
17202 correspondingly for the symbols needed. */
17203#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000017204int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000017205#endif
17206
cristyda16f162011-02-19 23:52:17 +000017207int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000017208int main ()
17209{
17210 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17211 int status = $lt_dlunknown;
17212
17213 if (self)
17214 {
17215 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000017216 else
17217 {
17218 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17219 else puts (dlerror ());
17220 }
cristy73bd4a52010-10-05 11:24:23 +000017221 /* dlclose (self); */
17222 }
17223 else
17224 puts (dlerror ());
17225
17226 return status;
17227}
17228_LT_EOF
17229 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17230 (eval $ac_link) 2>&5
17231 ac_status=$?
17232 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17233 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17234 (./conftest; exit; ) >&5 2>/dev/null
17235 lt_status=$?
17236 case x$lt_status in
17237 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17238 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17239 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17240 esac
17241 else :
17242 # compilation failed
17243 lt_cv_dlopen_self=no
17244 fi
17245fi
17246rm -fr conftest*
17247
17248
17249fi
17250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17251$as_echo "$lt_cv_dlopen_self" >&6; }
17252
17253 if test "x$lt_cv_dlopen_self" = xyes; then
17254 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17256$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017257if ${lt_cv_dlopen_self_static+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017258 $as_echo_n "(cached) " >&6
17259else
17260 if test "$cross_compiling" = yes; then :
17261 lt_cv_dlopen_self_static=cross
17262else
17263 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17264 lt_status=$lt_dlunknown
17265 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000017266#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000017267#include "confdefs.h"
17268
17269#if HAVE_DLFCN_H
17270#include <dlfcn.h>
17271#endif
17272
17273#include <stdio.h>
17274
17275#ifdef RTLD_GLOBAL
17276# define LT_DLGLOBAL RTLD_GLOBAL
17277#else
17278# ifdef DL_GLOBAL
17279# define LT_DLGLOBAL DL_GLOBAL
17280# else
17281# define LT_DLGLOBAL 0
17282# endif
17283#endif
17284
17285/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17286 find out it does not work in some platform. */
17287#ifndef LT_DLLAZY_OR_NOW
17288# ifdef RTLD_LAZY
17289# define LT_DLLAZY_OR_NOW RTLD_LAZY
17290# else
17291# ifdef DL_LAZY
17292# define LT_DLLAZY_OR_NOW DL_LAZY
17293# else
17294# ifdef RTLD_NOW
17295# define LT_DLLAZY_OR_NOW RTLD_NOW
17296# else
17297# ifdef DL_NOW
17298# define LT_DLLAZY_OR_NOW DL_NOW
17299# else
17300# define LT_DLLAZY_OR_NOW 0
17301# endif
17302# endif
17303# endif
17304# endif
17305#endif
17306
cristy0c60a692010-11-04 01:09:47 +000017307/* When -fvisbility=hidden is used, assume the code has been annotated
17308 correspondingly for the symbols needed. */
17309#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000017310int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000017311#endif
17312
cristyda16f162011-02-19 23:52:17 +000017313int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000017314int main ()
17315{
17316 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17317 int status = $lt_dlunknown;
17318
17319 if (self)
17320 {
17321 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000017322 else
17323 {
17324 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17325 else puts (dlerror ());
17326 }
cristy73bd4a52010-10-05 11:24:23 +000017327 /* dlclose (self); */
17328 }
17329 else
17330 puts (dlerror ());
17331
17332 return status;
17333}
17334_LT_EOF
17335 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17336 (eval $ac_link) 2>&5
17337 ac_status=$?
17338 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17339 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17340 (./conftest; exit; ) >&5 2>/dev/null
17341 lt_status=$?
17342 case x$lt_status in
17343 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17344 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17345 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17346 esac
17347 else :
17348 # compilation failed
17349 lt_cv_dlopen_self_static=no
17350 fi
17351fi
17352rm -fr conftest*
17353
17354
17355fi
17356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17357$as_echo "$lt_cv_dlopen_self_static" >&6; }
17358 fi
17359
17360 CPPFLAGS="$save_CPPFLAGS"
17361 LDFLAGS="$save_LDFLAGS"
17362 LIBS="$save_LIBS"
17363 ;;
17364 esac
17365
17366 case $lt_cv_dlopen_self in
17367 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17368 *) enable_dlopen_self=unknown ;;
17369 esac
17370
17371 case $lt_cv_dlopen_self_static in
17372 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17373 *) enable_dlopen_self_static=unknown ;;
17374 esac
17375fi
17376
17377
17378
17379
17380
17381
17382
17383
17384
17385
17386
17387
17388
17389
17390
17391
17392
17393striplib=
17394old_striplib=
17395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17396$as_echo_n "checking whether stripping libraries is possible... " >&6; }
17397if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
17398 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17399 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17401$as_echo "yes" >&6; }
17402else
17403# FIXME - insert some real tests, host_os isn't really good enough
17404 case $host_os in
17405 darwin*)
17406 if test -n "$STRIP" ; then
17407 striplib="$STRIP -x"
17408 old_striplib="$STRIP -S"
17409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17410$as_echo "yes" >&6; }
17411 else
17412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17413$as_echo "no" >&6; }
17414 fi
17415 ;;
17416 *)
17417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17418$as_echo "no" >&6; }
17419 ;;
17420 esac
17421fi
17422
17423
17424
17425
17426
17427
17428
17429
17430
17431
17432
17433
17434 # Report which library types will actually be built
17435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17436$as_echo_n "checking if libtool supports shared libraries... " >&6; }
17437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17438$as_echo "$can_build_shared" >&6; }
17439
17440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17441$as_echo_n "checking whether to build shared libraries... " >&6; }
17442 test "$can_build_shared" = "no" && enable_shared=no
17443
17444 # On AIX, shared libraries and static libraries use the same namespace, and
17445 # are all built from PIC.
17446 case $host_os in
17447 aix3*)
17448 test "$enable_shared" = yes && enable_static=no
17449 if test -n "$RANLIB"; then
17450 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17451 postinstall_cmds='$RANLIB $lib'
17452 fi
17453 ;;
17454
17455 aix[4-9]*)
17456 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17457 test "$enable_shared" = yes && enable_static=no
17458 fi
17459 ;;
17460 esac
17461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17462$as_echo "$enable_shared" >&6; }
17463
17464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17465$as_echo_n "checking whether to build static libraries... " >&6; }
17466 # Make sure either enable_shared or enable_static is yes.
17467 test "$enable_shared" = yes || enable_static=yes
17468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17469$as_echo "$enable_static" >&6; }
17470
17471
17472
17473
17474fi
17475ac_ext=c
17476ac_cpp='$CPP $CPPFLAGS'
17477ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17478ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17479ac_compiler_gnu=$ac_cv_c_compiler_gnu
17480
17481CC="$lt_save_CC"
17482
cristy0c60a692010-11-04 01:09:47 +000017483 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17484 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17485 (test "X$CXX" != "Xg++"))) ; then
17486 ac_ext=cpp
17487ac_cpp='$CXXCPP $CPPFLAGS'
17488ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17489ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17490ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
17492$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
17493if test -z "$CXXCPP"; then
cristyda16f162011-02-19 23:52:17 +000017494 if ${ac_cv_prog_CXXCPP+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000017495 $as_echo_n "(cached) " >&6
17496else
17497 # Double quotes because CXXCPP needs to be expanded
17498 for CXXCPP in "$CXX -E" "/lib/cpp"
17499 do
17500 ac_preproc_ok=false
17501for ac_cxx_preproc_warn_flag in '' yes
17502do
17503 # Use a header file that comes with gcc, so configuring glibc
17504 # with a fresh cross-compiler works.
17505 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17506 # <limits.h> exists even on freestanding compilers.
17507 # On the NeXT, cc -E runs the code through the compiler's parser,
17508 # not just through cpp. "Syntax error" is here to catch this case.
17509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17510/* end confdefs.h. */
17511#ifdef __STDC__
17512# include <limits.h>
17513#else
17514# include <assert.h>
17515#endif
17516 Syntax error
17517_ACEOF
17518if ac_fn_cxx_try_cpp "$LINENO"; then :
17519
17520else
17521 # Broken: fails on valid input.
17522continue
17523fi
cristyda16f162011-02-19 23:52:17 +000017524rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017525
17526 # OK, works on sane cases. Now check whether nonexistent headers
17527 # can be detected and how.
17528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17529/* end confdefs.h. */
17530#include <ac_nonexistent.h>
17531_ACEOF
17532if ac_fn_cxx_try_cpp "$LINENO"; then :
17533 # Broken: success on invalid input.
17534continue
17535else
17536 # Passes both tests.
17537ac_preproc_ok=:
17538break
17539fi
cristyda16f162011-02-19 23:52:17 +000017540rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017541
17542done
17543# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000017544rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017545if $ac_preproc_ok; then :
17546 break
17547fi
17548
17549 done
17550 ac_cv_prog_CXXCPP=$CXXCPP
17551
17552fi
17553 CXXCPP=$ac_cv_prog_CXXCPP
17554else
17555 ac_cv_prog_CXXCPP=$CXXCPP
17556fi
17557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
17558$as_echo "$CXXCPP" >&6; }
17559ac_preproc_ok=false
17560for ac_cxx_preproc_warn_flag in '' yes
17561do
17562 # Use a header file that comes with gcc, so configuring glibc
17563 # with a fresh cross-compiler works.
17564 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17565 # <limits.h> exists even on freestanding compilers.
17566 # On the NeXT, cc -E runs the code through the compiler's parser,
17567 # not just through cpp. "Syntax error" is here to catch this case.
17568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17569/* end confdefs.h. */
17570#ifdef __STDC__
17571# include <limits.h>
17572#else
17573# include <assert.h>
17574#endif
17575 Syntax error
17576_ACEOF
17577if ac_fn_cxx_try_cpp "$LINENO"; then :
17578
17579else
17580 # Broken: fails on valid input.
17581continue
17582fi
cristyda16f162011-02-19 23:52:17 +000017583rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017584
17585 # OK, works on sane cases. Now check whether nonexistent headers
17586 # can be detected and how.
17587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17588/* end confdefs.h. */
17589#include <ac_nonexistent.h>
17590_ACEOF
17591if ac_fn_cxx_try_cpp "$LINENO"; then :
17592 # Broken: success on invalid input.
17593continue
17594else
17595 # Passes both tests.
17596ac_preproc_ok=:
17597break
17598fi
cristyda16f162011-02-19 23:52:17 +000017599rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017600
17601done
17602# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000017603rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017604if $ac_preproc_ok; then :
17605
17606else
17607 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17608$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17609as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
17610See \`config.log' for more details" "$LINENO" 5; }
17611fi
17612
17613ac_ext=c
17614ac_cpp='$CPP $CPPFLAGS'
17615ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17616ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17617ac_compiler_gnu=$ac_cv_c_compiler_gnu
17618
17619else
17620 _lt_caught_CXX_error=yes
17621fi
cristy73bd4a52010-10-05 11:24:23 +000017622
17623ac_ext=cpp
17624ac_cpp='$CXXCPP $CPPFLAGS'
17625ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17626ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17627ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17628
17629archive_cmds_need_lc_CXX=no
17630allow_undefined_flag_CXX=
17631always_export_symbols_CXX=no
17632archive_expsym_cmds_CXX=
17633compiler_needs_object_CXX=no
17634export_dynamic_flag_spec_CXX=
17635hardcode_direct_CXX=no
17636hardcode_direct_absolute_CXX=no
17637hardcode_libdir_flag_spec_CXX=
cristy73bd4a52010-10-05 11:24:23 +000017638hardcode_libdir_separator_CXX=
17639hardcode_minus_L_CXX=no
17640hardcode_shlibpath_var_CXX=unsupported
17641hardcode_automatic_CXX=no
17642inherit_rpath_CXX=no
17643module_cmds_CXX=
17644module_expsym_cmds_CXX=
17645link_all_deplibs_CXX=unknown
17646old_archive_cmds_CXX=$old_archive_cmds
cristy0c60a692010-11-04 01:09:47 +000017647reload_flag_CXX=$reload_flag
17648reload_cmds_CXX=$reload_cmds
cristy73bd4a52010-10-05 11:24:23 +000017649no_undefined_flag_CXX=
17650whole_archive_flag_spec_CXX=
17651enable_shared_with_static_runtimes_CXX=no
17652
17653# Source file extension for C++ test sources.
17654ac_ext=cpp
17655
17656# Object file extension for compiled C++ test sources.
17657objext=o
17658objext_CXX=$objext
17659
17660# No sense in running all these tests if we already determined that
17661# the CXX compiler isn't working. Some variables (like enable_shared)
17662# are currently assumed to apply to all compilers on this platform,
17663# and will be corrupted by setting them based on a non-working compiler.
17664if test "$_lt_caught_CXX_error" != yes; then
17665 # Code to be used in simple compile tests
17666 lt_simple_compile_test_code="int some_variable = 0;"
17667
17668 # Code to be used in simple link tests
17669 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
17670
17671 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17672
17673
17674
17675
17676
17677
17678# If no C compiler was specified, use CC.
17679LTCC=${LTCC-"$CC"}
17680
17681# If no C compiler flags were specified, use CFLAGS.
17682LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17683
17684# Allow CC to be a program name with arguments.
17685compiler=$CC
17686
17687
17688 # save warnings/boilerplate of simple test code
17689 ac_outfile=conftest.$ac_objext
17690echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17691eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17692_lt_compiler_boilerplate=`cat conftest.err`
17693$RM conftest*
17694
17695 ac_outfile=conftest.$ac_objext
17696echo "$lt_simple_link_test_code" >conftest.$ac_ext
17697eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17698_lt_linker_boilerplate=`cat conftest.err`
17699$RM -r conftest*
17700
17701
17702 # Allow CC to be a program name with arguments.
17703 lt_save_CC=$CC
cristyda16f162011-02-19 23:52:17 +000017704 lt_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000017705 lt_save_LD=$LD
17706 lt_save_GCC=$GCC
17707 GCC=$GXX
17708 lt_save_with_gnu_ld=$with_gnu_ld
17709 lt_save_path_LD=$lt_cv_path_LD
17710 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
17711 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
17712 else
17713 $as_unset lt_cv_prog_gnu_ld
17714 fi
17715 if test -n "${lt_cv_path_LDCXX+set}"; then
17716 lt_cv_path_LD=$lt_cv_path_LDCXX
17717 else
17718 $as_unset lt_cv_path_LD
17719 fi
17720 test -z "${LDCXX+set}" || LD=$LDCXX
17721 CC=${CXX-"c++"}
cristyda16f162011-02-19 23:52:17 +000017722 CFLAGS=$CXXFLAGS
cristy73bd4a52010-10-05 11:24:23 +000017723 compiler=$CC
17724 compiler_CXX=$CC
17725 for cc_temp in $compiler""; do
17726 case $cc_temp in
17727 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17728 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17729 \-*) ;;
17730 *) break;;
17731 esac
17732done
cristy0c60a692010-11-04 01:09:47 +000017733cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000017734
17735
17736 if test -n "$compiler"; then
17737 # We don't want -fno-exception when compiling C++ code, so set the
17738 # no_builtin_flag separately
17739 if test "$GXX" = yes; then
17740 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
17741 else
17742 lt_prog_compiler_no_builtin_flag_CXX=
17743 fi
17744
17745 if test "$GXX" = yes; then
17746 # Set up default GNU C++ configuration
17747
17748
17749
17750# Check whether --with-gnu-ld was given.
17751if test "${with_gnu_ld+set}" = set; then :
17752 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17753else
17754 with_gnu_ld=no
17755fi
17756
17757ac_prog=ld
17758if test "$GCC" = yes; then
17759 # Check if gcc -print-prog-name=ld gives a path.
17760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
17761$as_echo_n "checking for ld used by $CC... " >&6; }
17762 case $host in
17763 *-*-mingw*)
17764 # gcc leaves a trailing carriage return which upsets mingw
17765 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17766 *)
17767 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17768 esac
17769 case $ac_prog in
17770 # Accept absolute paths.
17771 [\\/]* | ?:[\\/]*)
17772 re_direlt='/[^/][^/]*/\.\./'
17773 # Canonicalize the pathname of ld
17774 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
17775 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
17776 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
17777 done
17778 test -z "$LD" && LD="$ac_prog"
17779 ;;
17780 "")
17781 # If it fails, then pretend we aren't using GCC.
17782 ac_prog=ld
17783 ;;
17784 *)
17785 # If it is relative, then search for the first ld in PATH.
17786 with_gnu_ld=unknown
17787 ;;
17788 esac
17789elif test "$with_gnu_ld" = yes; then
17790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17791$as_echo_n "checking for GNU ld... " >&6; }
17792else
17793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17794$as_echo_n "checking for non-GNU ld... " >&6; }
17795fi
cristyda16f162011-02-19 23:52:17 +000017796if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017797 $as_echo_n "(cached) " >&6
17798else
17799 if test -z "$LD"; then
17800 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17801 for ac_dir in $PATH; do
17802 IFS="$lt_save_ifs"
17803 test -z "$ac_dir" && ac_dir=.
17804 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17805 lt_cv_path_LD="$ac_dir/$ac_prog"
17806 # Check to see if the program is GNU ld. I'd rather use --version,
17807 # but apparently some variants of GNU ld only accept -v.
17808 # Break only if it was the GNU/non-GNU ld that we prefer.
17809 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17810 *GNU* | *'with BFD'*)
17811 test "$with_gnu_ld" != no && break
17812 ;;
17813 *)
17814 test "$with_gnu_ld" != yes && break
17815 ;;
17816 esac
17817 fi
17818 done
17819 IFS="$lt_save_ifs"
17820else
17821 lt_cv_path_LD="$LD" # Let the user override the test with a path.
17822fi
17823fi
17824
17825LD="$lt_cv_path_LD"
17826if test -n "$LD"; then
17827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17828$as_echo "$LD" >&6; }
17829else
17830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17831$as_echo "no" >&6; }
17832fi
cristy98dddb52010-11-04 00:30:15 +000017833test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000017834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17835$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017836if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017837 $as_echo_n "(cached) " >&6
17838else
17839 # I'd rather use --version here, but apparently some GNU lds only accept -v.
17840case `$LD -v 2>&1 </dev/null` in
17841*GNU* | *'with BFD'*)
17842 lt_cv_prog_gnu_ld=yes
17843 ;;
17844*)
17845 lt_cv_prog_gnu_ld=no
17846 ;;
17847esac
17848fi
17849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
17850$as_echo "$lt_cv_prog_gnu_ld" >&6; }
17851with_gnu_ld=$lt_cv_prog_gnu_ld
17852
17853
17854
17855
17856
17857
17858
17859 # Check if GNU C++ uses GNU ld as the underlying linker, since the
17860 # archiving commands below assume that GNU ld is being used.
17861 if test "$with_gnu_ld" = yes; then
cristyda16f162011-02-19 23:52:17 +000017862 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17863 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 +000017864
17865 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17866 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17867
17868 # If archive_cmds runs LD, not CC, wlarc should be empty
17869 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
17870 # investigate it a little bit more. (MM)
17871 wlarc='${wl}'
17872
17873 # ancient GNU ld didn't support --whole-archive et. al.
17874 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
17875 $GREP 'no-whole-archive' > /dev/null; then
17876 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17877 else
17878 whole_archive_flag_spec_CXX=
17879 fi
17880 else
17881 with_gnu_ld=no
17882 wlarc=
17883
17884 # A generic and very simple default shared library creation
17885 # command for GNU C++ for the case where it uses the native
17886 # linker, instead of GNU ld. If possible, this setting should
17887 # overridden to take advantage of the native linker features on
17888 # the platform it is being used on.
17889 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17890 fi
17891
17892 # Commands to make compiler produce verbose output that lists
17893 # what "hidden" libraries, object files and flags are used when
17894 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000017895 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000017896
17897 else
17898 GXX=no
17899 with_gnu_ld=no
17900 wlarc=
17901 fi
17902
17903 # PORTME: fill in a description of your system's C++ link characteristics
17904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17905$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17906 ld_shlibs_CXX=yes
17907 case $host_os in
17908 aix3*)
17909 # FIXME: insert proper C++ library support
17910 ld_shlibs_CXX=no
17911 ;;
17912 aix[4-9]*)
17913 if test "$host_cpu" = ia64; then
17914 # On IA64, the linker does run time linking by default, so we don't
17915 # have to do anything special.
17916 aix_use_runtimelinking=no
17917 exp_sym_flag='-Bexport'
17918 no_entry_flag=""
17919 else
17920 aix_use_runtimelinking=no
17921
17922 # Test if we are trying to use run time linking or normal
17923 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17924 # need to do runtime linking.
17925 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17926 for ld_flag in $LDFLAGS; do
17927 case $ld_flag in
17928 *-brtl*)
17929 aix_use_runtimelinking=yes
17930 break
17931 ;;
17932 esac
17933 done
17934 ;;
17935 esac
17936
17937 exp_sym_flag='-bexport'
17938 no_entry_flag='-bnoentry'
17939 fi
17940
17941 # When large executables or shared objects are built, AIX ld can
17942 # have problems creating the table of contents. If linking a library
17943 # or program results in "error TOC overflow" add -mminimal-toc to
17944 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17945 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17946
17947 archive_cmds_CXX=''
17948 hardcode_direct_CXX=yes
17949 hardcode_direct_absolute_CXX=yes
17950 hardcode_libdir_separator_CXX=':'
17951 link_all_deplibs_CXX=yes
17952 file_list_spec_CXX='${wl}-f,'
17953
17954 if test "$GXX" = yes; then
17955 case $host_os in aix4.[012]|aix4.[012].*)
17956 # We only want to do this on AIX 4.2 and lower, the check
17957 # below for broken collect2 doesn't work under 4.3+
17958 collect2name=`${CC} -print-prog-name=collect2`
17959 if test -f "$collect2name" &&
17960 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
17961 then
17962 # We have reworked collect2
17963 :
17964 else
17965 # We have old collect2
17966 hardcode_direct_CXX=unsupported
17967 # It fails to find uninstalled libraries when the uninstalled
17968 # path is not listed in the libpath. Setting hardcode_minus_L
17969 # to unsupported forces relinking
17970 hardcode_minus_L_CXX=yes
17971 hardcode_libdir_flag_spec_CXX='-L$libdir'
17972 hardcode_libdir_separator_CXX=
17973 fi
17974 esac
17975 shared_flag='-shared'
17976 if test "$aix_use_runtimelinking" = yes; then
17977 shared_flag="$shared_flag "'${wl}-G'
17978 fi
17979 else
17980 # not using gcc
17981 if test "$host_cpu" = ia64; then
17982 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17983 # chokes on -Wl,-G. The following line is correct:
17984 shared_flag='-G'
17985 else
17986 if test "$aix_use_runtimelinking" = yes; then
17987 shared_flag='${wl}-G'
17988 else
17989 shared_flag='${wl}-bM:SRE'
17990 fi
17991 fi
17992 fi
17993
17994 export_dynamic_flag_spec_CXX='${wl}-bexpall'
17995 # It seems that -bexpall does not export symbols beginning with
17996 # underscore (_), so it is better to generate a list of symbols to
17997 # export.
17998 always_export_symbols_CXX=yes
17999 if test "$aix_use_runtimelinking" = yes; then
18000 # Warning - without using the other runtime loading flags (-brtl),
18001 # -berok will link without error, but may produce a broken library.
18002 allow_undefined_flag_CXX='-berok'
18003 # Determine the default libpath from the value encoded in an empty
18004 # executable.
cristyda16f162011-02-19 23:52:17 +000018005 if test "${lt_cv_aix_libpath+set}" = set; then
18006 aix_libpath=$lt_cv_aix_libpath
18007else
18008 if ${lt_cv_aix_libpath__CXX+:} false; then :
18009 $as_echo_n "(cached) " >&6
18010else
18011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000018012/* end confdefs.h. */
18013
18014int
18015main ()
18016{
18017
18018 ;
18019 return 0;
18020}
18021_ACEOF
18022if ac_fn_cxx_try_link "$LINENO"; then :
18023
cristyda16f162011-02-19 23:52:17 +000018024 lt_aix_libpath_sed='
18025 /Import File Strings/,/^$/ {
18026 /^0/ {
18027 s/^0 *\([^ ]*\) *$/\1/
18028 p
18029 }
18030 }'
18031 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18032 # Check for a 64-bit object if we didn't find anything.
18033 if test -z "$lt_cv_aix_libpath__CXX"; then
18034 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18035 fi
cristy73bd4a52010-10-05 11:24:23 +000018036fi
18037rm -f core conftest.err conftest.$ac_objext \
18038 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000018039 if test -z "$lt_cv_aix_libpath__CXX"; then
18040 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
18041 fi
18042
18043fi
18044
18045 aix_libpath=$lt_cv_aix_libpath__CXX
18046fi
cristy73bd4a52010-10-05 11:24:23 +000018047
18048 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18049
cristy0c60a692010-11-04 01:09:47 +000018050 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 +000018051 else
18052 if test "$host_cpu" = ia64; then
18053 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18054 allow_undefined_flag_CXX="-z nodefs"
18055 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"
18056 else
18057 # Determine the default libpath from the value encoded in an
18058 # empty executable.
cristyda16f162011-02-19 23:52:17 +000018059 if test "${lt_cv_aix_libpath+set}" = set; then
18060 aix_libpath=$lt_cv_aix_libpath
18061else
18062 if ${lt_cv_aix_libpath__CXX+:} false; then :
18063 $as_echo_n "(cached) " >&6
18064else
18065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000018066/* end confdefs.h. */
18067
18068int
18069main ()
18070{
18071
18072 ;
18073 return 0;
18074}
18075_ACEOF
18076if ac_fn_cxx_try_link "$LINENO"; then :
18077
cristyda16f162011-02-19 23:52:17 +000018078 lt_aix_libpath_sed='
18079 /Import File Strings/,/^$/ {
18080 /^0/ {
18081 s/^0 *\([^ ]*\) *$/\1/
18082 p
18083 }
18084 }'
18085 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18086 # Check for a 64-bit object if we didn't find anything.
18087 if test -z "$lt_cv_aix_libpath__CXX"; then
18088 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18089 fi
cristy73bd4a52010-10-05 11:24:23 +000018090fi
18091rm -f core conftest.err conftest.$ac_objext \
18092 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000018093 if test -z "$lt_cv_aix_libpath__CXX"; then
18094 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
18095 fi
18096
18097fi
18098
18099 aix_libpath=$lt_cv_aix_libpath__CXX
18100fi
cristy73bd4a52010-10-05 11:24:23 +000018101
18102 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18103 # Warning - without using the other run time loading flags,
18104 # -berok will link without error, but may produce a broken library.
18105 no_undefined_flag_CXX=' ${wl}-bernotok'
18106 allow_undefined_flag_CXX=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000018107 if test "$with_gnu_ld" = yes; then
18108 # We only use this code for GNU lds that support --whole-archive.
18109 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18110 else
18111 # Exported symbols can be pulled into shared objects from archives
18112 whole_archive_flag_spec_CXX='$convenience'
18113 fi
cristy73bd4a52010-10-05 11:24:23 +000018114 archive_cmds_need_lc_CXX=yes
18115 # This is similar to how AIX traditionally builds its shared
18116 # libraries.
18117 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'
18118 fi
18119 fi
18120 ;;
18121
18122 beos*)
18123 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18124 allow_undefined_flag_CXX=unsupported
18125 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18126 # support --undefined. This deserves some investigation. FIXME
18127 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18128 else
18129 ld_shlibs_CXX=no
18130 fi
18131 ;;
18132
18133 chorus*)
18134 case $cc_basename in
18135 *)
18136 # FIXME: insert proper C++ library support
18137 ld_shlibs_CXX=no
18138 ;;
18139 esac
18140 ;;
18141
18142 cygwin* | mingw* | pw32* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000018143 case $GXX,$cc_basename in
18144 ,cl* | no,cl*)
18145 # Native MSVC
18146 # hardcode_libdir_flag_spec is actually meaningless, as there is
18147 # no search path for DLLs.
18148 hardcode_libdir_flag_spec_CXX=' '
18149 allow_undefined_flag_CXX=unsupported
18150 always_export_symbols_CXX=yes
18151 file_list_spec_CXX='@'
18152 # Tell ltmain to make .lib files, not .a files.
18153 libext=lib
18154 # Tell ltmain to make .dll files, not .so files.
18155 shrext_cmds=".dll"
18156 # FIXME: Setting linknames here is a bad hack.
18157 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
18158 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18159 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
18160 else
18161 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
18162 fi~
18163 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
18164 linknames='
18165 # The linker will not automatically build a static lib if we build a DLL.
18166 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
18167 enable_shared_with_static_runtimes_CXX=yes
18168 # Don't use ranlib
18169 old_postinstall_cmds_CXX='chmod 644 $oldlib'
18170 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
18171 lt_tool_outputfile="@TOOL_OUTPUT@"~
18172 case $lt_outputfile in
18173 *.exe|*.EXE) ;;
18174 *)
18175 lt_outputfile="$lt_outputfile.exe"
18176 lt_tool_outputfile="$lt_tool_outputfile.exe"
18177 ;;
18178 esac~
18179 func_to_tool_file "$lt_outputfile"~
18180 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
18181 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
18182 $RM "$lt_outputfile.manifest";
18183 fi'
18184 ;;
18185 *)
18186 # g++
18187 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18188 # as there is no search path for DLLs.
18189 hardcode_libdir_flag_spec_CXX='-L$libdir'
18190 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
18191 allow_undefined_flag_CXX=unsupported
18192 always_export_symbols_CXX=no
18193 enable_shared_with_static_runtimes_CXX=yes
cristy73bd4a52010-10-05 11:24:23 +000018194
cristyda16f162011-02-19 23:52:17 +000018195 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18196 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'
18197 # If the export-symbols file already is a .def file (1st line
18198 # is EXPORTS), use it as is; otherwise, prepend...
18199 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18200 cp $export_symbols $output_objdir/$soname.def;
18201 else
18202 echo EXPORTS > $output_objdir/$soname.def;
18203 cat $export_symbols >> $output_objdir/$soname.def;
18204 fi~
18205 $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'
18206 else
18207 ld_shlibs_CXX=no
18208 fi
18209 ;;
18210 esac
18211 ;;
cristy73bd4a52010-10-05 11:24:23 +000018212 darwin* | rhapsody*)
18213
18214
18215 archive_cmds_need_lc_CXX=no
18216 hardcode_direct_CXX=no
18217 hardcode_automatic_CXX=yes
18218 hardcode_shlibpath_var_CXX=unsupported
cristy0c60a692010-11-04 01:09:47 +000018219 if test "$lt_cv_ld_force_load" = "yes"; then
18220 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 +000018221
cristy0c60a692010-11-04 01:09:47 +000018222 else
18223 whole_archive_flag_spec_CXX=''
18224 fi
cristy73bd4a52010-10-05 11:24:23 +000018225 link_all_deplibs_CXX=yes
18226 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
18227 case $cc_basename in
18228 ifort*) _lt_dar_can_shared=yes ;;
18229 *) _lt_dar_can_shared=$GCC ;;
18230 esac
18231 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000018232 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000018233 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}"
18234 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18235 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}"
18236 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}"
18237 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18238 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}"
18239 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}"
18240 fi
18241
18242 else
18243 ld_shlibs_CXX=no
18244 fi
18245
18246 ;;
18247
18248 dgux*)
18249 case $cc_basename in
18250 ec++*)
18251 # FIXME: insert proper C++ library support
18252 ld_shlibs_CXX=no
18253 ;;
18254 ghcx*)
18255 # Green Hills C++ Compiler
18256 # FIXME: insert proper C++ library support
18257 ld_shlibs_CXX=no
18258 ;;
18259 *)
18260 # FIXME: insert proper C++ library support
18261 ld_shlibs_CXX=no
18262 ;;
18263 esac
18264 ;;
18265
cristy99bd5232011-12-07 14:38:20 +000018266 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000018267 # C++ shared libraries reported to be fairly broken before
18268 # switch to ELF
18269 ld_shlibs_CXX=no
18270 ;;
18271
18272 freebsd-elf*)
18273 archive_cmds_need_lc_CXX=no
18274 ;;
18275
18276 freebsd* | dragonfly*)
18277 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18278 # conventions
18279 ld_shlibs_CXX=yes
18280 ;;
18281
18282 gnu*)
18283 ;;
18284
cristy0c60a692010-11-04 01:09:47 +000018285 haiku*)
18286 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18287 link_all_deplibs_CXX=yes
18288 ;;
18289
cristy73bd4a52010-10-05 11:24:23 +000018290 hpux9*)
18291 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18292 hardcode_libdir_separator_CXX=:
18293 export_dynamic_flag_spec_CXX='${wl}-E'
18294 hardcode_direct_CXX=yes
18295 hardcode_minus_L_CXX=yes # Not in the search PATH,
18296 # but as the default
18297 # location of the library.
18298
18299 case $cc_basename in
18300 CC*)
18301 # FIXME: insert proper C++ library support
18302 ld_shlibs_CXX=no
18303 ;;
18304 aCC*)
18305 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'
18306 # Commands to make compiler produce verbose output that lists
18307 # what "hidden" libraries, object files and flags are used when
18308 # linking a shared library.
18309 #
18310 # There doesn't appear to be a way to prevent this compiler from
18311 # explicitly linking system object files so we need to strip them
18312 # from the output so that they don't get included in the library
18313 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018314 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 +000018315 ;;
18316 *)
18317 if test "$GXX" = yes; then
cristyda16f162011-02-19 23:52:17 +000018318 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 +000018319 else
18320 # FIXME: insert proper C++ library support
18321 ld_shlibs_CXX=no
18322 fi
18323 ;;
18324 esac
18325 ;;
18326
18327 hpux10*|hpux11*)
18328 if test $with_gnu_ld = no; then
18329 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18330 hardcode_libdir_separator_CXX=:
18331
18332 case $host_cpu in
18333 hppa*64*|ia64*)
18334 ;;
18335 *)
18336 export_dynamic_flag_spec_CXX='${wl}-E'
18337 ;;
18338 esac
18339 fi
18340 case $host_cpu in
18341 hppa*64*|ia64*)
18342 hardcode_direct_CXX=no
18343 hardcode_shlibpath_var_CXX=no
18344 ;;
18345 *)
18346 hardcode_direct_CXX=yes
18347 hardcode_direct_absolute_CXX=yes
18348 hardcode_minus_L_CXX=yes # Not in the search PATH,
18349 # but as the default
18350 # location of the library.
18351 ;;
18352 esac
18353
18354 case $cc_basename in
18355 CC*)
18356 # FIXME: insert proper C++ library support
18357 ld_shlibs_CXX=no
18358 ;;
18359 aCC*)
18360 case $host_cpu in
18361 hppa*64*)
18362 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18363 ;;
18364 ia64*)
18365 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18366 ;;
18367 *)
18368 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18369 ;;
18370 esac
18371 # Commands to make compiler produce verbose output that lists
18372 # what "hidden" libraries, object files and flags are used when
18373 # linking a shared library.
18374 #
18375 # There doesn't appear to be a way to prevent this compiler from
18376 # explicitly linking system object files so we need to strip them
18377 # from the output so that they don't get included in the library
18378 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018379 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 +000018380 ;;
18381 *)
18382 if test "$GXX" = yes; then
18383 if test $with_gnu_ld = no; then
18384 case $host_cpu in
18385 hppa*64*)
18386 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18387 ;;
18388 ia64*)
cristyda16f162011-02-19 23:52:17 +000018389 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 +000018390 ;;
18391 *)
cristyda16f162011-02-19 23:52:17 +000018392 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 +000018393 ;;
18394 esac
18395 fi
18396 else
18397 # FIXME: insert proper C++ library support
18398 ld_shlibs_CXX=no
18399 fi
18400 ;;
18401 esac
18402 ;;
18403
18404 interix[3-9]*)
18405 hardcode_direct_CXX=no
18406 hardcode_shlibpath_var_CXX=no
18407 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18408 export_dynamic_flag_spec_CXX='${wl}-E'
18409 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18410 # Instead, shared libraries are loaded at an image base (0x10000000 by
18411 # default) and relocated if they conflict, which is a slow very memory
18412 # consuming and fragmenting process. To avoid this, we pick a random,
18413 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18414 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18415 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'
18416 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'
18417 ;;
18418 irix5* | irix6*)
18419 case $cc_basename in
18420 CC*)
18421 # SGI C++
cristy0c60a692010-11-04 01:09:47 +000018422 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 +000018423
18424 # Archives containing C++ object files must be created using
18425 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18426 # necessary to make sure instantiated templates are included
18427 # in the archive.
18428 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18429 ;;
18430 *)
18431 if test "$GXX" = yes; then
18432 if test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000018433 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 +000018434 else
cristyda16f162011-02-19 23:52:17 +000018435 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 +000018436 fi
18437 fi
18438 link_all_deplibs_CXX=yes
18439 ;;
18440 esac
18441 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18442 hardcode_libdir_separator_CXX=:
18443 inherit_rpath_CXX=yes
18444 ;;
18445
cristy0c60a692010-11-04 01:09:47 +000018446 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000018447 case $cc_basename in
18448 KCC*)
18449 # Kuck and Associates, Inc. (KAI) C++ Compiler
18450
18451 # KCC will only create a shared library if the output file
18452 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18453 # to its proper name (with version) after linking.
18454 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'
18455 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'
18456 # Commands to make compiler produce verbose output that lists
18457 # what "hidden" libraries, object files and flags are used when
18458 # linking a shared library.
18459 #
18460 # There doesn't appear to be a way to prevent this compiler from
18461 # explicitly linking system object files so we need to strip them
18462 # from the output so that they don't get included in the library
18463 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018464 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 +000018465
18466 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18467 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18468
18469 # Archives containing C++ object files must be created using
18470 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18471 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18472 ;;
18473 icpc* | ecpc* )
18474 # Intel C++
18475 with_gnu_ld=yes
18476 # version 8.0 and above of icpc choke on multiply defined symbols
18477 # if we add $predep_objects and $postdep_objects, however 7.1 and
18478 # earlier do not add the objects themselves.
18479 case `$CC -V 2>&1` in
18480 *"Version 7."*)
18481 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18482 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'
18483 ;;
18484 *) # Version 8.0 or newer
18485 tmp_idyn=
18486 case $host_cpu in
18487 ia64*) tmp_idyn=' -i_dynamic';;
18488 esac
18489 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18490 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'
18491 ;;
18492 esac
18493 archive_cmds_need_lc_CXX=no
18494 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18495 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18496 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18497 ;;
18498 pgCC* | pgcpp*)
18499 # Portland Group C++ compiler
18500 case `$CC -V` in
cristy0c60a692010-11-04 01:09:47 +000018501 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
cristy73bd4a52010-10-05 11:24:23 +000018502 prelink_cmds_CXX='tpldir=Template.dir~
18503 rm -rf $tpldir~
18504 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
cristy0c60a692010-11-04 01:09:47 +000018505 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
cristy73bd4a52010-10-05 11:24:23 +000018506 old_archive_cmds_CXX='tpldir=Template.dir~
18507 rm -rf $tpldir~
18508 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
cristy0c60a692010-11-04 01:09:47 +000018509 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
cristy73bd4a52010-10-05 11:24:23 +000018510 $RANLIB $oldlib'
18511 archive_cmds_CXX='tpldir=Template.dir~
18512 rm -rf $tpldir~
18513 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000018514 $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 +000018515 archive_expsym_cmds_CXX='tpldir=Template.dir~
18516 rm -rf $tpldir~
18517 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000018518 $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 +000018519 ;;
cristy0c60a692010-11-04 01:09:47 +000018520 *) # Version 6 and above use weak symbols
cristy73bd4a52010-10-05 11:24:23 +000018521 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18522 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'
18523 ;;
18524 esac
18525
18526 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18527 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
cristy0c60a692010-11-04 01:09:47 +000018528 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 +000018529 ;;
18530 cxx*)
18531 # Compaq C++
18532 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18533 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'
18534
18535 runpath_var=LD_RUN_PATH
18536 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18537 hardcode_libdir_separator_CXX=:
18538
18539 # Commands to make compiler produce verbose output that lists
18540 # what "hidden" libraries, object files and flags are used when
18541 # linking a shared library.
18542 #
18543 # There doesn't appear to be a way to prevent this compiler from
18544 # explicitly linking system object files so we need to strip them
18545 # from the output so that they don't get included in the library
18546 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018547 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 +000018548 ;;
cristy0c60a692010-11-04 01:09:47 +000018549 xl* | mpixl* | bgxl*)
cristy73bd4a52010-10-05 11:24:23 +000018550 # IBM XL 8.0 on PPC, with GNU ld
18551 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18552 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18553 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18554 if test "x$supports_anon_versioning" = xyes; then
18555 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
18556 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18557 echo "local: *; };" >> $output_objdir/$libname.ver~
18558 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18559 fi
18560 ;;
18561 *)
18562 case `$CC -V 2>&1 | sed 5q` in
18563 *Sun\ C*)
18564 # Sun C++ 5.9
18565 no_undefined_flag_CXX=' -zdefs'
18566 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18567 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'
18568 hardcode_libdir_flag_spec_CXX='-R$libdir'
cristy0c60a692010-11-04 01:09:47 +000018569 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 +000018570 compiler_needs_object_CXX=yes
18571
18572 # Not sure whether something based on
18573 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
18574 # would be better.
cristy0c60a692010-11-04 01:09:47 +000018575 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000018576
18577 # Archives containing C++ object files must be created using
18578 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18579 # necessary to make sure instantiated templates are included
18580 # in the archive.
18581 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18582 ;;
18583 esac
18584 ;;
18585 esac
18586 ;;
18587
18588 lynxos*)
18589 # FIXME: insert proper C++ library support
18590 ld_shlibs_CXX=no
18591 ;;
18592
18593 m88k*)
18594 # FIXME: insert proper C++ library support
18595 ld_shlibs_CXX=no
18596 ;;
18597
18598 mvs*)
18599 case $cc_basename in
18600 cxx*)
18601 # FIXME: insert proper C++ library support
18602 ld_shlibs_CXX=no
18603 ;;
18604 *)
18605 # FIXME: insert proper C++ library support
18606 ld_shlibs_CXX=no
18607 ;;
18608 esac
18609 ;;
18610
18611 netbsd*)
18612 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18613 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18614 wlarc=
18615 hardcode_libdir_flag_spec_CXX='-R$libdir'
18616 hardcode_direct_CXX=yes
18617 hardcode_shlibpath_var_CXX=no
18618 fi
18619 # Workaround some broken pre-1.5 toolchains
18620 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18621 ;;
18622
18623 *nto* | *qnx*)
18624 ld_shlibs_CXX=yes
18625 ;;
18626
18627 openbsd2*)
18628 # C++ shared libraries are fairly broken
18629 ld_shlibs_CXX=no
18630 ;;
18631
18632 openbsd*)
18633 if test -f /usr/libexec/ld.so; then
18634 hardcode_direct_CXX=yes
18635 hardcode_shlibpath_var_CXX=no
18636 hardcode_direct_absolute_CXX=yes
18637 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18638 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18639 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18640 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18641 export_dynamic_flag_spec_CXX='${wl}-E'
18642 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18643 fi
cristy0c60a692010-11-04 01:09:47 +000018644 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000018645 else
18646 ld_shlibs_CXX=no
18647 fi
18648 ;;
18649
18650 osf3* | osf4* | osf5*)
18651 case $cc_basename in
18652 KCC*)
18653 # Kuck and Associates, Inc. (KAI) C++ Compiler
18654
18655 # KCC will only create a shared library if the output file
18656 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18657 # to its proper name (with version) after linking.
18658 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'
18659
18660 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18661 hardcode_libdir_separator_CXX=:
18662
18663 # Archives containing C++ object files must be created using
18664 # the KAI C++ compiler.
18665 case $host in
18666 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
18667 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
18668 esac
18669 ;;
18670 RCC*)
18671 # Rational C++ 2.4.1
18672 # FIXME: insert proper C++ library support
18673 ld_shlibs_CXX=no
18674 ;;
18675 cxx*)
18676 case $host in
18677 osf3*)
18678 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000018679 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 +000018680 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18681 ;;
18682 *)
18683 allow_undefined_flag_CXX=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000018684 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 +000018685 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18686 echo "-hidden">> $lib.exp~
cristy0c60a692010-11-04 01:09:47 +000018687 $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 +000018688 $RM $lib.exp'
18689 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18690 ;;
18691 esac
18692
18693 hardcode_libdir_separator_CXX=:
18694
18695 # Commands to make compiler produce verbose output that lists
18696 # what "hidden" libraries, object files and flags are used when
18697 # linking a shared library.
18698 #
18699 # There doesn't appear to be a way to prevent this compiler from
18700 # explicitly linking system object files so we need to strip them
18701 # from the output so that they don't get included in the library
18702 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018703 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 +000018704 ;;
18705 *)
18706 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18707 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18708 case $host in
18709 osf3*)
cristy0c60a692010-11-04 01:09:47 +000018710 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 +000018711 ;;
18712 *)
cristyda16f162011-02-19 23:52:17 +000018713 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 +000018714 ;;
18715 esac
18716
18717 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18718 hardcode_libdir_separator_CXX=:
18719
18720 # Commands to make compiler produce verbose output that lists
18721 # what "hidden" libraries, object files and flags are used when
18722 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018723 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018724
18725 else
18726 # FIXME: insert proper C++ library support
18727 ld_shlibs_CXX=no
18728 fi
18729 ;;
18730 esac
18731 ;;
18732
18733 psos*)
18734 # FIXME: insert proper C++ library support
18735 ld_shlibs_CXX=no
18736 ;;
18737
18738 sunos4*)
18739 case $cc_basename in
18740 CC*)
18741 # Sun C++ 4.x
18742 # FIXME: insert proper C++ library support
18743 ld_shlibs_CXX=no
18744 ;;
18745 lcc*)
18746 # Lucid
18747 # FIXME: insert proper C++ library support
18748 ld_shlibs_CXX=no
18749 ;;
18750 *)
18751 # FIXME: insert proper C++ library support
18752 ld_shlibs_CXX=no
18753 ;;
18754 esac
18755 ;;
18756
18757 solaris*)
18758 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000018759 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000018760 # Sun C++ 4.2, 5.x and Centerline C++
18761 archive_cmds_need_lc_CXX=yes
18762 no_undefined_flag_CXX=' -zdefs'
18763 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18764 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18765 $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'
18766
18767 hardcode_libdir_flag_spec_CXX='-R$libdir'
18768 hardcode_shlibpath_var_CXX=no
18769 case $host_os in
18770 solaris2.[0-5] | solaris2.[0-5].*) ;;
18771 *)
18772 # The compiler driver will combine and reorder linker options,
18773 # but understands `-z linker_flag'.
18774 # Supported since Solaris 2.6 (maybe 2.5.1?)
18775 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
18776 ;;
18777 esac
18778 link_all_deplibs_CXX=yes
18779
cristy0c60a692010-11-04 01:09:47 +000018780 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000018781
18782 # Archives containing C++ object files must be created using
18783 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18784 # necessary to make sure instantiated templates are included
18785 # in the archive.
18786 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18787 ;;
18788 gcx*)
18789 # Green Hills C++ Compiler
18790 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18791
18792 # The C++ compiler must be used to create the archive.
18793 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18794 ;;
18795 *)
18796 # GNU C++ compiler with Solaris linker
18797 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18798 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
18799 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000018800 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 +000018801 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 +000018802 $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 +000018803
18804 # Commands to make compiler produce verbose output that lists
18805 # what "hidden" libraries, object files and flags are used when
18806 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018807 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018808 else
18809 # g++ 2.7 appears to require `-G' NOT `-shared' on this
18810 # platform.
18811 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18812 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18813 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
18814
18815 # Commands to make compiler produce verbose output that lists
18816 # what "hidden" libraries, object files and flags are used when
18817 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018818 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018819 fi
18820
18821 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
18822 case $host_os in
18823 solaris2.[0-5] | solaris2.[0-5].*) ;;
18824 *)
18825 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18826 ;;
18827 esac
18828 fi
18829 ;;
18830 esac
18831 ;;
18832
18833 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18834 no_undefined_flag_CXX='${wl}-z,text'
18835 archive_cmds_need_lc_CXX=no
18836 hardcode_shlibpath_var_CXX=no
18837 runpath_var='LD_RUN_PATH'
18838
18839 case $cc_basename in
18840 CC*)
18841 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18842 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18843 ;;
18844 *)
18845 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18846 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18847 ;;
18848 esac
18849 ;;
18850
18851 sysv5* | sco3.2v5* | sco5v6*)
18852 # Note: We can NOT use -z defs as we might desire, because we do not
18853 # link with -lc, and that would cause any symbols used from libc to
18854 # always be unresolved, which means just about no library would
18855 # ever link correctly. If we're not using GNU ld we use -z text
18856 # though, which does catch some bad symbols but isn't as heavy-handed
18857 # as -z defs.
18858 no_undefined_flag_CXX='${wl}-z,text'
18859 allow_undefined_flag_CXX='${wl}-z,nodefs'
18860 archive_cmds_need_lc_CXX=no
18861 hardcode_shlibpath_var_CXX=no
18862 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
18863 hardcode_libdir_separator_CXX=':'
18864 link_all_deplibs_CXX=yes
18865 export_dynamic_flag_spec_CXX='${wl}-Bexport'
18866 runpath_var='LD_RUN_PATH'
18867
18868 case $cc_basename in
18869 CC*)
18870 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18871 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 +000018872 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
18873 '"$old_archive_cmds_CXX"
18874 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
18875 '"$reload_cmds_CXX"
cristy73bd4a52010-10-05 11:24:23 +000018876 ;;
18877 *)
18878 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18879 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18880 ;;
18881 esac
18882 ;;
18883
18884 tandem*)
18885 case $cc_basename in
18886 NCC*)
18887 # NonStop-UX NCC 3.20
18888 # FIXME: insert proper C++ library support
18889 ld_shlibs_CXX=no
18890 ;;
18891 *)
18892 # FIXME: insert proper C++ library support
18893 ld_shlibs_CXX=no
18894 ;;
18895 esac
18896 ;;
18897
18898 vxworks*)
18899 # FIXME: insert proper C++ library support
18900 ld_shlibs_CXX=no
18901 ;;
18902
18903 *)
18904 # FIXME: insert proper C++ library support
18905 ld_shlibs_CXX=no
18906 ;;
18907 esac
18908
18909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18910$as_echo "$ld_shlibs_CXX" >&6; }
18911 test "$ld_shlibs_CXX" = no && can_build_shared=no
18912
18913 GCC_CXX="$GXX"
18914 LD_CXX="$LD"
18915
18916 ## CAVEAT EMPTOR:
18917 ## There is no encapsulation within the following macros, do not change
18918 ## the running order or otherwise move them around unless you know exactly
18919 ## what you are doing...
18920 # Dependencies to place before and after the object being linked:
18921predep_objects_CXX=
18922postdep_objects_CXX=
18923predeps_CXX=
18924postdeps_CXX=
18925compiler_lib_search_path_CXX=
18926
18927cat > conftest.$ac_ext <<_LT_EOF
18928class Foo
18929{
18930public:
18931 Foo (void) { a = 0; }
18932private:
18933 int a;
18934};
18935_LT_EOF
18936
cristyda16f162011-02-19 23:52:17 +000018937
18938_lt_libdeps_save_CFLAGS=$CFLAGS
18939case "$CC $CFLAGS " in #(
18940*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
18941*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
cristy99bd5232011-12-07 14:38:20 +000018942*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
cristyda16f162011-02-19 23:52:17 +000018943esac
18944
cristy73bd4a52010-10-05 11:24:23 +000018945if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18946 (eval $ac_compile) 2>&5
18947 ac_status=$?
18948 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18949 test $ac_status = 0; }; then
18950 # Parse the compiler output and extract the necessary
18951 # objects, libraries and library flags.
18952
18953 # Sentinel used to keep track of whether or not we are before
18954 # the conftest object file.
18955 pre_test_object_deps_done=no
18956
18957 for p in `eval "$output_verbose_link_cmd"`; do
cristyda16f162011-02-19 23:52:17 +000018958 case ${prev}${p} in
cristy73bd4a52010-10-05 11:24:23 +000018959
18960 -L* | -R* | -l*)
18961 # Some compilers place space between "-{L,R}" and the path.
18962 # Remove the space.
18963 if test $p = "-L" ||
18964 test $p = "-R"; then
18965 prev=$p
18966 continue
cristy73bd4a52010-10-05 11:24:23 +000018967 fi
18968
cristyda16f162011-02-19 23:52:17 +000018969 # Expand the sysroot to ease extracting the directories later.
18970 if test -z "$prev"; then
18971 case $p in
18972 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
18973 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
18974 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
18975 esac
18976 fi
18977 case $p in
18978 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
18979 esac
cristy73bd4a52010-10-05 11:24:23 +000018980 if test "$pre_test_object_deps_done" = no; then
cristyda16f162011-02-19 23:52:17 +000018981 case ${prev} in
18982 -L | -R)
cristy73bd4a52010-10-05 11:24:23 +000018983 # Internal compiler library paths should come after those
18984 # provided the user. The postdeps already come after the
18985 # user supplied libs so there is no need to process them.
18986 if test -z "$compiler_lib_search_path_CXX"; then
18987 compiler_lib_search_path_CXX="${prev}${p}"
18988 else
18989 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
18990 fi
18991 ;;
18992 # The "-l" case would never come before the object being
18993 # linked, so don't bother handling this case.
18994 esac
18995 else
18996 if test -z "$postdeps_CXX"; then
18997 postdeps_CXX="${prev}${p}"
18998 else
18999 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19000 fi
19001 fi
cristyda16f162011-02-19 23:52:17 +000019002 prev=
cristy73bd4a52010-10-05 11:24:23 +000019003 ;;
19004
cristyda16f162011-02-19 23:52:17 +000019005 *.lto.$objext) ;; # Ignore GCC LTO objects
cristy73bd4a52010-10-05 11:24:23 +000019006 *.$objext)
19007 # This assumes that the test object file only shows up
19008 # once in the compiler output.
19009 if test "$p" = "conftest.$objext"; then
19010 pre_test_object_deps_done=yes
19011 continue
19012 fi
19013
19014 if test "$pre_test_object_deps_done" = no; then
19015 if test -z "$predep_objects_CXX"; then
19016 predep_objects_CXX="$p"
19017 else
19018 predep_objects_CXX="$predep_objects_CXX $p"
19019 fi
19020 else
19021 if test -z "$postdep_objects_CXX"; then
19022 postdep_objects_CXX="$p"
19023 else
19024 postdep_objects_CXX="$postdep_objects_CXX $p"
19025 fi
19026 fi
19027 ;;
19028
19029 *) ;; # Ignore the rest.
19030
19031 esac
19032 done
19033
19034 # Clean up.
19035 rm -f a.out a.exe
19036else
19037 echo "libtool.m4: error: problem compiling CXX test program"
19038fi
19039
19040$RM -f confest.$objext
cristyda16f162011-02-19 23:52:17 +000019041CFLAGS=$_lt_libdeps_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000019042
19043# PORTME: override above test on systems where it is broken
19044case $host_os in
19045interix[3-9]*)
19046 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19047 # hack all around it, let's just trust "g++" to DTRT.
19048 predep_objects_CXX=
19049 postdep_objects_CXX=
19050 postdeps_CXX=
19051 ;;
19052
19053linux*)
19054 case `$CC -V 2>&1 | sed 5q` in
19055 *Sun\ C*)
19056 # Sun C++ 5.9
19057
19058 # The more standards-conforming stlport4 library is
19059 # incompatible with the Cstd library. Avoid specifying
19060 # it if it's in CXXFLAGS. Ignore libCrun as
19061 # -library=stlport4 depends on it.
19062 case " $CXX $CXXFLAGS " in
19063 *" -library=stlport4 "*)
19064 solaris_use_stlport4=yes
19065 ;;
19066 esac
19067
19068 if test "$solaris_use_stlport4" != yes; then
19069 postdeps_CXX='-library=Cstd -library=Crun'
19070 fi
19071 ;;
19072 esac
19073 ;;
19074
19075solaris*)
19076 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000019077 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000019078 # The more standards-conforming stlport4 library is
19079 # incompatible with the Cstd library. Avoid specifying
19080 # it if it's in CXXFLAGS. Ignore libCrun as
19081 # -library=stlport4 depends on it.
19082 case " $CXX $CXXFLAGS " in
19083 *" -library=stlport4 "*)
19084 solaris_use_stlport4=yes
19085 ;;
19086 esac
19087
19088 # Adding this requires a known-good setup of shared libraries for
19089 # Sun compiler versions before 5.6, else PIC objects from an old
19090 # archive will be linked into the output, leading to subtle bugs.
19091 if test "$solaris_use_stlport4" != yes; then
19092 postdeps_CXX='-library=Cstd -library=Crun'
19093 fi
19094 ;;
19095 esac
19096 ;;
19097esac
19098
19099
19100case " $postdeps_CXX " in
19101*" -lc "*) archive_cmds_need_lc_CXX=no ;;
19102esac
19103 compiler_lib_search_dirs_CXX=
19104if test -n "${compiler_lib_search_path_CXX}"; then
19105 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19106fi
19107
19108
19109
19110
19111
19112
19113
19114
19115
19116
19117
19118
19119
19120
19121
19122
19123
19124
19125
19126
19127
19128
19129
19130
19131
19132
19133
19134
19135
19136
19137
19138 lt_prog_compiler_wl_CXX=
19139lt_prog_compiler_pic_CXX=
19140lt_prog_compiler_static_CXX=
19141
cristy73bd4a52010-10-05 11:24:23 +000019142
19143 # C++ specific cases for pic, static, wl, etc.
19144 if test "$GXX" = yes; then
19145 lt_prog_compiler_wl_CXX='-Wl,'
19146 lt_prog_compiler_static_CXX='-static'
19147
19148 case $host_os in
19149 aix*)
19150 # All AIX code is PIC.
19151 if test "$host_cpu" = ia64; then
19152 # AIX 5 now supports IA64 processor
19153 lt_prog_compiler_static_CXX='-Bstatic'
19154 fi
19155 ;;
19156
19157 amigaos*)
19158 case $host_cpu in
19159 powerpc)
19160 # see comment about AmigaOS4 .so support
19161 lt_prog_compiler_pic_CXX='-fPIC'
19162 ;;
19163 m68k)
19164 # FIXME: we need at least 68020 code to build shared libraries, but
19165 # adding the `-m68020' flag to GCC prevents building anything better,
19166 # like `-m68040'.
19167 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19168 ;;
19169 esac
19170 ;;
19171
19172 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19173 # PIC is the default for these OSes.
19174 ;;
19175 mingw* | cygwin* | os2* | pw32* | cegcc*)
19176 # This hack is so that the source file can tell whether it is being
19177 # built for inclusion in a dll (and should export symbols for example).
19178 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19179 # (--disable-auto-import) libraries
19180 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19181 ;;
19182 darwin* | rhapsody*)
19183 # PIC is the default on this platform
19184 # Common symbols not allowed in MH_DYLIB files
19185 lt_prog_compiler_pic_CXX='-fno-common'
19186 ;;
19187 *djgpp*)
19188 # DJGPP does not support shared libraries at all
19189 lt_prog_compiler_pic_CXX=
19190 ;;
cristy0c60a692010-11-04 01:09:47 +000019191 haiku*)
19192 # PIC is the default for Haiku.
19193 # The "-static" flag exists, but is broken.
19194 lt_prog_compiler_static_CXX=
19195 ;;
cristy73bd4a52010-10-05 11:24:23 +000019196 interix[3-9]*)
19197 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19198 # Instead, we relocate shared libraries at runtime.
19199 ;;
19200 sysv4*MP*)
19201 if test -d /usr/nec; then
19202 lt_prog_compiler_pic_CXX=-Kconform_pic
19203 fi
19204 ;;
19205 hpux*)
19206 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19207 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19208 # sets the default TLS model and affects inlining.
19209 case $host_cpu in
19210 hppa*64*)
19211 ;;
19212 *)
19213 lt_prog_compiler_pic_CXX='-fPIC'
19214 ;;
19215 esac
19216 ;;
19217 *qnx* | *nto*)
19218 # QNX uses GNU C++, but need to define -shared option too, otherwise
19219 # it will coredump.
19220 lt_prog_compiler_pic_CXX='-fPIC -shared'
19221 ;;
19222 *)
19223 lt_prog_compiler_pic_CXX='-fPIC'
19224 ;;
19225 esac
19226 else
19227 case $host_os in
19228 aix[4-9]*)
19229 # All AIX code is PIC.
19230 if test "$host_cpu" = ia64; then
19231 # AIX 5 now supports IA64 processor
19232 lt_prog_compiler_static_CXX='-Bstatic'
19233 else
19234 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19235 fi
19236 ;;
19237 chorus*)
19238 case $cc_basename in
19239 cxch68*)
19240 # Green Hills C++ Compiler
19241 # _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"
19242 ;;
19243 esac
19244 ;;
cristyda16f162011-02-19 23:52:17 +000019245 mingw* | cygwin* | os2* | pw32* | cegcc*)
19246 # This hack is so that the source file can tell whether it is being
19247 # built for inclusion in a dll (and should export symbols for example).
19248 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19249 ;;
cristy73bd4a52010-10-05 11:24:23 +000019250 dgux*)
19251 case $cc_basename in
19252 ec++*)
19253 lt_prog_compiler_pic_CXX='-KPIC'
19254 ;;
19255 ghcx*)
19256 # Green Hills C++ Compiler
19257 lt_prog_compiler_pic_CXX='-pic'
19258 ;;
19259 *)
19260 ;;
19261 esac
19262 ;;
19263 freebsd* | dragonfly*)
19264 # FreeBSD uses GNU C++
19265 ;;
19266 hpux9* | hpux10* | hpux11*)
19267 case $cc_basename in
19268 CC*)
19269 lt_prog_compiler_wl_CXX='-Wl,'
19270 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19271 if test "$host_cpu" != ia64; then
19272 lt_prog_compiler_pic_CXX='+Z'
19273 fi
19274 ;;
19275 aCC*)
19276 lt_prog_compiler_wl_CXX='-Wl,'
19277 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19278 case $host_cpu in
19279 hppa*64*|ia64*)
19280 # +Z the default
19281 ;;
19282 *)
19283 lt_prog_compiler_pic_CXX='+Z'
19284 ;;
19285 esac
19286 ;;
19287 *)
19288 ;;
19289 esac
19290 ;;
19291 interix*)
19292 # This is c89, which is MS Visual C++ (no shared libs)
19293 # Anyone wants to do a port?
19294 ;;
19295 irix5* | irix6* | nonstopux*)
19296 case $cc_basename in
19297 CC*)
19298 lt_prog_compiler_wl_CXX='-Wl,'
19299 lt_prog_compiler_static_CXX='-non_shared'
19300 # CC pic flag -KPIC is the default.
19301 ;;
19302 *)
19303 ;;
19304 esac
19305 ;;
cristy0c60a692010-11-04 01:09:47 +000019306 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000019307 case $cc_basename in
19308 KCC*)
19309 # KAI C++ Compiler
19310 lt_prog_compiler_wl_CXX='--backend -Wl,'
19311 lt_prog_compiler_pic_CXX='-fPIC'
19312 ;;
19313 ecpc* )
19314 # old Intel C++ for x86_64 which still supported -KPIC.
19315 lt_prog_compiler_wl_CXX='-Wl,'
19316 lt_prog_compiler_pic_CXX='-KPIC'
19317 lt_prog_compiler_static_CXX='-static'
19318 ;;
19319 icpc* )
19320 # Intel C++, used to be incompatible with GCC.
19321 # ICC 10 doesn't accept -KPIC any more.
19322 lt_prog_compiler_wl_CXX='-Wl,'
19323 lt_prog_compiler_pic_CXX='-fPIC'
19324 lt_prog_compiler_static_CXX='-static'
19325 ;;
19326 pgCC* | pgcpp*)
19327 # Portland Group C++ compiler
19328 lt_prog_compiler_wl_CXX='-Wl,'
19329 lt_prog_compiler_pic_CXX='-fpic'
19330 lt_prog_compiler_static_CXX='-Bstatic'
19331 ;;
19332 cxx*)
19333 # Compaq C++
19334 # Make sure the PIC flag is empty. It appears that all Alpha
19335 # Linux and Compaq Tru64 Unix objects are PIC.
19336 lt_prog_compiler_pic_CXX=
19337 lt_prog_compiler_static_CXX='-non_shared'
19338 ;;
cristy0c60a692010-11-04 01:09:47 +000019339 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
19340 # IBM XL 8.0, 9.0 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000019341 lt_prog_compiler_wl_CXX='-Wl,'
19342 lt_prog_compiler_pic_CXX='-qpic'
19343 lt_prog_compiler_static_CXX='-qstaticlink'
19344 ;;
19345 *)
19346 case `$CC -V 2>&1 | sed 5q` in
19347 *Sun\ C*)
19348 # Sun C++ 5.9
19349 lt_prog_compiler_pic_CXX='-KPIC'
19350 lt_prog_compiler_static_CXX='-Bstatic'
19351 lt_prog_compiler_wl_CXX='-Qoption ld '
19352 ;;
19353 esac
19354 ;;
19355 esac
19356 ;;
19357 lynxos*)
19358 ;;
19359 m88k*)
19360 ;;
19361 mvs*)
19362 case $cc_basename in
19363 cxx*)
19364 lt_prog_compiler_pic_CXX='-W c,exportall'
19365 ;;
19366 *)
19367 ;;
19368 esac
19369 ;;
19370 netbsd*)
19371 ;;
19372 *qnx* | *nto*)
19373 # QNX uses GNU C++, but need to define -shared option too, otherwise
19374 # it will coredump.
19375 lt_prog_compiler_pic_CXX='-fPIC -shared'
19376 ;;
19377 osf3* | osf4* | osf5*)
19378 case $cc_basename in
19379 KCC*)
19380 lt_prog_compiler_wl_CXX='--backend -Wl,'
19381 ;;
19382 RCC*)
19383 # Rational C++ 2.4.1
19384 lt_prog_compiler_pic_CXX='-pic'
19385 ;;
19386 cxx*)
19387 # Digital/Compaq C++
19388 lt_prog_compiler_wl_CXX='-Wl,'
19389 # Make sure the PIC flag is empty. It appears that all Alpha
19390 # Linux and Compaq Tru64 Unix objects are PIC.
19391 lt_prog_compiler_pic_CXX=
19392 lt_prog_compiler_static_CXX='-non_shared'
19393 ;;
19394 *)
19395 ;;
19396 esac
19397 ;;
19398 psos*)
19399 ;;
19400 solaris*)
19401 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000019402 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000019403 # Sun C++ 4.2, 5.x and Centerline C++
19404 lt_prog_compiler_pic_CXX='-KPIC'
19405 lt_prog_compiler_static_CXX='-Bstatic'
19406 lt_prog_compiler_wl_CXX='-Qoption ld '
19407 ;;
19408 gcx*)
19409 # Green Hills C++ Compiler
19410 lt_prog_compiler_pic_CXX='-PIC'
19411 ;;
19412 *)
19413 ;;
19414 esac
19415 ;;
19416 sunos4*)
19417 case $cc_basename in
19418 CC*)
19419 # Sun C++ 4.x
19420 lt_prog_compiler_pic_CXX='-pic'
19421 lt_prog_compiler_static_CXX='-Bstatic'
19422 ;;
19423 lcc*)
19424 # Lucid
19425 lt_prog_compiler_pic_CXX='-pic'
19426 ;;
19427 *)
19428 ;;
19429 esac
19430 ;;
19431 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19432 case $cc_basename in
19433 CC*)
19434 lt_prog_compiler_wl_CXX='-Wl,'
19435 lt_prog_compiler_pic_CXX='-KPIC'
19436 lt_prog_compiler_static_CXX='-Bstatic'
19437 ;;
19438 esac
19439 ;;
19440 tandem*)
19441 case $cc_basename in
19442 NCC*)
19443 # NonStop-UX NCC 3.20
19444 lt_prog_compiler_pic_CXX='-KPIC'
19445 ;;
19446 *)
19447 ;;
19448 esac
19449 ;;
19450 vxworks*)
19451 ;;
19452 *)
19453 lt_prog_compiler_can_build_shared_CXX=no
19454 ;;
19455 esac
19456 fi
19457
19458case $host_os in
19459 # For platforms which do not support PIC, -DPIC is meaningless:
19460 *djgpp*)
19461 lt_prog_compiler_pic_CXX=
19462 ;;
19463 *)
19464 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19465 ;;
19466esac
cristy73bd4a52010-10-05 11:24:23 +000019467
cristyda16f162011-02-19 23:52:17 +000019468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19469$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19470if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
19471 $as_echo_n "(cached) " >&6
19472else
19473 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
19474fi
19475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
19476$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
19477lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
cristy73bd4a52010-10-05 11:24:23 +000019478
19479#
19480# Check to make sure the PIC flag actually works.
19481#
19482if test -n "$lt_prog_compiler_pic_CXX"; then
19483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19484$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019485if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019486 $as_echo_n "(cached) " >&6
19487else
19488 lt_cv_prog_compiler_pic_works_CXX=no
19489 ac_outfile=conftest.$ac_objext
19490 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19491 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19492 # Insert the option either (1) after the last *FLAGS variable, or
19493 # (2) before a word containing "conftest.", or (3) at the end.
19494 # Note that $ac_compile itself does not contain backslashes and begins
19495 # with a dollar sign (not a hyphen), so the echo should work correctly.
19496 # The option is referenced via a variable to avoid confusing sed.
19497 lt_compile=`echo "$ac_compile" | $SED \
19498 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19499 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19500 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000019501 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000019502 (eval "$lt_compile" 2>conftest.err)
19503 ac_status=$?
19504 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000019505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000019506 if (exit $ac_status) && test -s "$ac_outfile"; then
19507 # The compiler can only warn and ignore the option if not recognized
19508 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000019509 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019510 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19511 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19512 lt_cv_prog_compiler_pic_works_CXX=yes
19513 fi
19514 fi
19515 $RM conftest*
19516
19517fi
19518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
19519$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
19520
19521if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
19522 case $lt_prog_compiler_pic_CXX in
19523 "" | " "*) ;;
19524 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19525 esac
19526else
19527 lt_prog_compiler_pic_CXX=
19528 lt_prog_compiler_can_build_shared_CXX=no
19529fi
19530
19531fi
19532
19533
19534
cristyda16f162011-02-19 23:52:17 +000019535
19536
cristy73bd4a52010-10-05 11:24:23 +000019537#
19538# Check to make sure the static flag actually works.
19539#
19540wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19542$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019543if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019544 $as_echo_n "(cached) " >&6
19545else
19546 lt_cv_prog_compiler_static_works_CXX=no
19547 save_LDFLAGS="$LDFLAGS"
19548 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19549 echo "$lt_simple_link_test_code" > conftest.$ac_ext
19550 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19551 # The linker can only warn and ignore the option if not recognized
19552 # So say no if there are warnings
19553 if test -s conftest.err; then
19554 # Append any errors to the config.log.
19555 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000019556 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019557 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19558 if diff conftest.exp conftest.er2 >/dev/null; then
19559 lt_cv_prog_compiler_static_works_CXX=yes
19560 fi
19561 else
19562 lt_cv_prog_compiler_static_works_CXX=yes
19563 fi
19564 fi
19565 $RM -r conftest*
19566 LDFLAGS="$save_LDFLAGS"
19567
19568fi
19569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
19570$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
19571
19572if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
19573 :
19574else
19575 lt_prog_compiler_static_CXX=
19576fi
19577
19578
19579
19580
19581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19582$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019583if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019584 $as_echo_n "(cached) " >&6
19585else
19586 lt_cv_prog_compiler_c_o_CXX=no
19587 $RM -r conftest 2>/dev/null
19588 mkdir conftest
19589 cd conftest
19590 mkdir out
19591 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19592
19593 lt_compiler_flag="-o out/conftest2.$ac_objext"
19594 # Insert the option either (1) after the last *FLAGS variable, or
19595 # (2) before a word containing "conftest.", or (3) at the end.
19596 # Note that $ac_compile itself does not contain backslashes and begins
19597 # with a dollar sign (not a hyphen), so the echo should work correctly.
19598 lt_compile=`echo "$ac_compile" | $SED \
19599 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19600 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19601 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000019602 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000019603 (eval "$lt_compile" 2>out/conftest.err)
19604 ac_status=$?
19605 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000019606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000019607 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19608 then
19609 # The compiler can only warn and ignore the option if not recognized
19610 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000019611 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019612 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19613 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19614 lt_cv_prog_compiler_c_o_CXX=yes
19615 fi
19616 fi
19617 chmod u+w . 2>&5
19618 $RM conftest*
19619 # SGI C++ compiler will create directory out/ii_files/ for
19620 # template instantiation
19621 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19622 $RM out/* && rmdir out
19623 cd ..
19624 $RM -r conftest
19625 $RM conftest*
19626
19627fi
19628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19629$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19630
19631
19632
19633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19634$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019635if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019636 $as_echo_n "(cached) " >&6
19637else
19638 lt_cv_prog_compiler_c_o_CXX=no
19639 $RM -r conftest 2>/dev/null
19640 mkdir conftest
19641 cd conftest
19642 mkdir out
19643 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19644
19645 lt_compiler_flag="-o out/conftest2.$ac_objext"
19646 # Insert the option either (1) after the last *FLAGS variable, or
19647 # (2) before a word containing "conftest.", or (3) at the end.
19648 # Note that $ac_compile itself does not contain backslashes and begins
19649 # with a dollar sign (not a hyphen), so the echo should work correctly.
19650 lt_compile=`echo "$ac_compile" | $SED \
19651 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19652 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19653 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000019654 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000019655 (eval "$lt_compile" 2>out/conftest.err)
19656 ac_status=$?
19657 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000019658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000019659 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19660 then
19661 # The compiler can only warn and ignore the option if not recognized
19662 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000019663 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019664 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19665 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19666 lt_cv_prog_compiler_c_o_CXX=yes
19667 fi
19668 fi
19669 chmod u+w . 2>&5
19670 $RM conftest*
19671 # SGI C++ compiler will create directory out/ii_files/ for
19672 # template instantiation
19673 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19674 $RM out/* && rmdir out
19675 cd ..
19676 $RM -r conftest
19677 $RM conftest*
19678
19679fi
19680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19681$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19682
19683
19684
19685
19686hard_links="nottested"
19687if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19688 # do not overwrite the value of need_locks provided by the user
19689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
19690$as_echo_n "checking if we can lock with hard links... " >&6; }
19691 hard_links=yes
19692 $RM conftest*
19693 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19694 touch conftest.a
19695 ln conftest.a conftest.b 2>&5 || hard_links=no
19696 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
19698$as_echo "$hard_links" >&6; }
19699 if test "$hard_links" = no; then
19700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19701$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19702 need_locks=warn
19703 fi
19704else
19705 need_locks=no
19706fi
19707
19708
19709
19710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19711$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19712
19713 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000019714 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
cristy73bd4a52010-10-05 11:24:23 +000019715 case $host_os in
19716 aix[4-9]*)
19717 # If we're using GNU nm, then we don't want the "-C" option.
19718 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000019719 # Also, AIX nm treats weak defined symbols like other global defined
19720 # symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000019721 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000019722 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 +000019723 else
19724 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'
19725 fi
19726 ;;
19727 pw32*)
19728 export_symbols_cmds_CXX="$ltdll_cmds"
cristyda16f162011-02-19 23:52:17 +000019729 ;;
cristy73bd4a52010-10-05 11:24:23 +000019730 cygwin* | mingw* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000019731 case $cc_basename in
cristy99bd5232011-12-07 14:38:20 +000019732 cl*)
19733 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
19734 ;;
cristyda16f162011-02-19 23:52:17 +000019735 *)
19736 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'
19737 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
19738 ;;
19739 esac
19740 ;;
cristy73bd4a52010-10-05 11:24:23 +000019741 *)
19742 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000019743 ;;
cristy73bd4a52010-10-05 11:24:23 +000019744 esac
cristy73bd4a52010-10-05 11:24:23 +000019745
19746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19747$as_echo "$ld_shlibs_CXX" >&6; }
19748test "$ld_shlibs_CXX" = no && can_build_shared=no
19749
19750with_gnu_ld_CXX=$with_gnu_ld
19751
19752
19753
19754
19755
19756
19757#
19758# Do we need to explicitly link libc?
19759#
19760case "x$archive_cmds_need_lc_CXX" in
19761x|xyes)
19762 # Assume -lc should be added
19763 archive_cmds_need_lc_CXX=yes
19764
19765 if test "$enable_shared" = yes && test "$GCC" = yes; then
19766 case $archive_cmds_CXX in
19767 *'~'*)
19768 # FIXME: we may have to deal with multi-command sequences.
19769 ;;
19770 '$CC '*)
19771 # Test whether the compiler implicitly links with -lc since on some
19772 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19773 # to ld, don't add -lc before -lgcc.
19774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
19775$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019776if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000019777 $as_echo_n "(cached) " >&6
19778else
19779 $RM conftest*
19780 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000019781
cristy0c60a692010-11-04 01:09:47 +000019782 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000019783 (eval $ac_compile) 2>&5
19784 ac_status=$?
19785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19786 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000019787 soname=conftest
19788 lib=conftest
19789 libobjs=conftest.$ac_objext
19790 deplibs=
19791 wl=$lt_prog_compiler_wl_CXX
19792 pic_flag=$lt_prog_compiler_pic_CXX
19793 compiler_flags=-v
19794 linker_flags=-v
19795 verstring=
19796 output_objdir=.
19797 libname=conftest
19798 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19799 allow_undefined_flag_CXX=
19800 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 +000019801 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
19802 ac_status=$?
19803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19804 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000019805 then
19806 lt_cv_archive_cmds_need_lc_CXX=no
19807 else
19808 lt_cv_archive_cmds_need_lc_CXX=yes
19809 fi
19810 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19811 else
19812 cat conftest.err 1>&5
19813 fi
19814 $RM conftest*
19815
19816fi
19817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
19818$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
19819 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
cristy73bd4a52010-10-05 11:24:23 +000019820 ;;
19821 esac
19822 fi
19823 ;;
19824esac
19825
19826
19827
19828
19829
19830
19831
19832
19833
19834
19835
19836
19837
19838
19839
19840
19841
19842
19843
19844
19845
19846
19847
19848
19849
19850
19851
19852
19853
19854
19855
19856
19857
19858
19859
19860
19861
19862
19863
19864
19865
19866
19867
19868
19869
19870
19871
19872
19873
19874
19875
19876
19877
19878
19879
19880
19881
19882
19883
19884
19885
19886
cristy73bd4a52010-10-05 11:24:23 +000019887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
19888$as_echo_n "checking dynamic linker characteristics... " >&6; }
19889
19890library_names_spec=
19891libname_spec='lib$name'
19892soname_spec=
19893shrext_cmds=".so"
19894postinstall_cmds=
19895postuninstall_cmds=
19896finish_cmds=
19897finish_eval=
19898shlibpath_var=
19899shlibpath_overrides_runpath=unknown
19900version_type=none
19901dynamic_linker="$host_os ld.so"
19902sys_lib_dlsearch_path_spec="/lib /usr/lib"
19903need_lib_prefix=unknown
19904hardcode_into_libs=no
19905
19906# when you set need_version to no, make sure it does not cause -set_version
19907# flags to be left without arguments
19908need_version=unknown
19909
19910case $host_os in
19911aix3*)
cristy99bd5232011-12-07 14:38:20 +000019912 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019913 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19914 shlibpath_var=LIBPATH
19915
19916 # AIX 3 has no versioning support, so we append a major version to the name.
19917 soname_spec='${libname}${release}${shared_ext}$major'
19918 ;;
19919
19920aix[4-9]*)
cristy99bd5232011-12-07 14:38:20 +000019921 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019922 need_lib_prefix=no
19923 need_version=no
19924 hardcode_into_libs=yes
19925 if test "$host_cpu" = ia64; then
19926 # AIX 5 supports IA64
19927 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19928 shlibpath_var=LD_LIBRARY_PATH
19929 else
19930 # With GCC up to 2.95.x, collect2 would create an import file
19931 # for dependence libraries. The import file would start with
19932 # the line `#! .'. This would cause the generated library to
19933 # depend on `.', always an invalid library. This was fixed in
19934 # development snapshots of GCC prior to 3.0.
19935 case $host_os in
19936 aix4 | aix4.[01] | aix4.[01].*)
19937 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19938 echo ' yes '
19939 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
19940 :
19941 else
19942 can_build_shared=no
19943 fi
19944 ;;
19945 esac
19946 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19947 # soname into executable. Probably we can add versioning support to
19948 # collect2, so additional links can be useful in future.
19949 if test "$aix_use_runtimelinking" = yes; then
19950 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19951 # instead of lib<name>.a to let people know that these are not
19952 # typical AIX shared libraries.
19953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19954 else
19955 # We preserve .a as extension for shared libraries through AIX4.2
19956 # and later when we are not doing run time linking.
19957 library_names_spec='${libname}${release}.a $libname.a'
19958 soname_spec='${libname}${release}${shared_ext}$major'
19959 fi
19960 shlibpath_var=LIBPATH
19961 fi
19962 ;;
19963
19964amigaos*)
19965 case $host_cpu in
19966 powerpc)
19967 # Since July 2007 AmigaOS4 officially supports .so libraries.
19968 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
19969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19970 ;;
19971 m68k)
19972 library_names_spec='$libname.ixlibrary $libname.a'
19973 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000019974 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 +000019975 ;;
19976 esac
19977 ;;
19978
19979beos*)
19980 library_names_spec='${libname}${shared_ext}'
19981 dynamic_linker="$host_os ld.so"
19982 shlibpath_var=LIBRARY_PATH
19983 ;;
19984
19985bsdi[45]*)
cristy99bd5232011-12-07 14:38:20 +000019986 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019987 need_version=no
19988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19989 soname_spec='${libname}${release}${shared_ext}$major'
19990 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19991 shlibpath_var=LD_LIBRARY_PATH
19992 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19993 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19994 # the default ld.so.conf also contains /usr/contrib/lib and
19995 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19996 # libtool to hard-code these into programs
19997 ;;
19998
19999cygwin* | mingw* | pw32* | cegcc*)
20000 version_type=windows
20001 shrext_cmds=".dll"
20002 need_version=no
20003 need_lib_prefix=no
20004
cristyda16f162011-02-19 23:52:17 +000020005 case $GCC,$cc_basename in
20006 yes,*)
20007 # gcc
cristy73bd4a52010-10-05 11:24:23 +000020008 library_names_spec='$libname.dll.a'
20009 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20010 postinstall_cmds='base_file=`basename \${file}`~
20011 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20012 dldir=$destdir/`dirname \$dlpath`~
20013 test -d \$dldir || mkdir -p \$dldir~
20014 $install_prog $dir/$dlname \$dldir/$dlname~
20015 chmod a+x \$dldir/$dlname~
20016 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20017 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20018 fi'
20019 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20020 dlpath=$dir/\$dldll~
20021 $RM \$dlpath'
20022 shlibpath_overrides_runpath=yes
20023
20024 case $host_os in
20025 cygwin*)
20026 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20027 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000020028
cristy73bd4a52010-10-05 11:24:23 +000020029 ;;
20030 mingw* | cegcc*)
20031 # MinGW DLLs use traditional 'lib' prefix
20032 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000020033 ;;
20034 pw32*)
20035 # pw32 DLLs use 'pw' prefix rather than 'lib'
20036 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20037 ;;
20038 esac
cristyda16f162011-02-19 23:52:17 +000020039 dynamic_linker='Win32 ld.exe'
20040 ;;
20041
20042 *,cl*)
20043 # Native MSVC
20044 libname_spec='$name'
20045 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20046 library_names_spec='${libname}.dll.lib'
20047
20048 case $build_os in
20049 mingw*)
20050 sys_lib_search_path_spec=
20051 lt_save_ifs=$IFS
20052 IFS=';'
20053 for lt_path in $LIB
20054 do
20055 IFS=$lt_save_ifs
20056 # Let DOS variable expansion print the short 8.3 style file name.
20057 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
20058 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
20059 done
20060 IFS=$lt_save_ifs
20061 # Convert to MSYS style.
20062 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
20063 ;;
20064 cygwin*)
20065 # Convert to unix form, then to dos form, then back to unix form
20066 # but this time dos style (no spaces!) so that the unix form looks
20067 # like /cygdrive/c/PROGRA~1:/cygdr...
20068 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
20069 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
20070 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20071 ;;
20072 *)
20073 sys_lib_search_path_spec="$LIB"
20074 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
20075 # It is most probably a Windows format PATH.
20076 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20077 else
20078 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20079 fi
20080 # FIXME: find the short name or the path components, as spaces are
20081 # common. (e.g. "Program Files" -> "PROGRA~1")
20082 ;;
20083 esac
20084
20085 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20086 postinstall_cmds='base_file=`basename \${file}`~
20087 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20088 dldir=$destdir/`dirname \$dlpath`~
20089 test -d \$dldir || mkdir -p \$dldir~
20090 $install_prog $dir/$dlname \$dldir/$dlname'
20091 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20092 dlpath=$dir/\$dldll~
20093 $RM \$dlpath'
20094 shlibpath_overrides_runpath=yes
20095 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000020096 ;;
20097
20098 *)
cristyda16f162011-02-19 23:52:17 +000020099 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000020100 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000020101 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000020102 ;;
20103 esac
cristy73bd4a52010-10-05 11:24:23 +000020104 # FIXME: first we should search . and the directory the executable is in
20105 shlibpath_var=PATH
20106 ;;
20107
20108darwin* | rhapsody*)
20109 dynamic_linker="$host_os dyld"
20110 version_type=darwin
20111 need_lib_prefix=no
20112 need_version=no
20113 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20114 soname_spec='${libname}${release}${major}$shared_ext'
20115 shlibpath_overrides_runpath=yes
20116 shlibpath_var=DYLD_LIBRARY_PATH
20117 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20118
20119 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20120 ;;
20121
20122dgux*)
cristy99bd5232011-12-07 14:38:20 +000020123 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020124 need_lib_prefix=no
20125 need_version=no
20126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20127 soname_spec='${libname}${release}${shared_ext}$major'
20128 shlibpath_var=LD_LIBRARY_PATH
20129 ;;
20130
cristy73bd4a52010-10-05 11:24:23 +000020131freebsd* | dragonfly*)
20132 # DragonFly does not have aout. When/if they implement a new
20133 # versioning mechanism, adjust this.
20134 if test -x /usr/bin/objformat; then
20135 objformat=`/usr/bin/objformat`
20136 else
20137 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000020138 freebsd[23].*) objformat=aout ;;
cristy73bd4a52010-10-05 11:24:23 +000020139 *) objformat=elf ;;
20140 esac
20141 fi
20142 version_type=freebsd-$objformat
20143 case $version_type in
20144 freebsd-elf*)
20145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20146 need_version=no
20147 need_lib_prefix=no
20148 ;;
20149 freebsd-*)
20150 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20151 need_version=yes
20152 ;;
20153 esac
20154 shlibpath_var=LD_LIBRARY_PATH
20155 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000020156 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000020157 shlibpath_overrides_runpath=yes
20158 ;;
20159 freebsd3.[01]* | freebsdelf3.[01]*)
20160 shlibpath_overrides_runpath=yes
20161 hardcode_into_libs=yes
20162 ;;
20163 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20164 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20165 shlibpath_overrides_runpath=no
20166 hardcode_into_libs=yes
20167 ;;
20168 *) # from 4.6 on, and DragonFly
20169 shlibpath_overrides_runpath=yes
20170 hardcode_into_libs=yes
20171 ;;
20172 esac
20173 ;;
20174
20175gnu*)
cristy99bd5232011-12-07 14:38:20 +000020176 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020177 need_lib_prefix=no
20178 need_version=no
20179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20180 soname_spec='${libname}${release}${shared_ext}$major'
20181 shlibpath_var=LD_LIBRARY_PATH
cristy99bd5232011-12-07 14:38:20 +000020182 shlibpath_overrides_runpath=no
cristy73bd4a52010-10-05 11:24:23 +000020183 hardcode_into_libs=yes
20184 ;;
20185
cristy0c60a692010-11-04 01:09:47 +000020186haiku*)
cristy99bd5232011-12-07 14:38:20 +000020187 version_type=linux # correct to gnu/linux during the next big refactor
cristy0c60a692010-11-04 01:09:47 +000020188 need_lib_prefix=no
20189 need_version=no
20190 dynamic_linker="$host_os runtime_loader"
20191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20192 soname_spec='${libname}${release}${shared_ext}$major'
20193 shlibpath_var=LIBRARY_PATH
20194 shlibpath_overrides_runpath=yes
20195 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
20196 hardcode_into_libs=yes
20197 ;;
20198
cristy73bd4a52010-10-05 11:24:23 +000020199hpux9* | hpux10* | hpux11*)
20200 # Give a soname corresponding to the major version so that dld.sl refuses to
20201 # link against other versions.
20202 version_type=sunos
20203 need_lib_prefix=no
20204 need_version=no
20205 case $host_cpu in
20206 ia64*)
20207 shrext_cmds='.so'
20208 hardcode_into_libs=yes
20209 dynamic_linker="$host_os dld.so"
20210 shlibpath_var=LD_LIBRARY_PATH
20211 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20213 soname_spec='${libname}${release}${shared_ext}$major'
20214 if test "X$HPUX_IA64_MODE" = X32; then
20215 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20216 else
20217 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20218 fi
20219 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20220 ;;
20221 hppa*64*)
20222 shrext_cmds='.sl'
20223 hardcode_into_libs=yes
20224 dynamic_linker="$host_os dld.sl"
20225 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20226 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20228 soname_spec='${libname}${release}${shared_ext}$major'
20229 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20230 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20231 ;;
20232 *)
20233 shrext_cmds='.sl'
20234 dynamic_linker="$host_os dld.sl"
20235 shlibpath_var=SHLIB_PATH
20236 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20238 soname_spec='${libname}${release}${shared_ext}$major'
20239 ;;
20240 esac
cristy0c60a692010-11-04 01:09:47 +000020241 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000020242 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000020243 # or fails outright, so override atomically:
20244 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000020245 ;;
20246
20247interix[3-9]*)
cristy99bd5232011-12-07 14:38:20 +000020248 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020249 need_lib_prefix=no
20250 need_version=no
20251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20252 soname_spec='${libname}${release}${shared_ext}$major'
20253 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20254 shlibpath_var=LD_LIBRARY_PATH
20255 shlibpath_overrides_runpath=no
20256 hardcode_into_libs=yes
20257 ;;
20258
20259irix5* | irix6* | nonstopux*)
20260 case $host_os in
20261 nonstopux*) version_type=nonstopux ;;
20262 *)
20263 if test "$lt_cv_prog_gnu_ld" = yes; then
cristy99bd5232011-12-07 14:38:20 +000020264 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020265 else
20266 version_type=irix
20267 fi ;;
20268 esac
20269 need_lib_prefix=no
20270 need_version=no
20271 soname_spec='${libname}${release}${shared_ext}$major'
20272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20273 case $host_os in
20274 irix5* | nonstopux*)
20275 libsuff= shlibsuff=
20276 ;;
20277 *)
20278 case $LD in # libtool.m4 will add one of these switches to LD
20279 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20280 libsuff= shlibsuff= libmagic=32-bit;;
20281 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20282 libsuff=32 shlibsuff=N32 libmagic=N32;;
20283 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20284 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20285 *) libsuff= shlibsuff= libmagic=never-match;;
20286 esac
20287 ;;
20288 esac
20289 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20290 shlibpath_overrides_runpath=no
20291 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20292 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20293 hardcode_into_libs=yes
20294 ;;
20295
20296# No shared lib support for Linux oldld, aout, or coff.
20297linux*oldld* | linux*aout* | linux*coff*)
20298 dynamic_linker=no
20299 ;;
20300
cristy99bd5232011-12-07 14:38:20 +000020301# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000020302linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy99bd5232011-12-07 14:38:20 +000020303 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020304 need_lib_prefix=no
20305 need_version=no
20306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20307 soname_spec='${libname}${release}${shared_ext}$major'
20308 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20309 shlibpath_var=LD_LIBRARY_PATH
20310 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000020311
cristy73bd4a52010-10-05 11:24:23 +000020312 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000020313 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000020314 $as_echo_n "(cached) " >&6
20315else
20316 lt_cv_shlibpath_overrides_runpath=no
20317 save_LDFLAGS=$LDFLAGS
20318 save_libdir=$libdir
20319 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20320 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000020322/* end confdefs.h. */
20323
20324int
20325main ()
20326{
20327
20328 ;
20329 return 0;
20330}
20331_ACEOF
20332if ac_fn_cxx_try_link "$LINENO"; then :
20333 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000020334 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000020335fi
20336fi
20337rm -f core conftest.err conftest.$ac_objext \
20338 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000020339 LDFLAGS=$save_LDFLAGS
20340 libdir=$save_libdir
20341
20342fi
20343
20344 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000020345
20346 # This implies no fast_install, which is unacceptable.
20347 # Some rework will be needed to allow for fast_install
20348 # before this can be enabled.
20349 hardcode_into_libs=yes
20350
20351 # Add ABI-specific directories to the system library path.
20352 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
20353
20354 # Append ld.so.conf contents to the search path
20355 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000020356 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 +000020357 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000020358
cristy73bd4a52010-10-05 11:24:23 +000020359 fi
20360
20361 # We used to test for /lib/ld.so.1 and disable shared libraries on
20362 # powerpc, because MkLinux only supported shared libraries with the
20363 # GNU dynamic linker. Since this was broken with cross compilers,
20364 # most powerpc-linux boxes support dynamic linking these days and
20365 # people can always --disable-shared, the test was removed, and we
20366 # assume the GNU/Linux dynamic linker is in use.
20367 dynamic_linker='GNU/Linux ld.so'
20368 ;;
20369
20370netbsd*)
20371 version_type=sunos
20372 need_lib_prefix=no
20373 need_version=no
20374 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20376 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20377 dynamic_linker='NetBSD (a.out) ld.so'
20378 else
20379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20380 soname_spec='${libname}${release}${shared_ext}$major'
20381 dynamic_linker='NetBSD ld.elf_so'
20382 fi
20383 shlibpath_var=LD_LIBRARY_PATH
20384 shlibpath_overrides_runpath=yes
20385 hardcode_into_libs=yes
20386 ;;
20387
20388newsos6)
cristy99bd5232011-12-07 14:38:20 +000020389 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20391 shlibpath_var=LD_LIBRARY_PATH
20392 shlibpath_overrides_runpath=yes
20393 ;;
20394
20395*nto* | *qnx*)
20396 version_type=qnx
20397 need_lib_prefix=no
20398 need_version=no
20399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20400 soname_spec='${libname}${release}${shared_ext}$major'
20401 shlibpath_var=LD_LIBRARY_PATH
20402 shlibpath_overrides_runpath=no
20403 hardcode_into_libs=yes
20404 dynamic_linker='ldqnx.so'
20405 ;;
20406
20407openbsd*)
20408 version_type=sunos
20409 sys_lib_dlsearch_path_spec="/usr/lib"
20410 need_lib_prefix=no
20411 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20412 case $host_os in
20413 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20414 *) need_version=no ;;
20415 esac
20416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20417 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20418 shlibpath_var=LD_LIBRARY_PATH
20419 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20420 case $host_os in
20421 openbsd2.[89] | openbsd2.[89].*)
20422 shlibpath_overrides_runpath=no
20423 ;;
20424 *)
20425 shlibpath_overrides_runpath=yes
20426 ;;
20427 esac
20428 else
20429 shlibpath_overrides_runpath=yes
20430 fi
20431 ;;
20432
20433os2*)
20434 libname_spec='$name'
20435 shrext_cmds=".dll"
20436 need_lib_prefix=no
20437 library_names_spec='$libname${shared_ext} $libname.a'
20438 dynamic_linker='OS/2 ld.exe'
20439 shlibpath_var=LIBPATH
20440 ;;
20441
20442osf3* | osf4* | osf5*)
20443 version_type=osf
20444 need_lib_prefix=no
20445 need_version=no
20446 soname_spec='${libname}${release}${shared_ext}$major'
20447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20448 shlibpath_var=LD_LIBRARY_PATH
20449 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20450 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20451 ;;
20452
20453rdos*)
20454 dynamic_linker=no
20455 ;;
20456
20457solaris*)
cristy99bd5232011-12-07 14:38:20 +000020458 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020459 need_lib_prefix=no
20460 need_version=no
20461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20462 soname_spec='${libname}${release}${shared_ext}$major'
20463 shlibpath_var=LD_LIBRARY_PATH
20464 shlibpath_overrides_runpath=yes
20465 hardcode_into_libs=yes
20466 # ldd complains unless libraries are executable
20467 postinstall_cmds='chmod +x $lib'
20468 ;;
20469
20470sunos4*)
20471 version_type=sunos
20472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20473 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20474 shlibpath_var=LD_LIBRARY_PATH
20475 shlibpath_overrides_runpath=yes
20476 if test "$with_gnu_ld" = yes; then
20477 need_lib_prefix=no
20478 fi
20479 need_version=yes
20480 ;;
20481
20482sysv4 | sysv4.3*)
cristy99bd5232011-12-07 14:38:20 +000020483 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20485 soname_spec='${libname}${release}${shared_ext}$major'
20486 shlibpath_var=LD_LIBRARY_PATH
20487 case $host_vendor in
20488 sni)
20489 shlibpath_overrides_runpath=no
20490 need_lib_prefix=no
20491 runpath_var=LD_RUN_PATH
20492 ;;
20493 siemens)
20494 need_lib_prefix=no
20495 ;;
20496 motorola)
20497 need_lib_prefix=no
20498 need_version=no
20499 shlibpath_overrides_runpath=no
20500 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20501 ;;
20502 esac
20503 ;;
20504
20505sysv4*MP*)
20506 if test -d /usr/nec ;then
cristy99bd5232011-12-07 14:38:20 +000020507 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020508 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20509 soname_spec='$libname${shared_ext}.$major'
20510 shlibpath_var=LD_LIBRARY_PATH
20511 fi
20512 ;;
20513
20514sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20515 version_type=freebsd-elf
20516 need_lib_prefix=no
20517 need_version=no
20518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20519 soname_spec='${libname}${release}${shared_ext}$major'
20520 shlibpath_var=LD_LIBRARY_PATH
20521 shlibpath_overrides_runpath=yes
20522 hardcode_into_libs=yes
20523 if test "$with_gnu_ld" = yes; then
20524 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20525 else
20526 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20527 case $host_os in
20528 sco3.2v5*)
20529 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20530 ;;
20531 esac
20532 fi
20533 sys_lib_dlsearch_path_spec='/usr/lib'
20534 ;;
20535
20536tpf*)
20537 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
cristy99bd5232011-12-07 14:38:20 +000020538 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020539 need_lib_prefix=no
20540 need_version=no
20541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20542 shlibpath_var=LD_LIBRARY_PATH
20543 shlibpath_overrides_runpath=no
20544 hardcode_into_libs=yes
20545 ;;
20546
20547uts4*)
cristy99bd5232011-12-07 14:38:20 +000020548 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20550 soname_spec='${libname}${release}${shared_ext}$major'
20551 shlibpath_var=LD_LIBRARY_PATH
20552 ;;
20553
20554*)
20555 dynamic_linker=no
20556 ;;
20557esac
20558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
20559$as_echo "$dynamic_linker" >&6; }
20560test "$dynamic_linker" = no && can_build_shared=no
20561
20562variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20563if test "$GCC" = yes; then
20564 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20565fi
20566
20567if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
20568 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
20569fi
20570if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
20571 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
20572fi
20573
20574
20575
20576
20577
20578
20579
20580
20581
20582
20583
20584
20585
20586
20587
20588
20589
20590
20591
20592
20593
20594
20595
20596
20597
20598
20599
20600
20601
20602
20603
20604
20605
20606
20607
20608
cristy0c60a692010-11-04 01:09:47 +000020609
20610
cristy73bd4a52010-10-05 11:24:23 +000020611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
20612$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
20613hardcode_action_CXX=
20614if test -n "$hardcode_libdir_flag_spec_CXX" ||
20615 test -n "$runpath_var_CXX" ||
20616 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20617
20618 # We can hardcode non-existent directories.
20619 if test "$hardcode_direct_CXX" != no &&
20620 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20621 # have to relink, otherwise we might link with an installed library
20622 # when we should be linking with a yet-to-be-installed one
20623 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20624 test "$hardcode_minus_L_CXX" != no; then
20625 # Linking always hardcodes the temporary library directory.
20626 hardcode_action_CXX=relink
20627 else
20628 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20629 hardcode_action_CXX=immediate
20630 fi
20631else
20632 # We cannot hardcode anything, or else we can only hardcode existing
20633 # directories.
20634 hardcode_action_CXX=unsupported
20635fi
20636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
20637$as_echo "$hardcode_action_CXX" >&6; }
20638
20639if test "$hardcode_action_CXX" = relink ||
20640 test "$inherit_rpath_CXX" = yes; then
20641 # Fast installation is not supported
20642 enable_fast_install=no
20643elif test "$shlibpath_overrides_runpath" = yes ||
20644 test "$enable_shared" = no; then
20645 # Fast installation is not necessary
20646 enable_fast_install=needless
20647fi
20648
20649
20650
20651
20652
20653
20654
20655 fi # test -n "$compiler"
20656
20657 CC=$lt_save_CC
cristyda16f162011-02-19 23:52:17 +000020658 CFLAGS=$lt_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000020659 LDCXX=$LD
20660 LD=$lt_save_LD
20661 GCC=$lt_save_GCC
20662 with_gnu_ld=$lt_save_with_gnu_ld
20663 lt_cv_path_LDCXX=$lt_cv_path_LD
20664 lt_cv_path_LD=$lt_save_path_LD
20665 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20666 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20667fi # test "$_lt_caught_CXX_error" != yes
20668
20669ac_ext=c
20670ac_cpp='$CPP $CPPFLAGS'
20671ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20672ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20673ac_compiler_gnu=$ac_cv_c_compiler_gnu
20674
20675
20676
20677
20678
20679
20680
20681
20682
20683
20684
20685
20686
cristy99bd5232011-12-07 14:38:20 +000020687
20688
cristy73bd4a52010-10-05 11:24:23 +000020689 ac_config_commands="$ac_config_commands libtool"
20690
20691
20692
20693
20694# Only expand once:
20695
20696
20697
cristy3ed852e2009-09-05 21:47:34 +000020698
20699
cristy3ed852e2009-09-05 21:47:34 +000020700# Check to see if building shared libraries
20701libtool_build_shared_libs='no'
20702if test "$enable_shared" = 'yes'; then
20703 libtool_build_shared_libs='yes'
20704fi
20705
20706# Check to see if building static libraries
20707libtool_build_static_libs='no'
20708if test "$enable_static" = 'yes'; then
20709 libtool_build_static_libs='yes'
20710fi
20711
cristy73bd4a52010-10-05 11:24:23 +000020712 if test "${libtool_build_shared_libs}" = 'yes'; then
20713 WITH_SHARED_LIBS_TRUE=
20714 WITH_SHARED_LIBS_FALSE='#'
20715else
20716 WITH_SHARED_LIBS_TRUE='#'
20717 WITH_SHARED_LIBS_FALSE=
20718fi
20719
cristy3ed852e2009-09-05 21:47:34 +000020720#
20721# Enable support for building loadable modules
20722#
cristyaf4cbf32012-10-16 23:47:41 +000020723build_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000020724
20725# Check whether --with-modules was given.
cristy8b350f62009-11-15 23:12:43 +000020726if test "${with_modules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020727 withval=$with_modules; with_modules=$withval
20728else
cristy5a1cefd2010-01-06 20:42:35 +000020729 with_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000020730fi
20731
20732
20733# Only allow building loadable modules if we are building shared libraries
20734if test "$with_modules" != 'no' ; then
20735 if test "$libtool_build_shared_libs" = 'no'; then
cristy8b350f62009-11-15 23:12:43 +000020736 { $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 +000020737$as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
cristyc6722092012-10-14 00:19:31 +000020738 build_modules='no'
20739 else
20740 build_modules='yes'
20741 fi
cristy3ed852e2009-09-05 21:47:34 +000020742fi
cristyc6722092012-10-14 00:19:31 +000020743if test "$build_modules" != 'no' ; then
cristy3ed852e2009-09-05 21:47:34 +000020744
cristy8b350f62009-11-15 23:12:43 +000020745$as_echo "#define BUILD_MODULES 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020746
20747fi
cristyc6722092012-10-14 00:19:31 +000020748 if test "$build_modules" != 'no'; then
cristy73bd4a52010-10-05 11:24:23 +000020749 WITH_MODULES_TRUE=
20750 WITH_MODULES_FALSE='#'
20751else
20752 WITH_MODULES_TRUE='#'
20753 WITH_MODULES_FALSE=
20754fi
20755
cristy3ed852e2009-09-05 21:47:34 +000020756
cristy3ed852e2009-09-05 21:47:34 +000020757# Enable build using delegate libraries built in subdirectories rather than installed
cristyfbb0ef02010-12-19 02:32:11 +000020758# delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms lzma png tiff ttf wmf xml zlib)
cristy3ed852e2009-09-05 21:47:34 +000020759# Check whether --enable-delegate-build was given.
cristy8b350f62009-11-15 23:12:43 +000020760if test "${enable_delegate_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020761 enableval=$enable_delegate_build; enable_delegate_build=$enableval
20762else
20763 enable_delegate_build='no'
20764fi
20765
20766
20767# Check whether --enable-deprecated was given.
cristy8b350f62009-11-15 23:12:43 +000020768if test "${enable_deprecated+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020769 enableval=$enable_deprecated; enable_deprecated=$enableval
20770else
20771 enable_deprecated='no'
20772fi
20773
20774
20775if test "$enable_deprecated" = 'yes'; then
20776
cristy8b350f62009-11-15 23:12:43 +000020777$as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020778
20779else
20780 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
20781fi
20782
20783# Build a version of ImageMagick which operates uninstalled.
20784# Used to build distributions located via MAGICK_HOME / executable path
20785# Check whether --enable-installed was given.
cristy8b350f62009-11-15 23:12:43 +000020786if test "${enable_installed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020787 enableval=$enable_installed; enable_installed=$enableval
20788else
20789 enable_installed='yes'
20790fi
20791
20792
20793if test "$enable_installed" = 'yes'; then
20794
cristy8b350f62009-11-15 23:12:43 +000020795$as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020796
20797else
20798 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
20799fi
20800
20801# Permit enciphering and deciphering image pixels.
20802# Check whether --enable-cipher was given.
cristy8b350f62009-11-15 23:12:43 +000020803if test "${enable_cipher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020804 enableval=$enable_cipher; enable_cipher=$enableval
20805else
20806 enable_cipher='yes'
20807fi
20808
20809
20810if test "$enable_cipher" = 'yes'; then
20811
cristy8b350f62009-11-15 23:12:43 +000020812$as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020813
20814fi
20815
cristy6e3607c2011-09-13 13:59:17 +000020816# Build a zero-configuration version of ImageMagick.
20817# Check whether --enable-zero-configuration was given.
20818if test "${enable_zero_configuration+set}" = set; then :
20819 enableval=$enable_zero_configuration; enable_zero_configuration=$enableval
cristy3ed852e2009-09-05 21:47:34 +000020820else
cristy6e3607c2011-09-13 13:59:17 +000020821 enable_zero_configuration='no'
cristy3ed852e2009-09-05 21:47:34 +000020822fi
20823
20824
cristy6e3607c2011-09-13 13:59:17 +000020825if test "$enable_zero_configuration" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000020826
cristy6e3607c2011-09-13 13:59:17 +000020827$as_echo "#define ZERO_CONFIGURATION_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020828
cristy81af5702011-09-13 14:20:58 +000020829 MAGICK_FEATURES="Zero-Configuration $MAGICK_FEATURES"
cristy3ed852e2009-09-05 21:47:34 +000020830fi
20831
20832# Build a high dynamic range version of ImageMagick.
20833# Check whether --enable-hdri was given.
cristy8b350f62009-11-15 23:12:43 +000020834if test "${enable_hdri+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020835 enableval=$enable_hdri; enable_hdri=$enableval
20836else
cristy191c0b72012-08-12 16:29:52 +000020837 enable_hdri='yes'
cristy3ed852e2009-09-05 21:47:34 +000020838fi
20839
20840
20841MAGICK_HDRI=""
20842if test "$enable_hdri" = 'yes'; then
20843 MAGICK_HDRI="HDRI"
20844
cristy8b350f62009-11-15 23:12:43 +000020845$as_echo "#define HDRI_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020846
cristyfd9dcd42010-08-08 18:07:02 +000020847 MAGICK_FEATURES="HDRI $MAGICK_FEATURES"
cristy3ed852e2009-09-05 21:47:34 +000020848fi
20849
cristy3ed852e2009-09-05 21:47:34 +000020850# Build a version of ImageMagick with assert statements.
20851# Check whether --enable-assert was given.
cristy8b350f62009-11-15 23:12:43 +000020852if test "${enable_assert+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020853 enableval=$enable_assert; enable_assert=$enableval
20854else
20855 enable_assert='yes'
20856fi
20857
20858
20859if test "$enable_assert" = 'no'; then
20860
cristy8b350f62009-11-15 23:12:43 +000020861$as_echo "#define NDEBUG 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020862
20863fi
20864
cristya448bd22011-10-14 12:38:13 +000020865# Don't emit "rebuild rules" for configure, Makefile.ins, etc.
cristy73bd4a52010-10-05 11:24:23 +000020866
20867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
20868$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
20869 # Check whether --enable-maintainer-mode was given.
20870if test "${enable_maintainer_mode+set}" = set; then :
20871 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
20872else
20873 USE_MAINTAINER_MODE=no
20874fi
20875
20876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
20877$as_echo "$USE_MAINTAINER_MODE" >&6; }
20878 if test $USE_MAINTAINER_MODE = yes; then
20879 MAINTAINER_MODE_TRUE=
20880 MAINTAINER_MODE_FALSE='#'
20881else
20882 MAINTAINER_MODE_TRUE='#'
20883 MAINTAINER_MODE_FALSE=
20884fi
20885
20886 MAINT=$MAINTAINER_MODE_TRUE
20887
20888
cristy3ed852e2009-09-05 21:47:34 +000020889
cristy3ed852e2009-09-05 21:47:34 +000020890# Enable ccmalloc memory debugging support
20891# Check whether --enable-ccmalloc was given.
cristy8b350f62009-11-15 23:12:43 +000020892if test "${enable_ccmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020893 enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
20894else
20895 enable_ccmalloc='no'
20896fi
20897
20898
20899# Enable Electric Fence memory debugging support
20900# Check whether --enable-efence was given.
cristy8b350f62009-11-15 23:12:43 +000020901if test "${enable_efence+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020902 enableval=$enable_efence; enable_efence=$enableval
20903else
20904 enable_efence='no'
20905fi
20906
20907
20908# Enable prof-based profiling support
20909# Check whether --enable-prof was given.
cristy8b350f62009-11-15 23:12:43 +000020910if test "${enable_prof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020911 enableval=$enable_prof; enable_prof=$enableval
20912else
20913 enable_prof='no'
20914fi
20915
20916
20917# Enable gprof-based profiling support
20918# Check whether --enable-gprof was given.
cristy8b350f62009-11-15 23:12:43 +000020919if test "${enable_gprof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020920 enableval=$enable_gprof; enable_gprof=$enableval
20921else
20922 enable_gprof='no'
20923fi
20924
20925
20926# Enable gcov-based profiling support
20927# Check whether --enable-gcov was given.
cristy8b350f62009-11-15 23:12:43 +000020928if test "${enable_gcov+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020929 enableval=$enable_gcov; enable_gcov=$enableval
20930else
20931 enable_gcov='no'
20932fi
20933
20934
20935enable_profiling='no'
20936if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
20937 enable_profiling='yes'
20938 if test "$libtool_build_shared_libs" = 'yes'; then
20939 echo "Warning: Can not profile code using shared libraries"
20940 fi
20941fi
20942
20943# Magick API method prefix
20944
20945# Check whether --with-method-prefix was given.
cristy8b350f62009-11-15 23:12:43 +000020946if test "${with_method_prefix+set}" = set; then :
cristyfc3d0222012-02-07 15:05:57 +000020947 withval=$with_method_prefix; with_method_prefix=$withval
cristy3ed852e2009-09-05 21:47:34 +000020948else
cristyfc3d0222012-02-07 15:05:57 +000020949 with_method_prefix='no'
cristy3ed852e2009-09-05 21:47:34 +000020950fi
20951
20952
cristyfc3d0222012-02-07 15:05:57 +000020953if test "$with_method_prefix" != 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000020954
20955cat >>confdefs.h <<_ACEOF
20956#define NAMESPACE_PREFIX $with_method_prefix
20957_ACEOF
20958
cristyfc3d0222012-02-07 15:05:57 +000020959 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-method-prefix "
cristy3ed852e2009-09-05 21:47:34 +000020960fi
20961
cristy71d8c202012-03-20 17:05:01 +000020962# Enable legacy support (default no)
20963# Check whether --enable-legacy-support was given.
20964if test "${enable_legacy_support+set}" = set; then :
20965 enableval=$enable_legacy_support; with_legacy_support=$enableval
20966else
20967 with_legacy_support='no'
20968fi
20969
20970 if test "$with_legacy_support" != 'no'; then
20971 LEGACY_SUPPORT_TRUE=
20972 LEGACY_SUPPORT_FALSE='#'
20973else
20974 LEGACY_SUPPORT_TRUE='#'
20975 LEGACY_SUPPORT_FALSE=
20976fi
20977
20978
cristy3ed852e2009-09-05 21:47:34 +000020979# Number of bits in a Quantum
20980
20981# Check whether --with-quantum-depth was given.
cristy8b350f62009-11-15 23:12:43 +000020982if test "${with_quantum_depth+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020983 withval=$with_quantum_depth; with_quantum_depth=$withval
20984else
20985 with_quantum_depth=16
20986fi
20987
20988
20989if test "$with_quantum_depth" != '8'; then
20990 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
20991fi
20992
20993case "${with_quantum_depth}" in
20994 8 ) ;;
20995 16 ) ;;
20996 32 ) ;;
20997 64 ) ;;
cristy98dddb52010-11-04 00:30:15 +000020998 * ) as_fn_error 16 "\"Pixel quantum depth must have value of 8" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000020999esac
21000QUANTUM_DEPTH="$with_quantum_depth"
21001
21002cat >>confdefs.h <<_ACEOF
21003#define QUANTUM_DEPTH $QUANTUM_DEPTH
21004_ACEOF
21005
21006
cristy01ff9f32012-12-01 18:15:29 +000021007# define a lib suffix for abi purpose
21008MAGICK_ABISUFFIX="Q${MAGICK_HDRI}${QUANTUM_DEPTH}"
21009
21010
21011
cristy3ed852e2009-09-05 21:47:34 +000021012# Set pixel cache threshold
21013
21014# Check whether --with-cache was given.
cristy8b350f62009-11-15 23:12:43 +000021015if test "${with_cache+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021016 withval=$with_cache; with_cache=$withval
21017else
21018 with_cache=''
21019fi
21020
21021
21022if test "$with_cache" != ''; then
21023
21024cat >>confdefs.h <<_ACEOF
21025#define PixelCacheThreshold $with_cache
21026_ACEOF
21027
21028 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
21029fi
21030
21031# Disable/Enable support for full delegate paths
21032
21033# Check whether --with-frozenpaths was given.
cristy8b350f62009-11-15 23:12:43 +000021034if test "${with_frozenpaths+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021035 withval=$with_frozenpaths; with_frozenpaths=$withval
21036else
21037 with_frozenpaths='no'
21038fi
21039
21040
21041# Enable build/install of Magick++
21042
21043# Check whether --with-magick-plus-plus was given.
cristy8b350f62009-11-15 23:12:43 +000021044if test "${with_magick_plus_plus+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021045 withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
21046else
21047 with_magick_plus_plus='yes'
21048fi
21049
21050
cristy3a75f062012-09-08 23:29:40 +000021051# Encode the this name into the shared library.
21052
21053# Check whether --with-package-release-name was given.
21054if test "${with_package_release_name+set}" = set; then :
21055 withval=$with_package_release_name; MAGICK_LT_RELEASE_OPTS="-release $withval"
21056fi
21057
21058
21059
cristy3ed852e2009-09-05 21:47:34 +000021060# Disable build/install of PerlMagick.
21061
21062# Check whether --with-perl was given.
cristy8b350f62009-11-15 23:12:43 +000021063if test "${with_perl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021064 withval=$with_perl; with_perl=$withval
21065else
cristyb5f4e2f2010-04-25 00:49:11 +000021066 with_perl='no'
cristy3ed852e2009-09-05 21:47:34 +000021067fi
21068
21069
21070# Options to pass when configuring PerlMagick
21071
21072# Check whether --with-perl-options was given.
cristy8b350f62009-11-15 23:12:43 +000021073if test "${with_perl_options+set}" = set; then :
cristy949301e2010-01-06 01:38:40 +000021074 withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
cristy3ed852e2009-09-05 21:47:34 +000021075fi
21076
21077
cristy3ed852e2009-09-05 21:47:34 +000021078
21079# Enable umem, object-caching memory allocation library.
21080
21081# Check whether --with-umem was given.
cristy8b350f62009-11-15 23:12:43 +000021082if test "${with_umem+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021083 withval=$with_umem; with_umem=$withval
21084else
21085 with_umem='no'
21086fi
21087
21088if test "$with_umem" != 'yes' ; then
21089 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
21090fi
21091
21092#
21093# Specify path to shared libstdc++ if not in normal location
21094#
21095
21096# Check whether --with-libstdc was given.
cristy8b350f62009-11-15 23:12:43 +000021097if test "${with_libstdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021098 withval=$with_libstdc; with_libstdc=$withval
21099else
21100 with_libstdc=''
21101fi
21102
21103
21104if test "$with_libstdc" != ''; then
21105 if test -d "$with_libstdc"; then
21106 LIBSTDCLDFLAGS="-L$with_libstdc"
21107 fi
21108fi
21109
21110
21111# Does gcc required -traditional?
21112if test $ac_cv_c_compiler_gnu = yes; then
cristy8b350f62009-11-15 23:12:43 +000021113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000021114$as_echo_n "checking whether $CC needs -traditional... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021115if ${ac_cv_prog_gcc_traditional+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021116 $as_echo_n "(cached) " >&6
21117else
21118 ac_pattern="Autoconf.*'x'"
cristy8b350f62009-11-15 23:12:43 +000021119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021120/* end confdefs.h. */
21121#include <sgtty.h>
21122Autoconf TIOCGETP
21123_ACEOF
21124if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021125 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021126 ac_cv_prog_gcc_traditional=yes
21127else
21128 ac_cv_prog_gcc_traditional=no
21129fi
21130rm -f conftest*
21131
21132
21133 if test $ac_cv_prog_gcc_traditional = no; then
cristy8b350f62009-11-15 23:12:43 +000021134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021135/* end confdefs.h. */
21136#include <termio.h>
21137Autoconf TCGETA
21138_ACEOF
21139if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021140 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021141 ac_cv_prog_gcc_traditional=yes
21142fi
21143rm -f conftest*
21144
21145 fi
21146fi
cristy8b350f62009-11-15 23:12:43 +000021147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000021148$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
21149 if test $ac_cv_prog_gcc_traditional = yes; then
21150 CC="$CC -traditional"
21151 fi
21152fi
21153
21154
21155########
21156#
21157# Set defines required to build DLLs and modules using MinGW
21158#
21159########
21160# These options are set for multi-thread DLL module build
21161# libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_
21162# module: _DLL
21163# executable/Magick++: _DLL _MAGICKMOD_
21164MODULE_EXTRA_CPPFLAGS=''
21165LIBRARY_EXTRA_CPPFLAGS=''
21166if test "${native_win32_build}" = 'yes'; then
21167 if test "${libtool_build_shared_libs}" = 'yes'; then
21168 CPPFLAGS="$CPPFLAGS -D_DLL"
21169 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
21170 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
21171 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
cristyc6722092012-10-14 00:19:31 +000021172 if test "$build_modules" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000021173 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
21174 else
21175 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
21176 fi
21177 else
21178 CPPFLAGS="$CPPFLAGS -D_LIB"
21179 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
21180 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
21181 fi
21182 if test "$with_threads" = 'yes'; then
21183 CPPFLAGS="$CPPFLAGS -D_MT"
21184 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
21185 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
21186 fi
21187fi
21188
21189
21190
21191# Check standard headers
cristy8b350f62009-11-15 23:12:43 +000021192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
cristy3ed852e2009-09-05 21:47:34 +000021193$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021194if ${ac_cv_header_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021195 $as_echo_n "(cached) " >&6
21196else
cristy8b350f62009-11-15 23:12:43 +000021197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021198/* end confdefs.h. */
21199#include <stdlib.h>
21200#include <stdarg.h>
21201#include <string.h>
21202#include <float.h>
21203
21204int
21205main ()
21206{
21207
21208 ;
21209 return 0;
21210}
21211_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021212if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021213 ac_cv_header_stdc=yes
21214else
cristy8b350f62009-11-15 23:12:43 +000021215 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000021216fi
cristy3ed852e2009-09-05 21:47:34 +000021217rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21218
21219if test $ac_cv_header_stdc = yes; then
21220 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000021221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021222/* end confdefs.h. */
21223#include <string.h>
21224
21225_ACEOF
21226if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021227 $EGREP "memchr" >/dev/null 2>&1; then :
21228
cristy3ed852e2009-09-05 21:47:34 +000021229else
21230 ac_cv_header_stdc=no
21231fi
21232rm -f conftest*
21233
21234fi
21235
21236if test $ac_cv_header_stdc = yes; then
21237 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000021238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021239/* end confdefs.h. */
21240#include <stdlib.h>
21241
21242_ACEOF
21243if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021244 $EGREP "free" >/dev/null 2>&1; then :
21245
cristy3ed852e2009-09-05 21:47:34 +000021246else
21247 ac_cv_header_stdc=no
21248fi
21249rm -f conftest*
21250
21251fi
21252
21253if test $ac_cv_header_stdc = yes; then
21254 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cristy8b350f62009-11-15 23:12:43 +000021255 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021256 :
21257else
cristy8b350f62009-11-15 23:12:43 +000021258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021259/* end confdefs.h. */
21260#include <ctype.h>
21261#include <stdlib.h>
21262#if ((' ' & 0x0FF) == 0x020)
21263# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21264# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21265#else
21266# define ISLOWER(c) \
21267 (('a' <= (c) && (c) <= 'i') \
21268 || ('j' <= (c) && (c) <= 'r') \
21269 || ('s' <= (c) && (c) <= 'z'))
21270# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21271#endif
21272
21273#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21274int
21275main ()
21276{
21277 int i;
21278 for (i = 0; i < 256; i++)
21279 if (XOR (islower (i), ISLOWER (i))
21280 || toupper (i) != TOUPPER (i))
21281 return 2;
21282 return 0;
21283}
21284_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021285if ac_fn_c_try_run "$LINENO"; then :
21286
cristy3ed852e2009-09-05 21:47:34 +000021287else
cristy8b350f62009-11-15 23:12:43 +000021288 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000021289fi
cristy8b350f62009-11-15 23:12:43 +000021290rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21291 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021292fi
21293
cristy3ed852e2009-09-05 21:47:34 +000021294fi
21295fi
cristy8b350f62009-11-15 23:12:43 +000021296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +000021297$as_echo "$ac_cv_header_stdc" >&6; }
21298if test $ac_cv_header_stdc = yes; then
21299
cristy8b350f62009-11-15 23:12:43 +000021300$as_echo "#define STDC_HEADERS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021301
21302fi
21303
21304if ! test x"$ac_cv_header_stdc" = x"yes"; then
cristy8b350f62009-11-15 23:12:43 +000021305 { $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 +000021306 header files. Compilation cannot proceed. Please install the ANSI C
21307 headers and rerun this script." >&5
21308$as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
21309 header files. Compilation cannot proceed. Please install the ANSI C
21310 headers and rerun this script." >&2;};
21311fi
cristya0b81c32010-01-22 02:54:33 +000021312
21313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
21314$as_echo_n "checking whether to enable assertions... " >&6; }
21315 # Check whether --enable-assert was given.
21316if test "${enable_assert+set}" = set; then :
21317 enableval=$enable_assert; ac_enable_assert=$enableval
21318 if test "x$enableval" = xno; then :
21319
21320$as_echo "#define NDEBUG 1" >>confdefs.h
21321
21322elif test "x$enableval" != xyes; then :
21323 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
21324$as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
21325 ac_enable_assert=yes
21326fi
21327else
21328 ac_enable_assert=yes
21329fi
21330
21331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
21332$as_echo "$ac_enable_assert" >&6; }
21333
cristy3ed852e2009-09-05 21:47:34 +000021334ac_header_dirent=no
21335for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
21336 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
cristy8b350f62009-11-15 23:12:43 +000021337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
cristy3ed852e2009-09-05 21:47:34 +000021338$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021339if eval \${$as_ac_Header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021340 $as_echo_n "(cached) " >&6
21341else
cristy8b350f62009-11-15 23:12:43 +000021342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021343/* end confdefs.h. */
21344#include <sys/types.h>
21345#include <$ac_hdr>
21346
21347int
21348main ()
21349{
21350if ((DIR *) 0)
21351return 0;
21352 ;
21353 return 0;
21354}
21355_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021356if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021357 eval "$as_ac_Header=yes"
21358else
cristy8b350f62009-11-15 23:12:43 +000021359 eval "$as_ac_Header=no"
cristy3ed852e2009-09-05 21:47:34 +000021360fi
cristy3ed852e2009-09-05 21:47:34 +000021361rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21362fi
cristy8b350f62009-11-15 23:12:43 +000021363eval ac_res=\$$as_ac_Header
21364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cristy3ed852e2009-09-05 21:47:34 +000021365$as_echo "$ac_res" >&6; }
cristy98dddb52010-11-04 00:30:15 +000021366if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000021367 cat >>confdefs.h <<_ACEOF
21368#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
21369_ACEOF
21370
21371ac_header_dirent=$ac_hdr; break
21372fi
21373
21374done
21375# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
21376if test $ac_header_dirent = dirent.h; then
cristy8b350f62009-11-15 23:12:43 +000021377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021378$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021379if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021380 $as_echo_n "(cached) " >&6
21381else
21382 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000021383cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021384/* end confdefs.h. */
21385
21386/* Override any GCC internal prototype to avoid an error.
21387 Use char because int might match the return type of a GCC
21388 builtin and then its argument prototype would still apply. */
21389#ifdef __cplusplus
21390extern "C"
21391#endif
21392char opendir ();
21393int
21394main ()
21395{
21396return opendir ();
21397 ;
21398 return 0;
21399}
21400_ACEOF
21401for ac_lib in '' dir; do
21402 if test -z "$ac_lib"; then
21403 ac_res="none required"
21404 else
21405 ac_res=-l$ac_lib
21406 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21407 fi
cristy8b350f62009-11-15 23:12:43 +000021408 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021409 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000021410fi
cristy8b350f62009-11-15 23:12:43 +000021411rm -f core conftest.err conftest.$ac_objext \
21412 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000021413 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021414 break
21415fi
21416done
cristyda16f162011-02-19 23:52:17 +000021417if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000021418
cristy3ed852e2009-09-05 21:47:34 +000021419else
21420 ac_cv_search_opendir=no
21421fi
21422rm conftest.$ac_ext
21423LIBS=$ac_func_search_save_LIBS
21424fi
cristy8b350f62009-11-15 23:12:43 +000021425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021426$as_echo "$ac_cv_search_opendir" >&6; }
21427ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000021428if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000021429 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21430
21431fi
21432
21433else
cristy8b350f62009-11-15 23:12:43 +000021434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021435$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021436if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021437 $as_echo_n "(cached) " >&6
21438else
21439 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000021440cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021441/* end confdefs.h. */
21442
21443/* Override any GCC internal prototype to avoid an error.
21444 Use char because int might match the return type of a GCC
21445 builtin and then its argument prototype would still apply. */
21446#ifdef __cplusplus
21447extern "C"
21448#endif
21449char opendir ();
21450int
21451main ()
21452{
21453return opendir ();
21454 ;
21455 return 0;
21456}
21457_ACEOF
21458for ac_lib in '' x; do
21459 if test -z "$ac_lib"; then
21460 ac_res="none required"
21461 else
21462 ac_res=-l$ac_lib
21463 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21464 fi
cristy8b350f62009-11-15 23:12:43 +000021465 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021466 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000021467fi
cristy8b350f62009-11-15 23:12:43 +000021468rm -f core conftest.err conftest.$ac_objext \
21469 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000021470 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021471 break
21472fi
21473done
cristyda16f162011-02-19 23:52:17 +000021474if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000021475
cristy3ed852e2009-09-05 21:47:34 +000021476else
21477 ac_cv_search_opendir=no
21478fi
21479rm conftest.$ac_ext
21480LIBS=$ac_func_search_save_LIBS
21481fi
cristy8b350f62009-11-15 23:12:43 +000021482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021483$as_echo "$ac_cv_search_opendir" >&6; }
21484ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000021485if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000021486 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21487
21488fi
21489
21490fi
21491
21492
21493# Check additional headers
cristy58945e42012-09-04 14:33:54 +000021494for 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 sun_prefetch.h stdarg.h sys/ipc.h sys/mman.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 +000021495do :
21496 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21497ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000021498if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000021499 cat >>confdefs.h <<_ACEOF
21500#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21501_ACEOF
21502
21503fi
21504
21505done
21506
21507
21508########
21509#
21510# Checks for typedefs, structures, and compiler characteristics.
21511#
21512########
21513
cristy8b350f62009-11-15 23:12:43 +000021514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
cristy3ed852e2009-09-05 21:47:34 +000021515$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021516if ${ac_cv_header_stdbool_h+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021517 $as_echo_n "(cached) " >&6
21518else
cristy8b350f62009-11-15 23:12:43 +000021519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021520/* end confdefs.h. */
21521
cristy14fefe52012-05-21 00:59:18 +000021522 #include <stdbool.h>
21523 #ifndef bool
21524 "error: bool is not defined"
21525 #endif
21526 #ifndef false
21527 "error: false is not defined"
21528 #endif
21529 #if false
21530 "error: false is not 0"
21531 #endif
21532 #ifndef true
21533 "error: true is not defined"
21534 #endif
21535 #if true != 1
21536 "error: true is not 1"
21537 #endif
21538 #ifndef __bool_true_false_are_defined
21539 "error: __bool_true_false_are_defined is not defined"
21540 #endif
cristy3ed852e2009-09-05 21:47:34 +000021541
cristy14fefe52012-05-21 00:59:18 +000021542 struct s { _Bool s: 1; _Bool t; } s;
cristy3ed852e2009-09-05 21:47:34 +000021543
cristy14fefe52012-05-21 00:59:18 +000021544 char a[true == 1 ? 1 : -1];
21545 char b[false == 0 ? 1 : -1];
21546 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
21547 char d[(bool) 0.5 == true ? 1 : -1];
21548 /* See body of main program for 'e'. */
21549 char f[(_Bool) 0.0 == false ? 1 : -1];
21550 char g[true];
21551 char h[sizeof (_Bool)];
21552 char i[sizeof s.t];
21553 enum { j = false, k = true, l = false * true, m = true * 256 };
21554 /* The following fails for
21555 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
21556 _Bool n[m];
21557 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
21558 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
21559 /* Catch a bug in an HP-UX C compiler. See
21560 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
21561 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
21562 */
21563 _Bool q = true;
21564 _Bool *pq = &q;
cristy3ed852e2009-09-05 21:47:34 +000021565
21566int
21567main ()
21568{
21569
cristy14fefe52012-05-21 00:59:18 +000021570 bool e = &s;
21571 *pq |= q;
21572 *pq |= ! q;
21573 /* Refer to every declared value, to avoid compiler optimizations. */
21574 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
21575 + !m + !n + !o + !p + !q + !pq);
cristy3ed852e2009-09-05 21:47:34 +000021576
21577 ;
21578 return 0;
21579}
21580_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021581if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021582 ac_cv_header_stdbool_h=yes
21583else
cristy8b350f62009-11-15 23:12:43 +000021584 ac_cv_header_stdbool_h=no
cristy3ed852e2009-09-05 21:47:34 +000021585fi
cristy3ed852e2009-09-05 21:47:34 +000021586rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21587fi
cristy8b350f62009-11-15 23:12:43 +000021588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
cristy3ed852e2009-09-05 21:47:34 +000021589$as_echo "$ac_cv_header_stdbool_h" >&6; }
cristy14fefe52012-05-21 00:59:18 +000021590 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000021591if test "x$ac_cv_type__Bool" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000021592
21593cat >>confdefs.h <<_ACEOF
21594#define HAVE__BOOL 1
21595_ACEOF
21596
21597
21598fi
21599
cristy14fefe52012-05-21 00:59:18 +000021600
cristy3ed852e2009-09-05 21:47:34 +000021601if test $ac_cv_header_stdbool_h = yes; then
21602
cristy8b350f62009-11-15 23:12:43 +000021603$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021604
21605fi
21606
cristy8b350f62009-11-15 23:12:43 +000021607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000021608$as_echo_n "checking for working volatile... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021609if ${ac_cv_c_volatile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021610 $as_echo_n "(cached) " >&6
21611else
cristy8b350f62009-11-15 23:12:43 +000021612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021613/* end confdefs.h. */
21614
21615int
21616main ()
21617{
21618
21619volatile int x;
21620int * volatile y = (int *) 0;
21621return !x && !y;
21622 ;
21623 return 0;
21624}
21625_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021626if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021627 ac_cv_c_volatile=yes
21628else
cristy8b350f62009-11-15 23:12:43 +000021629 ac_cv_c_volatile=no
cristy3ed852e2009-09-05 21:47:34 +000021630fi
cristy3ed852e2009-09-05 21:47:34 +000021631rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21632fi
cristy8b350f62009-11-15 23:12:43 +000021633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000021634$as_echo "$ac_cv_c_volatile" >&6; }
21635if test $ac_cv_c_volatile = no; then
21636
cristy8b350f62009-11-15 23:12:43 +000021637$as_echo "#define volatile /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021638
21639fi
21640
cristy8b350f62009-11-15 23:12:43 +000021641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
cristy3ed852e2009-09-05 21:47:34 +000021642$as_echo_n "checking for preprocessor stringizing operator... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021643if ${ac_cv_c_stringize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021644 $as_echo_n "(cached) " >&6
21645else
cristy8b350f62009-11-15 23:12:43 +000021646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021647/* end confdefs.h. */
21648#define x(y) #y
21649
21650char *s = x(teststring);
21651_ACEOF
21652if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021653 $EGREP "#teststring" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021654 ac_cv_c_stringize=no
21655else
21656 ac_cv_c_stringize=yes
21657fi
21658rm -f conftest*
21659
21660fi
cristy8b350f62009-11-15 23:12:43 +000021661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
cristy3ed852e2009-09-05 21:47:34 +000021662$as_echo "$ac_cv_c_stringize" >&6; }
21663if test $ac_cv_c_stringize = yes; then
21664
cristy8b350f62009-11-15 23:12:43 +000021665$as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021666
21667fi
21668
cristy8b350f62009-11-15 23:12:43 +000021669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000021670$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021671if ${ac_cv_header_stat_broken+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021672 $as_echo_n "(cached) " >&6
21673else
cristy8b350f62009-11-15 23:12:43 +000021674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021675/* end confdefs.h. */
21676#include <sys/types.h>
21677#include <sys/stat.h>
21678
21679#if defined S_ISBLK && defined S_IFDIR
21680extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
21681#endif
21682
21683#if defined S_ISBLK && defined S_IFCHR
21684extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
21685#endif
21686
21687#if defined S_ISLNK && defined S_IFREG
21688extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
21689#endif
21690
21691#if defined S_ISSOCK && defined S_IFREG
21692extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
21693#endif
21694
21695_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021696if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021697 ac_cv_header_stat_broken=no
21698else
cristy8b350f62009-11-15 23:12:43 +000021699 ac_cv_header_stat_broken=yes
cristy3ed852e2009-09-05 21:47:34 +000021700fi
cristy3ed852e2009-09-05 21:47:34 +000021701rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21702fi
cristy8b350f62009-11-15 23:12:43 +000021703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000021704$as_echo "$ac_cv_header_stat_broken" >&6; }
21705if test $ac_cv_header_stat_broken = yes; then
21706
cristy8b350f62009-11-15 23:12:43 +000021707$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021708
21709fi
21710
cristy8b350f62009-11-15 23:12:43 +000021711{ $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 +000021712$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021713if ${ac_cv_header_time+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021714 $as_echo_n "(cached) " >&6
21715else
cristy8b350f62009-11-15 23:12:43 +000021716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021717/* end confdefs.h. */
21718#include <sys/types.h>
21719#include <sys/time.h>
21720#include <time.h>
21721
21722int
21723main ()
21724{
21725if ((struct tm *) 0)
21726return 0;
21727 ;
21728 return 0;
21729}
21730_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021731if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021732 ac_cv_header_time=yes
21733else
cristy8b350f62009-11-15 23:12:43 +000021734 ac_cv_header_time=no
cristy3ed852e2009-09-05 21:47:34 +000021735fi
cristy3ed852e2009-09-05 21:47:34 +000021736rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21737fi
cristy8b350f62009-11-15 23:12:43 +000021738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
cristy3ed852e2009-09-05 21:47:34 +000021739$as_echo "$ac_cv_header_time" >&6; }
21740if test $ac_cv_header_time = yes; then
21741
cristy8b350f62009-11-15 23:12:43 +000021742$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021743
21744fi
21745
cristy8b350f62009-11-15 23:12:43 +000021746{ $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 +000021747$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021748if ${ac_cv_struct_tm+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021749 $as_echo_n "(cached) " >&6
21750else
cristy8b350f62009-11-15 23:12:43 +000021751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021752/* end confdefs.h. */
21753#include <sys/types.h>
21754#include <time.h>
21755
21756int
21757main ()
21758{
21759struct tm tm;
21760 int *p = &tm.tm_sec;
21761 return !p;
21762 ;
21763 return 0;
21764}
21765_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021766if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021767 ac_cv_struct_tm=time.h
21768else
cristy8b350f62009-11-15 23:12:43 +000021769 ac_cv_struct_tm=sys/time.h
cristy3ed852e2009-09-05 21:47:34 +000021770fi
cristy3ed852e2009-09-05 21:47:34 +000021771rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21772fi
cristy8b350f62009-11-15 23:12:43 +000021773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
cristy3ed852e2009-09-05 21:47:34 +000021774$as_echo "$ac_cv_struct_tm" >&6; }
21775if test $ac_cv_struct_tm = sys/time.h; then
21776
cristy8b350f62009-11-15 23:12:43 +000021777$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021778
21779fi
21780
cristy92703d82010-04-26 00:18:18 +000021781ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
21782#include <$ac_cv_struct_tm>
21783
21784"
cristyda16f162011-02-19 23:52:17 +000021785if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000021786
21787cat >>confdefs.h <<_ACEOF
21788#define HAVE_STRUCT_TM_TM_ZONE 1
21789_ACEOF
21790
21791
21792fi
21793
21794if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21795
21796$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
21797
21798else
21799 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
21800"
cristyda16f162011-02-19 23:52:17 +000021801if test "x$ac_cv_have_decl_tzname" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000021802 ac_have_decl=1
21803else
21804 ac_have_decl=0
21805fi
21806
21807cat >>confdefs.h <<_ACEOF
21808#define HAVE_DECL_TZNAME $ac_have_decl
21809_ACEOF
21810
21811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
21812$as_echo_n "checking for tzname... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021813if ${ac_cv_var_tzname+:} false; then :
cristy92703d82010-04-26 00:18:18 +000021814 $as_echo_n "(cached) " >&6
21815else
21816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21817/* end confdefs.h. */
21818#include <time.h>
21819#if !HAVE_DECL_TZNAME
21820extern char *tzname[];
21821#endif
21822
21823int
21824main ()
21825{
21826return tzname[0][0];
21827 ;
21828 return 0;
21829}
21830_ACEOF
21831if ac_fn_c_try_link "$LINENO"; then :
21832 ac_cv_var_tzname=yes
21833else
21834 ac_cv_var_tzname=no
21835fi
21836rm -f core conftest.err conftest.$ac_objext \
21837 conftest$ac_exeext conftest.$ac_ext
21838fi
21839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
21840$as_echo "$ac_cv_var_tzname" >&6; }
21841 if test $ac_cv_var_tzname = yes; then
21842
21843$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
21844
21845 fi
21846fi
21847
cristy8b350f62009-11-15 23:12:43 +000021848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
cristy3ed852e2009-09-05 21:47:34 +000021849$as_echo_n "checking whether #! works in shell scripts... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021850if ${ac_cv_sys_interpreter+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021851 $as_echo_n "(cached) " >&6
21852else
21853 echo '#! /bin/cat
21854exit 69
21855' >conftest
21856chmod u+x conftest
21857(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
21858if test $? -ne 69; then
21859 ac_cv_sys_interpreter=yes
21860else
21861 ac_cv_sys_interpreter=no
21862fi
21863rm -f conftest
21864fi
cristy8b350f62009-11-15 23:12:43 +000021865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
cristy3ed852e2009-09-05 21:47:34 +000021866$as_echo "$ac_cv_sys_interpreter" >&6; }
21867interpval=$ac_cv_sys_interpreter
21868
21869
cristy3ed852e2009-09-05 21:47:34 +000021870# If the C compiler supports the keyword inline, do nothing. Otherwise
21871# define inline to __inline__ or __inline if it accepts one of those,
21872# otherwise define inline to be empty.
cristy8b350f62009-11-15 23:12:43 +000021873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000021874$as_echo_n "checking for inline... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021875if ${ac_cv_c_inline+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021876 $as_echo_n "(cached) " >&6
21877else
21878 ac_cv_c_inline=no
21879for ac_kw in inline __inline__ __inline; do
cristy8b350f62009-11-15 23:12:43 +000021880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021881/* end confdefs.h. */
21882#ifndef __cplusplus
21883typedef int foo_t;
21884static $ac_kw foo_t static_foo () {return 0; }
21885$ac_kw foo_t foo () {return 0; }
21886#endif
21887
21888_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021889if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021890 ac_cv_c_inline=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000021891fi
cristy3ed852e2009-09-05 21:47:34 +000021892rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21893 test "$ac_cv_c_inline" != no && break
21894done
21895
21896fi
cristy8b350f62009-11-15 23:12:43 +000021897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000021898$as_echo "$ac_cv_c_inline" >&6; }
21899
cristy3ed852e2009-09-05 21:47:34 +000021900case $ac_cv_c_inline in
21901 inline | yes) ;;
21902 *)
21903 case $ac_cv_c_inline in
21904 no) ac_val=;;
21905 *) ac_val=$ac_cv_c_inline;;
21906 esac
21907 cat >>confdefs.h <<_ACEOF
21908#ifndef __cplusplus
21909#define inline $ac_val
21910#endif
21911_ACEOF
21912 ;;
21913esac
21914
21915
21916# If the C compiler supports the keyword restrict, do nothing. Otherwise
21917# define restrict to __restrict__ or __restrict if it accepts one of those,
21918# otherwise define restrict to be empty.
cristy8b350f62009-11-15 23:12:43 +000021919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
cristy3ed852e2009-09-05 21:47:34 +000021920$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021921if ${ac_cv_c_restrict+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021922 $as_echo_n "(cached) " >&6
21923else
21924 ac_cv_c_restrict=no
21925 # The order here caters to the fact that C++ does not require restrict.
21926 for ac_kw in __restrict __restrict__ _Restrict restrict; do
cristy8b350f62009-11-15 23:12:43 +000021927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021928/* end confdefs.h. */
21929typedef int * int_ptr;
21930 int foo (int_ptr $ac_kw ip) {
21931 return ip[0];
21932 }
21933int
21934main ()
21935{
21936int s[1];
21937 int * $ac_kw t = s;
21938 t[0] = 0;
21939 return foo(t)
21940 ;
21941 return 0;
21942}
21943_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021944if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021945 ac_cv_c_restrict=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000021946fi
cristy3ed852e2009-09-05 21:47:34 +000021947rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21948 test "$ac_cv_c_restrict" != no && break
21949 done
21950
21951fi
cristy8b350f62009-11-15 23:12:43 +000021952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
cristy3ed852e2009-09-05 21:47:34 +000021953$as_echo "$ac_cv_c_restrict" >&6; }
21954
cristy3ed852e2009-09-05 21:47:34 +000021955 case $ac_cv_c_restrict in
21956 restrict) ;;
cristy8b350f62009-11-15 23:12:43 +000021957 no) $as_echo "#define restrict /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021958 ;;
21959 *) cat >>confdefs.h <<_ACEOF
21960#define restrict $ac_cv_c_restrict
21961_ACEOF
21962 ;;
21963 esac
21964
21965
21966# If words are stored with the most significant byte first (like
21967# Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
cristy8b350f62009-11-15 23:12:43 +000021968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000021969$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021970if ${ac_cv_c_bigendian+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021971 $as_echo_n "(cached) " >&6
21972else
21973 ac_cv_c_bigendian=unknown
21974 # See if we're dealing with a universal compiler.
cristy8b350f62009-11-15 23:12:43 +000021975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021976/* end confdefs.h. */
21977#ifndef __APPLE_CC__
21978 not a universal capable compiler
21979 #endif
21980 typedef int dummy;
21981
21982_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021983if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021984
21985 # Check for potential -arch flags. It is not universal unless
cristy8b350f62009-11-15 23:12:43 +000021986 # there are at least two -arch flags with different values.
21987 ac_arch=
21988 ac_prev=
21989 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
21990 if test -n "$ac_prev"; then
21991 case $ac_word in
21992 i?86 | x86_64 | ppc | ppc64)
21993 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
21994 ac_arch=$ac_word
21995 else
21996 ac_cv_c_bigendian=universal
21997 break
21998 fi
21999 ;;
22000 esac
22001 ac_prev=
22002 elif test "x$ac_word" = "x-arch"; then
22003 ac_prev=arch
22004 fi
22005 done
cristy3ed852e2009-09-05 21:47:34 +000022006fi
cristy3ed852e2009-09-05 21:47:34 +000022007rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22008 if test $ac_cv_c_bigendian = unknown; then
22009 # See if sys/param.h defines the BYTE_ORDER macro.
cristy8b350f62009-11-15 23:12:43 +000022010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022011/* end confdefs.h. */
22012#include <sys/types.h>
22013 #include <sys/param.h>
22014
22015int
22016main ()
22017{
22018#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
22019 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
22020 && LITTLE_ENDIAN)
22021 bogus endian macros
22022 #endif
22023
22024 ;
22025 return 0;
22026}
22027_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022028if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022029 # It does; now see whether it defined to BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000022030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022031/* end confdefs.h. */
22032#include <sys/types.h>
22033 #include <sys/param.h>
22034
22035int
22036main ()
22037{
22038#if BYTE_ORDER != BIG_ENDIAN
22039 not big endian
22040 #endif
22041
22042 ;
22043 return 0;
22044}
22045_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022046if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022047 ac_cv_c_bigendian=yes
22048else
cristy8b350f62009-11-15 23:12:43 +000022049 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000022050fi
cristy3ed852e2009-09-05 21:47:34 +000022051rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022052fi
cristy3ed852e2009-09-05 21:47:34 +000022053rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22054 fi
22055 if test $ac_cv_c_bigendian = unknown; then
22056 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
cristy8b350f62009-11-15 23:12:43 +000022057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022058/* end confdefs.h. */
22059#include <limits.h>
22060
22061int
22062main ()
22063{
22064#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
22065 bogus endian macros
22066 #endif
22067
22068 ;
22069 return 0;
22070}
22071_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022072if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022073 # It does; now see whether it defined to _BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000022074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022075/* end confdefs.h. */
22076#include <limits.h>
22077
22078int
22079main ()
22080{
22081#ifndef _BIG_ENDIAN
22082 not big endian
22083 #endif
22084
22085 ;
22086 return 0;
22087}
22088_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022089if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022090 ac_cv_c_bigendian=yes
22091else
cristy8b350f62009-11-15 23:12:43 +000022092 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000022093fi
cristy3ed852e2009-09-05 21:47:34 +000022094rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022095fi
cristy3ed852e2009-09-05 21:47:34 +000022096rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22097 fi
22098 if test $ac_cv_c_bigendian = unknown; then
22099 # Compile a test program.
cristy8b350f62009-11-15 23:12:43 +000022100 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022101 # Try to guess by grepping values from an object file.
cristy8b350f62009-11-15 23:12:43 +000022102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022103/* end confdefs.h. */
22104short int ascii_mm[] =
22105 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
22106 short int ascii_ii[] =
22107 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
22108 int use_ascii (int i) {
22109 return ascii_mm[i] + ascii_ii[i];
22110 }
22111 short int ebcdic_ii[] =
22112 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
22113 short int ebcdic_mm[] =
22114 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
22115 int use_ebcdic (int i) {
22116 return ebcdic_mm[i] + ebcdic_ii[i];
22117 }
22118 extern int foo;
22119
22120int
22121main ()
22122{
22123return use_ascii (foo) == use_ebcdic (foo);
22124 ;
22125 return 0;
22126}
22127_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022128if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022129 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
22130 ac_cv_c_bigendian=yes
22131 fi
22132 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
22133 if test "$ac_cv_c_bigendian" = unknown; then
22134 ac_cv_c_bigendian=no
22135 else
22136 # finding both strings is unlikely to happen, but who knows?
22137 ac_cv_c_bigendian=unknown
22138 fi
22139 fi
cristy3ed852e2009-09-05 21:47:34 +000022140fi
cristy3ed852e2009-09-05 21:47:34 +000022141rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22142else
cristy8b350f62009-11-15 23:12:43 +000022143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022144/* end confdefs.h. */
22145$ac_includes_default
22146int
22147main ()
22148{
22149
22150 /* Are we little or big endian? From Harbison&Steele. */
22151 union
22152 {
22153 long int l;
22154 char c[sizeof (long int)];
22155 } u;
22156 u.l = 1;
22157 return u.c[sizeof (long int) - 1] == 1;
22158
22159 ;
22160 return 0;
22161}
22162_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022163if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022164 ac_cv_c_bigendian=no
22165else
cristy8b350f62009-11-15 23:12:43 +000022166 ac_cv_c_bigendian=yes
cristy3ed852e2009-09-05 21:47:34 +000022167fi
cristy8b350f62009-11-15 23:12:43 +000022168rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22169 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022170fi
22171
cristy3ed852e2009-09-05 21:47:34 +000022172 fi
22173fi
cristy8b350f62009-11-15 23:12:43 +000022174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000022175$as_echo "$ac_cv_c_bigendian" >&6; }
22176 case $ac_cv_c_bigendian in #(
22177 yes)
cristy8b350f62009-11-15 23:12:43 +000022178 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022179;; #(
22180 no)
22181 ;; #(
22182 universal)
22183
cristy8b350f62009-11-15 23:12:43 +000022184$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022185
22186 ;; #(
22187 *)
cristy98dddb52010-11-04 00:30:15 +000022188 as_fn_error $? "unknown endianness
cristy8b350f62009-11-15 23:12:43 +000022189 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000022190 esac
22191
22192
cristy501c8042011-05-26 17:46:28 +000022193# Define to a suitable type, if standard headers do not define it.
22194ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
22195case $ac_cv_c_int8_t in #(
22196 no|yes) ;; #(
22197 *)
cristy3ed852e2009-09-05 21:47:34 +000022198
22199cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000022200#define int8_t $ac_cv_c_int8_t
22201_ACEOF
22202;;
22203esac
22204
22205ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
22206case $ac_cv_c_int16_t in #(
22207 no|yes) ;; #(
22208 *)
22209
22210cat >>confdefs.h <<_ACEOF
22211#define int16_t $ac_cv_c_int16_t
22212_ACEOF
22213;;
22214esac
22215
22216ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
22217case $ac_cv_c_int32_t in #(
22218 no|yes) ;; #(
22219 *)
22220
22221cat >>confdefs.h <<_ACEOF
22222#define int32_t $ac_cv_c_int32_t
22223_ACEOF
22224;;
22225esac
22226
22227ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
22228case $ac_cv_c_int64_t in #(
22229 no|yes) ;; #(
22230 *)
22231
22232cat >>confdefs.h <<_ACEOF
22233#define int64_t $ac_cv_c_int64_t
22234_ACEOF
22235;;
22236esac
22237
22238
22239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
22240$as_echo_n "checking for long long int... " >&6; }
22241if ${ac_cv_type_long_long_int+:} false; then :
22242 $as_echo_n "(cached) " >&6
22243else
22244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22245/* end confdefs.h. */
22246
22247 /* For now, do not test the preprocessor; as of 2007 there are too many
22248 implementations with broken preprocessors. Perhaps this can
22249 be revisited in 2012. In the meantime, code should not expect
22250 #if to work with literals wider than 32 bits. */
22251 /* Test literals. */
22252 long long int ll = 9223372036854775807ll;
22253 long long int nll = -9223372036854775807LL;
22254 unsigned long long int ull = 18446744073709551615ULL;
22255 /* Test constant expressions. */
22256 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
22257 ? 1 : -1)];
22258 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
22259 ? 1 : -1)];
22260 int i = 63;
22261int
22262main ()
22263{
22264/* Test availability of runtime routines for shift and division. */
22265 long long int llmax = 9223372036854775807ll;
22266 unsigned long long int ullmax = 18446744073709551615ull;
22267 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
22268 | (llmax / ll) | (llmax % ll)
22269 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
22270 | (ullmax / ull) | (ullmax % ull));
22271 ;
22272 return 0;
22273}
22274
22275_ACEOF
22276if ac_fn_c_try_link "$LINENO"; then :
22277 if test "$cross_compiling" = yes; then :
22278 ac_cv_type_long_long_int=yes
22279else
22280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22281/* end confdefs.h. */
22282#include <limits.h>
22283 #ifndef LLONG_MAX
22284 # define HALF \
22285 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
22286 # define LLONG_MAX (HALF - 1 + HALF)
22287 #endif
22288int
22289main ()
22290{
22291long long int n = 1;
22292 int i;
22293 for (i = 0; ; i++)
22294 {
22295 long long int m = n << i;
22296 if (m >> i != n)
22297 return 1;
22298 if (LLONG_MAX / 2 < m)
22299 break;
22300 }
22301 return 0;
22302 ;
22303 return 0;
22304}
22305_ACEOF
22306if ac_fn_c_try_run "$LINENO"; then :
22307 ac_cv_type_long_long_int=yes
22308else
22309 ac_cv_type_long_long_int=no
22310fi
22311rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22312 conftest.$ac_objext conftest.beam conftest.$ac_ext
22313fi
22314
22315else
22316 ac_cv_type_long_long_int=no
22317fi
22318rm -f core conftest.err conftest.$ac_objext \
22319 conftest$ac_exeext conftest.$ac_ext
22320fi
22321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
22322$as_echo "$ac_cv_type_long_long_int" >&6; }
22323 if test $ac_cv_type_long_long_int = yes; then
22324
22325$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
22326
22327 fi
22328
22329
22330
22331 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
22332if test "x$ac_cv_type_intmax_t" = xyes; then :
22333
22334$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
22335
22336else
22337 test $ac_cv_type_long_long_int = yes \
22338 && ac_type='long long int' \
22339 || ac_type='long int'
22340
22341cat >>confdefs.h <<_ACEOF
22342#define intmax_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000022343_ACEOF
22344
22345fi
22346
22347
cristy501c8042011-05-26 17:46:28 +000022348
22349 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
22350if test "x$ac_cv_type_intptr_t" = xyes; then :
22351
22352$as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022353
cristy3ed852e2009-09-05 21:47:34 +000022354else
cristy501c8042011-05-26 17:46:28 +000022355 for ac_type in 'int' 'long int' 'long long int'; do
22356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22357/* end confdefs.h. */
22358$ac_includes_default
22359int
22360main ()
22361{
22362static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
cristy14fefe52012-05-21 00:59:18 +000022363test_array [0] = 0;
22364return test_array [0];
cristy501c8042011-05-26 17:46:28 +000022365
22366 ;
22367 return 0;
22368}
22369_ACEOF
22370if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022371
22372cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000022373#define intptr_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000022374_ACEOF
22375
cristy501c8042011-05-26 17:46:28 +000022376 ac_type=
22377fi
22378rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22379 test -z "$ac_type" && break
22380 done
cristy3ed852e2009-09-05 21:47:34 +000022381fi
22382
22383
cristy3ed852e2009-09-05 21:47:34 +000022384
cristy501c8042011-05-26 17:46:28 +000022385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
22386$as_echo_n "checking for long double... " >&6; }
22387if ${ac_cv_type_long_double+:} false; then :
22388 $as_echo_n "(cached) " >&6
cristy3ed852e2009-09-05 21:47:34 +000022389else
cristy501c8042011-05-26 17:46:28 +000022390 if test "$GCC" = yes; then
22391 ac_cv_type_long_double=yes
22392 else
22393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22394/* end confdefs.h. */
22395/* The Stardent Vistra knows sizeof (long double), but does
22396 not support it. */
22397 long double foo = 0.0L;
22398int
22399main ()
22400{
22401static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8. */
22402 sizeof (double) <= sizeof (long double))];
cristy14fefe52012-05-21 00:59:18 +000022403test_array [0] = 0;
22404return test_array [0];
cristy3ed852e2009-09-05 21:47:34 +000022405
cristy501c8042011-05-26 17:46:28 +000022406 ;
22407 return 0;
22408}
cristy3ed852e2009-09-05 21:47:34 +000022409_ACEOF
cristy501c8042011-05-26 17:46:28 +000022410if ac_fn_c_try_compile "$LINENO"; then :
22411 ac_cv_type_long_double=yes
cristy3ed852e2009-09-05 21:47:34 +000022412else
cristy501c8042011-05-26 17:46:28 +000022413 ac_cv_type_long_double=no
cristy3ed852e2009-09-05 21:47:34 +000022414fi
cristy501c8042011-05-26 17:46:28 +000022415rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22416 fi
cristy3ed852e2009-09-05 21:47:34 +000022417fi
cristy501c8042011-05-26 17:46:28 +000022418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
22419$as_echo "$ac_cv_type_long_double" >&6; }
22420 if test $ac_cv_type_long_double = yes; then
cristy3ed852e2009-09-05 21:47:34 +000022421
cristy501c8042011-05-26 17:46:28 +000022422$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022423
cristy501c8042011-05-26 17:46:28 +000022424 fi
22425
cristy3ed852e2009-09-05 21:47:34 +000022426
cristy8b350f62009-11-15 23:12:43 +000022427 { $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 +000022428$as_echo_n "checking for long double with more range or precision than double... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022429if ${ac_cv_type_long_double_wider+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022430 $as_echo_n "(cached) " >&6
22431else
cristy8b350f62009-11-15 23:12:43 +000022432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022433/* end confdefs.h. */
22434#include <float.h>
22435 long double const a[] =
22436 {
22437 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
22438 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
22439 };
22440 long double
22441 f (long double x)
22442 {
22443 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
22444 + (x ? f (x) : 'c'));
22445 }
22446
22447int
22448main ()
22449{
22450static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
22451 + (DBL_MANT_DIG < LDBL_MANT_DIG)
22452 - (LDBL_MAX_EXP < DBL_MAX_EXP)
22453 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
22454 && (int) LDBL_EPSILON == 0
22455 )];
cristy14fefe52012-05-21 00:59:18 +000022456test_array [0] = 0;
22457return test_array [0];
cristy3ed852e2009-09-05 21:47:34 +000022458
22459 ;
22460 return 0;
22461}
22462_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022463if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022464 ac_cv_type_long_double_wider=yes
22465else
cristy8b350f62009-11-15 23:12:43 +000022466 ac_cv_type_long_double_wider=no
cristy3ed852e2009-09-05 21:47:34 +000022467fi
cristy3ed852e2009-09-05 21:47:34 +000022468rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22469fi
cristy8b350f62009-11-15 23:12:43 +000022470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
cristy3ed852e2009-09-05 21:47:34 +000022471$as_echo "$ac_cv_type_long_double_wider" >&6; }
22472 if test $ac_cv_type_long_double_wider = yes; then
22473
cristy8b350f62009-11-15 23:12:43 +000022474$as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022475
22476 fi
22477
22478
cristy501c8042011-05-26 17:46:28 +000022479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
22480$as_echo_n "checking for long long int... " >&6; }
22481if ${ac_cv_type_long_long_int+:} false; then :
22482 $as_echo_n "(cached) " >&6
22483else
22484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22485/* end confdefs.h. */
22486
22487 /* For now, do not test the preprocessor; as of 2007 there are too many
22488 implementations with broken preprocessors. Perhaps this can
22489 be revisited in 2012. In the meantime, code should not expect
22490 #if to work with literals wider than 32 bits. */
22491 /* Test literals. */
22492 long long int ll = 9223372036854775807ll;
22493 long long int nll = -9223372036854775807LL;
22494 unsigned long long int ull = 18446744073709551615ULL;
22495 /* Test constant expressions. */
22496 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
22497 ? 1 : -1)];
22498 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
22499 ? 1 : -1)];
22500 int i = 63;
22501int
22502main ()
22503{
22504/* Test availability of runtime routines for shift and division. */
22505 long long int llmax = 9223372036854775807ll;
22506 unsigned long long int ullmax = 18446744073709551615ull;
22507 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
22508 | (llmax / ll) | (llmax % ll)
22509 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
22510 | (ullmax / ull) | (ullmax % ull));
22511 ;
22512 return 0;
22513}
22514
22515_ACEOF
22516if ac_fn_c_try_link "$LINENO"; then :
22517 if test "$cross_compiling" = yes; then :
22518 ac_cv_type_long_long_int=yes
22519else
22520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22521/* end confdefs.h. */
22522#include <limits.h>
22523 #ifndef LLONG_MAX
22524 # define HALF \
22525 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
22526 # define LLONG_MAX (HALF - 1 + HALF)
22527 #endif
22528int
22529main ()
22530{
22531long long int n = 1;
22532 int i;
22533 for (i = 0; ; i++)
22534 {
22535 long long int m = n << i;
22536 if (m >> i != n)
22537 return 1;
22538 if (LLONG_MAX / 2 < m)
22539 break;
22540 }
22541 return 0;
22542 ;
22543 return 0;
22544}
22545_ACEOF
22546if ac_fn_c_try_run "$LINENO"; then :
22547 ac_cv_type_long_long_int=yes
22548else
22549 ac_cv_type_long_long_int=no
22550fi
22551rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22552 conftest.$ac_objext conftest.beam conftest.$ac_ext
22553fi
22554
22555else
22556 ac_cv_type_long_long_int=no
22557fi
22558rm -f core conftest.err conftest.$ac_objext \
22559 conftest$ac_exeext conftest.$ac_ext
22560fi
22561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
22562$as_echo "$ac_cv_type_long_long_int" >&6; }
22563 if test $ac_cv_type_long_long_int = yes; then
22564
22565$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
22566
22567 fi
22568
22569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
22570$as_echo_n "checking for mbstate_t... " >&6; }
22571if ${ac_cv_type_mbstate_t+:} false; then :
22572 $as_echo_n "(cached) " >&6
22573else
22574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22575/* end confdefs.h. */
22576$ac_includes_default
22577# include <wchar.h>
22578int
22579main ()
22580{
22581mbstate_t x; return sizeof x;
22582 ;
22583 return 0;
22584}
22585_ACEOF
22586if ac_fn_c_try_compile "$LINENO"; then :
22587 ac_cv_type_mbstate_t=yes
22588else
22589 ac_cv_type_mbstate_t=no
22590fi
22591rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22592fi
22593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
22594$as_echo "$ac_cv_type_mbstate_t" >&6; }
22595 if test $ac_cv_type_mbstate_t = yes; then
22596
22597$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
22598
22599 else
22600
22601$as_echo "#define mbstate_t int" >>confdefs.h
22602
22603 fi
22604ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
22605if test "x$ac_cv_type_mode_t" = xyes; then :
22606
22607else
22608
22609cat >>confdefs.h <<_ACEOF
22610#define mode_t int
22611_ACEOF
22612
22613fi
22614
22615ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
22616if test "x$ac_cv_type_off_t" = xyes; then :
22617
22618else
22619
22620cat >>confdefs.h <<_ACEOF
22621#define off_t long int
22622_ACEOF
22623
22624fi
22625
22626ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
22627if test "x$ac_cv_type_pid_t" = xyes; then :
22628
22629else
22630
22631cat >>confdefs.h <<_ACEOF
22632#define pid_t int
22633_ACEOF
22634
22635fi
22636
22637ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
22638if test "x$ac_cv_type_size_t" = xyes; then :
22639
22640else
22641
22642cat >>confdefs.h <<_ACEOF
22643#define size_t unsigned int
22644_ACEOF
22645
22646fi
22647
22648ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
22649if test "x$ac_cv_type_ssize_t" = xyes; then :
22650
22651else
22652
22653cat >>confdefs.h <<_ACEOF
22654#define ssize_t int
22655_ACEOF
22656
22657fi
22658
22659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
22660$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
22661if ${ac_cv_type_uid_t+:} false; then :
22662 $as_echo_n "(cached) " >&6
22663else
22664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22665/* end confdefs.h. */
22666#include <sys/types.h>
22667
22668_ACEOF
22669if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22670 $EGREP "uid_t" >/dev/null 2>&1; then :
22671 ac_cv_type_uid_t=yes
22672else
22673 ac_cv_type_uid_t=no
22674fi
22675rm -f conftest*
22676
22677fi
22678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
22679$as_echo "$ac_cv_type_uid_t" >&6; }
22680if test $ac_cv_type_uid_t = no; then
22681
22682$as_echo "#define uid_t int" >>confdefs.h
22683
22684
22685$as_echo "#define gid_t int" >>confdefs.h
22686
22687fi
22688
22689ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
22690case $ac_cv_c_uint8_t in #(
22691 no|yes) ;; #(
22692 *)
22693
22694$as_echo "#define _UINT8_T 1" >>confdefs.h
22695
22696
22697cat >>confdefs.h <<_ACEOF
22698#define uint8_t $ac_cv_c_uint8_t
22699_ACEOF
22700;;
22701 esac
22702
22703ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
22704case $ac_cv_c_uint16_t in #(
22705 no|yes) ;; #(
22706 *)
22707
22708
22709cat >>confdefs.h <<_ACEOF
22710#define uint16_t $ac_cv_c_uint16_t
22711_ACEOF
22712;;
22713 esac
22714
22715ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
22716case $ac_cv_c_uint32_t in #(
22717 no|yes) ;; #(
22718 *)
22719
22720$as_echo "#define _UINT32_T 1" >>confdefs.h
22721
22722
22723cat >>confdefs.h <<_ACEOF
22724#define uint32_t $ac_cv_c_uint32_t
22725_ACEOF
22726;;
22727 esac
22728
22729ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
22730case $ac_cv_c_uint64_t in #(
22731 no|yes) ;; #(
22732 *)
22733
22734$as_echo "#define _UINT64_T 1" >>confdefs.h
22735
22736
22737cat >>confdefs.h <<_ACEOF
22738#define uint64_t $ac_cv_c_uint64_t
22739_ACEOF
22740;;
22741 esac
22742
22743
22744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
22745$as_echo_n "checking for unsigned long long int... " >&6; }
22746if ${ac_cv_type_unsigned_long_long_int+:} false; then :
22747 $as_echo_n "(cached) " >&6
22748else
22749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22750/* end confdefs.h. */
22751
22752 /* For now, do not test the preprocessor; as of 2007 there are too many
22753 implementations with broken preprocessors. Perhaps this can
22754 be revisited in 2012. In the meantime, code should not expect
22755 #if to work with literals wider than 32 bits. */
22756 /* Test literals. */
22757 long long int ll = 9223372036854775807ll;
22758 long long int nll = -9223372036854775807LL;
22759 unsigned long long int ull = 18446744073709551615ULL;
22760 /* Test constant expressions. */
22761 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
22762 ? 1 : -1)];
22763 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
22764 ? 1 : -1)];
22765 int i = 63;
22766int
22767main ()
22768{
22769/* Test availability of runtime routines for shift and division. */
22770 long long int llmax = 9223372036854775807ll;
22771 unsigned long long int ullmax = 18446744073709551615ull;
22772 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
22773 | (llmax / ll) | (llmax % ll)
22774 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
22775 | (ullmax / ull) | (ullmax % ull));
22776 ;
22777 return 0;
22778}
22779
22780_ACEOF
22781if ac_fn_c_try_link "$LINENO"; then :
22782 ac_cv_type_unsigned_long_long_int=yes
22783else
22784 ac_cv_type_unsigned_long_long_int=no
22785fi
22786rm -f core conftest.err conftest.$ac_objext \
22787 conftest$ac_exeext conftest.$ac_ext
22788fi
22789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
22790$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
22791 if test $ac_cv_type_unsigned_long_long_int = yes; then
22792
22793$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
22794
22795 fi
22796
22797
22798
22799 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
22800if test "x$ac_cv_type_uintmax_t" = xyes; then :
22801
22802$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
22803
22804else
22805 test $ac_cv_type_unsigned_long_long_int = yes \
22806 && ac_type='unsigned long long int' \
22807 || ac_type='unsigned long int'
22808
22809cat >>confdefs.h <<_ACEOF
22810#define uintmax_t $ac_type
22811_ACEOF
22812
22813fi
22814
22815
22816
22817 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
22818if test "x$ac_cv_type_uintptr_t" = xyes; then :
22819
22820$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
22821
22822else
22823 for ac_type in 'unsigned int' 'unsigned long int' \
22824 'unsigned long long int'; do
22825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22826/* end confdefs.h. */
22827$ac_includes_default
22828int
22829main ()
22830{
22831static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
cristy14fefe52012-05-21 00:59:18 +000022832test_array [0] = 0;
22833return test_array [0];
cristy501c8042011-05-26 17:46:28 +000022834
22835 ;
22836 return 0;
22837}
22838_ACEOF
22839if ac_fn_c_try_compile "$LINENO"; then :
22840
22841cat >>confdefs.h <<_ACEOF
22842#define uintptr_t $ac_type
22843_ACEOF
22844
22845 ac_type=
22846fi
22847rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22848 test -z "$ac_type" && break
22849 done
22850fi
22851
22852
22853
22854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
22855$as_echo_n "checking for unsigned long long int... " >&6; }
22856if ${ac_cv_type_unsigned_long_long_int+:} false; then :
22857 $as_echo_n "(cached) " >&6
22858else
22859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22860/* end confdefs.h. */
22861
22862 /* For now, do not test the preprocessor; as of 2007 there are too many
22863 implementations with broken preprocessors. Perhaps this can
22864 be revisited in 2012. In the meantime, code should not expect
22865 #if to work with literals wider than 32 bits. */
22866 /* Test literals. */
22867 long long int ll = 9223372036854775807ll;
22868 long long int nll = -9223372036854775807LL;
22869 unsigned long long int ull = 18446744073709551615ULL;
22870 /* Test constant expressions. */
22871 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
22872 ? 1 : -1)];
22873 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
22874 ? 1 : -1)];
22875 int i = 63;
22876int
22877main ()
22878{
22879/* Test availability of runtime routines for shift and division. */
22880 long long int llmax = 9223372036854775807ll;
22881 unsigned long long int ullmax = 18446744073709551615ull;
22882 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
22883 | (llmax / ll) | (llmax % ll)
22884 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
22885 | (ullmax / ull) | (ullmax % ull));
22886 ;
22887 return 0;
22888}
22889
22890_ACEOF
22891if ac_fn_c_try_link "$LINENO"; then :
22892 ac_cv_type_unsigned_long_long_int=yes
22893else
22894 ac_cv_type_unsigned_long_long_int=no
22895fi
22896rm -f core conftest.err conftest.$ac_objext \
22897 conftest$ac_exeext conftest.$ac_ext
22898fi
22899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
22900$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
22901 if test $ac_cv_type_unsigned_long_long_int = yes; then
22902
22903$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
22904
22905 fi
22906
22907
cristy3ed852e2009-09-05 21:47:34 +000022908# If the C type char is unsigned, define __CHAR_UNSIGNED__, unless the
22909# C compiler predefines it.
cristy8b350f62009-11-15 23:12:43 +000022910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000022911$as_echo_n "checking whether char is unsigned... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022912if ${ac_cv_c_char_unsigned+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022913 $as_echo_n "(cached) " >&6
22914else
cristy8b350f62009-11-15 23:12:43 +000022915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022916/* end confdefs.h. */
22917$ac_includes_default
22918int
22919main ()
22920{
22921static int test_array [1 - 2 * !(((char) -1) < 0)];
cristy14fefe52012-05-21 00:59:18 +000022922test_array [0] = 0;
22923return test_array [0];
cristy3ed852e2009-09-05 21:47:34 +000022924
22925 ;
22926 return 0;
22927}
22928_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022929if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022930 ac_cv_c_char_unsigned=no
22931else
cristy8b350f62009-11-15 23:12:43 +000022932 ac_cv_c_char_unsigned=yes
cristy3ed852e2009-09-05 21:47:34 +000022933fi
cristy3ed852e2009-09-05 21:47:34 +000022934rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22935fi
cristy8b350f62009-11-15 23:12:43 +000022936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000022937$as_echo "$ac_cv_c_char_unsigned" >&6; }
22938if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
cristy8b350f62009-11-15 23:12:43 +000022939 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022940
22941fi
22942
22943
cristy9b86f202012-11-28 21:55:35 +000022944# Float_t and double_t are intended to be the the most efficient type.
cristyf0cf9a22012-10-24 12:05:01 +000022945ac_fn_c_check_type "$LINENO" "float_t" "ac_cv_type_float_t" "#include <math.h>
22946"
22947if test "x$ac_cv_type_float_t" = xyes; then :
22948
22949cat >>confdefs.h <<_ACEOF
22950#define HAVE_FLOAT_T 1
22951_ACEOF
22952
22953
22954fi
22955
22956ac_fn_c_check_type "$LINENO" "double_t" "ac_cv_type_double_t" "#include <math.h>
22957"
22958if test "x$ac_cv_type_double_t" = xyes; then :
22959
22960cat >>confdefs.h <<_ACEOF
22961#define HAVE_DOUBLE_T 1
22962_ACEOF
22963
22964
22965fi
22966
cristy9b86f202012-11-28 21:55:35 +000022967# The cast to long int works around a bug in the HP C Compiler
22968# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22969# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22970# This bug is HP SR number 8606223364.
22971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float_t" >&5
22972$as_echo_n "checking size of float_t... " >&6; }
22973if ${ac_cv_sizeof_float_t+:} false; then :
22974 $as_echo_n "(cached) " >&6
22975else
22976 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float_t))" "ac_cv_sizeof_float_t" "#include <math.h>
22977"; then :
22978
22979else
22980 if test "$ac_cv_type_float_t" = yes; then
22981 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22982$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22983as_fn_error 77 "cannot compute sizeof (float_t)
22984See \`config.log' for more details" "$LINENO" 5; }
22985 else
22986 ac_cv_sizeof_float_t=0
22987 fi
22988fi
22989
22990fi
22991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float_t" >&5
22992$as_echo "$ac_cv_sizeof_float_t" >&6; }
22993
22994
22995
22996cat >>confdefs.h <<_ACEOF
22997#define SIZEOF_FLOAT_T $ac_cv_sizeof_float_t
22998_ACEOF
22999
23000
23001# The cast to long int works around a bug in the HP C Compiler
23002# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23003# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23004# This bug is HP SR number 8606223364.
23005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double_t" >&5
23006$as_echo_n "checking size of double_t... " >&6; }
23007if ${ac_cv_sizeof_double_t+:} false; then :
23008 $as_echo_n "(cached) " >&6
23009else
23010 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double_t))" "ac_cv_sizeof_double_t" "#include <math.h>
23011"; then :
23012
23013else
23014 if test "$ac_cv_type_double_t" = yes; then
23015 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23016$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23017as_fn_error 77 "cannot compute sizeof (double_t)
23018See \`config.log' for more details" "$LINENO" 5; }
23019 else
23020 ac_cv_sizeof_double_t=0
23021 fi
23022fi
23023
23024fi
23025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double_t" >&5
23026$as_echo "$ac_cv_sizeof_double_t" >&6; }
23027
23028
23029
23030cat >>confdefs.h <<_ACEOF
23031#define SIZEOF_DOUBLE_T $ac_cv_sizeof_double_t
23032_ACEOF
23033
23034
23035
23036# Get size of float, double and long double for comparaison.
23037# The cast to long int works around a bug in the HP C Compiler
23038# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23039# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23040# This bug is HP SR number 8606223364.
23041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
23042$as_echo_n "checking size of float... " >&6; }
23043if ${ac_cv_sizeof_float+:} false; then :
23044 $as_echo_n "(cached) " >&6
23045else
23046 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default"; then :
23047
23048else
23049 if test "$ac_cv_type_float" = yes; then
23050 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23051$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23052as_fn_error 77 "cannot compute sizeof (float)
23053See \`config.log' for more details" "$LINENO" 5; }
23054 else
23055 ac_cv_sizeof_float=0
23056 fi
23057fi
23058
23059fi
23060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
23061$as_echo "$ac_cv_sizeof_float" >&6; }
23062
23063
23064
23065cat >>confdefs.h <<_ACEOF
23066#define SIZEOF_FLOAT $ac_cv_sizeof_float
23067_ACEOF
23068
23069
23070# The cast to long int works around a bug in the HP C Compiler
23071# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23072# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23073# This bug is HP SR number 8606223364.
23074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
23075$as_echo_n "checking size of double... " >&6; }
23076if ${ac_cv_sizeof_double+:} false; then :
23077 $as_echo_n "(cached) " >&6
23078else
23079 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
23080
23081else
23082 if test "$ac_cv_type_double" = yes; then
23083 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23084$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23085as_fn_error 77 "cannot compute sizeof (double)
23086See \`config.log' for more details" "$LINENO" 5; }
23087 else
23088 ac_cv_sizeof_double=0
23089 fi
23090fi
23091
23092fi
23093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
23094$as_echo "$ac_cv_sizeof_double" >&6; }
23095
23096
23097
23098cat >>confdefs.h <<_ACEOF
23099#define SIZEOF_DOUBLE $ac_cv_sizeof_double
23100_ACEOF
23101
23102
23103# The cast to long int works around a bug in the HP C Compiler
23104# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23105# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23106# This bug is HP SR number 8606223364.
23107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
23108$as_echo_n "checking size of long double... " >&6; }
23109if ${ac_cv_sizeof_long_double+:} false; then :
23110 $as_echo_n "(cached) " >&6
23111else
23112 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then :
23113
23114else
23115 if test "$ac_cv_type_long_double" = yes; then
23116 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23117$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23118as_fn_error 77 "cannot compute sizeof (long double)
23119See \`config.log' for more details" "$LINENO" 5; }
23120 else
23121 ac_cv_sizeof_long_double=0
23122 fi
23123fi
23124
23125fi
23126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
23127$as_echo "$ac_cv_sizeof_long_double" >&6; }
23128
23129
23130
23131cat >>confdefs.h <<_ACEOF
23132#define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
23133_ACEOF
23134
23135
cristyf0cf9a22012-10-24 12:05:01 +000023136
cristy3ed852e2009-09-05 21:47:34 +000023137# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
23138# The cast to long int works around a bug in the HP C Compiler
23139# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23140# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23141# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023143$as_echo_n "checking size of signed short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023144if ${ac_cv_sizeof_signed_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023145 $as_echo_n "(cached) " >&6
23146else
cristy8b350f62009-11-15 23:12:43 +000023147 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 +000023148
cristy3ed852e2009-09-05 21:47:34 +000023149else
cristy8b350f62009-11-15 23:12:43 +000023150 if test "$ac_cv_type_signed_short" = yes; then
23151 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023152$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023153as_fn_error 77 "cannot compute sizeof (signed short)
23154See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023155 else
23156 ac_cv_sizeof_signed_short=0
23157 fi
23158fi
cristy8b350f62009-11-15 23:12:43 +000023159
cristy3ed852e2009-09-05 21:47:34 +000023160fi
cristy8b350f62009-11-15 23:12:43 +000023161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023162$as_echo "$ac_cv_sizeof_signed_short" >&6; }
23163
23164
23165
23166cat >>confdefs.h <<_ACEOF
23167#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
23168_ACEOF
23169
23170
23171
23172# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
23173# The cast to long int works around a bug in the HP C Compiler
23174# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23175# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23176# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023178$as_echo_n "checking size of unsigned short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023179if ${ac_cv_sizeof_unsigned_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023180 $as_echo_n "(cached) " >&6
23181else
cristy8b350f62009-11-15 23:12:43 +000023182 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 +000023183
cristy3ed852e2009-09-05 21:47:34 +000023184else
cristy8b350f62009-11-15 23:12:43 +000023185 if test "$ac_cv_type_unsigned_short" = yes; then
23186 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023187$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023188as_fn_error 77 "cannot compute sizeof (unsigned short)
23189See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023190 else
23191 ac_cv_sizeof_unsigned_short=0
23192 fi
23193fi
cristy8b350f62009-11-15 23:12:43 +000023194
cristy3ed852e2009-09-05 21:47:34 +000023195fi
cristy8b350f62009-11-15 23:12:43 +000023196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023197$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
23198
23199
23200
23201cat >>confdefs.h <<_ACEOF
23202#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
23203_ACEOF
23204
23205
23206
23207# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
23208# The cast to long int works around a bug in the HP C Compiler
23209# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23210# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23211# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023213$as_echo_n "checking size of signed int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023214if ${ac_cv_sizeof_signed_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023215 $as_echo_n "(cached) " >&6
23216else
cristy8b350f62009-11-15 23:12:43 +000023217 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 +000023218
cristy3ed852e2009-09-05 21:47:34 +000023219else
cristy8b350f62009-11-15 23:12:43 +000023220 if test "$ac_cv_type_signed_int" = yes; then
23221 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023222$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023223as_fn_error 77 "cannot compute sizeof (signed int)
23224See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023225 else
23226 ac_cv_sizeof_signed_int=0
23227 fi
23228fi
cristy8b350f62009-11-15 23:12:43 +000023229
cristy3ed852e2009-09-05 21:47:34 +000023230fi
cristy8b350f62009-11-15 23:12:43 +000023231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023232$as_echo "$ac_cv_sizeof_signed_int" >&6; }
23233
23234
23235
23236cat >>confdefs.h <<_ACEOF
23237#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
23238_ACEOF
23239
23240
23241
23242# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
23243# The cast to long int works around a bug in the HP C Compiler
23244# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23245# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23246# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023248$as_echo_n "checking size of unsigned int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023249if ${ac_cv_sizeof_unsigned_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023250 $as_echo_n "(cached) " >&6
23251else
cristy8b350f62009-11-15 23:12:43 +000023252 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 +000023253
cristy3ed852e2009-09-05 21:47:34 +000023254else
cristy8b350f62009-11-15 23:12:43 +000023255 if test "$ac_cv_type_unsigned_int" = yes; then
23256 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023257$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023258as_fn_error 77 "cannot compute sizeof (unsigned int)
23259See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023260 else
23261 ac_cv_sizeof_unsigned_int=0
23262 fi
23263fi
cristy8b350f62009-11-15 23:12:43 +000023264
cristy3ed852e2009-09-05 21:47:34 +000023265fi
cristy8b350f62009-11-15 23:12:43 +000023266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023267$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
23268
23269
23270
23271cat >>confdefs.h <<_ACEOF
23272#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
23273_ACEOF
23274
23275
23276
23277# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
23278# The cast to long int works around a bug in the HP C Compiler
23279# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23280# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23281# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023283$as_echo_n "checking size of signed long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023284if ${ac_cv_sizeof_signed_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023285 $as_echo_n "(cached) " >&6
23286else
cristy8b350f62009-11-15 23:12:43 +000023287 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 +000023288
cristy3ed852e2009-09-05 21:47:34 +000023289else
cristy8b350f62009-11-15 23:12:43 +000023290 if test "$ac_cv_type_signed_long" = yes; then
23291 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023292$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023293as_fn_error 77 "cannot compute sizeof (signed long)
23294See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023295 else
23296 ac_cv_sizeof_signed_long=0
23297 fi
23298fi
cristy8b350f62009-11-15 23:12:43 +000023299
cristy3ed852e2009-09-05 21:47:34 +000023300fi
cristy8b350f62009-11-15 23:12:43 +000023301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023302$as_echo "$ac_cv_sizeof_signed_long" >&6; }
23303
23304
23305
23306cat >>confdefs.h <<_ACEOF
23307#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
23308_ACEOF
23309
23310
23311
23312# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
23313# The cast to long int works around a bug in the HP C Compiler
23314# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23315# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23316# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023318$as_echo_n "checking size of unsigned long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023319if ${ac_cv_sizeof_unsigned_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023320 $as_echo_n "(cached) " >&6
23321else
cristy8b350f62009-11-15 23:12:43 +000023322 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 +000023323
cristy3ed852e2009-09-05 21:47:34 +000023324else
cristy8b350f62009-11-15 23:12:43 +000023325 if test "$ac_cv_type_unsigned_long" = yes; then
23326 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023327$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023328as_fn_error 77 "cannot compute sizeof (unsigned long)
23329See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023330 else
23331 ac_cv_sizeof_unsigned_long=0
23332 fi
23333fi
cristy8b350f62009-11-15 23:12:43 +000023334
cristy3ed852e2009-09-05 21:47:34 +000023335fi
cristy8b350f62009-11-15 23:12:43 +000023336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023337$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
23338
23339
23340
23341cat >>confdefs.h <<_ACEOF
23342#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
23343_ACEOF
23344
23345
23346
23347# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If
23348# 'signed long long' is not supported then the value defined is zero.
23349# The cast to long int works around a bug in the HP C Compiler
23350# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23351# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23352# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023354$as_echo_n "checking size of signed long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023355if ${ac_cv_sizeof_signed_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023356 $as_echo_n "(cached) " >&6
23357else
cristy8b350f62009-11-15 23:12:43 +000023358 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 +000023359
cristy3ed852e2009-09-05 21:47:34 +000023360else
cristy8b350f62009-11-15 23:12:43 +000023361 if test "$ac_cv_type_signed_long_long" = yes; then
23362 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023363$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023364as_fn_error 77 "cannot compute sizeof (signed long long)
23365See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023366 else
23367 ac_cv_sizeof_signed_long_long=0
23368 fi
23369fi
cristy8b350f62009-11-15 23:12:43 +000023370
cristy3ed852e2009-09-05 21:47:34 +000023371fi
cristy8b350f62009-11-15 23:12:43 +000023372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023373$as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
23374
23375
23376
23377cat >>confdefs.h <<_ACEOF
23378#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
23379_ACEOF
23380
23381
23382
23383# Obtain size of a 'unsigned long long' and define as
23384# SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not
23385# supported then the value defined is zero.
23386# The cast to long int works around a bug in the HP C Compiler
23387# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23388# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23389# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023391$as_echo_n "checking size of unsigned long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023392if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023393 $as_echo_n "(cached) " >&6
23394else
cristy8b350f62009-11-15 23:12:43 +000023395 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 +000023396
cristy3ed852e2009-09-05 21:47:34 +000023397else
cristy8b350f62009-11-15 23:12:43 +000023398 if test "$ac_cv_type_unsigned_long_long" = yes; then
23399 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023400$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023401as_fn_error 77 "cannot compute sizeof (unsigned long long)
23402See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023403 else
23404 ac_cv_sizeof_unsigned_long_long=0
23405 fi
23406fi
cristy8b350f62009-11-15 23:12:43 +000023407
cristy3ed852e2009-09-05 21:47:34 +000023408fi
cristy8b350f62009-11-15 23:12:43 +000023409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023410$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
23411
23412
23413
23414cat >>confdefs.h <<_ACEOF
23415#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
23416_ACEOF
23417
23418
23419
23420# Obtain size of off_t and define as SIZEOF_OFF_T
23421# The cast to long int works around a bug in the HP C Compiler
23422# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23423# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23424# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000023426$as_echo_n "checking size of off_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023427if ${ac_cv_sizeof_off_t+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023428 $as_echo_n "(cached) " >&6
23429else
cristy8b350f62009-11-15 23:12:43 +000023430 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 +000023431
cristy3ed852e2009-09-05 21:47:34 +000023432else
cristy8b350f62009-11-15 23:12:43 +000023433 if test "$ac_cv_type_off_t" = yes; then
23434 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023435$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023436as_fn_error 77 "cannot compute sizeof (off_t)
23437See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023438 else
23439 ac_cv_sizeof_off_t=0
23440 fi
23441fi
cristy8b350f62009-11-15 23:12:43 +000023442
cristy3ed852e2009-09-05 21:47:34 +000023443fi
cristy8b350f62009-11-15 23:12:43 +000023444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000023445$as_echo "$ac_cv_sizeof_off_t" >&6; }
23446
23447
23448
23449cat >>confdefs.h <<_ACEOF
23450#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
23451_ACEOF
23452
23453
23454
23455# Obtain size of size_t and define as SIZEOF_SIZE_T
23456# The cast to long int works around a bug in the HP C Compiler
23457# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23458# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23459# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000023461$as_echo_n "checking size of size_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023462if ${ac_cv_sizeof_size_t+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023463 $as_echo_n "(cached) " >&6
23464else
cristy8b350f62009-11-15 23:12:43 +000023465 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 +000023466
cristy3ed852e2009-09-05 21:47:34 +000023467else
cristy8b350f62009-11-15 23:12:43 +000023468 if test "$ac_cv_type_size_t" = yes; then
23469 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023470$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023471as_fn_error 77 "cannot compute sizeof (size_t)
23472See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023473 else
23474 ac_cv_sizeof_size_t=0
23475 fi
23476fi
cristy8b350f62009-11-15 23:12:43 +000023477
cristy3ed852e2009-09-05 21:47:34 +000023478fi
cristy8b350f62009-11-15 23:12:43 +000023479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000023480$as_echo "$ac_cv_sizeof_size_t" >&6; }
23481
23482
23483
23484cat >>confdefs.h <<_ACEOF
23485#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
23486_ACEOF
23487
23488
23489
cristy330e9352010-06-01 18:42:49 +000023490# Obtain size of ssize_t and define as SIZEOF_SSIZE_T
23491# The cast to long int works around a bug in the HP C Compiler
23492# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23493# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23494# This bug is HP SR number 8606223364.
23495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
23496$as_echo_n "checking size of ssize_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023497if ${ac_cv_sizeof_ssize_t+:} false; then :
cristy330e9352010-06-01 18:42:49 +000023498 $as_echo_n "(cached) " >&6
23499else
23500 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t" "$ac_includes_default"; then :
23501
23502else
23503 if test "$ac_cv_type_ssize_t" = yes; then
23504 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23505$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023506as_fn_error 77 "cannot compute sizeof (ssize_t)
23507See \`config.log' for more details" "$LINENO" 5; }
cristy330e9352010-06-01 18:42:49 +000023508 else
23509 ac_cv_sizeof_ssize_t=0
23510 fi
23511fi
23512
23513fi
23514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
23515$as_echo "$ac_cv_sizeof_ssize_t" >&6; }
23516
23517
23518
23519cat >>confdefs.h <<_ACEOF
23520#define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
23521_ACEOF
23522
23523
23524
cristy3ed852e2009-09-05 21:47:34 +000023525# Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
23526# The cast to long int works around a bug in the HP C Compiler
23527# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23528# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23529# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
cristy3ed852e2009-09-05 21:47:34 +000023531$as_echo_n "checking size of unsigned int*... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023532if ${ac_cv_sizeof_unsigned_intp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023533 $as_echo_n "(cached) " >&6
23534else
cristy8b350f62009-11-15 23:12:43 +000023535 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 +000023536
cristy3ed852e2009-09-05 21:47:34 +000023537else
cristy8b350f62009-11-15 23:12:43 +000023538 if test "$ac_cv_type_unsigned_intp" = yes; then
23539 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023540$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023541as_fn_error 77 "cannot compute sizeof (unsigned int*)
23542See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023543 else
23544 ac_cv_sizeof_unsigned_intp=0
23545 fi
23546fi
cristy8b350f62009-11-15 23:12:43 +000023547
cristy3ed852e2009-09-05 21:47:34 +000023548fi
cristy8b350f62009-11-15 23:12:43 +000023549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
cristy3ed852e2009-09-05 21:47:34 +000023550$as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
23551
23552
23553
23554cat >>confdefs.h <<_ACEOF
23555#define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
23556_ACEOF
23557
23558
23559
23560#
23561# Compute sized types for current CPU and compiler options.
23562#
23563
cristy8b350f62009-11-15 23:12:43 +000023564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023565$as_echo_n "checking for signed 8-bit type... " >&6; }
23566INT8_T='signed char'
cristy09b53e12011-10-14 12:47:22 +000023567{ $as_echo "$as_me:${as_lineno-$LINENO}: $INT8_T" >&5
23568$as_echo "$as_me: $INT8_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023569
23570
cristy8b350f62009-11-15 23:12:43 +000023571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023572$as_echo_n "checking for unsigned 8-bit type... " >&6; }
23573UINT8_T='unsigned char'
cristy09b53e12011-10-14 12:47:22 +000023574{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINT8_T" >&5
23575$as_echo "$as_me: $UINT8_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023576
23577
cristy8b350f62009-11-15 23:12:43 +000023578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023579$as_echo_n "checking for signed 16-bit type... " >&6; }
23580INT16_T='signed short'
cristy09b53e12011-10-14 12:47:22 +000023581{ $as_echo "$as_me:${as_lineno-$LINENO}: $INT16_T" >&5
23582$as_echo "$as_me: $INT16_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023583
23584
cristy8b350f62009-11-15 23:12:43 +000023585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023586$as_echo_n "checking for unsigned 16-bit type... " >&6; }
23587UINT16_T='unsigned short'
cristy09b53e12011-10-14 12:47:22 +000023588{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINT16_T" >&5
23589$as_echo "$as_me: $UINT16_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023590
23591
cristy8b350f62009-11-15 23:12:43 +000023592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023593$as_echo_n "checking for signed 32-bit type... " >&6; }
23594INT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023595INT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023596if test $ac_cv_sizeof_signed_int -eq 4; then
23597 INT32_T='signed int'
cristy6d5e20f2011-04-25 13:48:54 +000023598 INT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000023599elif test $ac_cv_sizeof_signed_long -eq 4; then
23600 INT32_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000023601 INT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023602fi
cristy09b53e12011-10-14 12:47:22 +000023603{ $as_echo "$as_me:${as_lineno-$LINENO}: $INT32_T" >&5
23604$as_echo "$as_me: $INT32_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023605
23606
cristy6d5e20f2011-04-25 13:48:54 +000023607
cristy8b350f62009-11-15 23:12:43 +000023608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023609$as_echo_n "checking for unsigned 32-bit type... " >&6; }
23610UINT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023611UINT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023612if test $ac_cv_sizeof_unsigned_int -eq 4; then
23613 UINT32_T='unsigned int'
cristy6d5e20f2011-04-25 13:48:54 +000023614 UINT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000023615elif test $ac_cv_sizeof_unsigned_long -eq 4; then
23616 UINT32_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000023617 UINT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023618fi
cristy09b53e12011-10-14 12:47:22 +000023619{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINT32_T" >&5
23620$as_echo "$as_me: $UINT32_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023621
23622
cristy6d5e20f2011-04-25 13:48:54 +000023623
cristy8b350f62009-11-15 23:12:43 +000023624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023625$as_echo_n "checking for signed 64-bit type... " >&6; }
23626INT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023627INT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023628if test $ac_cv_sizeof_signed_long -eq 8; then
23629 INT64_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000023630 INT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023631elif test $ac_cv_sizeof_signed_long_long -eq 8; then
23632 INT64_T='signed long long'
cristy6d5e20f2011-04-25 13:48:54 +000023633 INT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000023634fi
cristy3a99dcf2011-12-17 01:29:40 +000023635case "${host_os}" in
cristy6d5e20f2011-04-25 13:48:54 +000023636 mingw* )
23637 INT64_F='"I64"'
23638 ;;
23639esac
cristy09b53e12011-10-14 12:47:22 +000023640{ $as_echo "$as_me:${as_lineno-$LINENO}: $INT64_T" >&5
23641$as_echo "$as_me: $INT64_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023642
23643
cristy6d5e20f2011-04-25 13:48:54 +000023644
cristy8b350f62009-11-15 23:12:43 +000023645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023646$as_echo_n "checking for unsigned 64-bit type... " >&6; }
23647UINT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023648UINT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023649if test $ac_cv_sizeof_unsigned_long -eq 8; then
23650 UINT64_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000023651 UINT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023652elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
23653 UINT64_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000023654 UINT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000023655fi
cristy3a99dcf2011-12-17 01:29:40 +000023656case "${host_os}" in
cristy6d5e20f2011-04-25 13:48:54 +000023657 mingw* )
23658 UINT64_F='"I64"'
23659 ;;
23660esac
cristy09b53e12011-10-14 12:47:22 +000023661{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINT64_T" >&5
23662$as_echo "$as_me: $UINT64_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023663
23664
cristy6d5e20f2011-04-25 13:48:54 +000023665
cristy8b350f62009-11-15 23:12:43 +000023666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023667$as_echo_n "checking for unsigned maximum type... " >&6; }
23668UINTMAX_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023669UINTMAX_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023670if test "$UINT64_T" != 'none'; then
23671 UINTMAX_T=$UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +000023672 UINTMAX_F=$UINT64_F
cristy3ed852e2009-09-05 21:47:34 +000023673elif test "$UINT32_T" != 'none'; then
23674 UINTMAX_T=$UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +000023675 UINTMAX_F=$UINT32_F
cristy3ed852e2009-09-05 21:47:34 +000023676fi
cristy09b53e12011-10-14 12:47:22 +000023677{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINTMAX_T" >&5
23678$as_echo "$as_me: $UINTMAX_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023679
23680
cristy6d5e20f2011-04-25 13:48:54 +000023681
cristy8b350f62009-11-15 23:12:43 +000023682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023683$as_echo_n "checking for pointer difference type... " >&6; }
23684UINTPTR_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023685UINTPTR_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023686if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
23687 UINTPTR_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000023688 UINTPTR_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023689elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
23690 UINTPTR_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000023691 UINTPTR_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000023692fi
cristy09b53e12011-10-14 12:47:22 +000023693{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINTPTR_T" >&5
23694$as_echo "$as_me: $UINTPTR_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023695
23696
cristy6d5e20f2011-04-25 13:48:54 +000023697
cristy8b350f62009-11-15 23:12:43 +000023698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
cristy3ed852e2009-09-05 21:47:34 +000023699$as_echo_n "checking whether our compiler supports __func__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023700cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023701/* end confdefs.h. */
23702
23703int
23704main ()
23705{
23706{ const char *func = __func__; return(func != 0 ? 0 : 1); }
23707 ;
23708 return 0;
23709}
23710_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023711if ac_fn_c_try_compile "$LINENO"; then :
cristy09b53e12011-10-14 12:47:22 +000023712 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
23713$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023714else
cristy09b53e12011-10-14 12:47:22 +000023715 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
23716$as_echo "$as_me: no" >&6;}
cristy8b350f62009-11-15 23:12:43 +000023717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
cristy3ed852e2009-09-05 21:47:34 +000023718$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023720/* end confdefs.h. */
23721
23722int
23723main ()
23724{
23725{ const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
23726 ;
23727 return 0;
23728}
23729_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023730if ac_fn_c_try_compile "$LINENO"; then :
cristy09b53e12011-10-14 12:47:22 +000023731 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
23732$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023733
cristy8b350f62009-11-15 23:12:43 +000023734$as_echo "#define __func__ __FUNCTION__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023735
23736else
cristy09b53e12011-10-14 12:47:22 +000023737 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
23738$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023739
cristy8b350f62009-11-15 23:12:43 +000023740$as_echo "#define __func__ __FILE__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023741
23742fi
cristy3ed852e2009-09-05 21:47:34 +000023743rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23744fi
cristy3ed852e2009-09-05 21:47:34 +000023745rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23746
23747########
23748#
23749# Check for functions
23750#
23751########
cristy73bd4a52010-10-05 11:24:23 +000023752for ac_header in stdlib.h unistd.h
23753do :
23754 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23755ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000023756if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000023757 cat >>confdefs.h <<_ACEOF
23758#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23759_ACEOF
23760
23761fi
23762
23763done
23764
23765for ac_func in getpagesize
23766do :
23767 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
cristyda16f162011-02-19 23:52:17 +000023768if test "x$ac_cv_func_getpagesize" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000023769 cat >>confdefs.h <<_ACEOF
23770#define HAVE_GETPAGESIZE 1
23771_ACEOF
23772
23773fi
23774done
23775
23776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap file i/o" >&5
23777$as_echo_n "checking for working mmap file i/o... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023778if ${magick_cv_func_mmap_fileio+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000023779 $as_echo_n "(cached) " >&6
23780else
23781 if test "$cross_compiling" = yes; then :
23782 magick_cv_func_mmap_fileio=no
23783else
23784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23785/* end confdefs.h. */
23786$ac_includes_default
23787/* malloc might have been renamed as rpl_malloc. */
23788#undef malloc
23789
23790/*
23791 This test is derived from GNU Autoconf's similar macro.
23792 The purpose of this test is to verify that files may be memory
23793 mapped, and that memory mapping and file I/O are coherent.
23794
23795 The test creates a test file, memory maps the file, updates
23796 the file using the memory map, and then reads the file using
23797 file I/O to verify that the file contains the updates.
23798*/
23799
23800#include <fcntl.h>
23801#include <sys/mman.h>
23802
23803#if !STDC_HEADERS && !HAVE_STDLIB_H
23804char *malloc ();
23805#endif
23806
23807/* This mess was copied from the GNU getpagesize.h. */
23808#if !HAVE_GETPAGESIZE
23809/* Assume that all systems that can run configure have sys/param.h. */
23810# if !HAVE_SYS_PARAM_H
23811# define HAVE_SYS_PARAM_H 1
23812# endif
23813
23814# ifdef _SC_PAGESIZE
23815# define getpagesize() sysconf(_SC_PAGESIZE)
23816# else /* no _SC_PAGESIZE */
23817# if HAVE_SYS_PARAM_H
23818# include <sys/param.h>
23819# ifdef EXEC_PAGESIZE
23820# define getpagesize() EXEC_PAGESIZE
23821# else /* no EXEC_PAGESIZE */
23822# ifdef NBPG
23823# define getpagesize() NBPG * CLSIZE
23824# ifndef CLSIZE
23825# define CLSIZE 1
23826# endif /* no CLSIZE */
23827# else /* no NBPG */
23828# ifdef NBPC
23829# define getpagesize() NBPC
23830# else /* no NBPC */
23831# ifdef PAGESIZE
23832# define getpagesize() PAGESIZE
23833# endif /* PAGESIZE */
23834# endif /* no NBPC */
23835# endif /* no NBPG */
23836# endif /* no EXEC_PAGESIZE */
23837# else /* no HAVE_SYS_PARAM_H */
23838# define getpagesize() 8192 /* punt totally */
23839# endif /* no HAVE_SYS_PARAM_H */
23840# endif /* no _SC_PAGESIZE */
23841
23842#endif /* no HAVE_GETPAGESIZE */
23843
23844int
23845main ()
23846{
23847 char *data, *data2, *data3;
23848 int i, pagesize;
23849 int fd;
23850
23851 pagesize = getpagesize ();
23852
23853 /* First, make a file with some known garbage in it. */
23854 data = (char *) malloc (pagesize);
23855 if (!data)
23856 exit (1);
23857 for (i = 0; i < pagesize; ++i)
23858 *(data + i) = rand ();
23859 umask (0);
23860 fd = creat ("conftest.mmap", 0600);
23861 if (fd < 0)
23862 exit (1);
23863 if (write (fd, data, pagesize) != pagesize)
23864 exit (1);
23865 close (fd);
23866
23867 /* Mmap the file as read/write/shared and verify that we see the
23868 same garbage. */
23869 fd = open ("conftest.mmap", O_RDWR);
23870 if (fd < 0)
23871 exit (1);
23872 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0L);
23873 if (data2 == 0)
23874 exit (1);
23875 for (i = 0; i < pagesize; ++i)
23876 if (*(data + i) != *(data2 + i))
23877 exit (1);
23878
23879 /* Finally, make sure that changes to the mapped area
23880 percolate back to the file as seen by read(). */
23881 for (i = 0; i < pagesize; ++i)
23882 *(data2 + i) = *(data2 + i) + 1;
23883 data3 = (char *) malloc (pagesize);
23884 if (!data3)
23885 exit (1);
23886 if (read (fd, data3, pagesize) != pagesize)
23887 exit (1);
23888 for (i = 0; i < pagesize; ++i)
23889 if (*(data2 + i) != *(data3 + i))
23890 exit (1);
23891 close (fd);
23892 exit (0);
23893}
23894_ACEOF
23895if ac_fn_c_try_run "$LINENO"; then :
23896 magick_cv_func_mmap_fileio=yes
23897else
23898 magick_cv_func_mmap_fileio=no
23899fi
23900rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23901 conftest.$ac_objext conftest.beam conftest.$ac_ext
23902fi
23903
23904fi
23905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $magick_cv_func_mmap_fileio" >&5
23906$as_echo "$magick_cv_func_mmap_fileio" >&6; }
23907if test $magick_cv_func_mmap_fileio = yes; then
23908
23909$as_echo "#define HAVE_MMAP_FILEIO 1" >>confdefs.h
23910
23911fi
23912rm -f conftest.mmap
23913
cristy8b350f62009-11-15 23:12:43 +000023914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
cristy3ed852e2009-09-05 21:47:34 +000023915$as_echo_n "checking whether closedir returns void... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023916if ${ac_cv_func_closedir_void+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023917 $as_echo_n "(cached) " >&6
23918else
cristy8b350f62009-11-15 23:12:43 +000023919 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023920 ac_cv_func_closedir_void=yes
23921else
cristy8b350f62009-11-15 23:12:43 +000023922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023923/* end confdefs.h. */
23924$ac_includes_default
23925#include <$ac_header_dirent>
23926#ifndef __cplusplus
23927int closedir ();
23928#endif
23929
23930int
23931main ()
23932{
23933return closedir (opendir (".")) != 0;
23934 ;
23935 return 0;
23936}
23937_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023938if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023939 ac_cv_func_closedir_void=no
23940else
cristy8b350f62009-11-15 23:12:43 +000023941 ac_cv_func_closedir_void=yes
cristy3ed852e2009-09-05 21:47:34 +000023942fi
cristy8b350f62009-11-15 23:12:43 +000023943rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23944 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023945fi
23946
cristy3ed852e2009-09-05 21:47:34 +000023947fi
cristy8b350f62009-11-15 23:12:43 +000023948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
cristy3ed852e2009-09-05 21:47:34 +000023949$as_echo "$ac_cv_func_closedir_void" >&6; }
23950if test $ac_cv_func_closedir_void = yes; then
23951
cristy8b350f62009-11-15 23:12:43 +000023952$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023953
23954fi
23955
cristycd4c5312009-11-22 01:19:08 +000023956
23957
23958
23959 for ac_header in $ac_header_list
cristy8b350f62009-11-15 23:12:43 +000023960do :
23961 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
cristycd4c5312009-11-22 01:19:08 +000023962ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
23963"
cristy98dddb52010-11-04 00:30:15 +000023964if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000023965 cat >>confdefs.h <<_ACEOF
23966#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23967_ACEOF
23968
23969fi
23970
23971done
23972
cristycd4c5312009-11-22 01:19:08 +000023973
23974
23975
23976
23977
23978
23979
cristy3ed852e2009-09-05 21:47:34 +000023980for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000023981do :
23982 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
cristyda16f162011-02-19 23:52:17 +000023983if test "x$ac_cv_func_getpagesize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000023984 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023985#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000023986_ACEOF
23987
23988fi
23989done
23990
cristy8b350f62009-11-15 23:12:43 +000023991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
cristy3ed852e2009-09-05 21:47:34 +000023992$as_echo_n "checking for working mmap... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023993if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023994 $as_echo_n "(cached) " >&6
23995else
cristy8b350f62009-11-15 23:12:43 +000023996 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023997 ac_cv_func_mmap_fixed_mapped=no
23998else
cristy8b350f62009-11-15 23:12:43 +000023999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024000/* end confdefs.h. */
24001$ac_includes_default
24002/* malloc might have been renamed as rpl_malloc. */
24003#undef malloc
24004
24005/* Thanks to Mike Haertel and Jim Avera for this test.
24006 Here is a matrix of mmap possibilities:
24007 mmap private not fixed
24008 mmap private fixed at somewhere currently unmapped
24009 mmap private fixed at somewhere already mapped
24010 mmap shared not fixed
24011 mmap shared fixed at somewhere currently unmapped
24012 mmap shared fixed at somewhere already mapped
24013 For private mappings, we should verify that changes cannot be read()
24014 back from the file, nor mmap's back from the file at a different
24015 address. (There have been systems where private was not correctly
24016 implemented like the infamous i386 svr4.0, and systems where the
24017 VM page cache was not coherent with the file system buffer cache
24018 like early versions of FreeBSD and possibly contemporary NetBSD.)
24019 For shared mappings, we should conversely verify that changes get
24020 propagated back to all the places they're supposed to be.
24021
24022 Grep wants private fixed already mapped.
24023 The main things grep needs to know about mmap are:
24024 * does it exist and is it safe to write into the mmap'd area
24025 * how to use it (BSD variants) */
24026
24027#include <fcntl.h>
24028#include <sys/mman.h>
24029
24030#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
24031char *malloc ();
24032#endif
24033
24034/* This mess was copied from the GNU getpagesize.h. */
24035#ifndef HAVE_GETPAGESIZE
cristy3ed852e2009-09-05 21:47:34 +000024036# ifdef _SC_PAGESIZE
24037# define getpagesize() sysconf(_SC_PAGESIZE)
24038# else /* no _SC_PAGESIZE */
24039# ifdef HAVE_SYS_PARAM_H
24040# include <sys/param.h>
24041# ifdef EXEC_PAGESIZE
24042# define getpagesize() EXEC_PAGESIZE
24043# else /* no EXEC_PAGESIZE */
24044# ifdef NBPG
24045# define getpagesize() NBPG * CLSIZE
24046# ifndef CLSIZE
24047# define CLSIZE 1
24048# endif /* no CLSIZE */
24049# else /* no NBPG */
24050# ifdef NBPC
24051# define getpagesize() NBPC
24052# else /* no NBPC */
24053# ifdef PAGESIZE
24054# define getpagesize() PAGESIZE
24055# endif /* PAGESIZE */
24056# endif /* no NBPC */
24057# endif /* no NBPG */
24058# endif /* no EXEC_PAGESIZE */
24059# else /* no HAVE_SYS_PARAM_H */
24060# define getpagesize() 8192 /* punt totally */
24061# endif /* no HAVE_SYS_PARAM_H */
24062# endif /* no _SC_PAGESIZE */
24063
24064#endif /* no HAVE_GETPAGESIZE */
24065
24066int
24067main ()
24068{
24069 char *data, *data2, *data3;
cristyc54f5d42009-11-27 21:36:31 +000024070 const char *cdata2;
cristy3ed852e2009-09-05 21:47:34 +000024071 int i, pagesize;
cristycd4c5312009-11-22 01:19:08 +000024072 int fd, fd2;
cristy3ed852e2009-09-05 21:47:34 +000024073
24074 pagesize = getpagesize ();
24075
24076 /* First, make a file with some known garbage in it. */
24077 data = (char *) malloc (pagesize);
24078 if (!data)
24079 return 1;
24080 for (i = 0; i < pagesize; ++i)
24081 *(data + i) = rand ();
24082 umask (0);
24083 fd = creat ("conftest.mmap", 0600);
24084 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024085 return 2;
cristy3ed852e2009-09-05 21:47:34 +000024086 if (write (fd, data, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000024087 return 3;
cristy3ed852e2009-09-05 21:47:34 +000024088 close (fd);
24089
cristycd4c5312009-11-22 01:19:08 +000024090 /* Next, check that the tail of a page is zero-filled. File must have
24091 non-zero length, otherwise we risk SIGBUS for entire page. */
24092 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
24093 if (fd2 < 0)
24094 return 4;
cristyc54f5d42009-11-27 21:36:31 +000024095 cdata2 = "";
24096 if (write (fd2, cdata2, 1) != 1)
cristycd4c5312009-11-22 01:19:08 +000024097 return 5;
cristyc54f5d42009-11-27 21:36:31 +000024098 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
cristycd4c5312009-11-22 01:19:08 +000024099 if (data2 == MAP_FAILED)
24100 return 6;
24101 for (i = 0; i < pagesize; ++i)
24102 if (*(data2 + i))
24103 return 7;
24104 close (fd2);
24105 if (munmap (data2, pagesize))
24106 return 8;
24107
cristy3ed852e2009-09-05 21:47:34 +000024108 /* Next, try to mmap the file at a fixed address which already has
24109 something else allocated at it. If we can, also make sure that
24110 we see the same garbage. */
24111 fd = open ("conftest.mmap", O_RDWR);
24112 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024113 return 9;
cristy3ed852e2009-09-05 21:47:34 +000024114 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
24115 MAP_PRIVATE | MAP_FIXED, fd, 0L))
cristycd4c5312009-11-22 01:19:08 +000024116 return 10;
cristy3ed852e2009-09-05 21:47:34 +000024117 for (i = 0; i < pagesize; ++i)
24118 if (*(data + i) != *(data2 + i))
cristycd4c5312009-11-22 01:19:08 +000024119 return 11;
cristy3ed852e2009-09-05 21:47:34 +000024120
24121 /* Finally, make sure that changes to the mapped area do not
24122 percolate back to the file as seen by read(). (This is a bug on
24123 some variants of i386 svr4.0.) */
24124 for (i = 0; i < pagesize; ++i)
24125 *(data2 + i) = *(data2 + i) + 1;
24126 data3 = (char *) malloc (pagesize);
24127 if (!data3)
cristycd4c5312009-11-22 01:19:08 +000024128 return 12;
cristy3ed852e2009-09-05 21:47:34 +000024129 if (read (fd, data3, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000024130 return 13;
cristy3ed852e2009-09-05 21:47:34 +000024131 for (i = 0; i < pagesize; ++i)
24132 if (*(data + i) != *(data3 + i))
cristycd4c5312009-11-22 01:19:08 +000024133 return 14;
cristy3ed852e2009-09-05 21:47:34 +000024134 close (fd);
24135 return 0;
24136}
24137_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024138if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024139 ac_cv_func_mmap_fixed_mapped=yes
24140else
cristy8b350f62009-11-15 23:12:43 +000024141 ac_cv_func_mmap_fixed_mapped=no
cristy3ed852e2009-09-05 21:47:34 +000024142fi
cristy8b350f62009-11-15 23:12:43 +000024143rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24144 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024145fi
24146
cristy3ed852e2009-09-05 21:47:34 +000024147fi
cristy8b350f62009-11-15 23:12:43 +000024148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000024149$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
24150if test $ac_cv_func_mmap_fixed_mapped = yes; then
24151
cristy8b350f62009-11-15 23:12:43 +000024152$as_echo "#define HAVE_MMAP 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024153
24154fi
cristycd4c5312009-11-22 01:19:08 +000024155rm -f conftest.mmap conftest.txt
cristy3ed852e2009-09-05 21:47:34 +000024156
cristy3ed852e2009-09-05 21:47:34 +000024157for ac_header in vfork.h
cristy8b350f62009-11-15 23:12:43 +000024158do :
24159 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000024160if test "x$ac_cv_header_vfork_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024161 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024162#define HAVE_VFORK_H 1
cristy3ed852e2009-09-05 21:47:34 +000024163_ACEOF
24164
24165fi
24166
24167done
24168
cristy3ed852e2009-09-05 21:47:34 +000024169for ac_func in fork vfork
cristy8b350f62009-11-15 23:12:43 +000024170do :
24171 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24172ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000024173if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024174 cat >>confdefs.h <<_ACEOF
24175#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24176_ACEOF
24177
24178fi
24179done
24180
24181if test "x$ac_cv_func_fork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000024182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
cristy3ed852e2009-09-05 21:47:34 +000024183$as_echo_n "checking for working fork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024184if ${ac_cv_func_fork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024185 $as_echo_n "(cached) " >&6
24186else
cristy8b350f62009-11-15 23:12:43 +000024187 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024188 ac_cv_func_fork_works=cross
24189else
cristy8b350f62009-11-15 23:12:43 +000024190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024191/* end confdefs.h. */
24192$ac_includes_default
24193int
24194main ()
24195{
24196
24197 /* By Ruediger Kuhlmann. */
24198 return fork () < 0;
24199
24200 ;
24201 return 0;
24202}
24203_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024204if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024205 ac_cv_func_fork_works=yes
24206else
cristy8b350f62009-11-15 23:12:43 +000024207 ac_cv_func_fork_works=no
cristy3ed852e2009-09-05 21:47:34 +000024208fi
cristy8b350f62009-11-15 23:12:43 +000024209rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24210 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024211fi
24212
cristy3ed852e2009-09-05 21:47:34 +000024213fi
cristy8b350f62009-11-15 23:12:43 +000024214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000024215$as_echo "$ac_cv_func_fork_works" >&6; }
24216
24217else
24218 ac_cv_func_fork_works=$ac_cv_func_fork
24219fi
24220if test "x$ac_cv_func_fork_works" = xcross; then
24221 case $host in
24222 *-*-amigaos* | *-*-msdosdjgpp*)
24223 # Override, as these systems have only a dummy fork() stub
24224 ac_cv_func_fork_works=no
24225 ;;
24226 *)
24227 ac_cv_func_fork_works=yes
24228 ;;
24229 esac
cristy8b350f62009-11-15 23:12:43 +000024230 { $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 +000024231$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
24232fi
24233ac_cv_func_vfork_works=$ac_cv_func_vfork
24234if test "x$ac_cv_func_vfork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000024235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
cristy3ed852e2009-09-05 21:47:34 +000024236$as_echo_n "checking for working vfork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024237if ${ac_cv_func_vfork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024238 $as_echo_n "(cached) " >&6
24239else
cristy8b350f62009-11-15 23:12:43 +000024240 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024241 ac_cv_func_vfork_works=cross
24242else
cristy8b350f62009-11-15 23:12:43 +000024243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024244/* end confdefs.h. */
24245/* Thanks to Paul Eggert for this test. */
24246$ac_includes_default
24247#include <sys/wait.h>
24248#ifdef HAVE_VFORK_H
24249# include <vfork.h>
24250#endif
24251/* On some sparc systems, changes by the child to local and incoming
24252 argument registers are propagated back to the parent. The compiler
24253 is told about this with #include <vfork.h>, but some compilers
24254 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
24255 static variable whose address is put into a register that is
24256 clobbered by the vfork. */
24257static void
24258#ifdef __cplusplus
24259sparc_address_test (int arg)
24260# else
24261sparc_address_test (arg) int arg;
24262#endif
24263{
24264 static pid_t child;
24265 if (!child) {
24266 child = vfork ();
24267 if (child < 0) {
24268 perror ("vfork");
24269 _exit(2);
24270 }
24271 if (!child) {
24272 arg = getpid();
24273 write(-1, "", 0);
24274 _exit (arg);
24275 }
24276 }
24277}
24278
24279int
24280main ()
24281{
24282 pid_t parent = getpid ();
24283 pid_t child;
24284
24285 sparc_address_test (0);
24286
24287 child = vfork ();
24288
24289 if (child == 0) {
24290 /* Here is another test for sparc vfork register problems. This
24291 test uses lots of local variables, at least as many local
24292 variables as main has allocated so far including compiler
24293 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
24294 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
24295 reuse the register of parent for one of the local variables,
24296 since it will think that parent can't possibly be used any more
24297 in this routine. Assigning to the local variable will thus
24298 munge parent in the parent process. */
24299 pid_t
24300 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
24301 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
24302 /* Convince the compiler that p..p7 are live; otherwise, it might
24303 use the same hardware register for all 8 local variables. */
24304 if (p != p1 || p != p2 || p != p3 || p != p4
24305 || p != p5 || p != p6 || p != p7)
24306 _exit(1);
24307
24308 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
24309 from child file descriptors. If the child closes a descriptor
24310 before it execs or exits, this munges the parent's descriptor
24311 as well. Test for this by closing stdout in the child. */
24312 _exit(close(fileno(stdout)) != 0);
24313 } else {
24314 int status;
24315 struct stat st;
24316
24317 while (wait(&status) != child)
24318 ;
24319 return (
24320 /* Was there some problem with vforking? */
24321 child < 0
24322
24323 /* Did the child fail? (This shouldn't happen.) */
24324 || status
24325
24326 /* Did the vfork/compiler bug occur? */
24327 || parent != getpid()
24328
24329 /* Did the file descriptor bug occur? */
24330 || fstat(fileno(stdout), &st) != 0
24331 );
24332 }
24333}
24334_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024335if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024336 ac_cv_func_vfork_works=yes
24337else
cristy8b350f62009-11-15 23:12:43 +000024338 ac_cv_func_vfork_works=no
cristy3ed852e2009-09-05 21:47:34 +000024339fi
cristy8b350f62009-11-15 23:12:43 +000024340rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24341 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024342fi
24343
cristy3ed852e2009-09-05 21:47:34 +000024344fi
cristy8b350f62009-11-15 23:12:43 +000024345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000024346$as_echo "$ac_cv_func_vfork_works" >&6; }
24347
24348fi;
24349if test "x$ac_cv_func_fork_works" = xcross; then
24350 ac_cv_func_vfork_works=$ac_cv_func_vfork
cristy8b350f62009-11-15 23:12:43 +000024351 { $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 +000024352$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
24353fi
24354
24355if test "x$ac_cv_func_vfork_works" = xyes; then
24356
cristy8b350f62009-11-15 23:12:43 +000024357$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024358
24359else
24360
cristy8b350f62009-11-15 23:12:43 +000024361$as_echo "#define vfork fork" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024362
24363fi
24364if test "x$ac_cv_func_fork_works" = xyes; then
24365
cristy8b350f62009-11-15 23:12:43 +000024366$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024367
24368fi
24369
cristy8b350f62009-11-15 23:12:43 +000024370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024371$as_echo_n "checking for working memcmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024372if ${ac_cv_func_memcmp_working+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024373 $as_echo_n "(cached) " >&6
24374else
cristy8b350f62009-11-15 23:12:43 +000024375 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024376 ac_cv_func_memcmp_working=no
24377else
cristy8b350f62009-11-15 23:12:43 +000024378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024379/* end confdefs.h. */
24380$ac_includes_default
24381int
24382main ()
24383{
24384
24385 /* Some versions of memcmp are not 8-bit clean. */
24386 char c0 = '\100', c1 = '\200', c2 = '\201';
24387 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
24388 return 1;
24389
24390 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
24391 or more and with at least one buffer not starting on a 4-byte boundary.
24392 William Lewis provided this test program. */
24393 {
24394 char foo[21];
24395 char bar[21];
24396 int i;
24397 for (i = 0; i < 4; i++)
24398 {
24399 char *a = foo + i;
24400 char *b = bar + i;
24401 strcpy (a, "--------01111111");
24402 strcpy (b, "--------10000000");
24403 if (memcmp (a, b, 16) >= 0)
24404 return 1;
24405 }
24406 return 0;
24407 }
24408
24409 ;
24410 return 0;
24411}
24412_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024413if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024414 ac_cv_func_memcmp_working=yes
24415else
cristy8b350f62009-11-15 23:12:43 +000024416 ac_cv_func_memcmp_working=no
cristy3ed852e2009-09-05 21:47:34 +000024417fi
cristy8b350f62009-11-15 23:12:43 +000024418rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24419 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024420fi
24421
cristy3ed852e2009-09-05 21:47:34 +000024422fi
cristy8b350f62009-11-15 23:12:43 +000024423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
cristy3ed852e2009-09-05 21:47:34 +000024424$as_echo "$ac_cv_func_memcmp_working" >&6; }
24425test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
24426 *" memcmp.$ac_objext "* ) ;;
24427 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
24428 ;;
24429esac
24430
24431
cristy3ed852e2009-09-05 21:47:34 +000024432for ac_header in sys/select.h sys/socket.h
cristy8b350f62009-11-15 23:12:43 +000024433do :
24434 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24435ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000024436if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024437 cat >>confdefs.h <<_ACEOF
24438#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24439_ACEOF
24440
24441fi
24442
24443done
24444
cristy8b350f62009-11-15 23:12:43 +000024445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
cristy3ed852e2009-09-05 21:47:34 +000024446$as_echo_n "checking types of arguments for select... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024447if ${ac_cv_func_select_args+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024448 $as_echo_n "(cached) " >&6
24449else
24450 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
24451 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
24452 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
cristy8b350f62009-11-15 23:12:43 +000024453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024454/* end confdefs.h. */
24455$ac_includes_default
24456#ifdef HAVE_SYS_SELECT_H
24457# include <sys/select.h>
24458#endif
24459#ifdef HAVE_SYS_SOCKET_H
24460# include <sys/socket.h>
24461#endif
24462
24463int
24464main ()
24465{
24466extern int select ($ac_arg1,
24467 $ac_arg234, $ac_arg234, $ac_arg234,
24468 $ac_arg5);
24469 ;
24470 return 0;
24471}
24472_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024473if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024474 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
cristy3ed852e2009-09-05 21:47:34 +000024475fi
cristy3ed852e2009-09-05 21:47:34 +000024476rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24477 done
24478 done
24479done
24480# Provide a safe default value.
cristyda16f162011-02-19 23:52:17 +000024481: "${ac_cv_func_select_args=int,int *,struct timeval *}"
cristy3ed852e2009-09-05 21:47:34 +000024482
24483fi
cristy8b350f62009-11-15 23:12:43 +000024484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
cristy3ed852e2009-09-05 21:47:34 +000024485$as_echo "$ac_cv_func_select_args" >&6; }
24486ac_save_IFS=$IFS; IFS=','
24487set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
24488IFS=$ac_save_IFS
24489shift
24490
24491cat >>confdefs.h <<_ACEOF
24492#define SELECT_TYPE_ARG1 $1
24493_ACEOF
24494
24495
24496cat >>confdefs.h <<_ACEOF
24497#define SELECT_TYPE_ARG234 ($2)
24498_ACEOF
24499
24500
24501cat >>confdefs.h <<_ACEOF
24502#define SELECT_TYPE_ARG5 ($3)
24503_ACEOF
24504
24505rm -f conftest*
24506
cristyda16f162011-02-19 23:52:17 +000024507if ${ac_cv_func_setvbuf_reversed+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024508 $as_echo_n "(cached) " >&6
24509else
24510 ac_cv_func_setvbuf_reversed=no
24511fi
24512
24513
cristy8b350f62009-11-15 23:12:43 +000024514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
cristy3ed852e2009-09-05 21:47:34 +000024515$as_echo_n "checking return type of signal handlers... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024516if ${ac_cv_type_signal+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024517 $as_echo_n "(cached) " >&6
24518else
cristy8b350f62009-11-15 23:12:43 +000024519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024520/* end confdefs.h. */
24521#include <sys/types.h>
24522#include <signal.h>
24523
24524int
24525main ()
24526{
24527return *(signal (0, 0)) (0) == 1;
24528 ;
24529 return 0;
24530}
24531_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024532if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024533 ac_cv_type_signal=int
24534else
cristy8b350f62009-11-15 23:12:43 +000024535 ac_cv_type_signal=void
cristy3ed852e2009-09-05 21:47:34 +000024536fi
cristy3ed852e2009-09-05 21:47:34 +000024537rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24538fi
cristy8b350f62009-11-15 23:12:43 +000024539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
cristy3ed852e2009-09-05 21:47:34 +000024540$as_echo "$ac_cv_type_signal" >&6; }
24541
24542cat >>confdefs.h <<_ACEOF
24543#define RETSIGTYPE $ac_cv_type_signal
24544_ACEOF
24545
24546
cristy8b350f62009-11-15 23:12:43 +000024547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000024548$as_echo_n "checking for working strtod... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024549if ${ac_cv_func_strtod+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024550 $as_echo_n "(cached) " >&6
24551else
cristy8b350f62009-11-15 23:12:43 +000024552 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024553 ac_cv_func_strtod=no
24554else
cristy8b350f62009-11-15 23:12:43 +000024555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024556/* end confdefs.h. */
24557
24558$ac_includes_default
24559#ifndef strtod
24560double strtod ();
24561#endif
24562int
24563main()
24564{
24565 {
24566 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
24567 char *string = " +69";
24568 char *term;
24569 double value;
24570 value = strtod (string, &term);
24571 if (value != 69 || term != (string + 4))
24572 return 1;
24573 }
24574
24575 {
24576 /* Under Solaris 2.4, strtod returns the wrong value for the
24577 terminating character under some conditions. */
24578 char *string = "NaN";
24579 char *term;
24580 strtod (string, &term);
24581 if (term != string && *(term - 1) == 0)
24582 return 1;
24583 }
24584 return 0;
24585}
24586
24587_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024588if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024589 ac_cv_func_strtod=yes
24590else
cristy8b350f62009-11-15 23:12:43 +000024591 ac_cv_func_strtod=no
cristy3ed852e2009-09-05 21:47:34 +000024592fi
cristy8b350f62009-11-15 23:12:43 +000024593rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24594 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024595fi
24596
cristy3ed852e2009-09-05 21:47:34 +000024597fi
cristy8b350f62009-11-15 23:12:43 +000024598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000024599$as_echo "$ac_cv_func_strtod" >&6; }
24600if test $ac_cv_func_strtod = no; then
24601 case " $LIBOBJS " in
24602 *" strtod.$ac_objext "* ) ;;
24603 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
24604 ;;
24605esac
24606
cristy8b350f62009-11-15 23:12:43 +000024607ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
cristyda16f162011-02-19 23:52:17 +000024608if test "x$ac_cv_func_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024609
cristy3ed852e2009-09-05 21:47:34 +000024610fi
24611
cristy3ed852e2009-09-05 21:47:34 +000024612if test $ac_cv_func_pow = no; then
cristy8b350f62009-11-15 23:12:43 +000024613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
cristy3ed852e2009-09-05 21:47:34 +000024614$as_echo_n "checking for pow in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024615if ${ac_cv_lib_m_pow+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024616 $as_echo_n "(cached) " >&6
24617else
24618 ac_check_lib_save_LIBS=$LIBS
24619LIBS="-lm $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024620cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024621/* end confdefs.h. */
24622
24623/* Override any GCC internal prototype to avoid an error.
24624 Use char because int might match the return type of a GCC
24625 builtin and then its argument prototype would still apply. */
24626#ifdef __cplusplus
24627extern "C"
24628#endif
24629char pow ();
24630int
24631main ()
24632{
24633return pow ();
24634 ;
24635 return 0;
24636}
24637_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024638if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024639 ac_cv_lib_m_pow=yes
24640else
cristy8b350f62009-11-15 23:12:43 +000024641 ac_cv_lib_m_pow=no
cristy3ed852e2009-09-05 21:47:34 +000024642fi
cristy8b350f62009-11-15 23:12:43 +000024643rm -f core conftest.err conftest.$ac_objext \
24644 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024645LIBS=$ac_check_lib_save_LIBS
24646fi
cristy8b350f62009-11-15 23:12:43 +000024647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000024648$as_echo "$ac_cv_lib_m_pow" >&6; }
cristyda16f162011-02-19 23:52:17 +000024649if test "x$ac_cv_lib_m_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024650 POW_LIB=-lm
24651else
cristy8b350f62009-11-15 23:12:43 +000024652 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000024653$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
24654fi
24655
24656fi
24657
24658fi
24659
cristy7d4a1d62011-10-13 15:54:12 +000024660ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
24661if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
24662 ac_have_decl=1
24663else
24664 ac_have_decl=0
24665fi
24666
24667cat >>confdefs.h <<_ACEOF
24668#define HAVE_DECL_STRERROR_R $ac_have_decl
24669_ACEOF
24670
24671for ac_func in strerror_r
24672do :
24673 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
24674if test "x$ac_cv_func_strerror_r" = xyes; then :
24675 cat >>confdefs.h <<_ACEOF
24676#define HAVE_STRERROR_R 1
24677_ACEOF
24678
24679fi
24680done
24681
24682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
24683$as_echo_n "checking whether strerror_r returns char *... " >&6; }
24684if ${ac_cv_func_strerror_r_char_p+:} false; then :
24685 $as_echo_n "(cached) " >&6
24686else
24687
24688 ac_cv_func_strerror_r_char_p=no
24689 if test $ac_cv_have_decl_strerror_r = yes; then
24690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24691/* end confdefs.h. */
24692$ac_includes_default
24693int
24694main ()
24695{
24696
24697 char buf[100];
24698 char x = *strerror_r (0, buf, sizeof buf);
24699 char *p = strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000024700 return !p || x;
cristy7d4a1d62011-10-13 15:54:12 +000024701
24702 ;
24703 return 0;
24704}
24705_ACEOF
24706if ac_fn_c_try_compile "$LINENO"; then :
24707 ac_cv_func_strerror_r_char_p=yes
24708fi
24709rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24710 else
24711 # strerror_r is not declared. Choose between
24712 # systems that have relatively inaccessible declarations for the
24713 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
24714 # former has a strerror_r that returns char*, while the latter
24715 # has a strerror_r that returns `int'.
24716 # This test should segfault on the DEC system.
24717 if test "$cross_compiling" = yes; then :
24718 :
24719else
24720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24721/* end confdefs.h. */
24722$ac_includes_default
24723 extern char *strerror_r ();
24724int
24725main ()
24726{
24727char buf[100];
24728 char x = *strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000024729 return ! isalpha (x);
cristy7d4a1d62011-10-13 15:54:12 +000024730 ;
24731 return 0;
24732}
24733_ACEOF
24734if ac_fn_c_try_run "$LINENO"; then :
24735 ac_cv_func_strerror_r_char_p=yes
24736fi
24737rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24738 conftest.$ac_objext conftest.beam conftest.$ac_ext
24739fi
24740
24741 fi
24742
24743fi
24744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
24745$as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
24746if test $ac_cv_func_strerror_r_char_p = yes; then
24747
24748$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
24749
24750fi
24751
cristy3ed852e2009-09-05 21:47:34 +000024752for ac_func in vprintf
cristy8b350f62009-11-15 23:12:43 +000024753do :
24754 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
cristyda16f162011-02-19 23:52:17 +000024755if test "x$ac_cv_func_vprintf" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024756 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024757#define HAVE_VPRINTF 1
cristy3ed852e2009-09-05 21:47:34 +000024758_ACEOF
24759
cristy8b350f62009-11-15 23:12:43 +000024760ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
cristyda16f162011-02-19 23:52:17 +000024761if test "x$ac_cv_func__doprnt" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024762
cristy8b350f62009-11-15 23:12:43 +000024763$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024764
24765fi
24766
24767fi
24768done
24769
24770
24771
cristy161b9262010-03-20 19:34:32 +000024772#
24773# Find math library
24774#
24775MATH_LIBS=''
24776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
24777$as_echo_n "checking for sqrt in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024778if ${ac_cv_lib_m_sqrt+:} false; then :
cristy161b9262010-03-20 19:34:32 +000024779 $as_echo_n "(cached) " >&6
24780else
24781 ac_check_lib_save_LIBS=$LIBS
24782LIBS="-lm $LIBS"
24783cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24784/* end confdefs.h. */
24785
24786/* Override any GCC internal prototype to avoid an error.
24787 Use char because int might match the return type of a GCC
24788 builtin and then its argument prototype would still apply. */
24789#ifdef __cplusplus
24790extern "C"
24791#endif
24792char sqrt ();
24793int
24794main ()
24795{
24796return sqrt ();
24797 ;
24798 return 0;
24799}
24800_ACEOF
24801if ac_fn_c_try_link "$LINENO"; then :
24802 ac_cv_lib_m_sqrt=yes
24803else
24804 ac_cv_lib_m_sqrt=no
24805fi
24806rm -f core conftest.err conftest.$ac_objext \
24807 conftest$ac_exeext conftest.$ac_ext
24808LIBS=$ac_check_lib_save_LIBS
24809fi
24810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
24811$as_echo "$ac_cv_lib_m_sqrt" >&6; }
cristyda16f162011-02-19 23:52:17 +000024812if test "x$ac_cv_lib_m_sqrt" = xyes; then :
cristy161b9262010-03-20 19:34:32 +000024813 MATH_LIBS="-lm"
24814fi
24815
24816LIBS="$MATH_LIBS $LIBS"
24817
24818
cristy568c2d42012-07-27 01:41:20 +000024819for ac_func in acosh _aligned_malloc 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 +000024820do :
24821 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24822ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000024823if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024824 cat >>confdefs.h <<_ACEOF
24825#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24826_ACEOF
24827
24828fi
24829done
24830
24831
cristye43a45e2009-09-28 14:49:00 +000024832#
24833# Check for clock_gettime().
24834#
cristy8b350f62009-11-15 23:12:43 +000024835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000024836$as_echo_n "checking for library containing clock_gettime... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024837if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000024838 $as_echo_n "(cached) " >&6
24839else
24840 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000024841cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000024842/* end confdefs.h. */
24843
24844/* Override any GCC internal prototype to avoid an error.
24845 Use char because int might match the return type of a GCC
24846 builtin and then its argument prototype would still apply. */
24847#ifdef __cplusplus
24848extern "C"
24849#endif
24850char clock_gettime ();
24851int
24852main ()
24853{
24854return clock_gettime ();
24855 ;
24856 return 0;
24857}
24858_ACEOF
24859for ac_lib in '' rt; do
24860 if test -z "$ac_lib"; then
24861 ac_res="none required"
24862 else
24863 ac_res=-l$ac_lib
24864 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24865 fi
cristy8b350f62009-11-15 23:12:43 +000024866 if ac_fn_c_try_link "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000024867 ac_cv_search_clock_gettime=$ac_res
cristye43a45e2009-09-28 14:49:00 +000024868fi
cristy8b350f62009-11-15 23:12:43 +000024869rm -f core conftest.err conftest.$ac_objext \
24870 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000024871 if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000024872 break
24873fi
24874done
cristyda16f162011-02-19 23:52:17 +000024875if ${ac_cv_search_clock_gettime+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000024876
cristye43a45e2009-09-28 14:49:00 +000024877else
24878 ac_cv_search_clock_gettime=no
24879fi
24880rm conftest.$ac_ext
24881LIBS=$ac_func_search_save_LIBS
24882fi
cristy8b350f62009-11-15 23:12:43 +000024883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000024884$as_echo "$ac_cv_search_clock_gettime" >&6; }
24885ac_res=$ac_cv_search_clock_gettime
cristy8b350f62009-11-15 23:12:43 +000024886if test "$ac_res" != no; then :
cristye43a45e2009-09-28 14:49:00 +000024887 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24888
24889
cristy8b350f62009-11-15 23:12:43 +000024890$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000024891
cristy8b350f62009-11-15 23:12:43 +000024892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
cristye43a45e2009-09-28 14:49:00 +000024893$as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000024895/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000024896
24897 #include <time.h>
cristye43a45e2009-09-28 14:49:00 +000024898int
24899main ()
24900{
24901clockid_t clockType = CLOCK_REALTIME;
cristye43a45e2009-09-28 14:49:00 +000024902 ;
24903 return 0;
24904}
24905_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024906if ac_fn_c_try_compile "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000024907
cristy09b53e12011-10-14 12:47:22 +000024908 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
24909$as_echo "$as_me: yes" >&6;}
cristye43a45e2009-09-28 14:49:00 +000024910
cristy8b350f62009-11-15 23:12:43 +000024911$as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000024912
24913
24914else
cristy09b53e12011-10-14 12:47:22 +000024915 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
24916$as_echo "$as_me: no" >&6;}
cristye43a45e2009-09-28 14:49:00 +000024917
24918fi
cristye43a45e2009-09-28 14:49:00 +000024919rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24920
24921else
24922
cristy8b350f62009-11-15 23:12:43 +000024923 for ac_func in gettimeofday ftime
24924do :
24925 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24926ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000024927if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristye43a45e2009-09-28 14:49:00 +000024928 cat >>confdefs.h <<_ACEOF
24929#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24930_ACEOF
24931 break
24932fi
24933done
24934
24935
24936
24937fi
24938
24939
cristy3ed852e2009-09-05 21:47:34 +000024940########
24941#
24942# Check for function prototypes
24943#
24944########
24945
cristy8b350f62009-11-15 23:12:43 +000024946ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
cristy3ed852e2009-09-05 21:47:34 +000024947#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000024948"
cristyda16f162011-02-19 23:52:17 +000024949if test "x$ac_cv_have_decl_pread" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000024950 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000024951else
cristy8b350f62009-11-15 23:12:43 +000024952 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000024953fi
24954
cristy3ed852e2009-09-05 21:47:34 +000024955cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024956#define HAVE_DECL_PREAD $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000024957_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024958ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
cristy3ed852e2009-09-05 21:47:34 +000024959#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000024960"
cristyda16f162011-02-19 23:52:17 +000024961if test "x$ac_cv_have_decl_pwrite" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000024962 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000024963else
cristy8b350f62009-11-15 23:12:43 +000024964 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000024965fi
24966
cristy3ed852e2009-09-05 21:47:34 +000024967cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024968#define HAVE_DECL_PWRITE $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000024969_ACEOF
24970
24971
cristy8b350f62009-11-15 23:12:43 +000024972ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
cristy3ed852e2009-09-05 21:47:34 +000024973#include <strings.h>
cristy8b350f62009-11-15 23:12:43 +000024974"
cristyda16f162011-02-19 23:52:17 +000024975if test "x$ac_cv_have_decl_strlcpy" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000024976 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000024977else
cristy8b350f62009-11-15 23:12:43 +000024978 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000024979fi
24980
cristy3ed852e2009-09-05 21:47:34 +000024981cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024982#define HAVE_DECL_STRLCPY $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000024983_ACEOF
24984
24985
cristy8b350f62009-11-15 23:12:43 +000024986ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
cristy3ed852e2009-09-05 21:47:34 +000024987#include <stdio.h>
24988#include <stdarg.h>
cristy8b350f62009-11-15 23:12:43 +000024989"
cristyda16f162011-02-19 23:52:17 +000024990if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000024991 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000024992else
cristy8b350f62009-11-15 23:12:43 +000024993 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000024994fi
24995
cristy3ed852e2009-09-05 21:47:34 +000024996cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024997#define HAVE_DECL_VSNPRINTF $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000024998_ACEOF
24999
25000
cristy3ed852e2009-09-05 21:47:34 +000025001########
25002#
25003# C++ Support Tests (For Magick++)
25004#
25005########
25006have_magick_plus_plus='no'
25007if test "$with_magick_plus_plus" = 'yes'; then
25008 OLIBS="$LIBS"
25009 LIBS=''
25010 ac_ext=cpp
25011ac_cpp='$CXXCPP $CPPFLAGS'
25012ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25013ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25014ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25015
25016
25017 # Full set of headers used...
25018 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
25019 # functional iomanip iosfwd iostream iterator list string strstream utility
25020 ac_ext=cpp
25021ac_cpp='$CXXCPP $CPPFLAGS'
25022ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25023ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25024ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25025
25026 ac_ext=cpp
25027ac_cpp='$CXXCPP $CPPFLAGS'
25028ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25029ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25030ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25031if test -z "$CXX"; then
25032 if test -n "$CCC"; then
25033 CXX=$CCC
25034 else
25035 if test -n "$ac_tool_prefix"; then
25036 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25037 do
25038 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
25039set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025041$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025042if ${ac_cv_prog_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025043 $as_echo_n "(cached) " >&6
25044else
25045 if test -n "$CXX"; then
25046 ac_cv_prog_CXX="$CXX" # Let the user override the test.
25047else
25048as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25049for as_dir in $PATH
25050do
25051 IFS=$as_save_IFS
25052 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025053 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000025054 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000025055 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000025056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025057 break 2
25058 fi
25059done
cristy8b350f62009-11-15 23:12:43 +000025060 done
cristy3ed852e2009-09-05 21:47:34 +000025061IFS=$as_save_IFS
25062
25063fi
25064fi
25065CXX=$ac_cv_prog_CXX
25066if test -n "$CXX"; then
cristy8b350f62009-11-15 23:12:43 +000025067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000025068$as_echo "$CXX" >&6; }
25069else
cristy8b350f62009-11-15 23:12:43 +000025070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025071$as_echo "no" >&6; }
25072fi
25073
25074
25075 test -n "$CXX" && break
25076 done
25077fi
25078if test -z "$CXX"; then
25079 ac_ct_CXX=$CXX
25080 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25081do
25082 # Extract the first word of "$ac_prog", so it can be a program name with args.
25083set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025085$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025086if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025087 $as_echo_n "(cached) " >&6
25088else
25089 if test -n "$ac_ct_CXX"; then
25090 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
25091else
25092as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25093for as_dir in $PATH
25094do
25095 IFS=$as_save_IFS
25096 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025097 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000025098 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000025099 ac_cv_prog_ac_ct_CXX="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000025100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025101 break 2
25102 fi
25103done
cristy8b350f62009-11-15 23:12:43 +000025104 done
cristy3ed852e2009-09-05 21:47:34 +000025105IFS=$as_save_IFS
25106
25107fi
25108fi
25109ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
25110if test -n "$ac_ct_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000025111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000025112$as_echo "$ac_ct_CXX" >&6; }
25113else
cristy8b350f62009-11-15 23:12:43 +000025114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025115$as_echo "no" >&6; }
25116fi
25117
25118
25119 test -n "$ac_ct_CXX" && break
25120done
25121
25122 if test "x$ac_ct_CXX" = x; then
25123 CXX="g++"
25124 else
25125 case $cross_compiling:$ac_tool_warned in
25126yes:)
cristy8b350f62009-11-15 23:12:43 +000025127{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000025128$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25129ac_tool_warned=yes ;;
25130esac
25131 CXX=$ac_ct_CXX
25132 fi
25133fi
25134
25135 fi
25136fi
25137# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +000025138$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +000025139set X $ac_compile
25140ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +000025141for ac_option in --version -v -V -qversion; do
25142 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +000025143case "(($ac_try" in
25144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25145 *) ac_try_echo=$ac_try;;
25146esac
cristy8b350f62009-11-15 23:12:43 +000025147eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
25148$as_echo "$ac_try_echo"; } >&5
25149 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +000025150 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000025151 if test -s conftest.err; then
25152 sed '10a\
25153... rest of stderr output deleted ...
25154 10q' conftest.err >conftest.er1
25155 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +000025156 fi
cristycd4c5312009-11-22 01:19:08 +000025157 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +000025158 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25159 test $ac_status = 0; }
25160done
cristy3ed852e2009-09-05 21:47:34 +000025161
cristy8b350f62009-11-15 23:12:43 +000025162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +000025163$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025164if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025165 $as_echo_n "(cached) " >&6
25166else
cristy8b350f62009-11-15 23:12:43 +000025167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025168/* end confdefs.h. */
25169
25170int
25171main ()
25172{
25173#ifndef __GNUC__
25174 choke me
25175#endif
25176
25177 ;
25178 return 0;
25179}
25180_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025181if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025182 ac_compiler_gnu=yes
25183else
cristy8b350f62009-11-15 23:12:43 +000025184 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +000025185fi
cristy3ed852e2009-09-05 21:47:34 +000025186rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25187ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
25188
25189fi
cristy8b350f62009-11-15 23:12:43 +000025190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +000025191$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
25192if test $ac_compiler_gnu = yes; then
25193 GXX=yes
25194else
25195 GXX=
25196fi
25197ac_test_CXXFLAGS=${CXXFLAGS+set}
25198ac_save_CXXFLAGS=$CXXFLAGS
cristy8b350f62009-11-15 23:12:43 +000025199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +000025200$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025201if ${ac_cv_prog_cxx_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025202 $as_echo_n "(cached) " >&6
25203else
25204 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
25205 ac_cxx_werror_flag=yes
25206 ac_cv_prog_cxx_g=no
25207 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000025208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025209/* end confdefs.h. */
25210
25211int
25212main ()
25213{
25214
25215 ;
25216 return 0;
25217}
25218_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025219if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025220 ac_cv_prog_cxx_g=yes
25221else
cristy8b350f62009-11-15 23:12:43 +000025222 CXXFLAGS=""
25223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025224/* end confdefs.h. */
25225
25226int
25227main ()
25228{
25229
25230 ;
25231 return 0;
25232}
25233_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025234if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025235
cristy8b350f62009-11-15 23:12:43 +000025236else
25237 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
cristy3ed852e2009-09-05 21:47:34 +000025238 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000025239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025240/* end confdefs.h. */
25241
25242int
25243main ()
25244{
25245
25246 ;
25247 return 0;
25248}
25249_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025250if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025251 ac_cv_prog_cxx_g=yes
cristy3ed852e2009-09-05 21:47:34 +000025252fi
cristy3ed852e2009-09-05 21:47:34 +000025253rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25254fi
cristy3ed852e2009-09-05 21:47:34 +000025255rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25256fi
cristy3ed852e2009-09-05 21:47:34 +000025257rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25258 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
25259fi
cristy8b350f62009-11-15 23:12:43 +000025260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
cristy3ed852e2009-09-05 21:47:34 +000025261$as_echo "$ac_cv_prog_cxx_g" >&6; }
25262if test "$ac_test_CXXFLAGS" = set; then
25263 CXXFLAGS=$ac_save_CXXFLAGS
25264elif test $ac_cv_prog_cxx_g = yes; then
25265 if test "$GXX" = yes; then
25266 CXXFLAGS="-g -O2"
25267 else
25268 CXXFLAGS="-g"
25269 fi
25270else
25271 if test "$GXX" = yes; then
25272 CXXFLAGS="-O2"
25273 else
25274 CXXFLAGS=
25275 fi
25276fi
25277ac_ext=cpp
25278ac_cpp='$CXXCPP $CPPFLAGS'
25279ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25280ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25281ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25282
cristy73bd4a52010-10-05 11:24:23 +000025283depcc="$CXX" am_compiler_list=
25284
25285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
25286$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025287if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025288 $as_echo_n "(cached) " >&6
25289else
25290 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
25291 # We make a subdir and do the tests there. Otherwise we can end up
25292 # making bogus files that we don't know about and never remove. For
25293 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +000025294 # making a dummy file named 'D' -- because '-MD' means "put the output
25295 # in D".
cristy7247bba2012-02-05 16:37:27 +000025296 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +000025297 mkdir conftest.dir
25298 # Copy depcomp to subdir because otherwise we won't find it if we're
25299 # using a relative directory.
25300 cp "$am_depcomp" conftest.dir
25301 cd conftest.dir
25302 # We will build objects and dependencies in a subdirectory because
25303 # it helps to detect inapplicable dependency modes. For instance
25304 # both Tru64's cc and ICC support -MD to output dependencies as a
25305 # side effect of compilation, but ICC will put the dependencies in
25306 # the current directory while Tru64 will put them in the object
25307 # directory.
25308 mkdir sub
25309
25310 am_cv_CXX_dependencies_compiler_type=none
25311 if test "$am_compiler_list" = ""; then
25312 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
25313 fi
25314 am__universal=false
25315 case " $depcc " in #(
25316 *\ -arch\ *\ -arch\ *) am__universal=true ;;
25317 esac
25318
25319 for depmode in $am_compiler_list; do
25320 # Setup a source with many dependencies, because some compilers
25321 # like to wrap large dependency lists on column 80 (with \), and
25322 # we should not choose a depcomp mode which is confused by this.
25323 #
25324 # We need to recreate these files for each test, as the compiler may
25325 # overwrite some of them when testing with obscure command lines.
25326 # This happens at least with the AIX C compiler.
25327 : > sub/conftest.c
25328 for i in 1 2 3 4 5 6; do
25329 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +000025330 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
25331 # Solaris 10 /bin/sh.
25332 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +000025333 done
25334 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
25335
cristyc0890a62012-07-19 00:18:20 +000025336 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +000025337 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +000025338 # handle '-M -o', and we need to detect this. Also, some Intel
25339 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +000025340 am__obj=sub/conftest.${OBJEXT-o}
25341 am__minus_obj="-o $am__obj"
25342 case $depmode in
25343 gcc)
25344 # This depmode causes a compiler race in universal mode.
25345 test "$am__universal" = false || continue
25346 ;;
25347 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +000025348 # After this tag, mechanisms are not by side-effect, so they'll
25349 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +000025350 if test "x$enable_dependency_tracking" = xyes; then
25351 continue
25352 else
25353 break
25354 fi
25355 ;;
cristy7247bba2012-02-05 16:37:27 +000025356 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +000025357 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +000025358 # not run yet. These depmodes are late enough in the game, and
25359 # so weak that their functioning should not be impacted.
25360 am__obj=conftest.${OBJEXT-o}
25361 am__minus_obj=
25362 ;;
25363 none) break ;;
25364 esac
25365 if depmode=$depmode \
25366 source=sub/conftest.c object=$am__obj \
25367 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
25368 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
25369 >/dev/null 2>conftest.err &&
25370 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
25371 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
25372 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
25373 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
25374 # icc doesn't choke on unknown options, it will just issue warnings
25375 # or remarks (even with -Werror). So we grep stderr for any message
25376 # that says an option was ignored or not supported.
25377 # When given -MP, icc 7.0 and 7.1 complain thusly:
25378 # icc: Command line warning: ignoring option '-M'; no argument required
25379 # The diagnosis changed in icc 8.0:
25380 # icc: Command line remark: option '-MP' not supported
25381 if (grep 'ignoring option' conftest.err ||
25382 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
25383 am_cv_CXX_dependencies_compiler_type=$depmode
25384 break
25385 fi
25386 fi
25387 done
25388
25389 cd ..
25390 rm -rf conftest.dir
25391else
25392 am_cv_CXX_dependencies_compiler_type=none
25393fi
25394
25395fi
25396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
25397$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
25398CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
25399
25400 if
25401 test "x$enable_dependency_tracking" != xno \
25402 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
25403 am__fastdepCXX_TRUE=
25404 am__fastdepCXX_FALSE='#'
25405else
25406 am__fastdepCXX_TRUE='#'
25407 am__fastdepCXX_FALSE=
25408fi
25409
25410
25411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes bool as a built-in type" >&5
25412$as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025413if ${ax_cv_cxx_bool+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025414 $as_echo_n "(cached) " >&6
25415else
25416
25417 ac_ext=cpp
25418ac_cpp='$CXXCPP $CPPFLAGS'
25419ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25420ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25421ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25422
25423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25424/* end confdefs.h. */
25425
25426int f(int x){return 1;}
25427int f(char x){return 1;}
25428int f(bool x){return 1;}
25429
25430int
25431main ()
25432{
25433bool b = true; return f(b);
25434 ;
25435 return 0;
25436}
25437_ACEOF
25438if ac_fn_cxx_try_compile "$LINENO"; then :
25439 ax_cv_cxx_bool=yes
25440else
25441 ax_cv_cxx_bool=no
25442fi
25443rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25444 ac_ext=cpp
25445ac_cpp='$CXXCPP $CPPFLAGS'
25446ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25447ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25448ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25449
25450
25451fi
25452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_bool" >&5
25453$as_echo "$ax_cv_cxx_bool" >&6; }
25454if test "$ax_cv_cxx_bool" = yes; then
25455
25456$as_echo "#define HAVE_BOOL /**/" >>confdefs.h
25457
25458fi
25459
25460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
25461$as_echo_n "checking whether the compiler implements namespaces... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025462if ${ax_cv_cxx_namespaces+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025463 $as_echo_n "(cached) " >&6
25464else
25465
25466 ac_ext=cpp
25467ac_cpp='$CXXCPP $CPPFLAGS'
25468ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25469ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25470ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25471
25472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25473/* end confdefs.h. */
25474namespace Outer { namespace Inner { int i = 0; }}
25475int
25476main ()
25477{
25478using namespace Outer::Inner; return i;
25479 ;
25480 return 0;
25481}
25482_ACEOF
25483if ac_fn_cxx_try_compile "$LINENO"; then :
25484 ax_cv_cxx_namespaces=yes
25485else
25486 ax_cv_cxx_namespaces=no
25487fi
25488rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25489 ac_ext=cpp
25490ac_cpp='$CXXCPP $CPPFLAGS'
25491ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25492ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25493ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25494
25495
25496fi
25497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_namespaces" >&5
25498$as_echo "$ax_cv_cxx_namespaces" >&6; }
25499if test "$ax_cv_cxx_namespaces" = yes; then
25500
25501$as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
25502
25503fi
25504
25505
25506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports namespace std" >&5
25507$as_echo_n "checking if g++ supports namespace std... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025508if ${ax_cv_cxx_have_std_namespace+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025509 $as_echo_n "(cached) " >&6
25510else
25511
25512 ac_ext=cpp
25513ac_cpp='$CXXCPP $CPPFLAGS'
25514ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25515ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25516ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25517
25518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25519/* end confdefs.h. */
25520#include <iostream>
25521 std::istream& is = std::cin;
25522int
25523main ()
25524{
25525
25526 ;
25527 return 0;
25528}
25529_ACEOF
25530if ac_fn_cxx_try_compile "$LINENO"; then :
25531 ax_cv_cxx_have_std_namespace=yes
25532else
25533 ax_cv_cxx_have_std_namespace=no
25534fi
25535rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25536 ac_ext=cpp
25537ac_cpp='$CXXCPP $CPPFLAGS'
25538ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25539ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25540ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25541
25542
25543fi
25544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_have_std_namespace" >&5
25545$as_echo "$ax_cv_cxx_have_std_namespace" >&6; }
25546 if test "$ax_cv_cxx_have_std_namespace" = yes; then
25547
25548$as_echo "#define HAVE_NAMESPACE_STD /**/" >>confdefs.h
25549
25550 fi
25551
25552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
25553$as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025554if ${ac_cv_cxx_have_std_libs+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025555 $as_echo_n "(cached) " >&6
25556else
25557
25558
25559 ac_ext=cpp
25560ac_cpp='$CXXCPP $CPPFLAGS'
25561ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25562ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25563ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25564
25565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25566/* end confdefs.h. */
25567#include <iostream>
25568#include <map>
25569#include <iomanip>
25570#include <cmath>
25571#ifdef HAVE_NAMESPACES
25572using namespace std;
25573#endif
25574int
25575main ()
25576{
25577return 0;
25578 ;
25579 return 0;
25580}
25581_ACEOF
25582if ac_fn_cxx_try_compile "$LINENO"; then :
25583 ac_cv_cxx_have_std_libs=yes
25584else
25585 ac_cv_cxx_have_std_libs=no
25586fi
25587rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25588 ac_ext=cpp
25589ac_cpp='$CXXCPP $CPPFLAGS'
25590ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25591ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25592ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25593
25594
25595fi
25596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
25597$as_echo "$ac_cv_cxx_have_std_libs" >&6; }
25598if test "$ac_cv_cxx_have_std_libs" = yes; then
25599
25600$as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
25601
25602fi
25603
cristy3ed852e2009-09-05 21:47:34 +000025604
25605 OPENMP_CXXFLAGS=
25606 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +000025607if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025608 enableval=$enable_openmp;
25609fi
25610
25611 if test "$enable_openmp" != no; then
cristycd4c5312009-11-22 01:19:08 +000025612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
25613$as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025614if ${ac_cv_prog_cxx_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025615 $as_echo_n "(cached) " >&6
25616else
cristy8b350f62009-11-15 23:12:43 +000025617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25618/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000025619
25620#ifndef _OPENMP
25621 choke me
25622#endif
25623#include <omp.h>
25624int main () { return omp_get_num_threads (); }
25625
25626_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025627if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025628 ac_cv_prog_cxx_openmp='none needed'
25629else
cristy8b350f62009-11-15 23:12:43 +000025630 ac_cv_prog_cxx_openmp='unsupported'
cristy14fefe52012-05-21 00:59:18 +000025631 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
25632 -Popenmp --openmp; do
cristy3ed852e2009-09-05 21:47:34 +000025633 ac_save_CXXFLAGS=$CXXFLAGS
25634 CXXFLAGS="$CXXFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +000025635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25636/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000025637
25638#ifndef _OPENMP
25639 choke me
25640#endif
25641#include <omp.h>
25642int main () { return omp_get_num_threads (); }
25643
25644_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025645if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025646 ac_cv_prog_cxx_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +000025647fi
cristy8b350f62009-11-15 23:12:43 +000025648rm -f core conftest.err conftest.$ac_objext \
25649 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025650 CXXFLAGS=$ac_save_CXXFLAGS
25651 if test "$ac_cv_prog_cxx_openmp" != unsupported; then
25652 break
25653 fi
25654 done
25655fi
cristy8b350f62009-11-15 23:12:43 +000025656rm -f core conftest.err conftest.$ac_objext \
25657 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025658fi
cristy8b350f62009-11-15 23:12:43 +000025659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000025660$as_echo "$ac_cv_prog_cxx_openmp" >&6; }
25661 case $ac_cv_prog_cxx_openmp in #(
25662 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +000025663 ;; #(
cristy3ed852e2009-09-05 21:47:34 +000025664 *)
cristy8b350f62009-11-15 23:12:43 +000025665 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +000025666 esac
25667 fi
25668
25669
25670 ac_ext=c
25671ac_cpp='$CPP $CPPFLAGS'
25672ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25673ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25674ac_compiler_gnu=$ac_cv_c_compiler_gnu
25675
25676
cristy8b350f62009-11-15 23:12:43 +000025677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
cristy3ed852e2009-09-05 21:47:34 +000025678$as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
25679 if \
cristy964cb7f2010-04-25 23:18:00 +000025680 test $ax_cv_cxx_bool = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000025681 test $ax_cv_cxx_namespaces = 'yes' && \
cristy3ed852e2009-09-05 21:47:34 +000025682 test $ac_cv_cxx_have_std_libs = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000025683 test $ax_cv_cxx_have_std_namespace = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000025684 have_magick_plus_plus='yes'
25685 else
25686 have_magick_plus_plus='no (failed tests)'
25687 fi
cristy09b53e12011-10-14 12:47:22 +000025688 { $as_echo "$as_me:${as_lineno-$LINENO}: $have_magick_plus_plus" >&5
25689$as_echo "$as_me: $have_magick_plus_plus" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000025690 LIBS="$OLIBS"
25691fi
cristy73bd4a52010-10-05 11:24:23 +000025692 if test "$have_magick_plus_plus" = 'yes'; then
25693 WITH_MAGICK_PLUS_PLUS_TRUE=
25694 WITH_MAGICK_PLUS_PLUS_FALSE='#'
25695else
25696 WITH_MAGICK_PLUS_PLUS_TRUE='#'
25697 WITH_MAGICK_PLUS_PLUS_FALSE=
25698fi
25699
cristy3ed852e2009-09-05 21:47:34 +000025700
25701# Only check for delegate libraries in subdirectories if requested.
25702if test "$enable_delegate_build" != 'no'; then
25703 # Check for delegate sub-directories and add -I & -L options as required.
25704 # This presumes that delegates are installed as detailed in the ImageMagick
25705 # README. If delegates are installed in a standard location where the
25706 # compiler will automatically find them then these options should not be
25707 # required.
25708
25709 #
25710 # Most delegates have includes in the same directory as the library, but not all...
25711 #
25712 # Includes
cristy2542fc62011-12-06 17:50:25 +000025713 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 +000025714 if test -d "$builddir/$dir"; then
25715 CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
25716 else
25717 if test -d "$srcdirfull/$dir"; then
25718 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
25719 fi
25720 fi
25721 done
25722
25723 # Libraries
cristy2542fc62011-12-06 17:50:25 +000025724 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 +000025725 if test -d "$builddir/$dir/.libs"; then
25726 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
25727 else
25728 if test -d "$srcdirfull/$dir/.libs"; then
25729 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
25730 fi
25731 fi
25732 if test -d "$builddir/$dir"; then
25733 LDFLAGS="$LDFLAGS -L$builddir/$dir"
25734 else
25735 if test -d "$srcdirfull/$dir"; then
25736 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
25737 fi
25738 fi
25739 done
25740fi
25741
25742# Assume that delegate headers reside under same directory as ImageMagick
25743# installation prefix.
25744MAGICK_CPPFLAGS="-I$INCLUDE_DIR/ImageMagick $MAGICK_CPPFLAGS"
25745
25746#
25747# Find the X11 RGB database
25748#
cristy8b350f62009-11-15 23:12:43 +000025749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
cristy3ed852e2009-09-05 21:47:34 +000025750$as_echo_n "checking for X11 configure files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025751if ${im_cv_x_configure+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025752 $as_echo_n "(cached) " >&6
25753else
25754 # Look for the header file in a standard set of common directories.
25755# Check X11 before X11Rn because it is often a symlink to the current release.
25756 for ac_dir in \
25757 /lib/usr/lib/X11 \
25758 /usr/X11/lib \
25759 /usr/X11R4/lib \
25760 /usr/X11R5/lib \
25761 /usr/X11R6/lib \
25762 /usr/X11R7/lib \
25763 /usr/X386/lib \
25764 /usr/XFree86/lib/X11 \
25765 /usr/athena/lib \
25766 /usr/lib \
25767 /usr/lib/X11 \
25768 /usr/lib/X11R4 \
25769 /usr/lib/X11R5 \
25770 /usr/lib/X11R6 \
25771 /usr/lib/X11R7 \
25772 /usr/local/X11/lib \
25773 /usr/local/X11R4/lib \
25774 /usr/local/X11R5/lib \
25775 /usr/local/X11R6/lib \
25776 /usr/local/lib \
25777 /usr/local/lib/X11 \
25778 /usr/local/lib/X11R4 \
25779 /usr/local/lib/X11R5 \
25780 /usr/local/lib/X11R6 \
25781 /usr/local/lib/X11R7 \
25782 /usr/local/x11r5/lib \
25783 /usr/lpp/Xamples/lib \
25784 /usr/openwin/lib \
25785 /usr/openwin/share/lib \
25786 /usr/unsupported/lib \
25787 /usr/x386/lib \
25788 ; do
25789 if test -f "$ac_dir/X11/rgb.txt"; then
25790 im_cv_x_configure="$ac_dir/X11/"
25791 break
25792 elif test -f "$ac_dir/rgb.txt"; then
25793 im_cv_x_configure="$ac_dir/"
25794 break
25795 fi
25796
25797 done
25798fi
cristy8b350f62009-11-15 23:12:43 +000025799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
cristy3ed852e2009-09-05 21:47:34 +000025800$as_echo "$im_cv_x_configure" >&6; }
25801X11_CONFIGURE_PATH="$im_cv_x_configure"
25802case "${build_os}" in
25803 mingw* )
25804 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
25805 ;;
25806esac
25807
25808cat >>confdefs.h <<_ACEOF
25809#define X11_CONFIGURE_PATH "$X11ConfigurePath"
25810_ACEOF
25811
25812
25813#
25814# Find OpenMP library
25815#
25816GOMP_LIBS=''
25817if test "$enable_openmp" != 'no'; then
25818 if test "${GCC}" = "yes"; then
cristy18307f12011-12-30 01:20:16 +000025819 # Open64 (passes for GCC but uses different OpenMP implementation)
25820 if test "x$GOMP_LIBS" = x ; then
25821 if $CC --version 2>&1 | grep Open64 > /dev/null ; then
25822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for omp_get_num_procs in -lopenmp" >&5
25823$as_echo_n "checking for omp_get_num_procs in -lopenmp... " >&6; }
25824if ${ac_cv_lib_openmp_omp_get_num_procs+:} false; then :
25825 $as_echo_n "(cached) " >&6
25826else
25827 ac_check_lib_save_LIBS=$LIBS
25828LIBS="-lopenmp $LIBS"
25829cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25830/* end confdefs.h. */
25831
25832/* Override any GCC internal prototype to avoid an error.
25833 Use char because int might match the return type of a GCC
25834 builtin and then its argument prototype would still apply. */
25835#ifdef __cplusplus
25836extern "C"
25837#endif
25838char omp_get_num_procs ();
25839int
25840main ()
25841{
25842return omp_get_num_procs ();
25843 ;
25844 return 0;
25845}
25846_ACEOF
25847if ac_fn_c_try_link "$LINENO"; then :
25848 ac_cv_lib_openmp_omp_get_num_procs=yes
25849else
25850 ac_cv_lib_openmp_omp_get_num_procs=no
25851fi
25852rm -f core conftest.err conftest.$ac_objext \
25853 conftest$ac_exeext conftest.$ac_ext
25854LIBS=$ac_check_lib_save_LIBS
25855fi
25856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_openmp_omp_get_num_procs" >&5
25857$as_echo "$ac_cv_lib_openmp_omp_get_num_procs" >&6; }
25858if test "x$ac_cv_lib_openmp_omp_get_num_procs" = xyes; then :
25859 GOMP_LIBS="-lopenmp"
25860fi
25861
25862 fi
25863 fi
25864 # GCC
25865 if test "x$GOMP_LIBS" = x ; then
25866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
cristy3ed852e2009-09-05 21:47:34 +000025867$as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025868if ${ac_cv_lib_gomp_GOMP_parallel_start+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025869 $as_echo_n "(cached) " >&6
25870else
25871 ac_check_lib_save_LIBS=$LIBS
25872LIBS="-lgomp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025873cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025874/* end confdefs.h. */
25875
25876/* Override any GCC internal prototype to avoid an error.
25877 Use char because int might match the return type of a GCC
25878 builtin and then its argument prototype would still apply. */
25879#ifdef __cplusplus
25880extern "C"
25881#endif
25882char GOMP_parallel_start ();
25883int
25884main ()
25885{
25886return GOMP_parallel_start ();
25887 ;
25888 return 0;
25889}
25890_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025891if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025892 ac_cv_lib_gomp_GOMP_parallel_start=yes
25893else
cristy8b350f62009-11-15 23:12:43 +000025894 ac_cv_lib_gomp_GOMP_parallel_start=no
cristy3ed852e2009-09-05 21:47:34 +000025895fi
cristy8b350f62009-11-15 23:12:43 +000025896rm -f core conftest.err conftest.$ac_objext \
25897 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025898LIBS=$ac_check_lib_save_LIBS
25899fi
cristy8b350f62009-11-15 23:12:43 +000025900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
cristy3ed852e2009-09-05 21:47:34 +000025901$as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
cristyda16f162011-02-19 23:52:17 +000025902if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025903 GOMP_LIBS="-lgomp"
25904fi
cristy18307f12011-12-30 01:20:16 +000025905
25906 fi
cristy3ed852e2009-09-05 21:47:34 +000025907 else
cristy18307f12011-12-30 01:20:16 +000025908 # Sun CC
25909 if test "x$GOMP_LIBS" = x ; then
25910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
cristy3ed852e2009-09-05 21:47:34 +000025911$as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025912if ${ac_cv_lib_mtsk_sunw_mp_register_warn+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025913 $as_echo_n "(cached) " >&6
25914else
25915 ac_check_lib_save_LIBS=$LIBS
25916LIBS="-lmtsk $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025917cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025918/* end confdefs.h. */
25919
25920/* Override any GCC internal prototype to avoid an error.
25921 Use char because int might match the return type of a GCC
25922 builtin and then its argument prototype would still apply. */
25923#ifdef __cplusplus
25924extern "C"
25925#endif
25926char sunw_mp_register_warn ();
25927int
25928main ()
25929{
25930return sunw_mp_register_warn ();
25931 ;
25932 return 0;
25933}
25934_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025935if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025936 ac_cv_lib_mtsk_sunw_mp_register_warn=yes
25937else
cristy8b350f62009-11-15 23:12:43 +000025938 ac_cv_lib_mtsk_sunw_mp_register_warn=no
cristy3ed852e2009-09-05 21:47:34 +000025939fi
cristy8b350f62009-11-15 23:12:43 +000025940rm -f core conftest.err conftest.$ac_objext \
25941 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025942LIBS=$ac_check_lib_save_LIBS
25943fi
cristy8b350f62009-11-15 23:12:43 +000025944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
cristy3ed852e2009-09-05 21:47:34 +000025945$as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
cristyda16f162011-02-19 23:52:17 +000025946if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025947 GOMP_LIBS="-lmtsk"
25948fi
cristy18307f12011-12-30 01:20:16 +000025949
25950 fi
25951 # AIX xlc
25952 if test "x$GOMP_LIBS" = x ; then
cristy8b350f62009-11-15 23:12:43 +000025953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000025954$as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025955if ${ac_cv_lib_xlsmp__xlsmpFlush+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025956 $as_echo_n "(cached) " >&6
25957else
25958 ac_check_lib_save_LIBS=$LIBS
25959LIBS="-lxlsmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025960cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025961/* end confdefs.h. */
25962
25963/* Override any GCC internal prototype to avoid an error.
25964 Use char because int might match the return type of a GCC
25965 builtin and then its argument prototype would still apply. */
25966#ifdef __cplusplus
25967extern "C"
25968#endif
25969char _xlsmpFlush ();
25970int
25971main ()
25972{
25973return _xlsmpFlush ();
25974 ;
25975 return 0;
25976}
25977_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025978if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025979 ac_cv_lib_xlsmp__xlsmpFlush=yes
25980else
cristy8b350f62009-11-15 23:12:43 +000025981 ac_cv_lib_xlsmp__xlsmpFlush=no
cristy3ed852e2009-09-05 21:47:34 +000025982fi
cristy8b350f62009-11-15 23:12:43 +000025983rm -f core conftest.err conftest.$ac_objext \
25984 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025985LIBS=$ac_check_lib_save_LIBS
25986fi
cristy8b350f62009-11-15 23:12:43 +000025987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
cristy3ed852e2009-09-05 21:47:34 +000025988$as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
cristyda16f162011-02-19 23:52:17 +000025989if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025990 GOMP_LIBS="-lxlsmp"
25991fi
cristy18307f12011-12-30 01:20:16 +000025992
25993 fi
25994 # SGI IRIX 6.5 MIPSpro C/C++
25995 if test "x$GOMP_LIBS" = x ; then
cristy8b350f62009-11-15 23:12:43 +000025996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000025997$as_echo_n "checking for mp_destroy in -lmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025998if ${ac_cv_lib_mp_mp_destroy+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025999 $as_echo_n "(cached) " >&6
26000else
26001 ac_check_lib_save_LIBS=$LIBS
26002LIBS="-lmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026003cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026004/* end confdefs.h. */
26005
26006/* Override any GCC internal prototype to avoid an error.
26007 Use char because int might match the return type of a GCC
26008 builtin and then its argument prototype would still apply. */
26009#ifdef __cplusplus
26010extern "C"
26011#endif
26012char mp_destroy ();
26013int
26014main ()
26015{
26016return mp_destroy ();
26017 ;
26018 return 0;
26019}
26020_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026021if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026022 ac_cv_lib_mp_mp_destroy=yes
26023else
cristy8b350f62009-11-15 23:12:43 +000026024 ac_cv_lib_mp_mp_destroy=no
cristy3ed852e2009-09-05 21:47:34 +000026025fi
cristy8b350f62009-11-15 23:12:43 +000026026rm -f core conftest.err conftest.$ac_objext \
26027 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026028LIBS=$ac_check_lib_save_LIBS
26029fi
cristy8b350f62009-11-15 23:12:43 +000026030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
cristy3ed852e2009-09-05 21:47:34 +000026031$as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
cristyda16f162011-02-19 23:52:17 +000026032if test "x$ac_cv_lib_mp_mp_destroy" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026033 GOMP_LIBS="-lmp"
26034fi
cristy18307f12011-12-30 01:20:16 +000026035
26036 fi
cristy3ed852e2009-09-05 21:47:34 +000026037 fi
26038 LIBS="$GOMP_LIBS $LIBS"
26039fi
26040
26041
26042#
26043# Find Posix threads library
26044#
26045THREAD_LIBS=''
26046if test "$with_threads" != 'no' && test "$have_threads" = 'yes'; then
26047
26048 if test "x$PTHREAD_LIBS" = "x"; then
26049 case "${host_cpu}-${host_os}" in
26050 *-freebsd*)
cristy73bd4a52010-10-05 11:24:23 +000026051
26052
26053
26054ac_ext=c
26055ac_cpp='$CPP $CPPFLAGS'
26056ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26057ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26058ac_compiler_gnu=$ac_cv_c_compiler_gnu
26059
26060magick_pthread_lib_ok=no
26061
26062LIB=-lc_r
26063save_LIBS="$LIBS"
26064LIBS="$LIBS $LIB"
26065
26066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
26067$as_echo_n "checking for the pthreads library $LIB... " >&6; }
26068cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26069/* end confdefs.h. */
26070#include <pthread.h>
26071int
26072main ()
26073{
26074 pthread_t th;
26075 pthread_join(th, 0);
26076 pthread_attr_init(0);
26077 pthread_cleanup_push(0, 0);
26078 pthread_create(0,0,0,0);
26079 pthread_cleanup_pop(0);
26080 ;
26081 return 0;
26082}
26083_ACEOF
26084if ac_fn_c_try_link "$LINENO"; then :
26085 magick_pthread_lib_ok=yes
26086fi
26087rm -f core conftest.err conftest.$ac_objext \
26088 conftest$ac_exeext conftest.$ac_ext
26089
26090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
26091$as_echo "${magick_pthread_lib_ok}" >&6; }
26092if test "$magick_pthread_lib_ok" = yes
26093then
26094 PTHREAD_LIBS=-lc_r
26095 :
26096else
26097
26098 :
26099fi
26100
26101LIBS="$save_LIBS"
26102
26103ac_ext=c
26104ac_cpp='$CPP $CPPFLAGS'
26105ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26106ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26107ac_compiler_gnu=$ac_cv_c_compiler_gnu
26108
26109 ;;
cristy3ed852e2009-09-05 21:47:34 +000026110 esac
26111 fi
26112
26113 for lib in pthread pthreads; do
26114 if test "x$PTHREAD_LIBS" = "x"; then
cristy73bd4a52010-10-05 11:24:23 +000026115
26116
26117
26118ac_ext=c
26119ac_cpp='$CPP $CPPFLAGS'
26120ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26121ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26122ac_compiler_gnu=$ac_cv_c_compiler_gnu
26123
26124magick_pthread_lib_ok=no
26125
26126LIB=-l$lib
26127save_LIBS="$LIBS"
26128LIBS="$LIBS $LIB"
26129
26130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
26131$as_echo_n "checking for the pthreads library $LIB... " >&6; }
26132cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26133/* end confdefs.h. */
26134#include <pthread.h>
26135int
26136main ()
26137{
26138 pthread_t th;
26139 pthread_join(th, 0);
26140 pthread_attr_init(0);
26141 pthread_cleanup_push(0, 0);
26142 pthread_create(0,0,0,0);
26143 pthread_cleanup_pop(0);
26144 ;
26145 return 0;
26146}
26147_ACEOF
26148if ac_fn_c_try_link "$LINENO"; then :
26149 magick_pthread_lib_ok=yes
26150fi
26151rm -f core conftest.err conftest.$ac_objext \
26152 conftest$ac_exeext conftest.$ac_ext
26153
26154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
26155$as_echo "${magick_pthread_lib_ok}" >&6; }
26156if test "$magick_pthread_lib_ok" = yes
26157then
26158 PTHREAD_LIBS=-l$lib
26159 :
26160else
26161
26162 :
26163fi
26164
26165LIBS="$save_LIBS"
26166
26167ac_ext=c
26168ac_cpp='$CPP $CPPFLAGS'
26169ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26170ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26171ac_compiler_gnu=$ac_cv_c_compiler_gnu
26172
26173
cristy3ed852e2009-09-05 21:47:34 +000026174 fi
26175 done
26176
26177 THREAD_LIBS="$PTHREAD_LIBS"
26178 LIBS="$LIBS $THREAD_LIBS"
26179fi
26180
26181
26182#
26183# Check for umem.
26184#
26185have_umem='no'
26186UMEM_LIBS=''
26187if test "$with_umem" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
cristy3ed852e2009-09-05 21:47:34 +000026189$as_echo_n "checking for UMEM support ... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000026190 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
26191$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026192 failed=0
26193 passed=0
cristy8b350f62009-11-15 23:12:43 +000026194 ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000026195if test "x$ac_cv_header_umem_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026196 passed=`expr $passed + 1`
26197else
26198 failed=`expr $failed + 1`
26199fi
26200
26201
cristy8b350f62009-11-15 23:12:43 +000026202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000026203$as_echo_n "checking for umem_alloc in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026204if ${ac_cv_lib_umem_umem_alloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026205 $as_echo_n "(cached) " >&6
26206else
26207 ac_check_lib_save_LIBS=$LIBS
26208LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026209cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026210/* end confdefs.h. */
26211
26212/* Override any GCC internal prototype to avoid an error.
26213 Use char because int might match the return type of a GCC
26214 builtin and then its argument prototype would still apply. */
26215#ifdef __cplusplus
26216extern "C"
26217#endif
26218char umem_alloc ();
26219int
26220main ()
26221{
26222return umem_alloc ();
26223 ;
26224 return 0;
26225}
26226_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026227if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026228 ac_cv_lib_umem_umem_alloc=yes
26229else
cristy8b350f62009-11-15 23:12:43 +000026230 ac_cv_lib_umem_umem_alloc=no
cristy3ed852e2009-09-05 21:47:34 +000026231fi
cristy8b350f62009-11-15 23:12:43 +000026232rm -f core conftest.err conftest.$ac_objext \
26233 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026234LIBS=$ac_check_lib_save_LIBS
26235fi
cristy8b350f62009-11-15 23:12:43 +000026236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026237$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000026238if test "x$ac_cv_lib_umem_umem_alloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026239 passed=`expr $passed + 1`
26240else
26241 failed=`expr $failed + 1`
26242fi
26243
cristy8b350f62009-11-15 23:12:43 +000026244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000026245$as_echo_n "checking for umem_free in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026246if ${ac_cv_lib_umem_umem_free+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026247 $as_echo_n "(cached) " >&6
26248else
26249 ac_check_lib_save_LIBS=$LIBS
26250LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026251cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026252/* end confdefs.h. */
26253
26254/* Override any GCC internal prototype to avoid an error.
26255 Use char because int might match the return type of a GCC
26256 builtin and then its argument prototype would still apply. */
26257#ifdef __cplusplus
26258extern "C"
26259#endif
26260char umem_free ();
26261int
26262main ()
26263{
26264return umem_free ();
26265 ;
26266 return 0;
26267}
26268_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026269if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026270 ac_cv_lib_umem_umem_free=yes
26271else
cristy8b350f62009-11-15 23:12:43 +000026272 ac_cv_lib_umem_umem_free=no
cristy3ed852e2009-09-05 21:47:34 +000026273fi
cristy8b350f62009-11-15 23:12:43 +000026274rm -f core conftest.err conftest.$ac_objext \
26275 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026276LIBS=$ac_check_lib_save_LIBS
26277fi
cristy8b350f62009-11-15 23:12:43 +000026278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
cristy3ed852e2009-09-05 21:47:34 +000026279$as_echo "$ac_cv_lib_umem_umem_free" >&6; }
cristyda16f162011-02-19 23:52:17 +000026280if test "x$ac_cv_lib_umem_umem_free" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026281 passed=`expr $passed + 1`
26282else
26283 failed=`expr $failed + 1`
26284fi
26285
cristy8b350f62009-11-15 23:12:43 +000026286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026287$as_echo_n "checking if umem memory allocation library is complete... " >&6; }
26288 if test $passed -gt 0; then
26289 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000026290 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
26291$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026292 have_umem='no (failed tests)'
26293 else
26294 UMEM_LIBS='-lumem'
26295 LIBS="$UMEM_LIBS $LIBS"
26296
cristy8b350f62009-11-15 23:12:43 +000026297$as_echo "#define HasUMEM 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026298
cristy09b53e12011-10-14 12:47:22 +000026299 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
26300$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026301 have_umem='yes'
26302 fi
26303 else
cristy09b53e12011-10-14 12:47:22 +000026304 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
26305$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026306 fi
26307fi
cristy73bd4a52010-10-05 11:24:23 +000026308 if test "$have_umem" = 'yes'; then
26309 HasUMEM_TRUE=
26310 HasUMEM_FALSE='#'
26311else
26312 HasUMEM_TRUE='#'
26313 HasUMEM_FALSE=
26314fi
26315
cristy3ed852e2009-09-05 21:47:34 +000026316
26317
26318#
26319# Add support for ccmalloc memory debugging library if requested
26320#
26321have_ccmalloc='no'
26322CCMALLOC_LIBS=''
26323if test "$enable_ccmalloc" = 'yes'; then
26324 # Extract the first word of "ccmalloc", so it can be a program name with args.
26325set dummy ccmalloc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000026326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000026327$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026328if ${ac_cv_path_CCMALLOCDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026329 $as_echo_n "(cached) " >&6
26330else
26331 case $CCMALLOCDelegate in
26332 [\\/]* | ?:[\\/]*)
26333 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
26334 ;;
26335 *)
26336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26337for as_dir in $PATH
26338do
26339 IFS=$as_save_IFS
26340 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000026341 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000026342 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000026343 ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000026344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000026345 break 2
26346 fi
26347done
cristy8b350f62009-11-15 23:12:43 +000026348 done
cristy3ed852e2009-09-05 21:47:34 +000026349IFS=$as_save_IFS
26350
26351 ;;
26352esac
26353fi
26354CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
26355if test -n "$CCMALLOCDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000026356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000026357$as_echo "$CCMALLOCDelegate" >&6; }
26358else
cristy8b350f62009-11-15 23:12:43 +000026359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026360$as_echo "no" >&6; }
26361fi
26362
26363
26364 if test -n "$CCMALLOCDelegate"; then
26365 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
26366 OLIBS="$LIBS"
26367 # Assume that gcc is used with ccmalloc.
26368 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
cristy8b350f62009-11-15 23:12:43 +000026369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026370$as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026371if ${ac_cv_lib_ccmalloc_ccmalloc_malloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026372 $as_echo_n "(cached) " >&6
26373else
26374 ac_check_lib_save_LIBS=$LIBS
26375LIBS="-lccmalloc -ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026376cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026377/* end confdefs.h. */
26378
26379/* Override any GCC internal prototype to avoid an error.
26380 Use char because int might match the return type of a GCC
26381 builtin and then its argument prototype would still apply. */
26382#ifdef __cplusplus
26383extern "C"
26384#endif
26385char ccmalloc_malloc ();
26386int
26387main ()
26388{
26389return ccmalloc_malloc ();
26390 ;
26391 return 0;
26392}
26393_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026394if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026395 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
26396else
cristy8b350f62009-11-15 23:12:43 +000026397 ac_cv_lib_ccmalloc_ccmalloc_malloc=no
cristy3ed852e2009-09-05 21:47:34 +000026398fi
cristy8b350f62009-11-15 23:12:43 +000026399rm -f core conftest.err conftest.$ac_objext \
26400 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026401LIBS=$ac_check_lib_save_LIBS
26402fi
cristy8b350f62009-11-15 23:12:43 +000026403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026404$as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000026405if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026406 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
26407fi
26408
26409 if test -n "$CCMALLOC_LIBS"; then
26410 LIBS="$OLIBS"
26411 LIBS="$LIBS $CCMALLOC_LIBS"
26412 have_ccmalloc='yes'
26413 else
26414 LIBS="$OLIBS"
26415 fi
26416 fi
26417fi
26418
26419#
26420# Add support for efence memory debugging library if requested
26421#
26422if test "$enable_efence" = 'yes'; then
26423 EFENCE_LIBS='-lefence'
26424 LIBS="$EFENCE_LIBS $LIBS"
26425fi
26426
cristy3ed852e2009-09-05 21:47:34 +000026427
26428#
26429# Check for BZLIB
26430#
26431
26432
26433# Check whether --with-bzlib was given.
cristy8b350f62009-11-15 23:12:43 +000026434if test "${with_bzlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026435 withval=$with_bzlib; with_bzlib=$withval
26436else
26437 with_bzlib='yes'
26438fi
26439
26440
26441if test "$with_bzlib" != 'yes'; then
26442 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
26443fi
26444
26445have_bzlib='no'
26446if test "$with_bzlib" != 'no'; then
26447 BZLIB_LIBS=''
cristy09b53e12011-10-14 12:47:22 +000026448 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
26449$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000026450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000026451$as_echo_n "checking for BZLIB... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000026452 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
26453$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026454 failed=0
26455 passed=0
26456 found_libbz=0
cristy8b350f62009-11-15 23:12:43 +000026457 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000026458if test "x$ac_cv_header_bzlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026459 passed=`expr $passed + 1`
26460else
26461 failed=`expr $failed + 1`
26462fi
26463
26464
cristy8b350f62009-11-15 23:12:43 +000026465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000026466$as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026467if ${ac_cv_lib_bz2_BZ2_bzDecompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026468 $as_echo_n "(cached) " >&6
26469else
26470 ac_check_lib_save_LIBS=$LIBS
26471LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026472cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026473/* end confdefs.h. */
26474
26475/* Override any GCC internal prototype to avoid an error.
26476 Use char because int might match the return type of a GCC
26477 builtin and then its argument prototype would still apply. */
26478#ifdef __cplusplus
26479extern "C"
26480#endif
26481char BZ2_bzDecompress ();
26482int
26483main ()
26484{
26485return BZ2_bzDecompress ();
26486 ;
26487 return 0;
26488}
26489_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026490if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026491 ac_cv_lib_bz2_BZ2_bzDecompress=yes
26492else
cristy8b350f62009-11-15 23:12:43 +000026493 ac_cv_lib_bz2_BZ2_bzDecompress=no
cristy3ed852e2009-09-05 21:47:34 +000026494fi
cristy8b350f62009-11-15 23:12:43 +000026495rm -f core conftest.err conftest.$ac_objext \
26496 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026497LIBS=$ac_check_lib_save_LIBS
26498fi
cristy8b350f62009-11-15 23:12:43 +000026499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000026500$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000026501if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026502 found_libbz=`expr $found_libbz + 1`
26503fi
26504
26505 if test "$native_win32_build" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000026506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000026507$as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026508if ${ac_cv_lib_bz2__imp__BZ2_decompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026509 $as_echo_n "(cached) " >&6
26510else
26511 ac_check_lib_save_LIBS=$LIBS
26512LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026513cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026514/* end confdefs.h. */
26515
26516/* Override any GCC internal prototype to avoid an error.
26517 Use char because int might match the return type of a GCC
26518 builtin and then its argument prototype would still apply. */
26519#ifdef __cplusplus
26520extern "C"
26521#endif
26522char _imp__BZ2_decompress ();
26523int
26524main ()
26525{
26526return _imp__BZ2_decompress ();
26527 ;
26528 return 0;
26529}
26530_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026531if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026532 ac_cv_lib_bz2__imp__BZ2_decompress=yes
26533else
cristy8b350f62009-11-15 23:12:43 +000026534 ac_cv_lib_bz2__imp__BZ2_decompress=no
cristy3ed852e2009-09-05 21:47:34 +000026535fi
cristy8b350f62009-11-15 23:12:43 +000026536rm -f core conftest.err conftest.$ac_objext \
26537 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026538LIBS=$ac_check_lib_save_LIBS
26539fi
cristy8b350f62009-11-15 23:12:43 +000026540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000026541$as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000026542if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026543 found_libbz=`expr $found_libbz + 1`
26544fi
26545
26546 fi
26547 if test $found_libbz -gt 0; then
26548 passed=`expr $passed + 1`
26549 else
26550 failed=`expr $failed + 1`
26551 fi
cristy8b350f62009-11-15 23:12:43 +000026552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026553$as_echo_n "checking if BZLIB package is complete... " >&6; }
26554 if test $passed -gt 0; then
26555 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000026556 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
26557$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026558 have_bzlib='no (failed tests)'
26559 else
26560 BZLIB_LIBS='-lbz2'
26561 LIBS="$BZLIB_LIBS $LIBS"
26562
cristy8b350f62009-11-15 23:12:43 +000026563$as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026564
cristy09b53e12011-10-14 12:47:22 +000026565 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
26566$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026567 have_bzlib='yes'
26568 fi
26569 else
cristy09b53e12011-10-14 12:47:22 +000026570 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
26571$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026572 fi
26573fi
cristy73bd4a52010-10-05 11:24:23 +000026574 if test "$have_bzlib" = 'yes'; then
26575 BZLIB_DELEGATE_TRUE=
26576 BZLIB_DELEGATE_FALSE='#'
26577else
26578 BZLIB_DELEGATE_TRUE='#'
26579 BZLIB_DELEGATE_FALSE=
26580fi
26581
cristy3ed852e2009-09-05 21:47:34 +000026582
26583
26584#
26585# Find the X11 include and library directories.
26586#
26587IPC_LIBS=''
26588X11_LIBS=''
26589XEXT_LIBS=''
26590XT_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000026591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
cristyc7083c12009-10-14 03:16:55 +000026592$as_echo_n "checking for X... " >&6; }
26593
26594
26595# Check whether --with-x was given.
cristy8b350f62009-11-15 23:12:43 +000026596if test "${with_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000026597 withval=$with_x;
26598fi
26599
26600# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
26601if test "x$with_x" = xno; then
26602 # The user explicitly disabled X.
26603 have_x=disabled
26604else
26605 case $x_includes,$x_libraries in #(
cristy98dddb52010-11-04 00:30:15 +000026606 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
cristyda16f162011-02-19 23:52:17 +000026607 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
cristyc7083c12009-10-14 03:16:55 +000026608 $as_echo_n "(cached) " >&6
26609else
26610 # One or both of the vars are not set, and there is no cached value.
26611ac_x_includes=no ac_x_libraries=no
26612rm -f -r conftest.dir
26613if mkdir conftest.dir; then
26614 cd conftest.dir
26615 cat >Imakefile <<'_ACEOF'
26616incroot:
26617 @echo incroot='${INCROOT}'
26618usrlibdir:
26619 @echo usrlibdir='${USRLIBDIR}'
26620libdir:
26621 @echo libdir='${LIBDIR}'
26622_ACEOF
26623 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
cristy98dddb52010-11-04 00:30:15 +000026624 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristyc7083c12009-10-14 03:16:55 +000026625 for ac_var in incroot usrlibdir libdir; do
26626 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
26627 done
26628 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
26629 for ac_extension in a so sl dylib la dll; do
26630 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
26631 test -f "$ac_im_libdir/libX11.$ac_extension"; then
26632 ac_im_usrlibdir=$ac_im_libdir; break
26633 fi
26634 done
26635 # Screen out bogus values from the imake configuration. They are
26636 # bogus both because they are the default anyway, and because
26637 # using them would break gcc on systems where it needs fixed includes.
26638 case $ac_im_incroot in
26639 /usr/include) ac_x_includes= ;;
26640 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
26641 esac
26642 case $ac_im_usrlibdir in
26643 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
26644 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
26645 esac
26646 fi
26647 cd ..
26648 rm -f -r conftest.dir
26649fi
26650
26651# Standard set of common directories for X headers.
26652# Check X11 before X11Rn because it is often a symlink to the current release.
26653ac_x_header_dirs='
26654/usr/X11/include
cristy8b350f62009-11-15 23:12:43 +000026655/usr/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000026656/usr/X11R6/include
26657/usr/X11R5/include
26658/usr/X11R4/include
26659
26660/usr/include/X11
cristy8b350f62009-11-15 23:12:43 +000026661/usr/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000026662/usr/include/X11R6
26663/usr/include/X11R5
26664/usr/include/X11R4
26665
26666/usr/local/X11/include
cristy8b350f62009-11-15 23:12:43 +000026667/usr/local/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000026668/usr/local/X11R6/include
26669/usr/local/X11R5/include
26670/usr/local/X11R4/include
26671
26672/usr/local/include/X11
cristy8b350f62009-11-15 23:12:43 +000026673/usr/local/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000026674/usr/local/include/X11R6
26675/usr/local/include/X11R5
26676/usr/local/include/X11R4
26677
26678/usr/X386/include
26679/usr/x386/include
26680/usr/XFree86/include/X11
26681
26682/usr/include
26683/usr/local/include
26684/usr/unsupported/include
26685/usr/athena/include
26686/usr/local/x11r5/include
26687/usr/lpp/Xamples/include
26688
26689/usr/openwin/include
26690/usr/openwin/share/include'
26691
26692if test "$ac_x_includes" = no; then
26693 # Guess where to find include files, by looking for Xlib.h.
26694 # First, try using that file with no special directory specified.
cristy8b350f62009-11-15 23:12:43 +000026695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000026696/* end confdefs.h. */
26697#include <X11/Xlib.h>
26698_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026699if ac_fn_c_try_cpp "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000026700 # We can compile using X headers with no special include directory.
26701ac_x_includes=
26702else
cristyc7083c12009-10-14 03:16:55 +000026703 for ac_dir in $ac_x_header_dirs; do
26704 if test -r "$ac_dir/X11/Xlib.h"; then
26705 ac_x_includes=$ac_dir
26706 break
26707 fi
26708done
26709fi
cristyda16f162011-02-19 23:52:17 +000026710rm -f conftest.err conftest.i conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000026711fi # $ac_x_includes = no
26712
26713if test "$ac_x_libraries" = no; then
26714 # Check for the libraries.
26715 # See if we find them without any special options.
26716 # Don't add to $LIBS permanently.
26717 ac_save_LIBS=$LIBS
26718 LIBS="-lX11 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000026720/* end confdefs.h. */
26721#include <X11/Xlib.h>
26722int
26723main ()
26724{
26725XrmInitialize ()
26726 ;
26727 return 0;
26728}
26729_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026730if ac_fn_c_try_link "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000026731 LIBS=$ac_save_LIBS
26732# We can link X programs with no special library path.
26733ac_x_libraries=
26734else
cristy8b350f62009-11-15 23:12:43 +000026735 LIBS=$ac_save_LIBS
cristyc7083c12009-10-14 03:16:55 +000026736for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
26737do
26738 # Don't even attempt the hair of trying to link an X program!
26739 for ac_extension in a so sl dylib la dll; do
26740 if test -r "$ac_dir/libX11.$ac_extension"; then
26741 ac_x_libraries=$ac_dir
26742 break 2
26743 fi
26744 done
26745done
26746fi
cristy8b350f62009-11-15 23:12:43 +000026747rm -f core conftest.err conftest.$ac_objext \
26748 conftest$ac_exeext conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000026749fi # $ac_x_libraries = no
26750
26751case $ac_x_includes,$ac_x_libraries in #(
26752 no,* | *,no | *\'*)
26753 # Didn't find X, or a directory has "'" in its name.
26754 ac_cv_have_x="have_x=no";; #(
26755 *)
26756 # Record where we found X for the cache.
26757 ac_cv_have_x="have_x=yes\
26758 ac_x_includes='$ac_x_includes'\
26759 ac_x_libraries='$ac_x_libraries'"
26760esac
26761fi
26762;; #(
26763 *) have_x=yes;;
26764 esac
26765 eval "$ac_cv_have_x"
26766fi # $with_x != no
26767
26768if test "$have_x" != yes; then
cristy8b350f62009-11-15 23:12:43 +000026769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
cristyc7083c12009-10-14 03:16:55 +000026770$as_echo "$have_x" >&6; }
26771 no_x=yes
26772else
26773 # If each of the values was on the command line, it overrides each guess.
26774 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
26775 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
26776 # Update the cache value to reflect the command line values.
26777 ac_cv_have_x="have_x=yes\
26778 ac_x_includes='$x_includes'\
26779 ac_x_libraries='$x_libraries'"
cristy8b350f62009-11-15 23:12:43 +000026780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
cristyc7083c12009-10-14 03:16:55 +000026781$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
26782fi
26783
cristy3ed852e2009-09-05 21:47:34 +000026784if test "$no_x" = yes; then
26785 # Not all programs may use this symbol, but it does not hurt to define it.
26786
cristy8b350f62009-11-15 23:12:43 +000026787$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026788
26789 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
26790else
26791 if test -n "$x_includes"; then
26792 X_CFLAGS="$X_CFLAGS -I$x_includes"
26793 fi
26794
26795 # It would also be nice to do this for all -L options, not just this one.
26796 if test -n "$x_libraries"; then
26797 X_LIBS="$X_LIBS -L$x_libraries"
26798 # For Solaris; some versions of Sun CC require a space after -R and
26799 # others require no space. Words are not sufficient . . . .
cristy8b350f62009-11-15 23:12:43 +000026800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
cristy3ed852e2009-09-05 21:47:34 +000026801$as_echo_n "checking whether -R must be followed by a space... " >&6; }
26802 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
26803 ac_xsave_c_werror_flag=$ac_c_werror_flag
26804 ac_c_werror_flag=yes
cristy8b350f62009-11-15 23:12:43 +000026805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026806/* end confdefs.h. */
26807
26808int
26809main ()
26810{
26811
26812 ;
26813 return 0;
26814}
26815_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026816if ac_fn_c_try_link "$LINENO"; then :
26817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026818$as_echo "no" >&6; }
26819 X_LIBS="$X_LIBS -R$x_libraries"
26820else
cristy8b350f62009-11-15 23:12:43 +000026821 LIBS="$ac_xsave_LIBS -R $x_libraries"
26822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026823/* end confdefs.h. */
26824
26825int
26826main ()
26827{
26828
26829 ;
26830 return 0;
26831}
26832_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026833if ac_fn_c_try_link "$LINENO"; then :
26834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026835$as_echo "yes" >&6; }
26836 X_LIBS="$X_LIBS -R $x_libraries"
26837else
cristy8b350f62009-11-15 23:12:43 +000026838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
cristy3ed852e2009-09-05 21:47:34 +000026839$as_echo "neither works" >&6; }
26840fi
cristy8b350f62009-11-15 23:12:43 +000026841rm -f core conftest.err conftest.$ac_objext \
26842 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026843fi
cristy8b350f62009-11-15 23:12:43 +000026844rm -f core conftest.err conftest.$ac_objext \
26845 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026846 ac_c_werror_flag=$ac_xsave_c_werror_flag
26847 LIBS=$ac_xsave_LIBS
26848 fi
26849
26850 # Check for system-dependent libraries X programs must link with.
26851 # Do this before checking for the system-independent R6 libraries
26852 # (-lICE), since we may need -lsocket or whatever for X linking.
26853
26854 if test "$ISC" = yes; then
26855 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
26856 else
26857 # Martyn Johnson says this is needed for Ultrix, if the X
26858 # libraries were built with DECnet support. And Karl Berry says
26859 # the Alpha needs dnet_stub (dnet does not exist).
26860 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
cristy8b350f62009-11-15 23:12:43 +000026861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026862/* end confdefs.h. */
26863
26864/* Override any GCC internal prototype to avoid an error.
26865 Use char because int might match the return type of a GCC
26866 builtin and then its argument prototype would still apply. */
26867#ifdef __cplusplus
26868extern "C"
26869#endif
26870char XOpenDisplay ();
26871int
26872main ()
26873{
26874return XOpenDisplay ();
26875 ;
26876 return 0;
26877}
26878_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026879if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026880
cristy8b350f62009-11-15 23:12:43 +000026881else
26882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
cristy3ed852e2009-09-05 21:47:34 +000026883$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026884if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026885 $as_echo_n "(cached) " >&6
26886else
26887 ac_check_lib_save_LIBS=$LIBS
26888LIBS="-ldnet $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026889cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026890/* end confdefs.h. */
26891
26892/* Override any GCC internal prototype to avoid an error.
26893 Use char because int might match the return type of a GCC
26894 builtin and then its argument prototype would still apply. */
26895#ifdef __cplusplus
26896extern "C"
26897#endif
26898char dnet_ntoa ();
26899int
26900main ()
26901{
26902return dnet_ntoa ();
26903 ;
26904 return 0;
26905}
26906_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026907if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026908 ac_cv_lib_dnet_dnet_ntoa=yes
26909else
cristy8b350f62009-11-15 23:12:43 +000026910 ac_cv_lib_dnet_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000026911fi
cristy8b350f62009-11-15 23:12:43 +000026912rm -f core conftest.err conftest.$ac_objext \
26913 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026914LIBS=$ac_check_lib_save_LIBS
26915fi
cristy8b350f62009-11-15 23:12:43 +000026916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000026917$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000026918if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026919 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
26920fi
26921
26922 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
cristy8b350f62009-11-15 23:12:43 +000026923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
cristy3ed852e2009-09-05 21:47:34 +000026924$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026925if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026926 $as_echo_n "(cached) " >&6
26927else
26928 ac_check_lib_save_LIBS=$LIBS
26929LIBS="-ldnet_stub $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026930cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026931/* end confdefs.h. */
26932
26933/* Override any GCC internal prototype to avoid an error.
26934 Use char because int might match the return type of a GCC
26935 builtin and then its argument prototype would still apply. */
26936#ifdef __cplusplus
26937extern "C"
26938#endif
26939char dnet_ntoa ();
26940int
26941main ()
26942{
26943return dnet_ntoa ();
26944 ;
26945 return 0;
26946}
26947_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026948if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026949 ac_cv_lib_dnet_stub_dnet_ntoa=yes
26950else
cristy8b350f62009-11-15 23:12:43 +000026951 ac_cv_lib_dnet_stub_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000026952fi
cristy8b350f62009-11-15 23:12:43 +000026953rm -f core conftest.err conftest.$ac_objext \
26954 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026955LIBS=$ac_check_lib_save_LIBS
26956fi
cristy8b350f62009-11-15 23:12:43 +000026957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000026958$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000026959if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026960 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
26961fi
26962
26963 fi
26964fi
cristy8b350f62009-11-15 23:12:43 +000026965rm -f core conftest.err conftest.$ac_objext \
26966 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026967 LIBS="$ac_xsave_LIBS"
26968
26969 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
26970 # to get the SysV transport functions.
26971 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
26972 # needs -lnsl.
26973 # The nsl library prevents programs from opening the X display
26974 # on Irix 5.2, according to T.E. Dickey.
26975 # The functions gethostbyname, getservbyname, and inet_addr are
26976 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
cristy8b350f62009-11-15 23:12:43 +000026977 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
cristyda16f162011-02-19 23:52:17 +000026978if test "x$ac_cv_func_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026979
cristy3ed852e2009-09-05 21:47:34 +000026980fi
26981
cristy3ed852e2009-09-05 21:47:34 +000026982 if test $ac_cv_func_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000026983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
cristy3ed852e2009-09-05 21:47:34 +000026984$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026985if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026986 $as_echo_n "(cached) " >&6
26987else
26988 ac_check_lib_save_LIBS=$LIBS
26989LIBS="-lnsl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026990cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026991/* end confdefs.h. */
26992
26993/* Override any GCC internal prototype to avoid an error.
26994 Use char because int might match the return type of a GCC
26995 builtin and then its argument prototype would still apply. */
26996#ifdef __cplusplus
26997extern "C"
26998#endif
26999char gethostbyname ();
27000int
27001main ()
27002{
27003return gethostbyname ();
27004 ;
27005 return 0;
27006}
27007_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027008if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027009 ac_cv_lib_nsl_gethostbyname=yes
27010else
cristy8b350f62009-11-15 23:12:43 +000027011 ac_cv_lib_nsl_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000027012fi
cristy8b350f62009-11-15 23:12:43 +000027013rm -f core conftest.err conftest.$ac_objext \
27014 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027015LIBS=$ac_check_lib_save_LIBS
27016fi
cristy8b350f62009-11-15 23:12:43 +000027017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000027018$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000027019if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027020 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
27021fi
27022
27023 if test $ac_cv_lib_nsl_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000027024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
cristy3ed852e2009-09-05 21:47:34 +000027025$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027026if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027027 $as_echo_n "(cached) " >&6
27028else
27029 ac_check_lib_save_LIBS=$LIBS
27030LIBS="-lbsd $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027031cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027032/* end confdefs.h. */
27033
27034/* Override any GCC internal prototype to avoid an error.
27035 Use char because int might match the return type of a GCC
27036 builtin and then its argument prototype would still apply. */
27037#ifdef __cplusplus
27038extern "C"
27039#endif
27040char gethostbyname ();
27041int
27042main ()
27043{
27044return gethostbyname ();
27045 ;
27046 return 0;
27047}
27048_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027049if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027050 ac_cv_lib_bsd_gethostbyname=yes
27051else
cristy8b350f62009-11-15 23:12:43 +000027052 ac_cv_lib_bsd_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000027053fi
cristy8b350f62009-11-15 23:12:43 +000027054rm -f core conftest.err conftest.$ac_objext \
27055 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027056LIBS=$ac_check_lib_save_LIBS
27057fi
cristy8b350f62009-11-15 23:12:43 +000027058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000027059$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000027060if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027061 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
27062fi
27063
27064 fi
27065 fi
27066
27067 # lieder@skyler.mavd.honeywell.com says without -lsocket,
27068 # socket/setsockopt and other routines are undefined under SCO ODT
27069 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
27070 # on later versions), says Simon Leinen: it contains gethostby*
27071 # variants that don't use the name server (or something). -lsocket
27072 # must be given before -lnsl if both are needed. We assume that
27073 # if connect needs -lnsl, so does gethostbyname.
cristy8b350f62009-11-15 23:12:43 +000027074 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
cristyda16f162011-02-19 23:52:17 +000027075if test "x$ac_cv_func_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027076
cristy3ed852e2009-09-05 21:47:34 +000027077fi
27078
cristy3ed852e2009-09-05 21:47:34 +000027079 if test $ac_cv_func_connect = no; then
cristy8b350f62009-11-15 23:12:43 +000027080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
cristy3ed852e2009-09-05 21:47:34 +000027081$as_echo_n "checking for connect in -lsocket... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027082if ${ac_cv_lib_socket_connect+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027083 $as_echo_n "(cached) " >&6
27084else
27085 ac_check_lib_save_LIBS=$LIBS
27086LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027087cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027088/* end confdefs.h. */
27089
27090/* Override any GCC internal prototype to avoid an error.
27091 Use char because int might match the return type of a GCC
27092 builtin and then its argument prototype would still apply. */
27093#ifdef __cplusplus
27094extern "C"
27095#endif
27096char connect ();
27097int
27098main ()
27099{
27100return connect ();
27101 ;
27102 return 0;
27103}
27104_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027105if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027106 ac_cv_lib_socket_connect=yes
27107else
cristy8b350f62009-11-15 23:12:43 +000027108 ac_cv_lib_socket_connect=no
cristy3ed852e2009-09-05 21:47:34 +000027109fi
cristy8b350f62009-11-15 23:12:43 +000027110rm -f core conftest.err conftest.$ac_objext \
27111 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027112LIBS=$ac_check_lib_save_LIBS
27113fi
cristy8b350f62009-11-15 23:12:43 +000027114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
cristy3ed852e2009-09-05 21:47:34 +000027115$as_echo "$ac_cv_lib_socket_connect" >&6; }
cristyda16f162011-02-19 23:52:17 +000027116if test "x$ac_cv_lib_socket_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027117 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
27118fi
27119
27120 fi
27121
27122 # Guillermo Gomez says -lposix is necessary on A/UX.
cristy8b350f62009-11-15 23:12:43 +000027123 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
cristyda16f162011-02-19 23:52:17 +000027124if test "x$ac_cv_func_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027125
cristy3ed852e2009-09-05 21:47:34 +000027126fi
27127
cristy3ed852e2009-09-05 21:47:34 +000027128 if test $ac_cv_func_remove = no; then
cristy8b350f62009-11-15 23:12:43 +000027129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
cristy3ed852e2009-09-05 21:47:34 +000027130$as_echo_n "checking for remove in -lposix... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027131if ${ac_cv_lib_posix_remove+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027132 $as_echo_n "(cached) " >&6
27133else
27134 ac_check_lib_save_LIBS=$LIBS
27135LIBS="-lposix $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027136cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027137/* end confdefs.h. */
27138
27139/* Override any GCC internal prototype to avoid an error.
27140 Use char because int might match the return type of a GCC
27141 builtin and then its argument prototype would still apply. */
27142#ifdef __cplusplus
27143extern "C"
27144#endif
27145char remove ();
27146int
27147main ()
27148{
27149return remove ();
27150 ;
27151 return 0;
27152}
27153_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027154if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027155 ac_cv_lib_posix_remove=yes
27156else
cristy8b350f62009-11-15 23:12:43 +000027157 ac_cv_lib_posix_remove=no
cristy3ed852e2009-09-05 21:47:34 +000027158fi
cristy8b350f62009-11-15 23:12:43 +000027159rm -f core conftest.err conftest.$ac_objext \
27160 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027161LIBS=$ac_check_lib_save_LIBS
27162fi
cristy8b350f62009-11-15 23:12:43 +000027163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
cristy3ed852e2009-09-05 21:47:34 +000027164$as_echo "$ac_cv_lib_posix_remove" >&6; }
cristyda16f162011-02-19 23:52:17 +000027165if test "x$ac_cv_lib_posix_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027166 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
27167fi
27168
27169 fi
27170
27171 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
cristy8b350f62009-11-15 23:12:43 +000027172 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
cristyda16f162011-02-19 23:52:17 +000027173if test "x$ac_cv_func_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027174
cristy3ed852e2009-09-05 21:47:34 +000027175fi
27176
cristy3ed852e2009-09-05 21:47:34 +000027177 if test $ac_cv_func_shmat = no; then
cristy8b350f62009-11-15 23:12:43 +000027178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
cristy3ed852e2009-09-05 21:47:34 +000027179$as_echo_n "checking for shmat in -lipc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027180if ${ac_cv_lib_ipc_shmat+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027181 $as_echo_n "(cached) " >&6
27182else
27183 ac_check_lib_save_LIBS=$LIBS
27184LIBS="-lipc $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027185cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027186/* end confdefs.h. */
27187
27188/* Override any GCC internal prototype to avoid an error.
27189 Use char because int might match the return type of a GCC
27190 builtin and then its argument prototype would still apply. */
27191#ifdef __cplusplus
27192extern "C"
27193#endif
27194char shmat ();
27195int
27196main ()
27197{
27198return shmat ();
27199 ;
27200 return 0;
27201}
27202_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027203if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027204 ac_cv_lib_ipc_shmat=yes
27205else
cristy8b350f62009-11-15 23:12:43 +000027206 ac_cv_lib_ipc_shmat=no
cristy3ed852e2009-09-05 21:47:34 +000027207fi
cristy8b350f62009-11-15 23:12:43 +000027208rm -f core conftest.err conftest.$ac_objext \
27209 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027210LIBS=$ac_check_lib_save_LIBS
27211fi
cristy8b350f62009-11-15 23:12:43 +000027212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
cristy3ed852e2009-09-05 21:47:34 +000027213$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
cristyda16f162011-02-19 23:52:17 +000027214if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027215 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
27216fi
27217
27218 fi
27219 fi
27220
27221 # Check for libraries that X11R6 Xt/Xaw programs need.
27222 ac_save_LDFLAGS=$LDFLAGS
27223 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
27224 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
27225 # check for ICE first), but we must link in the order -lSM -lICE or
27226 # we get undefined symbols. So assume we have SM if we have ICE.
27227 # These have to be linked with before -lX11, unlike the other
27228 # libraries we check for below, so use a different variable.
27229 # John Interrante, Karl Berry
cristy8b350f62009-11-15 23:12:43 +000027230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
cristy3ed852e2009-09-05 21:47:34 +000027231$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027232if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027233 $as_echo_n "(cached) " >&6
27234else
27235 ac_check_lib_save_LIBS=$LIBS
27236LIBS="-lICE $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027237cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027238/* end confdefs.h. */
27239
27240/* Override any GCC internal prototype to avoid an error.
27241 Use char because int might match the return type of a GCC
27242 builtin and then its argument prototype would still apply. */
27243#ifdef __cplusplus
27244extern "C"
27245#endif
27246char IceConnectionNumber ();
27247int
27248main ()
27249{
27250return IceConnectionNumber ();
27251 ;
27252 return 0;
27253}
27254_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027255if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027256 ac_cv_lib_ICE_IceConnectionNumber=yes
27257else
cristy8b350f62009-11-15 23:12:43 +000027258 ac_cv_lib_ICE_IceConnectionNumber=no
cristy3ed852e2009-09-05 21:47:34 +000027259fi
cristy8b350f62009-11-15 23:12:43 +000027260rm -f core conftest.err conftest.$ac_objext \
27261 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027262LIBS=$ac_check_lib_save_LIBS
27263fi
cristy8b350f62009-11-15 23:12:43 +000027264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
cristy3ed852e2009-09-05 21:47:34 +000027265$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
cristyda16f162011-02-19 23:52:17 +000027266if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027267 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
27268fi
27269
27270 LDFLAGS=$ac_save_LDFLAGS
27271
27272fi
27273
27274if test "$no_x" != 'yes'; then
cristy09b53e12011-10-14 12:47:22 +000027275 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
27276$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000027277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
cristy3ed852e2009-09-05 21:47:34 +000027278$as_echo_n "checking for X11... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000027279 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
27280$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027281 LDFLAGS="$LDFLAGS $X_LIBS"
27282 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
27283 LIBS="$X11_LIBS $LIBS"
27284 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
27285
27286
cristy8b350f62009-11-15 23:12:43 +000027287$as_echo "#define X11_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027288
27289 #
27290 # Check for X11 shared memory extension
27291 #
27292 # shmctl is required to support the shared memory extension
cristy8b350f62009-11-15 23:12:43 +000027293 ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
cristyda16f162011-02-19 23:52:17 +000027294if test "x$ac_cv_func_shmctl" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027295 have_shmctl='yes'
27296fi
27297
27298 if test "$have_shmctl" != 'yes'; then
27299 PERSIST_LIBS=$LIBS
27300 LIBS="$LIBS -lcygipc"
cristy8b350f62009-11-15 23:12:43 +000027301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027302/* end confdefs.h. */
27303
27304/* Override any GCC internal prototype to avoid an error.
27305 Use char because int might match the return type of a GCC
27306 builtin and then its argument prototype would still apply. */
27307#ifdef __cplusplus
27308extern "C"
27309#endif
27310char shmctl ();
27311int
27312main ()
27313{
27314return shmctl ();
27315 ;
27316 return 0;
27317}
27318_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027319if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027320 have_shmctl='yes'; IPC_LIBS='-lcygipc'
cristy3ed852e2009-09-05 21:47:34 +000027321fi
cristy8b350f62009-11-15 23:12:43 +000027322rm -f core conftest.err conftest.$ac_objext \
27323 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027324 LIBS=$PERSIST_LIBS
27325 fi
27326
27327 if test "$have_shmctl" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027329$as_echo_n "checking for XShmAttach in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027330if ${ac_cv_lib_Xext_XShmAttach+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027331 $as_echo_n "(cached) " >&6
27332else
27333 ac_check_lib_save_LIBS=$LIBS
27334LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027335cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027336/* end confdefs.h. */
27337
27338/* Override any GCC internal prototype to avoid an error.
27339 Use char because int might match the return type of a GCC
27340 builtin and then its argument prototype would still apply. */
27341#ifdef __cplusplus
27342extern "C"
27343#endif
27344char XShmAttach ();
27345int
27346main ()
27347{
27348return XShmAttach ();
27349 ;
27350 return 0;
27351}
27352_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027353if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027354 ac_cv_lib_Xext_XShmAttach=yes
27355else
cristy8b350f62009-11-15 23:12:43 +000027356 ac_cv_lib_Xext_XShmAttach=no
cristy3ed852e2009-09-05 21:47:34 +000027357fi
cristy8b350f62009-11-15 23:12:43 +000027358rm -f core conftest.err conftest.$ac_objext \
27359 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027360LIBS=$ac_check_lib_save_LIBS
27361fi
cristy8b350f62009-11-15 23:12:43 +000027362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
cristy3ed852e2009-09-05 21:47:34 +000027363$as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
cristyda16f162011-02-19 23:52:17 +000027364if test "x$ac_cv_lib_Xext_XShmAttach" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027365 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000027366$as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027367
27368fi
27369
27370 fi
27371
27372 #
27373 # Check for X11 shape extension
27374 #
cristy8b350f62009-11-15 23:12:43 +000027375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027376$as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027377if ${ac_cv_lib_Xext_XShapeCombineMask+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027378 $as_echo_n "(cached) " >&6
27379else
27380 ac_check_lib_save_LIBS=$LIBS
27381LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027382cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027383/* end confdefs.h. */
27384
27385/* Override any GCC internal prototype to avoid an error.
27386 Use char because int might match the return type of a GCC
27387 builtin and then its argument prototype would still apply. */
27388#ifdef __cplusplus
27389extern "C"
27390#endif
27391char XShapeCombineMask ();
27392int
27393main ()
27394{
27395return XShapeCombineMask ();
27396 ;
27397 return 0;
27398}
27399_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027400if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027401 ac_cv_lib_Xext_XShapeCombineMask=yes
27402else
cristy8b350f62009-11-15 23:12:43 +000027403 ac_cv_lib_Xext_XShapeCombineMask=no
cristy3ed852e2009-09-05 21:47:34 +000027404fi
cristy8b350f62009-11-15 23:12:43 +000027405rm -f core conftest.err conftest.$ac_objext \
27406 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027407LIBS=$ac_check_lib_save_LIBS
27408fi
cristy8b350f62009-11-15 23:12:43 +000027409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
cristy3ed852e2009-09-05 21:47:34 +000027410$as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
cristyda16f162011-02-19 23:52:17 +000027411if test "x$ac_cv_lib_Xext_XShapeCombineMask" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027412 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000027413$as_echo "#define HAVE_SHAPE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027414
27415fi
27416
cristy8b350f62009-11-15 23:12:43 +000027417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
cristy3ed852e2009-09-05 21:47:34 +000027418$as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027419if ${ac_cv_lib_Xt_XtSetEventDispatcher+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027420 $as_echo_n "(cached) " >&6
27421else
27422 ac_check_lib_save_LIBS=$LIBS
27423LIBS="-lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027424cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027425/* end confdefs.h. */
27426
27427/* Override any GCC internal prototype to avoid an error.
27428 Use char because int might match the return type of a GCC
27429 builtin and then its argument prototype would still apply. */
27430#ifdef __cplusplus
27431extern "C"
27432#endif
27433char XtSetEventDispatcher ();
27434int
27435main ()
27436{
27437return XtSetEventDispatcher ();
27438 ;
27439 return 0;
27440}
27441_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027442if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027443 ac_cv_lib_Xt_XtSetEventDispatcher=yes
27444else
cristy8b350f62009-11-15 23:12:43 +000027445 ac_cv_lib_Xt_XtSetEventDispatcher=no
cristy3ed852e2009-09-05 21:47:34 +000027446fi
cristy8b350f62009-11-15 23:12:43 +000027447rm -f core conftest.err conftest.$ac_objext \
27448 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027449LIBS=$ac_check_lib_save_LIBS
27450fi
cristy8b350f62009-11-15 23:12:43 +000027451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
cristy3ed852e2009-09-05 21:47:34 +000027452$as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
cristyda16f162011-02-19 23:52:17 +000027453if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027454 XT_LIBS='-lXt'
27455fi
27456
27457 LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
27458fi
27459if test "$no_x" != 'yes'; then
27460 have_x='yes'
27461else
27462 have_x='no'
27463fi
cristy73bd4a52010-10-05 11:24:23 +000027464 if test "$have_x" = 'yes'; then
27465 X11_DELEGATE_TRUE=
27466 X11_DELEGATE_FALSE='#'
27467else
27468 X11_DELEGATE_TRUE='#'
27469 X11_DELEGATE_FALSE=
27470fi
27471
cristy3ed852e2009-09-05 21:47:34 +000027472
27473
27474
27475
27476#
27477# Check for ZLIB
27478#
27479
27480# Check whether --with-zlib was given.
cristy8b350f62009-11-15 23:12:43 +000027481if test "${with_zlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027482 withval=$with_zlib; with_zlib=$withval
27483else
27484 with_zlib='yes'
27485fi
27486
27487
27488if test "$with_zlib" != 'yes'; then
27489 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
27490fi
27491
27492have_zlib='no'
27493ZLIB_LIBS=''
27494if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000027495 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
27496$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000027497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000027498$as_echo_n "checking for ZLIB... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000027499 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
27500$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027501 ZLIB_LIBS=''
27502 failed=0
27503 passed=0
cristy8b350f62009-11-15 23:12:43 +000027504 ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027505if test "x$ac_cv_header_zconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027506 passed=`expr $passed + 1`
27507else
27508 failed=`expr $failed + 1`
27509fi
27510
27511
cristy8b350f62009-11-15 23:12:43 +000027512 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027513if test "x$ac_cv_header_zlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027514 passed=`expr $passed + 1`
27515else
27516 failed=`expr $failed + 1`
27517fi
27518
27519
cristy8b350f62009-11-15 23:12:43 +000027520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027521$as_echo_n "checking for compress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027522if ${ac_cv_lib_z_compress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027523 $as_echo_n "(cached) " >&6
27524else
27525 ac_check_lib_save_LIBS=$LIBS
27526LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027527cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027528/* end confdefs.h. */
27529
27530/* Override any GCC internal prototype to avoid an error.
27531 Use char because int might match the return type of a GCC
27532 builtin and then its argument prototype would still apply. */
27533#ifdef __cplusplus
27534extern "C"
27535#endif
27536char compress ();
27537int
27538main ()
27539{
27540return compress ();
27541 ;
27542 return 0;
27543}
27544_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027545if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027546 ac_cv_lib_z_compress=yes
27547else
cristy8b350f62009-11-15 23:12:43 +000027548 ac_cv_lib_z_compress=no
cristy3ed852e2009-09-05 21:47:34 +000027549fi
cristy8b350f62009-11-15 23:12:43 +000027550rm -f core conftest.err conftest.$ac_objext \
27551 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027552LIBS=$ac_check_lib_save_LIBS
27553fi
cristy8b350f62009-11-15 23:12:43 +000027554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027555$as_echo "$ac_cv_lib_z_compress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027556if test "x$ac_cv_lib_z_compress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027557 passed=`expr $passed + 1`
27558else
27559 failed=`expr $failed + 1`
27560fi
27561
cristy8b350f62009-11-15 23:12:43 +000027562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027563$as_echo_n "checking for uncompress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027564if ${ac_cv_lib_z_uncompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027565 $as_echo_n "(cached) " >&6
27566else
27567 ac_check_lib_save_LIBS=$LIBS
27568LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027569cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027570/* end confdefs.h. */
27571
27572/* Override any GCC internal prototype to avoid an error.
27573 Use char because int might match the return type of a GCC
27574 builtin and then its argument prototype would still apply. */
27575#ifdef __cplusplus
27576extern "C"
27577#endif
27578char uncompress ();
27579int
27580main ()
27581{
27582return uncompress ();
27583 ;
27584 return 0;
27585}
27586_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027587if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027588 ac_cv_lib_z_uncompress=yes
27589else
cristy8b350f62009-11-15 23:12:43 +000027590 ac_cv_lib_z_uncompress=no
cristy3ed852e2009-09-05 21:47:34 +000027591fi
cristy8b350f62009-11-15 23:12:43 +000027592rm -f core conftest.err conftest.$ac_objext \
27593 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027594LIBS=$ac_check_lib_save_LIBS
27595fi
cristy8b350f62009-11-15 23:12:43 +000027596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027597$as_echo "$ac_cv_lib_z_uncompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027598if test "x$ac_cv_lib_z_uncompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027599 passed=`expr $passed + 1`
27600else
27601 failed=`expr $failed + 1`
27602fi
27603
cristy8b350f62009-11-15 23:12:43 +000027604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027605$as_echo_n "checking for deflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027606if ${ac_cv_lib_z_deflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027607 $as_echo_n "(cached) " >&6
27608else
27609 ac_check_lib_save_LIBS=$LIBS
27610LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027611cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027612/* end confdefs.h. */
27613
27614/* Override any GCC internal prototype to avoid an error.
27615 Use char because int might match the return type of a GCC
27616 builtin and then its argument prototype would still apply. */
27617#ifdef __cplusplus
27618extern "C"
27619#endif
27620char deflate ();
27621int
27622main ()
27623{
27624return deflate ();
27625 ;
27626 return 0;
27627}
27628_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027629if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027630 ac_cv_lib_z_deflate=yes
27631else
cristy8b350f62009-11-15 23:12:43 +000027632 ac_cv_lib_z_deflate=no
cristy3ed852e2009-09-05 21:47:34 +000027633fi
cristy8b350f62009-11-15 23:12:43 +000027634rm -f core conftest.err conftest.$ac_objext \
27635 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027636LIBS=$ac_check_lib_save_LIBS
27637fi
cristy8b350f62009-11-15 23:12:43 +000027638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000027639$as_echo "$ac_cv_lib_z_deflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000027640if test "x$ac_cv_lib_z_deflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027641 passed=`expr $passed + 1`
27642else
27643 failed=`expr $failed + 1`
27644fi
27645
cristy8b350f62009-11-15 23:12:43 +000027646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027647$as_echo_n "checking for inflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027648if ${ac_cv_lib_z_inflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027649 $as_echo_n "(cached) " >&6
27650else
27651 ac_check_lib_save_LIBS=$LIBS
27652LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027653cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027654/* end confdefs.h. */
27655
27656/* Override any GCC internal prototype to avoid an error.
27657 Use char because int might match the return type of a GCC
27658 builtin and then its argument prototype would still apply. */
27659#ifdef __cplusplus
27660extern "C"
27661#endif
27662char inflate ();
27663int
27664main ()
27665{
27666return inflate ();
27667 ;
27668 return 0;
27669}
27670_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027671if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027672 ac_cv_lib_z_inflate=yes
27673else
cristy8b350f62009-11-15 23:12:43 +000027674 ac_cv_lib_z_inflate=no
cristy3ed852e2009-09-05 21:47:34 +000027675fi
cristy8b350f62009-11-15 23:12:43 +000027676rm -f core conftest.err conftest.$ac_objext \
27677 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027678LIBS=$ac_check_lib_save_LIBS
27679fi
cristy8b350f62009-11-15 23:12:43 +000027680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000027681$as_echo "$ac_cv_lib_z_inflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000027682if test "x$ac_cv_lib_z_inflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027683 passed=`expr $passed + 1`
27684else
27685 failed=`expr $failed + 1`
27686fi
27687
cristy8b350f62009-11-15 23:12:43 +000027688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027689$as_echo_n "checking for gzseek in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027690if ${ac_cv_lib_z_gzseek+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027691 $as_echo_n "(cached) " >&6
27692else
27693 ac_check_lib_save_LIBS=$LIBS
27694LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027695cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027696/* end confdefs.h. */
27697
27698/* Override any GCC internal prototype to avoid an error.
27699 Use char because int might match the return type of a GCC
27700 builtin and then its argument prototype would still apply. */
27701#ifdef __cplusplus
27702extern "C"
27703#endif
27704char gzseek ();
27705int
27706main ()
27707{
27708return gzseek ();
27709 ;
27710 return 0;
27711}
27712_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027713if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027714 ac_cv_lib_z_gzseek=yes
27715else
cristy8b350f62009-11-15 23:12:43 +000027716 ac_cv_lib_z_gzseek=no
cristy3ed852e2009-09-05 21:47:34 +000027717fi
cristy8b350f62009-11-15 23:12:43 +000027718rm -f core conftest.err conftest.$ac_objext \
27719 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027720LIBS=$ac_check_lib_save_LIBS
27721fi
cristy8b350f62009-11-15 23:12:43 +000027722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
cristy3ed852e2009-09-05 21:47:34 +000027723$as_echo "$ac_cv_lib_z_gzseek" >&6; }
cristyda16f162011-02-19 23:52:17 +000027724if test "x$ac_cv_lib_z_gzseek" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027725 passed=`expr $passed + 1`
27726else
27727 failed=`expr $failed + 1`
27728fi
27729
cristy8b350f62009-11-15 23:12:43 +000027730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027731$as_echo_n "checking for gztell in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027732if ${ac_cv_lib_z_gztell+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027733 $as_echo_n "(cached) " >&6
27734else
27735 ac_check_lib_save_LIBS=$LIBS
27736LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027737cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027738/* end confdefs.h. */
27739
27740/* Override any GCC internal prototype to avoid an error.
27741 Use char because int might match the return type of a GCC
27742 builtin and then its argument prototype would still apply. */
27743#ifdef __cplusplus
27744extern "C"
27745#endif
27746char gztell ();
27747int
27748main ()
27749{
27750return gztell ();
27751 ;
27752 return 0;
27753}
27754_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027755if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027756 ac_cv_lib_z_gztell=yes
27757else
cristy8b350f62009-11-15 23:12:43 +000027758 ac_cv_lib_z_gztell=no
cristy3ed852e2009-09-05 21:47:34 +000027759fi
cristy8b350f62009-11-15 23:12:43 +000027760rm -f core conftest.err conftest.$ac_objext \
27761 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027762LIBS=$ac_check_lib_save_LIBS
27763fi
cristy8b350f62009-11-15 23:12:43 +000027764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
cristy3ed852e2009-09-05 21:47:34 +000027765$as_echo "$ac_cv_lib_z_gztell" >&6; }
cristyda16f162011-02-19 23:52:17 +000027766if test "x$ac_cv_lib_z_gztell" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027767 passed=`expr $passed + 1`
27768else
27769 failed=`expr $failed + 1`
27770fi
27771
cristy8b350f62009-11-15 23:12:43 +000027772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027773$as_echo_n "checking if ZLIB package is complete... " >&6; }
27774 if test $passed -gt 0; then
27775 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000027776 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
27777$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027778 have_zlib='no (failed tests)'
27779 else
27780 ZLIB_LIBS='-lz'
27781 LIBS="$ZLIB_LIBS $LIBS"
27782
cristy8b350f62009-11-15 23:12:43 +000027783$as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027784
cristy09b53e12011-10-14 12:47:22 +000027785 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
27786$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027787 have_zlib='yes'
27788 fi
27789 else
cristy09b53e12011-10-14 12:47:22 +000027790 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
27791$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027792 fi
27793fi
cristy73bd4a52010-10-05 11:24:23 +000027794 if test "$have_zlib" = 'yes'; then
27795 ZLIB_DELEGATE_TRUE=
27796 ZLIB_DELEGATE_FALSE='#'
27797else
27798 ZLIB_DELEGATE_TRUE='#'
27799 ZLIB_DELEGATE_FALSE=
27800fi
27801
cristy3ed852e2009-09-05 21:47:34 +000027802
27803
cristy5eef09f2012-10-16 12:08:28 +000027804# whether modules are built or not.
27805with_ltdl='yes'
27806have_ltdl='no'
27807LTDL_LIBS=''
27808if test "$build_modules" != 'no' ; then
27809 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
27810$as_echo "$as_me: -------------------------------------------------------------" >&6;}
27811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libltdl" >&5
27812$as_echo_n "checking for libltdl... " >&6; }
27813 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
27814$as_echo "$as_me: " >&6;}
27815 failed=0
27816 passed=0
27817 ac_fn_c_check_header_mongrel "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default"
27818if test "x$ac_cv_header_ltdl_h" = xyes; then :
27819 passed=`expr $passed + 1`
27820else
27821 failed=`expr $failed + 1`
27822fi
27823
27824
27825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dlinit in -lltdl" >&5
27826$as_echo_n "checking for lt_dlinit in -lltdl... " >&6; }
27827if ${ac_cv_lib_ltdl_lt_dlinit+:} false; then :
27828 $as_echo_n "(cached) " >&6
27829else
27830 ac_check_lib_save_LIBS=$LIBS
27831LIBS="-lltdl $LIBS"
27832cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27833/* end confdefs.h. */
27834
27835/* Override any GCC internal prototype to avoid an error.
27836 Use char because int might match the return type of a GCC
27837 builtin and then its argument prototype would still apply. */
27838#ifdef __cplusplus
27839extern "C"
27840#endif
27841char lt_dlinit ();
27842int
27843main ()
27844{
27845return lt_dlinit ();
27846 ;
27847 return 0;
27848}
27849_ACEOF
27850if ac_fn_c_try_link "$LINENO"; then :
27851 ac_cv_lib_ltdl_lt_dlinit=yes
27852else
27853 ac_cv_lib_ltdl_lt_dlinit=no
27854fi
27855rm -f core conftest.err conftest.$ac_objext \
27856 conftest$ac_exeext conftest.$ac_ext
27857LIBS=$ac_check_lib_save_LIBS
27858fi
27859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
27860$as_echo "$ac_cv_lib_ltdl_lt_dlinit" >&6; }
27861if test "x$ac_cv_lib_ltdl_lt_dlinit" = xyes; then :
27862 passed=`expr $passed + 1`
27863else
27864 failed=`expr $failed + 1`
27865fi
27866
27867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libltdl package is complete" >&5
27868$as_echo_n "checking if libltdl package is complete... " >&6; }
27869 if test $passed -gt 0 ; then
27870 if test $failed -gt 0 ; then
27871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
27872$as_echo "no -- some components failed test" >&6; }
27873 have_ltdl='no (failed tests)'
27874 else
27875 LTDL_LIBS='-lltdl'
27876 LIBS="$LTDL_LIBS $LIBS"
27877
27878$as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
27879
27880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27881$as_echo "yes" >&6; }
27882 have_ltdl='yes'
27883 fi
27884 else
27885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27886$as_echo "no" >&6; }
27887 fi
cristyaf4cbf32012-10-16 23:47:41 +000027888 if test "$have_ltdl" != 'yes' ; then
27889 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27890$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27891as_fn_error 1 "libltdl is required for modules build
27892See \`config.log' for more details" "$LINENO" 5; }
27893 fi
cristy5eef09f2012-10-16 12:08:28 +000027894fi
27895 if test "$have_ltdl" != 'no'; then
27896 WITH_LTDL_TRUE=
27897 WITH_LTDL_FALSE='#'
27898else
27899 WITH_LTDL_TRUE='#'
27900 WITH_LTDL_FALSE=
27901fi
27902
27903
cristy3ed852e2009-09-05 21:47:34 +000027904#
27905# If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
27906#
27907LIB_DL=''
27908if test "$enable_profiling" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000027910$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027911if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027912 $as_echo_n "(cached) " >&6
27913else
27914 ac_check_lib_save_LIBS=$LIBS
27915LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027916cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027917/* end confdefs.h. */
27918
27919/* Override any GCC internal prototype to avoid an error.
27920 Use char because int might match the return type of a GCC
27921 builtin and then its argument prototype would still apply. */
27922#ifdef __cplusplus
27923extern "C"
27924#endif
27925char dlopen ();
27926int
27927main ()
27928{
27929return dlopen ();
27930 ;
27931 return 0;
27932}
27933_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027934if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027935 ac_cv_lib_dl_dlopen=yes
27936else
cristy8b350f62009-11-15 23:12:43 +000027937 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000027938fi
cristy8b350f62009-11-15 23:12:43 +000027939rm -f core conftest.err conftest.$ac_objext \
27940 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027941LIBS=$ac_check_lib_save_LIBS
27942fi
cristy8b350f62009-11-15 23:12:43 +000027943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000027944$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000027945if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027946 LIB_DL='-ldl'
27947fi
27948
27949 LIBS="$LIB_DL $LIBS"
27950fi
27951
27952
27953
27954#
27955# Check for Autotrace delegate library.
27956#
27957
27958# Check whether --with-autotrace was given.
cristy8b350f62009-11-15 23:12:43 +000027959if test "${with_autotrace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027960 withval=$with_autotrace; with_autotrace=$withval
27961else
27962 with_autotrace='no'
27963fi
27964
27965
27966if test "$with_autotrace" != 'yes'; then
27967 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
27968fi
27969
27970have_autotrace='no'
27971AUTOTRACE_CFLAGS=""
27972AUTOTRACE_LIBS=""
27973AUTOTRACE_PKG=""
27974if test "x$with_autotrace" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000027975 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
27976$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000027977
27978pkg_failed=no
27979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
27980$as_echo_n "checking for AUTOTRACE... " >&6; }
27981
27982if test -n "$AUTOTRACE_CFLAGS"; then
27983 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
27984 elif test -n "$PKG_CONFIG"; then
27985 if test -n "$PKG_CONFIG" && \
27986 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
27987 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
27988 ac_status=$?
27989 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27990 test $ac_status = 0; }; then
27991 pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
27992else
27993 pkg_failed=yes
27994fi
27995 else
27996 pkg_failed=untried
27997fi
27998if test -n "$AUTOTRACE_LIBS"; then
27999 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
28000 elif test -n "$PKG_CONFIG"; then
28001 if test -n "$PKG_CONFIG" && \
28002 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
28003 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
28004 ac_status=$?
28005 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28006 test $ac_status = 0; }; then
28007 pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
28008else
28009 pkg_failed=yes
28010fi
28011 else
28012 pkg_failed=untried
28013fi
28014
28015
28016
28017if test $pkg_failed = yes; then
28018
28019if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28020 _pkg_short_errors_supported=yes
28021else
28022 _pkg_short_errors_supported=no
28023fi
28024 if test $_pkg_short_errors_supported = yes; then
28025 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1`
28026 else
28027 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1`
28028 fi
28029 # Put the nasty error message in config.log where it belongs
28030 echo "$AUTOTRACE_PKG_ERRORS" >&5
28031
28032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28033$as_echo "no" >&6; }
28034 have_autotrace=no
28035elif test $pkg_failed = untried; then
28036 have_autotrace=no
28037else
28038 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
28039 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
28040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28041$as_echo "yes" >&6; }
28042 have_autotrace=yes
28043fi
cristy09b53e12011-10-14 12:47:22 +000028044 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28045$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028046fi
28047
28048if test "$have_autotrace" = 'yes'; then
28049 failed=0
28050
cristy8b350f62009-11-15 23:12:43 +000028051$as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028052
cristyc6722092012-10-14 00:19:31 +000028053 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000028054 CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
28055 fi
28056fi
28057
cristy73bd4a52010-10-05 11:24:23 +000028058 if test "$have_autotrace" = 'yes'; then
28059 AUTOTRACE_DELEGATE_TRUE=
28060 AUTOTRACE_DELEGATE_FALSE='#'
28061else
28062 AUTOTRACE_DELEGATE_TRUE='#'
28063 AUTOTRACE_DELEGATE_FALSE=
28064fi
28065
cristy3ed852e2009-09-05 21:47:34 +000028066
28067
28068
28069
28070#
28071# Check for Display Postscript delegate library.
28072#
28073
28074# Check whether --with-dps was given.
cristy8b350f62009-11-15 23:12:43 +000028075if test "${with_dps+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028076 withval=$with_dps; with_dps=$withval
28077else
28078 with_dps='yes'
28079fi
28080
28081
28082if test "$with_dps" != 'yes'; then
28083 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
28084fi
28085
28086have_dps='no'
28087DPS_LIBS=''
28088if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000028089 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28090$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000028091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000028092$as_echo_n "checking for DPS... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028093 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28094$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028095 failed=0
28096 passed=0
28097 PERSIST_CPPFLAGS="$CPPFLAGS"
28098 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
cristy8b350f62009-11-15 23:12:43 +000028099 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 +000028100if test "x$ac_cv_header_DPS_dpsXclient_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028101 passed=`expr $passed + 1`
28102else
28103 failed=`expr $failed + 1`
28104fi
28105
28106
28107 # DPS issues:
28108 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
28109 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
28110 # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
28111 # ImageMagick itself doesn't use -lXt.
28112 have_libdps='no'
28113 LIBDPS_XT=''
cristy8b350f62009-11-15 23:12:43 +000028114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000028115$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028116if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028117 $as_echo_n "(cached) " >&6
28118else
28119 ac_check_lib_save_LIBS=$LIBS
28120LIBS="-ldps $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028121cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028122/* end confdefs.h. */
28123
28124/* Override any GCC internal prototype to avoid an error.
28125 Use char because int might match the return type of a GCC
28126 builtin and then its argument prototype would still apply. */
28127#ifdef __cplusplus
28128extern "C"
28129#endif
28130char DPSInitialize ();
28131int
28132main ()
28133{
28134return DPSInitialize ();
28135 ;
28136 return 0;
28137}
28138_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028139if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028140 ac_cv_lib_dps_DPSInitialize=yes
28141else
cristy8b350f62009-11-15 23:12:43 +000028142 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000028143fi
cristy8b350f62009-11-15 23:12:43 +000028144rm -f core conftest.err conftest.$ac_objext \
28145 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028146LIBS=$ac_check_lib_save_LIBS
28147fi
cristy8b350f62009-11-15 23:12:43 +000028148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000028149$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000028150if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028151 have_libdps='yes'
28152else
28153 have_libdps='no'
28154fi
28155
28156 if test "$have_libdps" != 'yes'; then
28157 # Unset cache variable so we can try again.
28158 unset ac_cv_lib_dps_DPSInitialize
cristy8b350f62009-11-15 23:12:43 +000028159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000028160$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028161if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028162 $as_echo_n "(cached) " >&6
28163else
28164 ac_check_lib_save_LIBS=$LIBS
28165LIBS="-ldps -lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028166cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028167/* end confdefs.h. */
28168
28169/* Override any GCC internal prototype to avoid an error.
28170 Use char because int might match the return type of a GCC
28171 builtin and then its argument prototype would still apply. */
28172#ifdef __cplusplus
28173extern "C"
28174#endif
28175char DPSInitialize ();
28176int
28177main ()
28178{
28179return DPSInitialize ();
28180 ;
28181 return 0;
28182}
28183_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028184if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028185 ac_cv_lib_dps_DPSInitialize=yes
28186else
cristy8b350f62009-11-15 23:12:43 +000028187 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000028188fi
cristy8b350f62009-11-15 23:12:43 +000028189rm -f core conftest.err conftest.$ac_objext \
28190 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028191LIBS=$ac_check_lib_save_LIBS
28192fi
cristy8b350f62009-11-15 23:12:43 +000028193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000028194$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000028195if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028196 have_libdps='yes'
28197else
28198 have_libdps='no'
28199fi
28200
28201 if test "$have_libdps" = 'yes'; then
28202 LIBDPS_XT='-lXt'
28203 fi
28204 fi
28205 if test "$have_libdps" = 'yes'; then
28206 passed=`expr $passed + 1`
28207 else
28208 failed=`expr $failed + 1`
28209 fi
cristy8b350f62009-11-15 23:12:43 +000028210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
cristy3ed852e2009-09-05 21:47:34 +000028211$as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028212if ${ac_cv_lib_dpstk_XDPSPixelsPerPoint+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028213 $as_echo_n "(cached) " >&6
28214else
28215 ac_check_lib_save_LIBS=$LIBS
28216LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028217cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028218/* end confdefs.h. */
28219
28220/* Override any GCC internal prototype to avoid an error.
28221 Use char because int might match the return type of a GCC
28222 builtin and then its argument prototype would still apply. */
28223#ifdef __cplusplus
28224extern "C"
28225#endif
28226char XDPSPixelsPerPoint ();
28227int
28228main ()
28229{
28230return XDPSPixelsPerPoint ();
28231 ;
28232 return 0;
28233}
28234_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028235if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028236 ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
28237else
cristy8b350f62009-11-15 23:12:43 +000028238 ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
cristy3ed852e2009-09-05 21:47:34 +000028239fi
cristy8b350f62009-11-15 23:12:43 +000028240rm -f core conftest.err conftest.$ac_objext \
28241 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028242LIBS=$ac_check_lib_save_LIBS
28243fi
cristy8b350f62009-11-15 23:12:43 +000028244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
cristy3ed852e2009-09-05 21:47:34 +000028245$as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
cristyda16f162011-02-19 23:52:17 +000028246if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028247 passed=`expr $passed + 1`
28248else
28249 failed=`expr $failed + 1`
28250fi
28251
cristy8b350f62009-11-15 23:12:43 +000028252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028253$as_echo_n "checking if DPS package is complete... " >&6; }
28254 if test $passed -gt 0; then
28255 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000028256 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
28257$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028258 have_dps='no (failed tests)'
28259 CPPFLAGS="$PERSIST_CPPFLAGS"
28260 else
28261 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
28262 LIBS="$DPS_LIBS $LIBS"
28263
cristy8b350f62009-11-15 23:12:43 +000028264$as_echo "#define DPS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028265
cristy09b53e12011-10-14 12:47:22 +000028266 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
28267$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028268 have_dps='yes'
28269 fi
28270 else
cristy09b53e12011-10-14 12:47:22 +000028271 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
28272$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028273 CPPFLAGS=$PERSIST_CPPFLAGS
28274 fi
28275fi
cristy73bd4a52010-10-05 11:24:23 +000028276 if test "$have_dps" = 'yes'; then
28277 DPS_DELEGATE_TRUE=
28278 DPS_DELEGATE_FALSE='#'
28279else
28280 DPS_DELEGATE_TRUE='#'
28281 DPS_DELEGATE_FALSE=
28282fi
28283
cristy3ed852e2009-09-05 21:47:34 +000028284
28285
28286
28287#
28288# Check for DJVU delegate library.
28289#
28290
28291# Check whether --with-djvu was given.
cristy8b350f62009-11-15 23:12:43 +000028292if test "${with_djvu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028293 withval=$with_djvu; with_djvu=$withval
28294else
28295 with_djvu='yes'
28296fi
28297
28298
28299if test "$with_djvu" != 'yes'; then
28300 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
28301fi
28302
28303have_djvu='no'
28304DJVU_LIBS=''
28305if test "$with_djvu" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000028306 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28307$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000028308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5
cristy3ed852e2009-09-05 21:47:34 +000028309$as_echo_n "checking for DJVU... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028310 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28311$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028312 failed=0
28313 passed=0
cristy8b350f62009-11-15 23:12:43 +000028314 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 +000028315if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028316 passed=`expr $passed + 1`
28317else
28318 failed=`expr $failed + 1`
28319fi
28320
28321
cristy8b350f62009-11-15 23:12:43 +000028322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_context_create in -ldjvulibre" >&5
cristy3ed852e2009-09-05 21:47:34 +000028323$as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028324if ${ac_cv_lib_djvulibre_ddjvu_context_create+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028325 $as_echo_n "(cached) " >&6
28326else
28327 ac_check_lib_save_LIBS=$LIBS
28328LIBS="-ldjvulibre $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028329cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028330/* end confdefs.h. */
28331
28332/* Override any GCC internal prototype to avoid an error.
28333 Use char because int might match the return type of a GCC
28334 builtin and then its argument prototype would still apply. */
28335#ifdef __cplusplus
28336extern "C"
28337#endif
28338char ddjvu_context_create ();
28339int
28340main ()
28341{
28342return ddjvu_context_create ();
28343 ;
28344 return 0;
28345}
28346_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028347if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028348 ac_cv_lib_djvulibre_ddjvu_context_create=yes
28349else
cristy8b350f62009-11-15 23:12:43 +000028350 ac_cv_lib_djvulibre_ddjvu_context_create=no
cristy3ed852e2009-09-05 21:47:34 +000028351fi
cristy8b350f62009-11-15 23:12:43 +000028352rm -f core conftest.err conftest.$ac_objext \
28353 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028354LIBS=$ac_check_lib_save_LIBS
28355fi
cristy8b350f62009-11-15 23:12:43 +000028356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
cristy3ed852e2009-09-05 21:47:34 +000028357$as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
cristyda16f162011-02-19 23:52:17 +000028358if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028359 passed=`expr $passed + 1`
28360else
28361 failed=`expr $failed + 1`
28362fi
28363
cristy8b350f62009-11-15 23:12:43 +000028364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DJVU package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028365$as_echo_n "checking if DJVU package is complete... " >&6; }
28366 if test $passed -gt 0; then
28367 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000028368 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
28369$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028370 have_djvu='no (failed tests)'
28371 else
28372 DJVU_LIBS='-ldjvulibre'
28373 LIBS="$DJVU_LIBS $LIBS"
28374
cristy8b350f62009-11-15 23:12:43 +000028375$as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028376
cristy09b53e12011-10-14 12:47:22 +000028377 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
28378$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028379 have_djvu='yes'
28380 fi
28381 else
cristy09b53e12011-10-14 12:47:22 +000028382 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
28383$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028384 fi
28385fi
cristy73bd4a52010-10-05 11:24:23 +000028386 if test "$have_djvu" = 'yes'; then
28387 DJVU_DELEGATE_TRUE=
28388 DJVU_DELEGATE_FALSE='#'
28389else
28390 DJVU_DELEGATE_TRUE='#'
28391 DJVU_DELEGATE_FALSE=
28392fi
28393
cristy3ed852e2009-09-05 21:47:34 +000028394
28395
28396
28397#
cristy430a7312010-01-21 20:44:04 +000028398# Set DejaVu font directory.
28399#
28400
28401# Check whether --with-dejavu-font-dir was given.
28402if test "${with_dejavu_font_dir+set}" = set; then :
28403 withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval
28404else
28405 with_dejavu_font_dir='default'
28406fi
28407
28408
28409if test "$with_dejavu_font_dir" != 'default'; then
28410 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir "
28411fi
28412
28413
28414#
cristy3ed852e2009-09-05 21:47:34 +000028415# Check for FFTW delegate library.
28416#
28417
28418# Check whether --with-fftw was given.
cristy8b350f62009-11-15 23:12:43 +000028419if test "${with_fftw+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028420 withval=$with_fftw; with_fftw=$withval
28421else
28422 with_fftw='yes'
28423fi
28424
28425
28426if test "$with_fftw" != 'yes'; then
28427 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
28428fi
28429
cristy81beccd2011-10-03 18:17:24 +000028430have_fftw='no'
28431FFTW_LIBS=''
28432if test "$with_fftw" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000028433 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28434$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy81beccd2011-10-03 18:17:24 +000028435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5
28436$as_echo_n "checking for FFTW... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028437 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28438$as_echo "$as_me: " >&6;}
cristy81beccd2011-10-03 18:17:24 +000028439 failed=0
28440 passed=0
28441 ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
28442if test "x$ac_cv_header_fftw3_h" = xyes; then :
28443 passed=`expr $passed + 1`
28444else
28445 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000028446fi
28447
cristy81beccd2011-10-03 18:17:24 +000028448
28449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
28450$as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
28451if ${ac_cv_lib_fftw3_fftw_execute+:} false; then :
28452 $as_echo_n "(cached) " >&6
28453else
28454 ac_check_lib_save_LIBS=$LIBS
28455LIBS="-lfftw3 $LIBS"
28456cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28457/* end confdefs.h. */
28458
28459/* Override any GCC internal prototype to avoid an error.
28460 Use char because int might match the return type of a GCC
28461 builtin and then its argument prototype would still apply. */
28462#ifdef __cplusplus
28463extern "C"
28464#endif
28465char fftw_execute ();
28466int
28467main ()
28468{
28469return fftw_execute ();
28470 ;
28471 return 0;
28472}
28473_ACEOF
28474if ac_fn_c_try_link "$LINENO"; then :
28475 ac_cv_lib_fftw3_fftw_execute=yes
28476else
28477 ac_cv_lib_fftw3_fftw_execute=no
28478fi
28479rm -f core conftest.err conftest.$ac_objext \
28480 conftest$ac_exeext conftest.$ac_ext
28481LIBS=$ac_check_lib_save_LIBS
28482fi
28483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
28484$as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
28485if test "x$ac_cv_lib_fftw3_fftw_execute" = xyes; then :
28486 passed=`expr $passed + 1`
28487else
28488 failed=`expr $failed + 1`
28489fi
28490
28491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5
28492$as_echo_n "checking if FFTW package is complete... " >&6; }
28493 if test $passed -gt 0; then
28494 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000028495 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
28496$as_echo "$as_me: no -- some components failed test" >&6;}
cristy81beccd2011-10-03 18:17:24 +000028497 have_fftw='no (failed tests)'
28498 else
28499 FFTW_LIBS='-lfftw3'
28500 LIBS="$FFTW_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000028501
cristy8b350f62009-11-15 23:12:43 +000028502$as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028503
cristy09b53e12011-10-14 12:47:22 +000028504 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
28505$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000028506 have_fftw='yes'
28507 fi
28508 else
cristy09b53e12011-10-14 12:47:22 +000028509 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
28510$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028511 fi
28512fi
cristy73bd4a52010-10-05 11:24:23 +000028513 if test "$have_fftw" = 'yes'; then
28514 FFTW_DELEGATE_TRUE=
28515 FFTW_DELEGATE_FALSE='#'
28516else
28517 FFTW_DELEGATE_TRUE='#'
28518 FFTW_DELEGATE_FALSE=
28519fi
28520
cristy3ed852e2009-09-05 21:47:34 +000028521
28522
28523
28524#
28525# Check for FlashPIX delegate library.
28526#
28527
28528# Check whether --with-fpx was given.
cristy8b350f62009-11-15 23:12:43 +000028529if test "${with_fpx+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028530 withval=$with_fpx; with_fpx=$withval
28531else
28532 with_fpx='yes'
28533fi
28534
28535
28536if test "$with_fpx" != 'yes'; then
28537 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
28538fi
28539
28540have_fpx='no'
28541FPX_LIBS=''
28542if test "$with_fpx" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000028543 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28544$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000028545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
cristy3ed852e2009-09-05 21:47:34 +000028546$as_echo_n "checking for FlashPIX... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028547 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28548$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028549 failed=0
28550 passed=0
28551 ac_ext=cpp
28552ac_cpp='$CXXCPP $CPPFLAGS'
28553ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28554ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28555ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28556
28557
cristy8b350f62009-11-15 23:12:43 +000028558ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028559if test "x$ac_cv_header_fpxlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028560 passed=`expr $passed + 1`
28561else
28562 failed=`expr $failed + 1`
28563fi
28564
28565
cristy8b350f62009-11-15 23:12:43 +000028566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
cristy3ed852e2009-09-05 21:47:34 +000028567$as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028568if ${ac_cv_lib_fpx_FPX_OpenImageByFilename+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028569 $as_echo_n "(cached) " >&6
28570else
28571 ac_check_lib_save_LIBS=$LIBS
28572LIBS="-lfpx $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028573cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028574/* end confdefs.h. */
28575
28576/* Override any GCC internal prototype to avoid an error.
28577 Use char because int might match the return type of a GCC
28578 builtin and then its argument prototype would still apply. */
28579#ifdef __cplusplus
28580extern "C"
28581#endif
28582char FPX_OpenImageByFilename ();
28583int
28584main ()
28585{
28586return FPX_OpenImageByFilename ();
28587 ;
28588 return 0;
28589}
28590_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028591if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028592 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
28593else
cristy8b350f62009-11-15 23:12:43 +000028594 ac_cv_lib_fpx_FPX_OpenImageByFilename=no
cristy3ed852e2009-09-05 21:47:34 +000028595fi
cristy8b350f62009-11-15 23:12:43 +000028596rm -f core conftest.err conftest.$ac_objext \
28597 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028598LIBS=$ac_check_lib_save_LIBS
28599fi
cristy8b350f62009-11-15 23:12:43 +000028600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
cristy3ed852e2009-09-05 21:47:34 +000028601$as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
cristyda16f162011-02-19 23:52:17 +000028602if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028603 passed=`expr $passed + 1`
28604else
28605 failed=`expr $failed + 1`
28606fi
28607
28608 ac_ext=c
28609ac_cpp='$CPP $CPPFLAGS'
28610ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28611ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28612ac_compiler_gnu=$ac_cv_c_compiler_gnu
28613
cristy8b350f62009-11-15 23:12:43 +000028614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028615$as_echo_n "checking if FlashPIX package is complete... " >&6; }
28616 if test $passed -gt 0; then
28617 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000028618 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
28619$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028620 have_fpx='no (failed tests)'
28621 else
28622 FPX_LIBS='-lfpx'
28623
cristy8b350f62009-11-15 23:12:43 +000028624$as_echo "#define FPX_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028625
cristy09b53e12011-10-14 12:47:22 +000028626 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
28627$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028628 have_fpx='yes'
28629 PERLMAINCC="$CXX"
28630 fi
28631 else
cristy09b53e12011-10-14 12:47:22 +000028632 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
28633$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028634 fi
28635fi
cristy73bd4a52010-10-05 11:24:23 +000028636 if test "$have_fpx" = 'yes'; then
28637 FPX_DELEGATE_TRUE=
28638 FPX_DELEGATE_FALSE='#'
28639else
28640 FPX_DELEGATE_TRUE='#'
28641 FPX_DELEGATE_FALSE=
28642fi
28643
cristy3ed852e2009-09-05 21:47:34 +000028644
28645
28646
28647#
28648# Check for fontconfig delegate library.
28649#
28650
28651# Check whether --with-fontconfig was given.
cristy8b350f62009-11-15 23:12:43 +000028652if test "${with_fontconfig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028653 withval=$with_fontconfig; with_fontconfig=$withval
28654else
cristyfc3d0222012-02-07 15:05:57 +000028655 with_fontconfig='yes'
cristy3ed852e2009-09-05 21:47:34 +000028656fi
28657
28658
28659if test "$with_fontconfig" != 'yes'; then
28660 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
28661fi
28662
28663have_fontconfig='no'
28664FONTCONFIG_CFLAGS=""
28665FONTCONFIG_LIBS=""
28666FONTCONFIG_PKG=""
28667if test "x$with_fontconfig" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000028668 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28669$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000028670
28671pkg_failed=no
28672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
28673$as_echo_n "checking for FONTCONFIG... " >&6; }
28674
28675if test -n "$FONTCONFIG_CFLAGS"; then
28676 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
28677 elif test -n "$PKG_CONFIG"; then
28678 if test -n "$PKG_CONFIG" && \
28679 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
28680 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
28681 ac_status=$?
28682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28683 test $ac_status = 0; }; then
28684 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
28685else
28686 pkg_failed=yes
28687fi
28688 else
28689 pkg_failed=untried
28690fi
28691if test -n "$FONTCONFIG_LIBS"; then
28692 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
28693 elif test -n "$PKG_CONFIG"; then
28694 if test -n "$PKG_CONFIG" && \
28695 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
28696 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
28697 ac_status=$?
28698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28699 test $ac_status = 0; }; then
28700 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
28701else
28702 pkg_failed=yes
28703fi
28704 else
28705 pkg_failed=untried
28706fi
28707
28708
28709
28710if test $pkg_failed = yes; then
28711
28712if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28713 _pkg_short_errors_supported=yes
28714else
28715 _pkg_short_errors_supported=no
28716fi
28717 if test $_pkg_short_errors_supported = yes; then
28718 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1`
28719 else
28720 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1`
28721 fi
28722 # Put the nasty error message in config.log where it belongs
28723 echo "$FONTCONFIG_PKG_ERRORS" >&5
28724
28725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28726$as_echo "no" >&6; }
28727 have_fontconfig=no
28728elif test $pkg_failed = untried; then
28729 have_fontconfig=no
28730else
28731 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
28732 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
28733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28734$as_echo "yes" >&6; }
28735 have_fontconfig=yes
28736fi
cristy09b53e12011-10-14 12:47:22 +000028737 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28738$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028739fi
28740
28741if test "$have_fontconfig" = 'yes'; then
28742
cristy8b350f62009-11-15 23:12:43 +000028743$as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028744
cristyc6722092012-10-14 00:19:31 +000028745 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000028746 CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
cristyd09bcf92010-03-25 03:04:45 +000028747 fi
cristy3ed852e2009-09-05 21:47:34 +000028748fi
28749
cristy73bd4a52010-10-05 11:24:23 +000028750 if test "$have_fontconfig" = 'yes'; then
28751 FONTCONFIG_DELEGATE_TRUE=
28752 FONTCONFIG_DELEGATE_FALSE='#'
28753else
28754 FONTCONFIG_DELEGATE_TRUE='#'
28755 FONTCONFIG_DELEGATE_FALSE=
28756fi
28757
cristy3ed852e2009-09-05 21:47:34 +000028758
28759
28760
28761
28762#
cristy81beccd2011-10-03 18:17:24 +000028763# Check for freetype delegate library.
cristy3ed852e2009-09-05 21:47:34 +000028764#
28765
28766# Check whether --with-freetype was given.
cristy8b350f62009-11-15 23:12:43 +000028767if test "${with_freetype+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028768 withval=$with_freetype; with_freetype=$withval
28769else
28770 with_freetype='yes'
28771fi
28772
28773
cristy81beccd2011-10-03 18:17:24 +000028774
cristy3ed852e2009-09-05 21:47:34 +000028775if test "$with_freetype" != 'yes'; then
28776 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
28777fi
28778
cristy81beccd2011-10-03 18:17:24 +000028779have_freetype='no'
28780FREETYPE_LIBS=''
28781if test "$with_freetype" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000028782 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28783$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy98ca0f52011-10-08 23:19:10 +000028784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeType 2.0 " >&5
28785$as_echo_n "checking for FreeType 2.0 ... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028786 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28787$as_echo "$as_me: " >&6;}
cristy81beccd2011-10-03 18:17:24 +000028788 failed=0
28789 passed=0
cristy98ca0f52011-10-08 23:19:10 +000028790 PERSIST_LDFLAGS="$LDFLAGS"
cristy81beccd2011-10-03 18:17:24 +000028791 PERSIST_CPPFLAGS="$CPPFLAGS"
cristy98ca0f52011-10-08 23:19:10 +000028792 freetype_config=''
28793 # Allow the user to specify the location of freetype.
28794 if test "$with_freetype" != 'yes'; then
28795 if test -x "${with_freetype}/bin/freetype-config"; then
28796 freetype_config="${with_freetype}/bin/freetype-config"
28797 elif test -x "${with_freetype}"; then
28798 freetype_config=${with_freetype}
28799 fi
28800 fi
28801 if test -z "$freetype_config"; then
28802 # Extract the first word of "freetype-config", so it can be a program name with args.
28803set dummy freetype-config; ac_word=$2
cristy81beccd2011-10-03 18:17:24 +000028804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28805$as_echo_n "checking for $ac_word... " >&6; }
cristy98ca0f52011-10-08 23:19:10 +000028806if ${ac_cv_path_freetype_config+:} false; then :
cristy81beccd2011-10-03 18:17:24 +000028807 $as_echo_n "(cached) " >&6
28808else
cristy98ca0f52011-10-08 23:19:10 +000028809 case $freetype_config in
28810 [\\/]* | ?:[\\/]*)
28811 ac_cv_path_freetype_config="$freetype_config" # Let the user override the test with a path.
28812 ;;
28813 *)
28814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cristy81beccd2011-10-03 18:17:24 +000028815for as_dir in $PATH
28816do
28817 IFS=$as_save_IFS
28818 test -z "$as_dir" && as_dir=.
28819 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000028820 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy98ca0f52011-10-08 23:19:10 +000028821 ac_cv_path_freetype_config="$as_dir/$ac_word$ac_exec_ext"
cristy81beccd2011-10-03 18:17:24 +000028822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28823 break 2
28824 fi
28825done
28826 done
28827IFS=$as_save_IFS
28828
cristy98ca0f52011-10-08 23:19:10 +000028829 ;;
28830esac
cristy81beccd2011-10-03 18:17:24 +000028831fi
cristy98ca0f52011-10-08 23:19:10 +000028832freetype_config=$ac_cv_path_freetype_config
cristy81beccd2011-10-03 18:17:24 +000028833if test -n "$freetype_config"; then
28834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $freetype_config" >&5
28835$as_echo "$freetype_config" >&6; }
28836else
28837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28838$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028839fi
28840
cristy98ca0f52011-10-08 23:19:10 +000028841 fi
28842 if test -n "$freetype_config"; then
28843 freetype_prefix=`${freetype_config} --prefix`
28844 freetype_exec_prefix=`${freetype_config} --exec-prefix`
28845 LDFLAGS="$LDFLAGS -L${freetype_exec_prefix}/lib"
28846 CPPFLAGS="$CPPFLAGS -I${freetype_prefix}/include/freetype2"
cristy81beccd2011-10-03 18:17:24 +000028847 fi
28848
28849 if test "$FREETYPE_LIBS" = ''; then
cristy98ca0f52011-10-08 23:19:10 +000028850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_Init_FreeType in -lfreetype" >&5
cristy81beccd2011-10-03 18:17:24 +000028851$as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; }
28852if ${ac_cv_lib_freetype_FT_Init_FreeType+:} false; then :
28853 $as_echo_n "(cached) " >&6
28854else
28855 ac_check_lib_save_LIBS=$LIBS
28856LIBS="-lfreetype $LIBS"
28857cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28858/* end confdefs.h. */
28859
28860/* Override any GCC internal prototype to avoid an error.
28861 Use char because int might match the return type of a GCC
28862 builtin and then its argument prototype would still apply. */
28863#ifdef __cplusplus
28864extern "C"
28865#endif
28866char FT_Init_FreeType ();
28867int
28868main ()
28869{
28870return FT_Init_FreeType ();
28871 ;
28872 return 0;
28873}
28874_ACEOF
28875if ac_fn_c_try_link "$LINENO"; then :
28876 ac_cv_lib_freetype_FT_Init_FreeType=yes
28877else
28878 ac_cv_lib_freetype_FT_Init_FreeType=no
28879fi
28880rm -f core conftest.err conftest.$ac_objext \
28881 conftest$ac_exeext conftest.$ac_ext
28882LIBS=$ac_check_lib_save_LIBS
28883fi
28884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
28885$as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
28886if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = xyes; then :
28887 FREETYPE_LIBS='-lfreetype'
28888fi
28889
cristy98ca0f52011-10-08 23:19:10 +000028890 if test "$FREETYPE_LIBS" != ''; then
28891 passed=`expr $passed + 1`
28892 else
28893 failed=`expr $failed + 1`
28894 LDFLAGS="$PERSIST_LDFLAGS"
28895 fi
cristy81beccd2011-10-03 18:17:24 +000028896 fi
28897
28898 ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
28899if test "x$ac_cv_header_ft2build_h" = xyes; then :
28900 FT2BUILD_H='#include <ft2build.h>'
28901else
28902 ft2build=''
28903fi
28904
28905
28906 ac_fn_c_check_header_compile "$LINENO" "freetype/freetype.h" "ac_cv_header_freetype_freetype_h" "$FT2BUILD_H
28907"
28908if test "x$ac_cv_header_freetype_freetype_h" = xyes; then :
28909 have_freetype_h='yes'
28910else
28911 have_freetype_h='no'
28912fi
28913
28914
cristy98ca0f52011-10-08 23:19:10 +000028915 if test "$have_freetype_h" = 'yes'; then
28916 passed=`expr $passed + 1`
cristy81beccd2011-10-03 18:17:24 +000028917 else
cristy98ca0f52011-10-08 23:19:10 +000028918 failed=`expr $failed + 1`
28919 CPPFLAGS="$PERSIST_CPPFLAGS"
cristy81beccd2011-10-03 18:17:24 +000028920 fi
28921
28922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FreeType package is complete" >&5
28923$as_echo_n "checking if FreeType package is complete... " >&6; }
28924 if test $passed -gt 0; then
cristy98ca0f52011-10-08 23:19:10 +000028925 if test $failed -gt 0; then
28926 FREETYPE_LIBS=''
cristy09b53e12011-10-14 12:47:22 +000028927 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
28928$as_echo "$as_me: no -- some components failed test" >&6;}
cristy98ca0f52011-10-08 23:19:10 +000028929 have_freetype='no (failed tests)'
28930 else
28931 LIBS="$FREETYPE_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000028932
cristy8b350f62009-11-15 23:12:43 +000028933$as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028934
cristy98ca0f52011-10-08 23:19:10 +000028935 if test "$ac_cv_header_ft2build_h" = 'yes'; then
cristy81beccd2011-10-03 18:17:24 +000028936
28937$as_echo "#define HAVE_FT2BUILD_H 1" >>confdefs.h
28938
cristy81beccd2011-10-03 18:17:24 +000028939 fi
cristy09b53e12011-10-14 12:47:22 +000028940 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
28941$as_echo "$as_me: yes" >&6;}
cristy98ca0f52011-10-08 23:19:10 +000028942 have_freetype='yes'
28943 fi
cristy81beccd2011-10-03 18:17:24 +000028944 else
cristy09b53e12011-10-14 12:47:22 +000028945 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
28946$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028947 fi
28948fi
cristy73bd4a52010-10-05 11:24:23 +000028949 if test "$have_freetype" = 'yes'; then
28950 FREETYPE_DELEGATE_TRUE=
28951 FREETYPE_DELEGATE_FALSE='#'
28952else
28953 FREETYPE_DELEGATE_TRUE='#'
28954 FREETYPE_DELEGATE_FALSE=
28955fi
28956
cristy3ed852e2009-09-05 21:47:34 +000028957
28958
28959
cristy3ed852e2009-09-05 21:47:34 +000028960#
28961# Check for Ghostscript library or framework.
28962#
28963# Test for iapi.h & test for gsapi_new_instance in -lgs
28964# or -framework Ghostscript
28965
28966
28967# Check whether --with-gslib was given.
cristy8b350f62009-11-15 23:12:43 +000028968if test "${with_gslib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028969 withval=$with_gslib; with_gslib=$withval
28970else
28971 with_gslib='no'
28972fi
28973
28974
cristyb7931f12009-09-25 10:22:21 +000028975gslib_framework='no'
cristy3ed852e2009-09-05 21:47:34 +000028976if test "$with_gslib" != 'yes'; then
28977 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
28978fi
28979
28980have_gslib='no'
28981GS_LIBS=''
28982if test "$with_gslib" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000028983 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28984$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000028985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000028986$as_echo_n "checking for Ghostscript... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028987 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28988$as_echo "$as_me: " >&6;}
cristyb7931f12009-09-25 10:22:21 +000028989 framework=0
cristy3ed852e2009-09-05 21:47:34 +000028990 failed=0
28991 passed=0
cristy8b350f62009-11-15 23:12:43 +000028992 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 +000028993if test "x$ac_cv_header_ghostscript_iapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028994 passed=`expr $passed + 1`
28995else
28996 failed=`expr $failed + 1`
28997fi
28998
28999
cristy8b350f62009-11-15 23:12:43 +000029000 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 +000029001if test "x$ac_cv_header_ghostscript_ierrors_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029002 passed=`expr $passed + 1`
29003else
29004 failed=`expr $failed + 1`
29005fi
29006
29007
cristy73bd4a52010-10-05 11:24:23 +000029008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
29009$as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029010if ${ac_cv_framework_Ghostscript_gsapi_new_instance+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000029011 $as_echo_n "(cached) " >&6
29012else
29013 ac_check_framework_save_LIBS=$LIBS
29014LIBS="-framework Ghostscript $LIBS"
29015cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29016/* end confdefs.h. */
29017
29018/* Override any GCC internal prototype to avoid an error.
29019 Use char because int might match the return type of a GCC
29020 builtin and then its argument prototype would still apply. */
29021#ifdef __cplusplus
29022extern "C"
29023#endif
29024char gsapi_new_instance ();
29025int
29026main ()
29027{
29028return gsapi_new_instance ();
29029 ;
29030 return 0;
29031}
29032_ACEOF
29033if ac_fn_c_try_link "$LINENO"; then :
29034 ac_cv_framework_Ghostscript_gsapi_new_instance=yes
29035else
29036 ac_cv_framework_Ghostscript_gsapi_new_instance=no
29037fi
29038rm -f core conftest.err conftest.$ac_objext \
29039 conftest$ac_exeext conftest.$ac_ext
29040LIBS=$ac_check_framework_save_LIBS
29041fi
29042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
29043$as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
29044if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
29045 framework=`expr $framework + 1`
29046else
29047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
cristy3ed852e2009-09-05 21:47:34 +000029048$as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029049if ${ac_cv_lib_gs_gsapi_new_instance+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029050 $as_echo_n "(cached) " >&6
29051else
29052 ac_check_lib_save_LIBS=$LIBS
29053LIBS="-lgs $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029054cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029055/* end confdefs.h. */
29056
29057/* Override any GCC internal prototype to avoid an error.
29058 Use char because int might match the return type of a GCC
29059 builtin and then its argument prototype would still apply. */
29060#ifdef __cplusplus
29061extern "C"
29062#endif
29063char gsapi_new_instance ();
29064int
29065main ()
29066{
29067return gsapi_new_instance ();
29068 ;
29069 return 0;
29070}
29071_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029072if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029073 ac_cv_lib_gs_gsapi_new_instance=yes
29074else
cristy8b350f62009-11-15 23:12:43 +000029075 ac_cv_lib_gs_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000029076fi
cristy8b350f62009-11-15 23:12:43 +000029077rm -f core conftest.err conftest.$ac_objext \
29078 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029079LIBS=$ac_check_lib_save_LIBS
29080fi
cristy8b350f62009-11-15 23:12:43 +000029081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000029082$as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
cristyda16f162011-02-19 23:52:17 +000029083if test "x$ac_cv_lib_gs_gsapi_new_instance" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029084 passed=`expr $passed + 1`
29085else
29086 failed=`expr $failed + 1`
29087fi
cristy73bd4a52010-10-05 11:24:23 +000029088
29089fi
cristy8b350f62009-11-15 23:12:43 +000029090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029091$as_echo_n "checking if Ghostscript package is complete... " >&6; }
29092 if test $passed -gt 0; then
29093 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029094 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29095$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029096 have_gslib='no (failed tests)'
29097 else
29098 if test $framework -gt 0; then
29099 GS_LIBS='-framework Ghostscript'
cristyb7931f12009-09-25 10:22:21 +000029100 gslib_framework='yes'
cristy09b53e12011-10-14 12:47:22 +000029101 { $as_echo "$as_me:${as_lineno-$LINENO}: yes, using framework." >&5
29102$as_echo "$as_me: yes, using framework." >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029103 else
cristy09b53e12011-10-14 12:47:22 +000029104 { $as_echo "$as_me:${as_lineno-$LINENO}: yes, using library." >&5
29105$as_echo "$as_me: yes, using library." >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029106 GS_LIBS='-lgs'
29107 fi
29108 LIBS="$GS_LIBS $LIBS"
29109
cristy8b350f62009-11-15 23:12:43 +000029110$as_echo "#define GS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029111
29112 have_gslib='yes'
29113 fi
29114 else
cristy09b53e12011-10-14 12:47:22 +000029115 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29116$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029117 fi
29118fi
cristy73bd4a52010-10-05 11:24:23 +000029119 if test "$have_gslib" = 'yes'; then
29120 GS_DELEGATE_TRUE=
29121 GS_DELEGATE_FALSE='#'
29122else
29123 GS_DELEGATE_TRUE='#'
29124 GS_DELEGATE_FALSE=
29125fi
29126
cristy3ed852e2009-09-05 21:47:34 +000029127
29128
29129# Set default font search path
29130
29131# Check whether --with-fontpath was given.
cristy8b350f62009-11-15 23:12:43 +000029132if test "${with_fontpath+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029133 withval=$with_fontpath; with_fontpath=$withval
29134else
29135 with_fontpath=''
29136fi
29137
29138
29139if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
29140 with_fontpath=''
29141else
29142
29143cat >>confdefs.h <<_ACEOF
29144#define MAGICK_FONT_PATH "$with_fontpath"
29145_ACEOF
29146
29147fi
29148if test "$with_fontpath=" != ''; then
29149 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
29150fi
29151
29152# Set Ghostscript font directory
29153
29154# Check whether --with-gs-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000029155if test "${with_gs_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029156 withval=$with_gs_font_dir; with_gs_font_dir=$withval
29157else
29158 with_gs_font_dir='default'
29159fi
29160
29161
29162if test "$with_gs_font_dir" != 'default'; then
29163 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
29164fi
29165
29166
29167#
29168# Check for GVC delegate library.
29169#
29170
29171# Check whether --with-gvc was given.
cristy8b350f62009-11-15 23:12:43 +000029172if test "${with_gvc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029173 withval=$with_gvc; with_gvc=$withval
29174else
cristy1b70dc82012-07-01 23:15:05 +000029175 with_gvc='no'
cristy3ed852e2009-09-05 21:47:34 +000029176fi
29177
29178
29179if test "$with_gvc" != 'yes'; then
29180 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
29181fi
29182
29183GVC_PKG=""
29184if test "x$with_gvc" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000029185 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29186$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000029187
29188pkg_failed=no
29189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
29190$as_echo_n "checking for GVC... " >&6; }
29191
29192if test -n "$GVC_CFLAGS"; then
29193 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
29194 elif test -n "$PKG_CONFIG"; then
29195 if test -n "$PKG_CONFIG" && \
29196 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
29197 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
29198 ac_status=$?
29199 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29200 test $ac_status = 0; }; then
29201 pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
29202else
29203 pkg_failed=yes
29204fi
29205 else
29206 pkg_failed=untried
29207fi
29208if test -n "$GVC_LIBS"; then
29209 pkg_cv_GVC_LIBS="$GVC_LIBS"
29210 elif test -n "$PKG_CONFIG"; then
29211 if test -n "$PKG_CONFIG" && \
29212 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
29213 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
29214 ac_status=$?
29215 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29216 test $ac_status = 0; }; then
29217 pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
29218else
29219 pkg_failed=yes
29220fi
29221 else
29222 pkg_failed=untried
29223fi
29224
29225
29226
29227if test $pkg_failed = yes; then
29228
29229if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29230 _pkg_short_errors_supported=yes
29231else
29232 _pkg_short_errors_supported=no
29233fi
29234 if test $_pkg_short_errors_supported = yes; then
29235 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1`
29236 else
29237 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1`
29238 fi
29239 # Put the nasty error message in config.log where it belongs
29240 echo "$GVC_PKG_ERRORS" >&5
29241
29242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29243$as_echo "no" >&6; }
29244 have_gvc=no
29245elif test $pkg_failed = untried; then
29246 have_gvc=no
29247else
29248 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
29249 GVC_LIBS=$pkg_cv_GVC_LIBS
29250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29251$as_echo "yes" >&6; }
29252 have_gvc=yes
29253fi
cristy09b53e12011-10-14 12:47:22 +000029254 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29255$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029256fi
29257
29258if test "$have_gvc" = 'yes'; then
29259
cristy8b350f62009-11-15 23:12:43 +000029260$as_echo "#define GVC_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029261
cristyc6722092012-10-14 00:19:31 +000029262 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000029263 CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
29264 fi
29265fi
29266
cristy73bd4a52010-10-05 11:24:23 +000029267 if test "$have_gvc" = 'yes'; then
29268 GVC_DELEGATE_TRUE=
29269 GVC_DELEGATE_FALSE='#'
29270else
29271 GVC_DELEGATE_TRUE='#'
29272 GVC_DELEGATE_FALSE=
29273fi
29274
cristy3ed852e2009-09-05 21:47:34 +000029275
29276
29277
29278
29279#
29280# Check for JBIG delegate library.
29281#
29282
29283
29284# Check whether --with-jbig was given.
cristy8b350f62009-11-15 23:12:43 +000029285if test "${with_jbig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029286 withval=$with_jbig; with_jbig=$withval
29287else
29288 with_jbig='yes'
29289fi
29290
29291
29292have_jbig='no'
29293JBIG_LIBS=''
29294if test "$with_jbig" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029295 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29296$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000029297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000029298$as_echo_n "checking for JBIG... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029299 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29300$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029301 failed=0
29302 passed=0
cristy8b350f62009-11-15 23:12:43 +000029303 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029304if test "x$ac_cv_header_jbig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029305 passed=`expr $passed + 1`
29306else
29307 failed=`expr $failed + 1`
29308fi
29309
29310
cristy8b350f62009-11-15 23:12:43 +000029311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
cristy3ed852e2009-09-05 21:47:34 +000029312$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029313if ${ac_cv_lib_jbig_jbg_dec_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029314 $as_echo_n "(cached) " >&6
29315else
29316 ac_check_lib_save_LIBS=$LIBS
29317LIBS="-ljbig $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029318cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029319/* end confdefs.h. */
29320
29321/* Override any GCC internal prototype to avoid an error.
29322 Use char because int might match the return type of a GCC
29323 builtin and then its argument prototype would still apply. */
29324#ifdef __cplusplus
29325extern "C"
29326#endif
29327char jbg_dec_init ();
29328int
29329main ()
29330{
29331return jbg_dec_init ();
29332 ;
29333 return 0;
29334}
29335_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029336if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029337 ac_cv_lib_jbig_jbg_dec_init=yes
29338else
cristy8b350f62009-11-15 23:12:43 +000029339 ac_cv_lib_jbig_jbg_dec_init=no
cristy3ed852e2009-09-05 21:47:34 +000029340fi
cristy8b350f62009-11-15 23:12:43 +000029341rm -f core conftest.err conftest.$ac_objext \
29342 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029343LIBS=$ac_check_lib_save_LIBS
29344fi
cristy8b350f62009-11-15 23:12:43 +000029345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000029346$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000029347if test "x$ac_cv_lib_jbig_jbg_dec_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029348 passed=`expr $passed + 1`
29349else
29350 failed=`expr $failed + 1`
29351fi
29352
cristy8b350f62009-11-15 23:12:43 +000029353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029354$as_echo_n "checking if JBIG package is complete... " >&6; }
29355 if test $passed -gt 0; then
29356 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029357 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29358$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029359 have_jbig='no (failed tests)'
29360 else
29361 JBIG_LIBS='-ljbig'
29362 LIBS="$JBIG_LIBS $LIBS"
29363
cristy8b350f62009-11-15 23:12:43 +000029364$as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029365
cristy09b53e12011-10-14 12:47:22 +000029366 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29367$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029368 have_jbig='yes'
29369 fi
29370 else
cristy09b53e12011-10-14 12:47:22 +000029371 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29372$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029373 fi
29374fi
cristy73bd4a52010-10-05 11:24:23 +000029375 if test "$have_jbig" = 'yes'; then
29376 JBIG_DELEGATE_TRUE=
29377 JBIG_DELEGATE_FALSE='#'
29378else
29379 JBIG_DELEGATE_TRUE='#'
29380 JBIG_DELEGATE_FALSE=
29381fi
29382
cristy3ed852e2009-09-05 21:47:34 +000029383
29384
29385
29386#
29387# Check for JPEG delegate library.
29388#
29389
29390# Check whether --with-jpeg was given.
cristy8b350f62009-11-15 23:12:43 +000029391if test "${with_jpeg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029392 withval=$with_jpeg; with_jpeg=$withval
29393else
29394 with_jpeg='yes'
29395fi
29396
29397
29398if test "$with_jpeg" != 'yes'; then
29399 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
29400fi
29401
29402have_jpeg='no'
29403JPEG_LIBS=''
29404if test "$with_jpeg" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029405 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29406$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000029407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
cristy3ed852e2009-09-05 21:47:34 +000029408$as_echo_n "checking for JPEG... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029409 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29410$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029411 failed=0
29412 passed=0
cristy8b350f62009-11-15 23:12:43 +000029413 ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029414if test "x$ac_cv_header_jconfig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029415 passed=`expr $passed + 1`
29416else
29417 failed=`expr $failed + 1`
29418fi
29419
29420
cristy8b350f62009-11-15 23:12:43 +000029421 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029422if test "x$ac_cv_header_jerror_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029423 passed=`expr $passed + 1`
29424else
29425 failed=`expr $failed + 1`
29426fi
29427
29428
cristy8b350f62009-11-15 23:12:43 +000029429 ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029430if test "x$ac_cv_header_jmorecfg_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029431 passed=`expr $passed + 1`
29432else
29433 failed=`expr $failed + 1`
29434fi
29435
29436
cristy8b350f62009-11-15 23:12:43 +000029437 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029438if test "x$ac_cv_header_jpeglib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029439 passed=`expr $passed + 1`
29440else
29441 failed=`expr $failed + 1`
29442fi
29443
29444
cristy8b350f62009-11-15 23:12:43 +000029445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
cristy3ed852e2009-09-05 21:47:34 +000029446$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029447if ${ac_cv_lib_jpeg_jpeg_read_header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029448 $as_echo_n "(cached) " >&6
29449else
29450 ac_check_lib_save_LIBS=$LIBS
29451LIBS="-ljpeg $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029452cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029453/* end confdefs.h. */
29454
29455/* Override any GCC internal prototype to avoid an error.
29456 Use char because int might match the return type of a GCC
29457 builtin and then its argument prototype would still apply. */
29458#ifdef __cplusplus
29459extern "C"
29460#endif
29461char jpeg_read_header ();
29462int
29463main ()
29464{
29465return jpeg_read_header ();
29466 ;
29467 return 0;
29468}
29469_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029470if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029471 ac_cv_lib_jpeg_jpeg_read_header=yes
29472else
cristy8b350f62009-11-15 23:12:43 +000029473 ac_cv_lib_jpeg_jpeg_read_header=no
cristy3ed852e2009-09-05 21:47:34 +000029474fi
cristy8b350f62009-11-15 23:12:43 +000029475rm -f core conftest.err conftest.$ac_objext \
29476 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029477LIBS=$ac_check_lib_save_LIBS
29478fi
cristy8b350f62009-11-15 23:12:43 +000029479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
cristy3ed852e2009-09-05 21:47:34 +000029480$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
cristyda16f162011-02-19 23:52:17 +000029481if test "x$ac_cv_lib_jpeg_jpeg_read_header" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029482 passed=`expr $passed + 1`
29483else
29484 failed=`expr $failed + 1`
29485fi
29486
29487
29488# Test for compatible JPEG library
29489if test "$ac_cv_jpeg_version_ok" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000029490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
cristy3ed852e2009-09-05 21:47:34 +000029491$as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029492if ${ac_cv_jpeg_version_ok+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029493 $as_echo_n "(cached) " >&6
29494else
cristy8b350f62009-11-15 23:12:43 +000029495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029496/* end confdefs.h. */
29497#include <stdio.h>
29498#include <stdlib.h>
29499#include <jpeglib.h>
29500
29501int
29502main ()
29503{
29504
29505#if JPEG_LIB_VERSION < 62
29506#error IJG JPEG library must be version 6b or newer!
29507#endif
29508return 0;
29509
29510 ;
29511 return 0;
29512}
29513_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029514if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029515 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
29516else
cristy8b350f62009-11-15 23:12:43 +000029517 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000029518fi
cristy3ed852e2009-09-05 21:47:34 +000029519rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29520fi
cristy8b350f62009-11-15 23:12:43 +000029521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000029522$as_echo "$ac_cv_jpeg_version_ok" >&6; }
29523fi
cristy8b350f62009-11-15 23:12:43 +000029524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029525$as_echo_n "checking if JPEG package is complete... " >&6; }
29526 if test $passed -gt 0; then
29527 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029528 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29529$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029530 have_jpeg='no (failed tests)'
29531 else
29532 JPEG_LIBS='-ljpeg'
29533 LIBS="$JPEG_LIBS $LIBS"
29534
cristy8b350f62009-11-15 23:12:43 +000029535$as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029536
cristy09b53e12011-10-14 12:47:22 +000029537 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29538$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029539 have_jpeg='yes'
29540 fi
29541 else
cristy09b53e12011-10-14 12:47:22 +000029542 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29543$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029544 fi
29545fi
cristy73bd4a52010-10-05 11:24:23 +000029546 if test "$have_jpeg" = 'yes'; then
29547 JPEG_DELEGATE_TRUE=
29548 JPEG_DELEGATE_FALSE='#'
29549else
29550 JPEG_DELEGATE_TRUE='#'
29551 JPEG_DELEGATE_FALSE=
29552fi
29553
cristy3ed852e2009-09-05 21:47:34 +000029554
29555
29556
29557#
29558# Check for JPEG Version 2 delegate library.
29559#
29560
29561# Check whether --with-jp2 was given.
cristy8b350f62009-11-15 23:12:43 +000029562if test "${with_jp2+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029563 withval=$with_jp2; with_jp2=$withval
29564else
29565 with_jp2='yes'
29566fi
29567
29568
29569if test "$with_jp2" != 'yes'; then
29570 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jp2=$with_jp2 "
29571fi
29572
29573have_jp2='no'
29574JP2_LIBS=''
29575if test "$with_jp2" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029576 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29577$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000029578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG Version 2" >&5
cristy3ed852e2009-09-05 21:47:34 +000029579$as_echo_n "checking for JPEG Version 2... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029580 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29581$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029582 failed=0
29583 passed=0
cristy8b350f62009-11-15 23:12:43 +000029584 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 +000029585if test "x$ac_cv_header_jasper_jasper_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029586 passed=`expr $passed + 1`
29587else
29588 failed=`expr $failed + 1`
29589fi
29590
29591
cristy8b350f62009-11-15 23:12:43 +000029592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jas_stream_fopen in -ljasper" >&5
cristy3ed852e2009-09-05 21:47:34 +000029593$as_echo_n "checking for jas_stream_fopen in -ljasper... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029594if ${ac_cv_lib_jasper_jas_stream_fopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029595 $as_echo_n "(cached) " >&6
29596else
29597 ac_check_lib_save_LIBS=$LIBS
29598LIBS="-ljasper $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029599cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029600/* end confdefs.h. */
29601
29602/* Override any GCC internal prototype to avoid an error.
29603 Use char because int might match the return type of a GCC
29604 builtin and then its argument prototype would still apply. */
29605#ifdef __cplusplus
29606extern "C"
29607#endif
29608char jas_stream_fopen ();
29609int
29610main ()
29611{
29612return jas_stream_fopen ();
29613 ;
29614 return 0;
29615}
29616_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029617if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029618 ac_cv_lib_jasper_jas_stream_fopen=yes
29619else
cristy8b350f62009-11-15 23:12:43 +000029620 ac_cv_lib_jasper_jas_stream_fopen=no
cristy3ed852e2009-09-05 21:47:34 +000029621fi
cristy8b350f62009-11-15 23:12:43 +000029622rm -f core conftest.err conftest.$ac_objext \
29623 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029624LIBS=$ac_check_lib_save_LIBS
29625fi
cristy8b350f62009-11-15 23:12:43 +000029626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jasper_jas_stream_fopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000029627$as_echo "$ac_cv_lib_jasper_jas_stream_fopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000029628if test "x$ac_cv_lib_jasper_jas_stream_fopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029629 passed=`expr $passed + 1`
29630else
29631 failed=`expr $failed + 1`
29632fi
29633
cristy8b350f62009-11-15 23:12:43 +000029634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG version 2 support package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029635$as_echo_n "checking if JPEG version 2 support package is complete... " >&6; }
29636 if test $passed -gt 0; then
29637 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029638 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29639$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029640 have_jp2='no (failed tests)'
29641 else
29642 JP2_LIBS='-ljasper'
29643 LIBS="$JP2_LIBS $LIBS"
29644
cristy8b350f62009-11-15 23:12:43 +000029645$as_echo "#define JP2_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029646
cristy09b53e12011-10-14 12:47:22 +000029647 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29648$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029649 have_jp2='yes'
29650 fi
29651 else
cristy09b53e12011-10-14 12:47:22 +000029652 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29653$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029654 fi
29655fi
cristy73bd4a52010-10-05 11:24:23 +000029656 if test "$have_jp2" = 'yes'; then
29657 JP2_DELEGATE_TRUE=
29658 JP2_DELEGATE_FALSE='#'
29659else
29660 JP2_DELEGATE_TRUE='#'
29661 JP2_DELEGATE_FALSE=
29662fi
29663
cristy3ed852e2009-09-05 21:47:34 +000029664
29665
29666
29667#
29668# Check for LCMS delegate library.
29669#
cristy71203402010-06-18 13:12:03 +000029670# Disable LCMS.
cristy3ed852e2009-09-05 21:47:34 +000029671
29672# Check whether --with-lcms was given.
cristy8b350f62009-11-15 23:12:43 +000029673if test "${with_lcms+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029674 withval=$with_lcms; with_lcms=$withval
29675else
29676 with_lcms='yes'
29677fi
29678
cristy71203402010-06-18 13:12:03 +000029679if test "$with_lcms" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000029680 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
29681fi
29682
cristy71203402010-06-18 13:12:03 +000029683# Disable LCMS2.
29684
29685# Check whether --with-lcms2 was given.
29686if test "${with_lcms2+set}" = set; then :
29687 withval=$with_lcms2; with_lcms2=$withval
29688else
29689 with_lcms2='yes'
29690fi
29691
29692if test "$with_lcms2" != 'yes' ; then
29693 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms2=$with_lcms2 "
29694fi
29695
29696have_lcms2='no'
cristy3ed852e2009-09-05 21:47:34 +000029697LCMS_LIBS=''
cristy71203402010-06-18 13:12:03 +000029698if test "$with_lcms2" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029699 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29700$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy71203402010-06-18 13:12:03 +000029701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v2" >&5
29702$as_echo_n "checking for LCMS v2... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029703 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29704$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029705 failed=0
29706 passed=0
29707 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000029708
29709 # Check for <lcms2.h>
cristyd09bcf92010-03-25 03:04:45 +000029710 ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029711if test "x$ac_cv_header_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000029712 have_lcms_header='yes'
29713fi
29714
29715
29716 if test "$have_lcms_header" = 'yes'; then
cristyd09bcf92010-03-25 03:04:45 +000029717
29718$as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h
29719
cristy71203402010-06-18 13:12:03 +000029720 passed=`expr $passed + 1`
29721 fi
29722
29723 # Check for <lcms2/lcms2.h)
29724 if test "$have_lcms_header" != 'yes'; then
29725 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 +000029726if test "x$ac_cv_header_lcms2_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000029727 have_lcms_header='yes'
29728fi
29729
29730
cristy71203402010-06-18 13:12:03 +000029731 if test "$have_lcms_header" = 'yes'; then
29732 passed=`expr $passed + 1`
cristyd09bcf92010-03-25 03:04:45 +000029733
cristy71203402010-06-18 13:12:03 +000029734$as_echo "#define HAVE_LCMS2_LCMS2_H 1" >>confdefs.h
cristyd09bcf92010-03-25 03:04:45 +000029735
cristy71203402010-06-18 13:12:03 +000029736 fi
cristyd09bcf92010-03-25 03:04:45 +000029737 fi
cristy71203402010-06-18 13:12:03 +000029738
29739 # Failed to find lcms header?
29740 if test "$have_lcms_header" != 'yes'; then
29741 failed=`expr $failed + 1`
29742 fi
29743
29744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetLogErrorHandler in -llcms2" >&5
29745$as_echo_n "checking for cmsSetLogErrorHandler in -llcms2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029746if ${ac_cv_lib_lcms2_cmsSetLogErrorHandler+:} false; then :
cristyd09bcf92010-03-25 03:04:45 +000029747 $as_echo_n "(cached) " >&6
29748else
29749 ac_check_lib_save_LIBS=$LIBS
29750LIBS="-llcms2 $LIBS"
29751cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29752/* end confdefs.h. */
29753
29754/* Override any GCC internal prototype to avoid an error.
29755 Use char because int might match the return type of a GCC
29756 builtin and then its argument prototype would still apply. */
29757#ifdef __cplusplus
29758extern "C"
29759#endif
cristy71203402010-06-18 13:12:03 +000029760char cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000029761int
29762main ()
29763{
cristy71203402010-06-18 13:12:03 +000029764return cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000029765 ;
29766 return 0;
29767}
29768_ACEOF
29769if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000029770 ac_cv_lib_lcms2_cmsSetLogErrorHandler=yes
cristyd09bcf92010-03-25 03:04:45 +000029771else
cristy71203402010-06-18 13:12:03 +000029772 ac_cv_lib_lcms2_cmsSetLogErrorHandler=no
cristyd09bcf92010-03-25 03:04:45 +000029773fi
29774rm -f core conftest.err conftest.$ac_objext \
29775 conftest$ac_exeext conftest.$ac_ext
29776LIBS=$ac_check_lib_save_LIBS
29777fi
cristy71203402010-06-18 13:12:03 +000029778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&5
29779$as_echo "$ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000029780if test "x$ac_cv_lib_lcms2_cmsSetLogErrorHandler" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000029781 passed=`expr $passed + 1`
29782else
29783 failed=`expr $failed + 1`
29784fi
29785
cristy71203402010-06-18 13:12:03 +000029786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS v2 package is complete" >&5
29787$as_echo_n "checking if LCMS v2 package is complete... " >&6; }
cristyd09bcf92010-03-25 03:04:45 +000029788 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000029789 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029790 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29791$as_echo "$as_me: no -- some components failed test" >&6;}
cristy71203402010-06-18 13:12:03 +000029792 have_lcms2='no (failed tests)'
29793 else
29794 LCMS_LIBS='-llcms2'
29795 LIBS="$LCMS_LIBS $LIBS"
cristy09b53e12011-10-14 12:47:22 +000029796 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29797$as_echo "$as_me: yes" >&6;}
cristy71203402010-06-18 13:12:03 +000029798 have_lcms2='yes'
29799 fi
cristyd09bcf92010-03-25 03:04:45 +000029800 else
cristy09b53e12011-10-14 12:47:22 +000029801 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29802$as_echo "$as_me: no" >&6;}
cristyd09bcf92010-03-25 03:04:45 +000029803 fi
29804fi
29805
cristy71203402010-06-18 13:12:03 +000029806#
29807# Check for LCMS v1 (1.11 or later)
29808#
29809if test $have_lcms2 = 'yes'; then
29810 with_lcms='no'
29811fi
29812
29813have_lcms='no'
cristyd09bcf92010-03-25 03:04:45 +000029814if test "$with_lcms" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029815 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29816$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy71203402010-06-18 13:12:03 +000029817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v1.1X" >&5
29818$as_echo_n "checking for LCMS v1.1X... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029819 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29820$as_echo "$as_me: " >&6;}
cristyd09bcf92010-03-25 03:04:45 +000029821 failed=0
29822 passed=0
29823 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000029824
29825 # Check for <lcms.h>
29826 if test "$have_lcms_header" != 'yes'; then
29827 ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029828if test "x$ac_cv_header_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029829 have_lcms_header='yes'
29830fi
29831
29832
cristy71203402010-06-18 13:12:03 +000029833 if test "$have_lcms_header" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000029834 passed=`expr $passed + 1`
29835
cristy8b350f62009-11-15 23:12:43 +000029836$as_echo "#define HAVE_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029837
cristy71203402010-06-18 13:12:03 +000029838 fi
29839 fi
29840
29841 # Check for <lcms/lcms.h>
29842 if test "$have_lcms_header" != 'yes'; then
29843 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 +000029844if test "x$ac_cv_header_lcms_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029845 have_lcms_header='yes'
29846fi
29847
29848
cristy71203402010-06-18 13:12:03 +000029849 if test "$have_lcms_header" = 'yes'; then
29850 passed=`expr $passed + 1`
cristy3ed852e2009-09-05 21:47:34 +000029851
cristy8b350f62009-11-15 23:12:43 +000029852$as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029853
cristy71203402010-06-18 13:12:03 +000029854 fi
cristy3ed852e2009-09-05 21:47:34 +000029855 fi
cristy71203402010-06-18 13:12:03 +000029856
29857 # Failed to find lcms header?
29858 if test "$have_lcms_header" != 'yes'; then
29859 failed=`expr $failed + 1`
29860 fi
29861
29862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetErrorHandler in -llcms" >&5
29863$as_echo_n "checking for cmsSetErrorHandler in -llcms... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029864if ${ac_cv_lib_lcms_cmsSetErrorHandler+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029865 $as_echo_n "(cached) " >&6
29866else
29867 ac_check_lib_save_LIBS=$LIBS
29868LIBS="-llcms $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029869cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029870/* end confdefs.h. */
29871
29872/* Override any GCC internal prototype to avoid an error.
29873 Use char because int might match the return type of a GCC
29874 builtin and then its argument prototype would still apply. */
29875#ifdef __cplusplus
29876extern "C"
29877#endif
cristy71203402010-06-18 13:12:03 +000029878char cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000029879int
29880main ()
29881{
cristy71203402010-06-18 13:12:03 +000029882return cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000029883 ;
29884 return 0;
29885}
29886_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029887if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000029888 ac_cv_lib_lcms_cmsSetErrorHandler=yes
cristy3ed852e2009-09-05 21:47:34 +000029889else
cristy71203402010-06-18 13:12:03 +000029890 ac_cv_lib_lcms_cmsSetErrorHandler=no
cristy3ed852e2009-09-05 21:47:34 +000029891fi
cristy8b350f62009-11-15 23:12:43 +000029892rm -f core conftest.err conftest.$ac_objext \
29893 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029894LIBS=$ac_check_lib_save_LIBS
29895fi
cristy71203402010-06-18 13:12:03 +000029896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsSetErrorHandler" >&5
29897$as_echo "$ac_cv_lib_lcms_cmsSetErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000029898if test "x$ac_cv_lib_lcms_cmsSetErrorHandler" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029899 passed=`expr $passed + 1`
29900else
29901 failed=`expr $failed + 1`
29902fi
29903
cristy8b350f62009-11-15 23:12:43 +000029904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029905$as_echo_n "checking if LCMS package is complete... " >&6; }
29906 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000029907 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029908 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29909$as_echo "$as_me: no -- some components failed test" >&6;}
cristy71203402010-06-18 13:12:03 +000029910 have_lcms='no (failed tests)'
29911 else
29912 LCMS_LIBS='-llcms'
29913 LIBS="$LCMS_LIBS $LIBS"
cristy09b53e12011-10-14 12:47:22 +000029914 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29915$as_echo "$as_me: yes" >&6;}
cristy71203402010-06-18 13:12:03 +000029916 have_lcms='yes'
29917 fi
cristy3ed852e2009-09-05 21:47:34 +000029918 else
cristy09b53e12011-10-14 12:47:22 +000029919 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29920$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029921 fi
29922fi
cristy71203402010-06-18 13:12:03 +000029923
cristy73bd4a52010-10-05 11:24:23 +000029924 if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
29925 LCMS_DELEGATE_TRUE=
29926 LCMS_DELEGATE_FALSE='#'
29927else
29928 LCMS_DELEGATE_TRUE='#'
29929 LCMS_DELEGATE_FALSE=
29930fi
29931
cristy71203402010-06-18 13:12:03 +000029932if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
29933
29934$as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
29935
29936fi
29937
cristy3ed852e2009-09-05 21:47:34 +000029938
29939
29940
29941#
29942# Check for the LQR (Liquid Rescale) delegate library.
29943#
29944
29945# Check whether --with-lqr was given.
cristy8b350f62009-11-15 23:12:43 +000029946if test "${with_lqr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029947 withval=$with_lqr; with_lqr=$withval
29948else
29949 with_lqr='yes'
29950fi
29951
29952
29953if test "$with_lqr" != 'yes'; then
29954 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
29955fi
29956
29957have_lqr='no'
29958LQR_CFLAGS=""
29959LQR_LIBS=""
29960LQR_PKG=""
29961if test "x$with_lqr" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000029962 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29963$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000029964
29965pkg_failed=no
29966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
29967$as_echo_n "checking for LQR... " >&6; }
29968
29969if test -n "$LQR_CFLAGS"; then
29970 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
29971 elif test -n "$PKG_CONFIG"; then
29972 if test -n "$PKG_CONFIG" && \
29973 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
29974 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
29975 ac_status=$?
29976 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29977 test $ac_status = 0; }; then
29978 pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
29979else
29980 pkg_failed=yes
29981fi
29982 else
29983 pkg_failed=untried
29984fi
29985if test -n "$LQR_LIBS"; then
29986 pkg_cv_LQR_LIBS="$LQR_LIBS"
29987 elif test -n "$PKG_CONFIG"; then
29988 if test -n "$PKG_CONFIG" && \
29989 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
29990 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
29991 ac_status=$?
29992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29993 test $ac_status = 0; }; then
29994 pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
29995else
29996 pkg_failed=yes
29997fi
29998 else
29999 pkg_failed=untried
30000fi
30001
30002
30003
30004if test $pkg_failed = yes; then
30005
30006if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30007 _pkg_short_errors_supported=yes
30008else
30009 _pkg_short_errors_supported=no
30010fi
30011 if test $_pkg_short_errors_supported = yes; then
30012 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1`
30013 else
30014 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1`
30015 fi
30016 # Put the nasty error message in config.log where it belongs
30017 echo "$LQR_PKG_ERRORS" >&5
30018
30019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30020$as_echo "no" >&6; }
30021 have_lqr=no
30022elif test $pkg_failed = untried; then
30023 have_lqr=no
30024else
30025 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
30026 LQR_LIBS=$pkg_cv_LQR_LIBS
30027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30028$as_echo "yes" >&6; }
30029 have_lqr=yes
30030fi
cristy09b53e12011-10-14 12:47:22 +000030031 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30032$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030033fi
30034
30035if test "$have_lqr" = 'yes'; then
30036
cristy8b350f62009-11-15 23:12:43 +000030037$as_echo "#define LQR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030038
30039 CFLAGS="$LQR_CFLAGS $CFLAGS"
30040fi
30041
cristy73bd4a52010-10-05 11:24:23 +000030042 if test "$have_lqr" = 'yes'; then
30043 LQR_DELEGATE_TRUE=
30044 LQR_DELEGATE_FALSE='#'
30045else
30046 LQR_DELEGATE_TRUE='#'
30047 LQR_DELEGATE_FALSE=
30048fi
30049
cristy3ed852e2009-09-05 21:47:34 +000030050
30051
30052
30053
cristy81beccd2011-10-03 18:17:24 +000030054# Disable LZMA (lzma library)
cristyfbb0ef02010-12-19 02:32:11 +000030055
30056# Check whether --with-lzma was given.
30057if test "${with_lzma+set}" = set; then :
30058 withval=$with_lzma; with_lzma=$withval
30059else
30060 with_lzma='yes'
30061fi
30062
cristy81beccd2011-10-03 18:17:24 +000030063if test "$with_lzma" != 'yes' ; then
cristyfbb0ef02010-12-19 02:32:11 +000030064 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lzma=$with_lzma "
30065fi
30066
cristyb94e5002011-11-14 13:20:10 +000030067LZMA_PKG=""
30068if test "x$with_lzma" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000030069 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30070$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristyb94e5002011-11-14 13:20:10 +000030071
30072pkg_failed=no
30073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZMA" >&5
cristyfbb0ef02010-12-19 02:32:11 +000030074$as_echo_n "checking for LZMA... " >&6; }
cristyb94e5002011-11-14 13:20:10 +000030075
30076if test -n "$LZMA_CFLAGS"; then
30077 pkg_cv_LZMA_CFLAGS="$LZMA_CFLAGS"
30078 elif test -n "$PKG_CONFIG"; then
30079 if test -n "$PKG_CONFIG" && \
30080 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
30081 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
30082 ac_status=$?
30083 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30084 test $ac_status = 0; }; then
30085 pkg_cv_LZMA_CFLAGS=`$PKG_CONFIG --cflags "liblzma >= 2.9.0" 2>/dev/null`
30086else
30087 pkg_failed=yes
30088fi
30089 else
30090 pkg_failed=untried
30091fi
30092if test -n "$LZMA_LIBS"; then
30093 pkg_cv_LZMA_LIBS="$LZMA_LIBS"
30094 elif test -n "$PKG_CONFIG"; then
30095 if test -n "$PKG_CONFIG" && \
30096 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
30097 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
30098 ac_status=$?
30099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30100 test $ac_status = 0; }; then
30101 pkg_cv_LZMA_LIBS=`$PKG_CONFIG --libs "liblzma >= 2.9.0" 2>/dev/null`
30102else
30103 pkg_failed=yes
30104fi
30105 else
30106 pkg_failed=untried
30107fi
30108
30109
30110
30111if test $pkg_failed = yes; then
30112
30113if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30114 _pkg_short_errors_supported=yes
30115else
30116 _pkg_short_errors_supported=no
30117fi
30118 if test $_pkg_short_errors_supported = yes; then
30119 LZMA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "liblzma >= 2.9.0" 2>&1`
30120 else
30121 LZMA_PKG_ERRORS=`$PKG_CONFIG --print-errors "liblzma >= 2.9.0" 2>&1`
30122 fi
30123 # Put the nasty error message in config.log where it belongs
30124 echo "$LZMA_PKG_ERRORS" >&5
30125
30126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30127$as_echo "no" >&6; }
30128 have_lzma=no
30129elif test $pkg_failed = untried; then
30130 have_lzma=no
30131else
30132 LZMA_CFLAGS=$pkg_cv_LZMA_CFLAGS
30133 LZMA_LIBS=$pkg_cv_LZMA_LIBS
30134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30135$as_echo "yes" >&6; }
30136 have_lzma=yes
30137fi
30138 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
cristy09b53e12011-10-14 12:47:22 +000030139$as_echo "$as_me: " >&6;}
cristyfbb0ef02010-12-19 02:32:11 +000030140fi
30141
cristyb94e5002011-11-14 13:20:10 +000030142if test "$have_lzma" = 'yes'; then
cristyfbb0ef02010-12-19 02:32:11 +000030143
30144$as_echo "#define LZMA_DELEGATE 1" >>confdefs.h
30145
cristyc6722092012-10-14 00:19:31 +000030146 if test "$build_modules" = 'no'; then
cristyb94e5002011-11-14 13:20:10 +000030147 CPPFLAGS="$LZMA_CFLAGS $CPPFLAGS"
cristyfbb0ef02010-12-19 02:32:11 +000030148 fi
cristyfbb0ef02010-12-19 02:32:11 +000030149fi
cristyb94e5002011-11-14 13:20:10 +000030150
cristyfbb0ef02010-12-19 02:32:11 +000030151 if test "$have_lzma" = 'yes'; then
30152 LZMA_DELEGATE_TRUE=
30153 LZMA_DELEGATE_FALSE='#'
30154else
30155 LZMA_DELEGATE_TRUE='#'
30156 LZMA_DELEGATE_FALSE=
30157fi
30158
30159
30160
30161
cristyb94e5002011-11-14 13:20:10 +000030162
cristy3ed852e2009-09-05 21:47:34 +000030163#
30164# Check for the OpenEXR delegate library.
30165#
30166
30167# Check whether --with-openexr was given.
cristy8b350f62009-11-15 23:12:43 +000030168if test "${with_openexr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030169 withval=$with_openexr; with_openexr=$withval
30170else
30171 with_openexr='yes'
30172fi
30173
30174
30175if test "$with_openexr" != 'yes'; then
30176 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
30177fi
30178
30179have_openexr='no'
30180OPENEXR_CFLAGS=""
30181OPENEXR_LIBS=""
30182OPENEXR_PKG=""
30183if test "x$with_openexr" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000030184 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30185$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000030186
30187pkg_failed=no
30188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
30189$as_echo_n "checking for OPENEXR... " >&6; }
30190
30191if test -n "$OPENEXR_CFLAGS"; then
30192 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
30193 elif test -n "$PKG_CONFIG"; then
30194 if test -n "$PKG_CONFIG" && \
30195 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
30196 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
30197 ac_status=$?
30198 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30199 test $ac_status = 0; }; then
30200 pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
30201else
30202 pkg_failed=yes
30203fi
30204 else
30205 pkg_failed=untried
30206fi
30207if test -n "$OPENEXR_LIBS"; then
30208 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
30209 elif test -n "$PKG_CONFIG"; then
30210 if test -n "$PKG_CONFIG" && \
30211 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
30212 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
30213 ac_status=$?
30214 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30215 test $ac_status = 0; }; then
30216 pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
30217else
30218 pkg_failed=yes
30219fi
30220 else
30221 pkg_failed=untried
30222fi
30223
30224
30225
30226if test $pkg_failed = yes; then
30227
30228if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30229 _pkg_short_errors_supported=yes
30230else
30231 _pkg_short_errors_supported=no
30232fi
30233 if test $_pkg_short_errors_supported = yes; then
30234 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1`
30235 else
30236 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1`
30237 fi
30238 # Put the nasty error message in config.log where it belongs
30239 echo "$OPENEXR_PKG_ERRORS" >&5
30240
30241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30242$as_echo "no" >&6; }
30243 have_openexr=no
30244elif test $pkg_failed = untried; then
30245 have_openexr=no
30246else
30247 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
30248 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
30249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30250$as_echo "yes" >&6; }
30251 have_openexr=yes
30252fi
cristy09b53e12011-10-14 12:47:22 +000030253 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30254$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030255fi
30256
30257if test "$have_openexr" = 'yes'; then
30258
cristy8b350f62009-11-15 23:12:43 +000030259$as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030260
cristyc6722092012-10-14 00:19:31 +000030261 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000030262 CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
30263 fi
30264fi
30265
cristy73bd4a52010-10-05 11:24:23 +000030266 if test "$have_openexr" = 'yes'; then
30267 OPENEXR_DELEGATE_TRUE=
30268 OPENEXR_DELEGATE_FALSE='#'
30269else
30270 OPENEXR_DELEGATE_TRUE='#'
30271 OPENEXR_DELEGATE_FALSE=
30272fi
30273
cristy3ed852e2009-09-05 21:47:34 +000030274
30275
30276
30277
30278#
cristy41cbe8a2011-10-27 01:35:18 +000030279# Check for PANGO delegate library.
30280#
30281
30282# Check whether --with-pango was given.
30283if test "${with_pango+set}" = set; then :
30284 withval=$with_pango; with_pango=$withval
30285else
cristyfc3d0222012-02-07 15:05:57 +000030286 with_pango='yes'
cristy41cbe8a2011-10-27 01:35:18 +000030287fi
30288
30289
30290if test "$with_pango" != 'yes'; then
30291 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-pango=$with_pango "
30292fi
30293
30294have_pango='no'
cristya054b762012-03-26 23:16:00 +000030295have_pangocairo='no'
cristy41cbe8a2011-10-27 01:35:18 +000030296PANGO_CFLAGS=""
30297PANGO_LIBS=""
30298PANGO_PKG=""
30299if test "x$with_pango" = "xyes"; then
30300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30301$as_echo "-------------------------------------------------------------" >&6; }
30302
30303pkg_failed=no
30304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
30305$as_echo_n "checking for PANGO... " >&6; }
30306
30307if test -n "$PANGO_CFLAGS"; then
30308 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
30309 elif test -n "$PKG_CONFIG"; then
30310 if test -n "$PKG_CONFIG" && \
cristya054b762012-03-26 23:16:00 +000030311 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5
30312 ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5
cristy41cbe8a2011-10-27 01:35:18 +000030313 ac_status=$?
30314 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30315 test $ac_status = 0; }; then
cristya054b762012-03-26 23:16:00 +000030316 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pangocairo >= 1.28.1" 2>/dev/null`
cristy41cbe8a2011-10-27 01:35:18 +000030317else
30318 pkg_failed=yes
30319fi
30320 else
30321 pkg_failed=untried
30322fi
30323if test -n "$PANGO_LIBS"; then
30324 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
30325 elif test -n "$PKG_CONFIG"; then
30326 if test -n "$PKG_CONFIG" && \
cristya054b762012-03-26 23:16:00 +000030327 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5
30328 ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5
cristy41cbe8a2011-10-27 01:35:18 +000030329 ac_status=$?
30330 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30331 test $ac_status = 0; }; then
cristya054b762012-03-26 23:16:00 +000030332 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pangocairo >= 1.28.1" 2>/dev/null`
cristy41cbe8a2011-10-27 01:35:18 +000030333else
30334 pkg_failed=yes
30335fi
30336 else
30337 pkg_failed=untried
30338fi
30339
30340
30341
30342if test $pkg_failed = yes; then
30343
30344if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30345 _pkg_short_errors_supported=yes
30346else
30347 _pkg_short_errors_supported=no
30348fi
30349 if test $_pkg_short_errors_supported = yes; then
cristya054b762012-03-26 23:16:00 +000030350 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pangocairo >= 1.28.1" 2>&1`
cristy41cbe8a2011-10-27 01:35:18 +000030351 else
cristya054b762012-03-26 23:16:00 +000030352 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pangocairo >= 1.28.1" 2>&1`
cristy41cbe8a2011-10-27 01:35:18 +000030353 fi
30354 # Put the nasty error message in config.log where it belongs
30355 echo "$PANGO_PKG_ERRORS" >&5
30356
30357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30358$as_echo "no" >&6; }
cristya054b762012-03-26 23:16:00 +000030359 have_pangocairo=no
cristy41cbe8a2011-10-27 01:35:18 +000030360elif test $pkg_failed = untried; then
cristya054b762012-03-26 23:16:00 +000030361 have_pangocairo=no
cristy41cbe8a2011-10-27 01:35:18 +000030362else
30363 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
30364 PANGO_LIBS=$pkg_cv_PANGO_LIBS
30365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30366$as_echo "yes" >&6; }
cristya054b762012-03-26 23:16:00 +000030367 have_pangocairo=yes
cristy41cbe8a2011-10-27 01:35:18 +000030368fi
30369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30370$as_echo "" >&6; }
cristy7dc48ed2011-10-28 14:11:43 +000030371
30372pkg_failed=no
30373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
30374$as_echo_n "checking for PANGO... " >&6; }
30375
30376if test -n "$PANGO_CFLAGS"; then
30377 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
30378 elif test -n "$PKG_CONFIG"; then
30379 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000030380 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
30381 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
cristy7dc48ed2011-10-28 14:11:43 +000030382 ac_status=$?
30383 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30384 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000030385 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pango >= 1.28.1" 2>/dev/null`
cristy7dc48ed2011-10-28 14:11:43 +000030386else
30387 pkg_failed=yes
30388fi
30389 else
30390 pkg_failed=untried
30391fi
30392if test -n "$PANGO_LIBS"; then
30393 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
30394 elif test -n "$PKG_CONFIG"; then
30395 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000030396 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
30397 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
cristy7dc48ed2011-10-28 14:11:43 +000030398 ac_status=$?
30399 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30400 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000030401 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pango >= 1.28.1" 2>/dev/null`
cristy7dc48ed2011-10-28 14:11:43 +000030402else
30403 pkg_failed=yes
30404fi
30405 else
30406 pkg_failed=untried
30407fi
30408
30409
30410
30411if test $pkg_failed = yes; then
30412
30413if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30414 _pkg_short_errors_supported=yes
30415else
30416 _pkg_short_errors_supported=no
30417fi
30418 if test $_pkg_short_errors_supported = yes; then
cristy2542fc62011-12-06 17:50:25 +000030419 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pango >= 1.28.1" 2>&1`
cristy7dc48ed2011-10-28 14:11:43 +000030420 else
cristy2542fc62011-12-06 17:50:25 +000030421 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pango >= 1.28.1" 2>&1`
cristy7dc48ed2011-10-28 14:11:43 +000030422 fi
30423 # Put the nasty error message in config.log where it belongs
30424 echo "$PANGO_PKG_ERRORS" >&5
30425
30426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30427$as_echo "no" >&6; }
30428 have_pango=no
30429elif test $pkg_failed = untried; then
30430 have_pango=no
30431else
30432 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
30433 PANGO_LIBS=$pkg_cv_PANGO_LIBS
30434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30435$as_echo "yes" >&6; }
30436 have_pango=yes
30437fi
30438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30439$as_echo "" >&6; }
cristy41cbe8a2011-10-27 01:35:18 +000030440fi
30441
30442if test "$have_pango" = 'yes'; then
30443
30444$as_echo "#define PANGO_DELEGATE 1" >>confdefs.h
30445
cristyc6722092012-10-14 00:19:31 +000030446 if test "$build_modules" = 'no'; then
cristy41cbe8a2011-10-27 01:35:18 +000030447 CPPFLAGS="$PANGO_CFLAGS $CPPFLAGS"
30448 fi
30449fi
30450
cristya054b762012-03-26 23:16:00 +000030451if test "$have_pangocairo" = 'yes'; then
cristy41cbe8a2011-10-27 01:35:18 +000030452
cristya054b762012-03-26 23:16:00 +000030453$as_echo "#define PANGOCAIRO_DELEGATE 1" >>confdefs.h
cristy41cbe8a2011-10-27 01:35:18 +000030454
cristyc6722092012-10-14 00:19:31 +000030455 if test "$build_modules" = 'no'; then
cristya054b762012-03-26 23:16:00 +000030456 CPPFLAGS="$PANGOCAIRO_CFLAGS $CPPFLAGS"
cristy41cbe8a2011-10-27 01:35:18 +000030457 fi
30458fi
30459
30460 if test "$have_pango" = 'yes'; then
30461 PANGO_DELEGATE_TRUE=
30462 PANGO_DELEGATE_FALSE='#'
30463else
30464 PANGO_DELEGATE_TRUE='#'
30465 PANGO_DELEGATE_FALSE=
30466fi
30467
cristya054b762012-03-26 23:16:00 +000030468 if test "$have_pangocairo" = 'yes'; then
30469 PANGOCAIRO_DELEGATE_TRUE=
30470 PANGOCAIRO_DELEGATE_FALSE='#'
cristy41cbe8a2011-10-27 01:35:18 +000030471else
cristya054b762012-03-26 23:16:00 +000030472 PANGOCAIRO_DELEGATE_TRUE='#'
30473 PANGOCAIRO_DELEGATE_FALSE=
cristy41cbe8a2011-10-27 01:35:18 +000030474fi
30475
30476
30477
30478
30479
30480#
cristy3ed852e2009-09-05 21:47:34 +000030481# Check for PNG delegate library.
30482#
30483
30484# Check whether --with-png was given.
cristy8b350f62009-11-15 23:12:43 +000030485if test "${with_png+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030486 withval=$with_png; with_png=$withval
30487else
30488 with_png='yes'
30489fi
30490
30491
30492if test "$with_png" != 'yes'; then
30493 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
30494fi
30495
cristy81beccd2011-10-03 18:17:24 +000030496have_png='no'
30497PNG_LIBS=''
30498
30499if test "$with_png" != 'no' -a "$have_zlib" != 'no' ; then
cristy09b53e12011-10-14 12:47:22 +000030500 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30501$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy81beccd2011-10-03 18:17:24 +000030502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG support " >&5
30503$as_echo_n "checking for PNG support ... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000030504 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30505$as_echo "$as_me: " >&6;}
cristy81beccd2011-10-03 18:17:24 +000030506 failed=0
30507 passed=0
30508 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
30509if test "x$ac_cv_header_png_h" = xyes; then :
30510 passed=`expr $passed + 1`
30511else
30512 failed=`expr $failed + 1`
cristy64877302011-08-23 19:10:31 +000030513fi
30514
cristy81beccd2011-10-03 18:17:24 +000030515
30516
30517 if test $passed -gt 0; then
30518 for var in 5 4 2 '' ; do
cristy0615f0e2011-10-12 11:36:46 +000030519 if test "$have_png" = 'no' ; then
30520 if test "x${var}" = 'x' ; then
cristy81beccd2011-10-03 18:17:24 +000030521 pnglib='png'
30522 else
30523 pnglib="png1${var}"
30524 fi
30525
30526# Test for compatible LIBPNG library
30527 failed=0
30528 passed=0
cristy0615f0e2011-10-12 11:36:46 +000030529 if test "$with_png" = 'yes' -o "$with_png" = "libpng1${var}" ; then
cristy81beccd2011-10-03 18:17:24 +000030530 if test "${pnglib}" != 'png' ; then
30531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBPNG1${var} support " >&5
30532$as_echo_n "checking for LIBPNG1${var} support ... " >&6; }
30533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30534/* end confdefs.h. */
30535#include <stdio.h>
30536#include <stdlib.h>
30537#include <png.h>
30538
30539int
30540main ()
30541{
30542
30543#if PNG_LIBPNG_VER_MINOR != ${var}
30544#error LIBPNG library must be version 1${var}!
30545Kaboom, Kaboom
30546#endif
30547return 0;
30548
30549 ;
30550 return 0;
30551}
30552_ACEOF
30553if ac_fn_c_try_compile "$LINENO"; then :
30554 ac_cv_libpng_ok='yes'
30555else
30556 ac_cv_libpng_ok='no'
30557fi
30558rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30559 if test "$ac_cv_libpng_ok" = 'yes' ; then
30560 passed=`expr $passed + 1`
cristy09b53e12011-10-14 12:47:22 +000030561 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30562$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000030563 else
30564 failed=`expr $failed + 1`
cristy09b53e12011-10-14 12:47:22 +000030565 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
30566$as_echo "$as_me: no" >&6;}
cristy81beccd2011-10-03 18:17:24 +000030567 fi
30568 else
30569 passed=`expr $passed + 1`
cristy09b53e12011-10-14 12:47:22 +000030570 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30571$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000030572 fi
30573 fi
30574
30575 if test $passed -gt 0 -a $failed -le 0; then
30576 if test "1${var}" = '15' ; then
30577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng15" >&5
30578$as_echo_n "checking for png_get_io_ptr in -lpng15... " >&6; }
30579if ${ac_cv_lib_png15_png_get_io_ptr+:} false; then :
30580 $as_echo_n "(cached) " >&6
30581else
30582 ac_check_lib_save_LIBS=$LIBS
30583LIBS="-lpng15 $LIBS"
30584cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30585/* end confdefs.h. */
30586
30587/* Override any GCC internal prototype to avoid an error.
30588 Use char because int might match the return type of a GCC
30589 builtin and then its argument prototype would still apply. */
30590#ifdef __cplusplus
30591extern "C"
30592#endif
30593char png_get_io_ptr ();
30594int
30595main ()
30596{
30597return png_get_io_ptr ();
30598 ;
30599 return 0;
30600}
30601_ACEOF
30602if ac_fn_c_try_link "$LINENO"; then :
30603 ac_cv_lib_png15_png_get_io_ptr=yes
30604else
30605 ac_cv_lib_png15_png_get_io_ptr=no
30606fi
30607rm -f core conftest.err conftest.$ac_objext \
30608 conftest$ac_exeext conftest.$ac_ext
30609LIBS=$ac_check_lib_save_LIBS
30610fi
30611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_get_io_ptr" >&5
30612$as_echo "$ac_cv_lib_png15_png_get_io_ptr" >&6; }
30613if test "x$ac_cv_lib_png15_png_get_io_ptr" = xyes; then :
30614 passed=`expr $passed + 1`
30615else
30616 failed=`expr $failed + 1`
30617fi
30618
30619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng15" >&5
30620$as_echo_n "checking for png_longjmp in -lpng15... " >&6; }
30621if ${ac_cv_lib_png15_png_longjmp+:} false; then :
30622 $as_echo_n "(cached) " >&6
30623else
30624 ac_check_lib_save_LIBS=$LIBS
30625LIBS="-lpng15 $LIBS"
30626cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30627/* end confdefs.h. */
30628
30629/* Override any GCC internal prototype to avoid an error.
30630 Use char because int might match the return type of a GCC
30631 builtin and then its argument prototype would still apply. */
30632#ifdef __cplusplus
30633extern "C"
30634#endif
30635char png_longjmp ();
30636int
30637main ()
30638{
30639return png_longjmp ();
30640 ;
30641 return 0;
30642}
30643_ACEOF
30644if ac_fn_c_try_link "$LINENO"; then :
30645 ac_cv_lib_png15_png_longjmp=yes
30646else
30647 ac_cv_lib_png15_png_longjmp=no
30648fi
30649rm -f core conftest.err conftest.$ac_objext \
30650 conftest$ac_exeext conftest.$ac_ext
30651LIBS=$ac_check_lib_save_LIBS
30652fi
30653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_longjmp" >&5
30654$as_echo "$ac_cv_lib_png15_png_longjmp" >&6; }
30655if test "x$ac_cv_lib_png15_png_longjmp" = xyes; then :
30656 passed=`expr $passed + 1`
30657else
30658 failed=`expr $failed + 1`
30659fi
30660
30661 fi
30662 if test "1${var}" = '14' ; then
30663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng14" >&5
30664$as_echo_n "checking for png_get_io_ptr in -lpng14... " >&6; }
30665if ${ac_cv_lib_png14_png_get_io_ptr+:} false; then :
30666 $as_echo_n "(cached) " >&6
30667else
30668 ac_check_lib_save_LIBS=$LIBS
30669LIBS="-lpng14 $LIBS"
30670cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30671/* end confdefs.h. */
30672
30673/* Override any GCC internal prototype to avoid an error.
30674 Use char because int might match the return type of a GCC
30675 builtin and then its argument prototype would still apply. */
30676#ifdef __cplusplus
30677extern "C"
30678#endif
30679char png_get_io_ptr ();
30680int
30681main ()
30682{
30683return png_get_io_ptr ();
30684 ;
30685 return 0;
30686}
30687_ACEOF
30688if ac_fn_c_try_link "$LINENO"; then :
30689 ac_cv_lib_png14_png_get_io_ptr=yes
30690else
30691 ac_cv_lib_png14_png_get_io_ptr=no
30692fi
30693rm -f core conftest.err conftest.$ac_objext \
30694 conftest$ac_exeext conftest.$ac_ext
30695LIBS=$ac_check_lib_save_LIBS
30696fi
30697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_ptr" >&5
30698$as_echo "$ac_cv_lib_png14_png_get_io_ptr" >&6; }
30699if test "x$ac_cv_lib_png14_png_get_io_ptr" = xyes; then :
30700 passed=`expr $passed + 1`
30701else
30702 failed=`expr $failed + 1`
30703fi
30704
30705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_state in -lpng14" >&5
30706$as_echo_n "checking for png_get_io_state in -lpng14... " >&6; }
30707if ${ac_cv_lib_png14_png_get_io_state+:} false; then :
30708 $as_echo_n "(cached) " >&6
30709else
30710 ac_check_lib_save_LIBS=$LIBS
30711LIBS="-lpng14 $LIBS"
30712cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30713/* end confdefs.h. */
30714
30715/* Override any GCC internal prototype to avoid an error.
30716 Use char because int might match the return type of a GCC
30717 builtin and then its argument prototype would still apply. */
30718#ifdef __cplusplus
30719extern "C"
30720#endif
30721char png_get_io_state ();
30722int
30723main ()
30724{
30725return png_get_io_state ();
30726 ;
30727 return 0;
30728}
30729_ACEOF
30730if ac_fn_c_try_link "$LINENO"; then :
30731 ac_cv_lib_png14_png_get_io_state=yes
30732else
30733 ac_cv_lib_png14_png_get_io_state=no
30734fi
30735rm -f core conftest.err conftest.$ac_objext \
30736 conftest$ac_exeext conftest.$ac_ext
30737LIBS=$ac_check_lib_save_LIBS
30738fi
30739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_state" >&5
30740$as_echo "$ac_cv_lib_png14_png_get_io_state" >&6; }
30741if test "x$ac_cv_lib_png14_png_get_io_state" = xyes; then :
30742 passed=`expr $passed + 1`
30743else
30744 failed=`expr $failed + 1`
30745fi
30746
30747 fi
30748 if test "1${var}" = '12' ; then
30749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng12" >&5
30750$as_echo_n "checking for png_get_io_ptr in -lpng12... " >&6; }
30751if ${ac_cv_lib_png12_png_get_io_ptr+:} false; then :
30752 $as_echo_n "(cached) " >&6
30753else
30754 ac_check_lib_save_LIBS=$LIBS
30755LIBS="-lpng12 $LIBS"
30756cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30757/* end confdefs.h. */
30758
30759/* Override any GCC internal prototype to avoid an error.
30760 Use char because int might match the return type of a GCC
30761 builtin and then its argument prototype would still apply. */
30762#ifdef __cplusplus
30763extern "C"
30764#endif
30765char png_get_io_ptr ();
30766int
30767main ()
30768{
30769return png_get_io_ptr ();
30770 ;
30771 return 0;
30772}
30773_ACEOF
30774if ac_fn_c_try_link "$LINENO"; then :
30775 ac_cv_lib_png12_png_get_io_ptr=yes
30776else
30777 ac_cv_lib_png12_png_get_io_ptr=no
30778fi
30779rm -f core conftest.err conftest.$ac_objext \
30780 conftest$ac_exeext conftest.$ac_ext
30781LIBS=$ac_check_lib_save_LIBS
30782fi
30783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png12_png_get_io_ptr" >&5
30784$as_echo "$ac_cv_lib_png12_png_get_io_ptr" >&6; }
30785if test "x$ac_cv_lib_png12_png_get_io_ptr" = xyes; then :
30786 passed=`expr $passed + 1`
30787else
30788 failed=`expr $failed + 1`
30789fi
30790
30791 fi
30792 if test "1${var}" = '1' ; then
30793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5
30794$as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
30795if ${ac_cv_lib_png_png_get_io_ptr+:} false; then :
30796 $as_echo_n "(cached) " >&6
30797else
30798 ac_check_lib_save_LIBS=$LIBS
30799LIBS="-lpng $LIBS"
30800cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30801/* end confdefs.h. */
30802
30803/* Override any GCC internal prototype to avoid an error.
30804 Use char because int might match the return type of a GCC
30805 builtin and then its argument prototype would still apply. */
30806#ifdef __cplusplus
30807extern "C"
30808#endif
30809char png_get_io_ptr ();
30810int
30811main ()
30812{
30813return png_get_io_ptr ();
30814 ;
30815 return 0;
30816}
30817_ACEOF
30818if ac_fn_c_try_link "$LINENO"; then :
30819 ac_cv_lib_png_png_get_io_ptr=yes
30820else
30821 ac_cv_lib_png_png_get_io_ptr=no
30822fi
30823rm -f core conftest.err conftest.$ac_objext \
30824 conftest$ac_exeext conftest.$ac_ext
30825LIBS=$ac_check_lib_save_LIBS
30826fi
30827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5
30828$as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
30829if test "x$ac_cv_lib_png_png_get_io_ptr" = xyes; then :
30830 passed=`expr $passed + 1`
30831else
30832 failed=`expr $failed + 1`
30833fi
30834
30835 fi
30836 if test $passed -gt 0 -a $failed -le 0 ; then
30837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${pnglib} package is complete" >&5
30838$as_echo_n "checking if ${pnglib} package is complete... " >&6; }
30839 if test $passed -gt 0 ; then
30840 if test $failed -gt 0 ; then
cristy09b53e12011-10-14 12:47:22 +000030841 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
30842$as_echo "$as_me: no -- some components failed test" >&6;}
cristy81beccd2011-10-03 18:17:24 +000030843 have_png='no (failed tests)'
30844 else
30845 PNG_LIBS="-l${pnglib}"
30846 LIBS="$PNG_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000030847
cristy8b350f62009-11-15 23:12:43 +000030848$as_echo "#define PNG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030849
cristy09b53e12011-10-14 12:47:22 +000030850 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30851$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000030852 have_png='yes'
30853 fi
30854 fi
30855 fi
30856 fi
30857 fi
30858 done
30859 fi
cristy3ed852e2009-09-05 21:47:34 +000030860fi
cristy64877302011-08-23 19:10:31 +000030861
cristy73bd4a52010-10-05 11:24:23 +000030862 if test "$have_png" = 'yes'; then
30863 PNG_DELEGATE_TRUE=
30864 PNG_DELEGATE_FALSE='#'
30865else
30866 PNG_DELEGATE_TRUE='#'
30867 PNG_DELEGATE_FALSE=
30868fi
30869
cristy3ed852e2009-09-05 21:47:34 +000030870
cristy50d3f5c2011-09-10 20:09:06 +000030871
cristy3ed852e2009-09-05 21:47:34 +000030872
30873
30874#
30875# Check for RSVG delegate library.
30876#
30877
30878# Check whether --with-rsvg was given.
cristy8b350f62009-11-15 23:12:43 +000030879if test "${with_rsvg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030880 withval=$with_rsvg; with_rsvg=$withval
30881else
cristy1164d5f2012-08-15 00:58:25 +000030882 with_rsvg='no'
cristy3ed852e2009-09-05 21:47:34 +000030883fi
30884
30885
30886if test "$with_rsvg" != 'yes'; then
30887 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
30888fi
30889
30890have_rsvg='no'
30891have_cairo='no'
30892RSVG_CFLAGS=""
30893RSVG_LIBS=""
30894RSVG_PKG=""
30895if test "x$with_rsvg" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000030896 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30897$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000030898
30899pkg_failed=no
30900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
30901$as_echo_n "checking for RSVG... " >&6; }
30902
30903if test -n "$RSVG_CFLAGS"; then
30904 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
30905 elif test -n "$PKG_CONFIG"; then
30906 if test -n "$PKG_CONFIG" && \
30907 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
30908 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
30909 ac_status=$?
30910 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30911 test $ac_status = 0; }; then
30912 pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
30913else
30914 pkg_failed=yes
30915fi
30916 else
30917 pkg_failed=untried
30918fi
30919if test -n "$RSVG_LIBS"; then
30920 pkg_cv_RSVG_LIBS="$RSVG_LIBS"
30921 elif test -n "$PKG_CONFIG"; then
30922 if test -n "$PKG_CONFIG" && \
30923 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
30924 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
30925 ac_status=$?
30926 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30927 test $ac_status = 0; }; then
30928 pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
30929else
30930 pkg_failed=yes
30931fi
30932 else
30933 pkg_failed=untried
30934fi
30935
30936
30937
30938if test $pkg_failed = yes; then
30939
30940if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30941 _pkg_short_errors_supported=yes
30942else
30943 _pkg_short_errors_supported=no
30944fi
30945 if test $_pkg_short_errors_supported = yes; then
30946 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
30947 else
30948 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
30949 fi
30950 # Put the nasty error message in config.log where it belongs
30951 echo "$RSVG_PKG_ERRORS" >&5
30952
30953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30954$as_echo "no" >&6; }
30955 have_rsvg=no
30956elif test $pkg_failed = untried; then
30957 have_rsvg=no
30958else
30959 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
30960 RSVG_LIBS=$pkg_cv_RSVG_LIBS
30961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30962$as_echo "yes" >&6; }
30963 have_rsvg=yes
30964fi
cristy09b53e12011-10-14 12:47:22 +000030965 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30966$as_echo "$as_me: " >&6;}
cristy73bd4a52010-10-05 11:24:23 +000030967
30968pkg_failed=no
30969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
30970$as_echo_n "checking for CAIRO_SVG... " >&6; }
30971
30972if test -n "$CAIRO_SVG_CFLAGS"; then
30973 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
30974 elif test -n "$PKG_CONFIG"; then
30975 if test -n "$PKG_CONFIG" && \
30976 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
30977 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
30978 ac_status=$?
30979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30980 test $ac_status = 0; }; then
30981 pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
30982else
30983 pkg_failed=yes
30984fi
30985 else
30986 pkg_failed=untried
30987fi
30988if test -n "$CAIRO_SVG_LIBS"; then
30989 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
30990 elif test -n "$PKG_CONFIG"; then
30991 if test -n "$PKG_CONFIG" && \
30992 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
30993 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
30994 ac_status=$?
30995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30996 test $ac_status = 0; }; then
30997 pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
30998else
30999 pkg_failed=yes
31000fi
31001 else
31002 pkg_failed=untried
31003fi
31004
31005
31006
31007if test $pkg_failed = yes; then
31008
31009if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31010 _pkg_short_errors_supported=yes
31011else
31012 _pkg_short_errors_supported=no
31013fi
31014 if test $_pkg_short_errors_supported = yes; then
31015 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1`
31016 else
31017 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1`
31018 fi
31019 # Put the nasty error message in config.log where it belongs
31020 echo "$CAIRO_SVG_PKG_ERRORS" >&5
31021
31022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31023$as_echo "no" >&6; }
31024 have_cairo=no
31025elif test $pkg_failed = untried; then
31026 have_cairo=no
31027else
31028 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
31029 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
31030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31031$as_echo "yes" >&6; }
31032 have_cairo=yes
31033fi
cristy09b53e12011-10-14 12:47:22 +000031034 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31035$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000031036fi
31037
31038if test "$have_rsvg" = 'yes'; then
31039
cristy8b350f62009-11-15 23:12:43 +000031040$as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031041
cristyc6722092012-10-14 00:19:31 +000031042 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000031043 CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
31044 fi
31045fi
31046
31047if test "$have_cairo" = 'yes'; then
31048
cristy8b350f62009-11-15 23:12:43 +000031049$as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031050
cristyc6722092012-10-14 00:19:31 +000031051 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000031052 CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
31053 fi
31054fi
31055
cristy73bd4a52010-10-05 11:24:23 +000031056 if test "$have_rsvg" = 'yes'; then
31057 RSVG_DELEGATE_TRUE=
31058 RSVG_DELEGATE_FALSE='#'
31059else
31060 RSVG_DELEGATE_TRUE='#'
31061 RSVG_DELEGATE_FALSE=
31062fi
31063
31064 if test "$have_cairo" = 'yes'; then
31065 CAIRO_DELEGATE_TRUE=
31066 CAIRO_DELEGATE_FALSE='#'
31067else
31068 CAIRO_DELEGATE_TRUE='#'
31069 CAIRO_DELEGATE_FALSE=
31070fi
31071
cristy3ed852e2009-09-05 21:47:34 +000031072
31073
31074
31075
31076#
31077# Check for TIFF delegate library.
31078#
31079
31080# Check whether --with-tiff was given.
cristy8b350f62009-11-15 23:12:43 +000031081if test "${with_tiff+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031082 withval=$with_tiff; with_tiff=$withval
31083else
31084 with_tiff='yes'
31085fi
31086
31087
31088if test "$with_tiff" != 'yes'; then
31089 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
31090fi
31091
31092have_tiff='no'
31093TIFF_LIBS=''
31094if test "$with_tiff" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000031095 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
31096$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000031097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
cristy3ed852e2009-09-05 21:47:34 +000031098$as_echo_n "checking for TIFF... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000031099 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31100$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000031101 failed=0
31102 passed=0
cristy8b350f62009-11-15 23:12:43 +000031103 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031104if test "x$ac_cv_header_tiff_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031105 passed=`expr $passed + 1`
31106else
31107 failed=`expr $failed + 1`
31108fi
31109
31110
cristy8b350f62009-11-15 23:12:43 +000031111 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031112if test "x$ac_cv_header_tiffio_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031113 passed=`expr $passed + 1`
31114else
31115 failed=`expr $failed + 1`
31116fi
31117
31118
cristy8b350f62009-11-15 23:12:43 +000031119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031120$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031121if ${ac_cv_lib_tiff_TIFFOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031122 $as_echo_n "(cached) " >&6
31123else
31124 ac_check_lib_save_LIBS=$LIBS
31125LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031126cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031127/* end confdefs.h. */
31128
31129/* Override any GCC internal prototype to avoid an error.
31130 Use char because int might match the return type of a GCC
31131 builtin and then its argument prototype would still apply. */
31132#ifdef __cplusplus
31133extern "C"
31134#endif
31135char TIFFOpen ();
31136int
31137main ()
31138{
31139return TIFFOpen ();
31140 ;
31141 return 0;
31142}
31143_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031144if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031145 ac_cv_lib_tiff_TIFFOpen=yes
31146else
cristy8b350f62009-11-15 23:12:43 +000031147 ac_cv_lib_tiff_TIFFOpen=no
cristy3ed852e2009-09-05 21:47:34 +000031148fi
cristy8b350f62009-11-15 23:12:43 +000031149rm -f core conftest.err conftest.$ac_objext \
31150 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031151LIBS=$ac_check_lib_save_LIBS
31152fi
cristy8b350f62009-11-15 23:12:43 +000031153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000031154$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000031155if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031156 passed=`expr $passed + 1`
31157else
31158 failed=`expr $failed + 1`
31159fi
31160
cristy8b350f62009-11-15 23:12:43 +000031161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031162$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031163if ${ac_cv_lib_tiff_TIFFClientOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031164 $as_echo_n "(cached) " >&6
31165else
31166 ac_check_lib_save_LIBS=$LIBS
31167LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031168cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031169/* end confdefs.h. */
31170
31171/* Override any GCC internal prototype to avoid an error.
31172 Use char because int might match the return type of a GCC
31173 builtin and then its argument prototype would still apply. */
31174#ifdef __cplusplus
31175extern "C"
31176#endif
31177char TIFFClientOpen ();
31178int
31179main ()
31180{
31181return TIFFClientOpen ();
31182 ;
31183 return 0;
31184}
31185_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031186if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031187 ac_cv_lib_tiff_TIFFClientOpen=yes
31188else
cristy8b350f62009-11-15 23:12:43 +000031189 ac_cv_lib_tiff_TIFFClientOpen=no
cristy3ed852e2009-09-05 21:47:34 +000031190fi
cristy8b350f62009-11-15 23:12:43 +000031191rm -f core conftest.err conftest.$ac_objext \
31192 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031193LIBS=$ac_check_lib_save_LIBS
31194fi
cristy8b350f62009-11-15 23:12:43 +000031195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000031196$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000031197if test "x$ac_cv_lib_tiff_TIFFClientOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031198 passed=`expr $passed + 1`
31199else
31200 failed=`expr $failed + 1`
31201fi
31202
cristy8b350f62009-11-15 23:12:43 +000031203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031204$as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031205if ${ac_cv_lib_tiff_TIFFIsByteSwapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031206 $as_echo_n "(cached) " >&6
31207else
31208 ac_check_lib_save_LIBS=$LIBS
31209LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031210cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031211/* end confdefs.h. */
31212
31213/* Override any GCC internal prototype to avoid an error.
31214 Use char because int might match the return type of a GCC
31215 builtin and then its argument prototype would still apply. */
31216#ifdef __cplusplus
31217extern "C"
31218#endif
31219char TIFFIsByteSwapped ();
31220int
31221main ()
31222{
31223return TIFFIsByteSwapped ();
31224 ;
31225 return 0;
31226}
31227_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031228if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031229 ac_cv_lib_tiff_TIFFIsByteSwapped=yes
31230else
cristy8b350f62009-11-15 23:12:43 +000031231 ac_cv_lib_tiff_TIFFIsByteSwapped=no
cristy3ed852e2009-09-05 21:47:34 +000031232fi
cristy8b350f62009-11-15 23:12:43 +000031233rm -f core conftest.err conftest.$ac_objext \
31234 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031235LIBS=$ac_check_lib_save_LIBS
31236fi
cristy8b350f62009-11-15 23:12:43 +000031237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000031238$as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
cristyda16f162011-02-19 23:52:17 +000031239if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031240 passed=`expr $passed + 1`
31241else
31242 failed=`expr $failed + 1`
31243fi
31244
cristy8b350f62009-11-15 23:12:43 +000031245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031246$as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031247if ${ac_cv_lib_tiff_TIFFReadRGBATile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031248 $as_echo_n "(cached) " >&6
31249else
31250 ac_check_lib_save_LIBS=$LIBS
31251LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031252cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031253/* end confdefs.h. */
31254
31255/* Override any GCC internal prototype to avoid an error.
31256 Use char because int might match the return type of a GCC
31257 builtin and then its argument prototype would still apply. */
31258#ifdef __cplusplus
31259extern "C"
31260#endif
31261char TIFFReadRGBATile ();
31262int
31263main ()
31264{
31265return TIFFReadRGBATile ();
31266 ;
31267 return 0;
31268}
31269_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031270if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031271 ac_cv_lib_tiff_TIFFReadRGBATile=yes
31272else
cristy8b350f62009-11-15 23:12:43 +000031273 ac_cv_lib_tiff_TIFFReadRGBATile=no
cristy3ed852e2009-09-05 21:47:34 +000031274fi
cristy8b350f62009-11-15 23:12:43 +000031275rm -f core conftest.err conftest.$ac_objext \
31276 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031277LIBS=$ac_check_lib_save_LIBS
31278fi
cristy8b350f62009-11-15 23:12:43 +000031279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
cristy3ed852e2009-09-05 21:47:34 +000031280$as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
cristyda16f162011-02-19 23:52:17 +000031281if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031282 passed=`expr $passed + 1`
31283else
31284 failed=`expr $failed + 1`
31285fi
31286
cristy8b350f62009-11-15 23:12:43 +000031287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031288$as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031289if ${ac_cv_lib_tiff_TIFFReadRGBAStrip+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031290 $as_echo_n "(cached) " >&6
31291else
31292 ac_check_lib_save_LIBS=$LIBS
31293LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031294cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031295/* end confdefs.h. */
31296
31297/* Override any GCC internal prototype to avoid an error.
31298 Use char because int might match the return type of a GCC
31299 builtin and then its argument prototype would still apply. */
31300#ifdef __cplusplus
31301extern "C"
31302#endif
31303char TIFFReadRGBAStrip ();
31304int
31305main ()
31306{
31307return TIFFReadRGBAStrip ();
31308 ;
31309 return 0;
31310}
31311_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031312if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031313 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
31314else
cristy8b350f62009-11-15 23:12:43 +000031315 ac_cv_lib_tiff_TIFFReadRGBAStrip=no
cristy3ed852e2009-09-05 21:47:34 +000031316fi
cristy8b350f62009-11-15 23:12:43 +000031317rm -f core conftest.err conftest.$ac_objext \
31318 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031319LIBS=$ac_check_lib_save_LIBS
31320fi
cristy8b350f62009-11-15 23:12:43 +000031321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
cristy3ed852e2009-09-05 21:47:34 +000031322$as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
cristyda16f162011-02-19 23:52:17 +000031323if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031324 passed=`expr $passed + 1`
31325else
31326 failed=`expr $failed + 1`
31327fi
31328
cristy8b350f62009-11-15 23:12:43 +000031329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000031330$as_echo_n "checking if TIFF package is complete... " >&6; }
31331 if test $passed -gt 0; then
31332 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000031333 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
31334$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000031335 have_tiff='no (failed tests)'
31336 else
31337 TIFF_LIBS='-ltiff'
31338 LIBS="$TIFF_LIBS $LIBS"
31339
cristy8b350f62009-11-15 23:12:43 +000031340$as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031341
cristy09b53e12011-10-14 12:47:22 +000031342 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
31343$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000031344 have_tiff='yes'
cristy8b350f62009-11-15 23:12:43 +000031345 for ac_header in tiffconf.h
31346do :
31347 ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031348if test "x$ac_cv_header_tiffconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031349 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031350#define HAVE_TIFFCONF_H 1
cristy3ed852e2009-09-05 21:47:34 +000031351_ACEOF
31352
31353fi
31354
31355done
31356
cristy8b350f62009-11-15 23:12:43 +000031357 for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
cristy3f590e52011-11-14 14:29:44 +000031358 TIFFIsBigEndian TIFFReadEXIFDirectory TIFFSetErrorHandlerExt \
31359 TIFFSetTagExtender TIFFSetWarningHandlerExt \
31360 TIFFSwabArrayOfTriples
cristy8b350f62009-11-15 23:12:43 +000031361do :
31362 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
31363ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000031364if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000031365 cat >>confdefs.h <<_ACEOF
31366#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
31367_ACEOF
31368
31369fi
31370done
31371
31372 fi
31373 else
cristy09b53e12011-10-14 12:47:22 +000031374 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
31375$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000031376 fi
31377fi
cristy73bd4a52010-10-05 11:24:23 +000031378 if test "$have_tiff" = 'yes'; then
31379 TIFF_DELEGATE_TRUE=
31380 TIFF_DELEGATE_FALSE='#'
31381else
31382 TIFF_DELEGATE_TRUE='#'
31383 TIFF_DELEGATE_FALSE=
31384fi
31385
cristy3ed852e2009-09-05 21:47:34 +000031386
31387
31388
31389#
cristyb1860752011-03-14 00:27:46 +000031390# Check for WEBP delegate library.
31391#
31392
31393# Check whether --with-webp was given.
31394if test "${with_webp+set}" = set; then :
31395 withval=$with_webp; with_webp=$withval
31396else
31397 with_webp='yes'
31398fi
31399
31400
31401if test "$with_webp" != 'yes'; then
31402 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-webp=$with_webp "
31403fi
31404
31405have_webp='no'
31406WEBP_LIBS=''
31407if test "$with_webp" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000031408 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
31409$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristyb1860752011-03-14 00:27:46 +000031410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBP" >&5
31411$as_echo_n "checking for WEBP... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000031412 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31413$as_echo "$as_me: " >&6;}
cristyb1860752011-03-14 00:27:46 +000031414 failed=0
31415 passed=0
31416 ac_fn_c_check_header_mongrel "$LINENO" "webp/decode.h" "ac_cv_header_webp_decode_h" "$ac_includes_default"
31417if test "x$ac_cv_header_webp_decode_h" = xyes; then :
31418 passed=`expr $passed + 1`
31419else
31420 failed=`expr $failed + 1`
31421fi
31422
31423
31424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WebPDecodeRGB in -lwebp" >&5
31425$as_echo_n "checking for WebPDecodeRGB in -lwebp... " >&6; }
31426if ${ac_cv_lib_webp_WebPDecodeRGB+:} false; then :
31427 $as_echo_n "(cached) " >&6
31428else
31429 ac_check_lib_save_LIBS=$LIBS
31430LIBS="-lwebp $LIBS"
31431cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31432/* end confdefs.h. */
31433
31434/* Override any GCC internal prototype to avoid an error.
31435 Use char because int might match the return type of a GCC
31436 builtin and then its argument prototype would still apply. */
31437#ifdef __cplusplus
31438extern "C"
31439#endif
31440char WebPDecodeRGB ();
31441int
31442main ()
31443{
31444return WebPDecodeRGB ();
31445 ;
31446 return 0;
31447}
31448_ACEOF
31449if ac_fn_c_try_link "$LINENO"; then :
31450 ac_cv_lib_webp_WebPDecodeRGB=yes
31451else
31452 ac_cv_lib_webp_WebPDecodeRGB=no
31453fi
31454rm -f core conftest.err conftest.$ac_objext \
31455 conftest$ac_exeext conftest.$ac_ext
31456LIBS=$ac_check_lib_save_LIBS
31457fi
31458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_webp_WebPDecodeRGB" >&5
31459$as_echo "$ac_cv_lib_webp_WebPDecodeRGB" >&6; }
31460if test "x$ac_cv_lib_webp_WebPDecodeRGB" = xyes; then :
31461 passed=`expr $passed + 1`
31462else
31463 failed=`expr $failed + 1`
31464fi
31465
31466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WEBP package is complete" >&5
31467$as_echo_n "checking if WEBP package is complete... " >&6; }
31468 if test $passed -gt 0; then
31469 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000031470 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
31471$as_echo "$as_me: no -- some components failed test" >&6;}
cristyb1860752011-03-14 00:27:46 +000031472 have_webp='no (failed tests)'
31473 else
31474 WEBP_LIBS='-lwebp'
31475 LIBS="$WEBP_LIBS $LIBS"
31476
31477$as_echo "#define WEBP_DELEGATE 1" >>confdefs.h
31478
cristy09b53e12011-10-14 12:47:22 +000031479 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
31480$as_echo "$as_me: yes" >&6;}
cristyb1860752011-03-14 00:27:46 +000031481 have_webp='yes'
31482 fi
31483 else
cristy09b53e12011-10-14 12:47:22 +000031484 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
31485$as_echo "$as_me: no" >&6;}
cristyb1860752011-03-14 00:27:46 +000031486 fi
31487fi
31488 if test "$have_webp" = 'yes'; then
31489 WEBP_DELEGATE_TRUE=
31490 WEBP_DELEGATE_FALSE='#'
31491else
31492 WEBP_DELEGATE_TRUE='#'
31493 WEBP_DELEGATE_FALSE=
31494fi
31495
31496
31497
31498
31499#
cristy3ed852e2009-09-05 21:47:34 +000031500# Set Windows font directory.
31501#
31502
31503# Check whether --with-windows-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000031504if test "${with_windows_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031505 withval=$with_windows_font_dir; with_windows_font_dir=$withval
31506else
31507 with_windows_font_dir=''
31508fi
31509
31510if test "$with_windows_font_dir" != '' ; then
31511 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
31512fi
31513
31514
31515#
31516# Check for WMF delegate library.
31517#
31518
31519# Check whether --with-wmf was given.
cristy8b350f62009-11-15 23:12:43 +000031520if test "${with_wmf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031521 withval=$with_wmf; with_wmf=$withval
31522else
cristyfc3d0222012-02-07 15:05:57 +000031523 with_wmf='no'
cristy3ed852e2009-09-05 21:47:34 +000031524fi
31525
31526
31527if test "$with_wmf" != 'yes'; then
31528 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
31529fi
31530
31531have_wmf='no'
31532WMF_LIBS=''
cristy03f7cf92011-12-15 01:40:41 +000031533WMF_LIBS_DEPS=''
31534OLIBS="$LIBS"
cristy3ed852e2009-09-05 21:47:34 +000031535if test "$with_wmf" != 'no'; then
cristy03f7cf92011-12-15 01:40:41 +000031536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31537$as_echo "-------------------------------------------------------------" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000031538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5
cristy3ed852e2009-09-05 21:47:34 +000031539$as_echo_n "checking for WMF... " >&6; }
cristy03f7cf92011-12-15 01:40:41 +000031540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31541$as_echo "" >&6; }
31542 have_libwmf='no'
31543 have_libwmflite='no'
31544 have_libwmf_ipa_h='no'
31545
31546 ac_fn_c_check_header_compile "$LINENO" "libwmf/ipa.h" "ac_cv_header_libwmf_ipa_h" "$FT2BUILD_H
31547"
31548if test "x$ac_cv_header_libwmf_ipa_h" = xyes; then :
31549 have_libwmf_ipa_h='yes'
cristy3ed852e2009-09-05 21:47:34 +000031550fi
31551
31552
cristy03f7cf92011-12-15 01:40:41 +000031553 if test "$have_libwmf_ipa_h" = 'yes'; then
31554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_lite_create in -lwmflite" >&5
31555$as_echo_n "checking for wmf_lite_create in -lwmflite... " >&6; }
31556if ${ac_cv_lib_wmflite_wmf_lite_create+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031557 $as_echo_n "(cached) " >&6
31558else
31559 ac_check_lib_save_LIBS=$LIBS
cristy03f7cf92011-12-15 01:40:41 +000031560LIBS="-lwmflite $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031561cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031562/* end confdefs.h. */
31563
31564/* Override any GCC internal prototype to avoid an error.
31565 Use char because int might match the return type of a GCC
31566 builtin and then its argument prototype would still apply. */
31567#ifdef __cplusplus
31568extern "C"
31569#endif
cristy03f7cf92011-12-15 01:40:41 +000031570char wmf_lite_create ();
cristy3ed852e2009-09-05 21:47:34 +000031571int
31572main ()
31573{
cristy03f7cf92011-12-15 01:40:41 +000031574return wmf_lite_create ();
cristy3ed852e2009-09-05 21:47:34 +000031575 ;
31576 return 0;
31577}
31578_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031579if ac_fn_c_try_link "$LINENO"; then :
cristy03f7cf92011-12-15 01:40:41 +000031580 ac_cv_lib_wmflite_wmf_lite_create=yes
cristy3ed852e2009-09-05 21:47:34 +000031581else
cristy03f7cf92011-12-15 01:40:41 +000031582 ac_cv_lib_wmflite_wmf_lite_create=no
cristy3ed852e2009-09-05 21:47:34 +000031583fi
cristy8b350f62009-11-15 23:12:43 +000031584rm -f core conftest.err conftest.$ac_objext \
31585 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031586LIBS=$ac_check_lib_save_LIBS
31587fi
cristy03f7cf92011-12-15 01:40:41 +000031588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmflite_wmf_lite_create" >&5
31589$as_echo "$ac_cv_lib_wmflite_wmf_lite_create" >&6; }
31590if test "x$ac_cv_lib_wmflite_wmf_lite_create" = xyes; then :
31591 have_libwmflite='yes'
cristy9243a2d2011-08-22 17:32:32 +000031592fi
31593
cristy03f7cf92011-12-15 01:40:41 +000031594 if test "$have_libwmflite" = 'yes'; then
31595
31596$as_echo "#define WMFLITE_DELEGATE 1" >>confdefs.h
31597
31598 WMF_LIBS='-lwmflite'
glennrp33e524b2011-08-24 17:41:57 +000031599 LIBS="$WMF_LIBS $LIBS"
cristy03f7cf92011-12-15 01:40:41 +000031600 have_wmf='yes'
31601 else
31602 WMF_LIBS_DEPS=''
31603 WMF_CONFIG_LIBS=`libwmf-config --libs`
31604 for lib in xml2 expat freetype jpeg png z; do
31605 testlib="-l${lib}"
31606 echo "$WMF_CONFIG_LIBS" | grep -- "$testlib" > /dev/null && WMF_LIBS_DEPS="$WMF_LIBS_DEPS $testlib"
31607 done
31608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_api_create in -lwmf" >&5
31609$as_echo_n "checking for wmf_api_create in -lwmf... " >&6; }
31610if ${ac_cv_lib_wmf_wmf_api_create+:} false; then :
31611 $as_echo_n "(cached) " >&6
31612else
31613 ac_check_lib_save_LIBS=$LIBS
31614LIBS="-lwmf $WMF_LIBS_DEPS $LIBS"
31615cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31616/* end confdefs.h. */
31617
31618/* Override any GCC internal prototype to avoid an error.
31619 Use char because int might match the return type of a GCC
31620 builtin and then its argument prototype would still apply. */
31621#ifdef __cplusplus
31622extern "C"
31623#endif
31624char wmf_api_create ();
31625int
31626main ()
31627{
31628return wmf_api_create ();
31629 ;
31630 return 0;
31631}
31632_ACEOF
31633if ac_fn_c_try_link "$LINENO"; then :
31634 ac_cv_lib_wmf_wmf_api_create=yes
31635else
31636 ac_cv_lib_wmf_wmf_api_create=no
31637fi
31638rm -f core conftest.err conftest.$ac_objext \
31639 conftest$ac_exeext conftest.$ac_ext
31640LIBS=$ac_check_lib_save_LIBS
31641fi
31642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_api_create" >&5
31643$as_echo "$ac_cv_lib_wmf_wmf_api_create" >&6; }
31644if test "x$ac_cv_lib_wmf_wmf_api_create" = xyes; then :
31645 have_libwmf='yes'
31646fi
31647
31648 if test "$have_libwmf" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000031649
cristy8b350f62009-11-15 23:12:43 +000031650$as_echo "#define WMF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031651
cristy03f7cf92011-12-15 01:40:41 +000031652 WMF_LIBS='-lwmf'
31653 LIBS="$WMF_LIBS $LIBS"
31654 have_wmf='yes'
31655 else
31656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
31657$as_echo "no -- some components failed test" >&6; }
31658 have_wmf='no (failed tests)'
31659 have_wmflite='no (failed tests)'
31660 LIBS="$OLIBS"
31661 WMF_LIBS=''
31662 fi
glennrp33e524b2011-08-24 17:41:57 +000031663 fi
cristy03f7cf92011-12-15 01:40:41 +000031664 fi
31665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5
31666$as_echo_n "checking if WMF package is complete... " >&6; }
31667 if test "$have_wmf" = 'yes'; then
31668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31669$as_echo "yes" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000031670 else
cristy03f7cf92011-12-15 01:40:41 +000031671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31672$as_echo "no" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000031673 fi
cristy3ed852e2009-09-05 21:47:34 +000031674fi
cristy73bd4a52010-10-05 11:24:23 +000031675 if test "$have_wmf" = 'yes'; then
31676 WMF_DELEGATE_TRUE=
31677 WMF_DELEGATE_FALSE='#'
31678else
31679 WMF_DELEGATE_TRUE='#'
31680 WMF_DELEGATE_FALSE=
31681fi
31682
cristy3ed852e2009-09-05 21:47:34 +000031683
31684
31685
cristy81beccd2011-10-03 18:17:24 +000031686
31687
cristy3ed852e2009-09-05 21:47:34 +000031688#
31689# Check for XML delegate library.
31690#
31691
31692# Check whether --with-xml was given.
cristy8b350f62009-11-15 23:12:43 +000031693if test "${with_xml+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031694 withval=$with_xml; with_xml=$withval
31695else
cristyfc3d0222012-02-07 15:05:57 +000031696 with_xml='yes'
cristy3ed852e2009-09-05 21:47:34 +000031697fi
31698
31699
cristy81beccd2011-10-03 18:17:24 +000031700if test "$with_xml" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000031701 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
31702fi
31703
cristy81beccd2011-10-03 18:17:24 +000031704have_xml='no'
31705XML_LIBS=''
31706if test "$with_xml" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000031707 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
31708$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy81beccd2011-10-03 18:17:24 +000031709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
31710$as_echo_n "checking for XML... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000031711 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31712$as_echo "$as_me: " >&6;}
cristy81beccd2011-10-03 18:17:24 +000031713 PERSIST_LDFLAGS=$LDFLAGS
31714 PERSIST_CPPFLAGS=$CPPFLAGS
31715 xml2_config=''
31716 # Extract the first word of "xml2-config", so it can be a program name with args.
31717set dummy xml2-config; ac_word=$2
31718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31719$as_echo_n "checking for $ac_word... " >&6; }
31720if ${ac_cv_path_xml2_config+:} false; then :
31721 $as_echo_n "(cached) " >&6
31722else
31723 case $xml2_config in
31724 [\\/]* | ?:[\\/]*)
31725 ac_cv_path_xml2_config="$xml2_config" # Let the user override the test with a path.
31726 ;;
31727 *)
31728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31729for as_dir in $PATH
31730do
31731 IFS=$as_save_IFS
31732 test -z "$as_dir" && as_dir=.
31733 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000031734 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy81beccd2011-10-03 18:17:24 +000031735 ac_cv_path_xml2_config="$as_dir/$ac_word$ac_exec_ext"
31736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31737 break 2
31738 fi
31739done
31740 done
31741IFS=$as_save_IFS
31742
31743 ;;
31744esac
31745fi
31746xml2_config=$ac_cv_path_xml2_config
31747if test -n "$xml2_config"; then
31748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5
31749$as_echo "$xml2_config" >&6; }
31750else
31751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31752$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031753fi
31754
cristy81beccd2011-10-03 18:17:24 +000031755 if test -n "$xml2_config"; then
31756 # Debian installs libxml headers under /usr/include/libxml2/libxml with
31757 # the shared library installed under /usr/lib, whereas the package
31758 # installs itself under $prefix/libxml and $prefix/lib.
31759 xml2_prefix=`xml2-config --prefix`
31760 if test -d "${xml2_prefix}/include/libxml2"; then
31761 CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
31762 fi
31763 if test "${xml2_prefix}" != '/usr'; then
31764 LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
31765 fi
31766 fi
31767 failed=0
31768 passed=0
31769 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
31770if test "x$ac_cv_header_libxml_parser_h" = xyes; then :
31771 passed=`expr $passed + 1`
31772else
31773 failed=`expr $failed + 1`
31774fi
31775
31776
31777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSAXVersion in -lxml2" >&5
31778$as_echo_n "checking for xmlSAXVersion in -lxml2... " >&6; }
31779if ${ac_cv_lib_xml2_xmlSAXVersion+:} false; then :
31780 $as_echo_n "(cached) " >&6
31781else
31782 ac_check_lib_save_LIBS=$LIBS
31783LIBS="-lxml2 $LIBS"
31784cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31785/* end confdefs.h. */
31786
31787/* Override any GCC internal prototype to avoid an error.
31788 Use char because int might match the return type of a GCC
31789 builtin and then its argument prototype would still apply. */
31790#ifdef __cplusplus
31791extern "C"
31792#endif
31793char xmlSAXVersion ();
31794int
31795main ()
31796{
31797return xmlSAXVersion ();
31798 ;
31799 return 0;
31800}
31801_ACEOF
31802if ac_fn_c_try_link "$LINENO"; then :
31803 ac_cv_lib_xml2_xmlSAXVersion=yes
31804else
31805 ac_cv_lib_xml2_xmlSAXVersion=no
31806fi
31807rm -f core conftest.err conftest.$ac_objext \
31808 conftest$ac_exeext conftest.$ac_ext
31809LIBS=$ac_check_lib_save_LIBS
31810fi
31811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSAXVersion" >&5
31812$as_echo "$ac_cv_lib_xml2_xmlSAXVersion" >&6; }
31813if test "x$ac_cv_lib_xml2_xmlSAXVersion" = xyes; then :
31814 passed=`expr $passed + 1`
31815else
31816 failed=`expr $failed + 1`
31817fi
31818
31819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseChunk in -lxml2" >&5
31820$as_echo_n "checking for xmlParseChunk in -lxml2... " >&6; }
31821if ${ac_cv_lib_xml2_xmlParseChunk+:} false; then :
31822 $as_echo_n "(cached) " >&6
31823else
31824 ac_check_lib_save_LIBS=$LIBS
31825LIBS="-lxml2 $LIBS"
31826cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31827/* end confdefs.h. */
31828
31829/* Override any GCC internal prototype to avoid an error.
31830 Use char because int might match the return type of a GCC
31831 builtin and then its argument prototype would still apply. */
31832#ifdef __cplusplus
31833extern "C"
31834#endif
31835char xmlParseChunk ();
31836int
31837main ()
31838{
31839return xmlParseChunk ();
31840 ;
31841 return 0;
31842}
31843_ACEOF
31844if ac_fn_c_try_link "$LINENO"; then :
31845 ac_cv_lib_xml2_xmlParseChunk=yes
31846else
31847 ac_cv_lib_xml2_xmlParseChunk=no
31848fi
31849rm -f core conftest.err conftest.$ac_objext \
31850 conftest$ac_exeext conftest.$ac_ext
31851LIBS=$ac_check_lib_save_LIBS
31852fi
31853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseChunk" >&5
31854$as_echo "$ac_cv_lib_xml2_xmlParseChunk" >&6; }
31855if test "x$ac_cv_lib_xml2_xmlParseChunk" = xyes; then :
31856 passed=`expr $passed + 1`
31857else
31858 failed=`expr $failed + 1`
31859fi
31860
31861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlCreatePushParserCtxt in -lxml2" >&5
31862$as_echo_n "checking for xmlCreatePushParserCtxt in -lxml2... " >&6; }
31863if ${ac_cv_lib_xml2_xmlCreatePushParserCtxt+:} false; then :
31864 $as_echo_n "(cached) " >&6
31865else
31866 ac_check_lib_save_LIBS=$LIBS
31867LIBS="-lxml2 $LIBS"
31868cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31869/* end confdefs.h. */
31870
31871/* Override any GCC internal prototype to avoid an error.
31872 Use char because int might match the return type of a GCC
31873 builtin and then its argument prototype would still apply. */
31874#ifdef __cplusplus
31875extern "C"
31876#endif
31877char xmlCreatePushParserCtxt ();
31878int
31879main ()
31880{
31881return xmlCreatePushParserCtxt ();
31882 ;
31883 return 0;
31884}
31885_ACEOF
31886if ac_fn_c_try_link "$LINENO"; then :
31887 ac_cv_lib_xml2_xmlCreatePushParserCtxt=yes
31888else
31889 ac_cv_lib_xml2_xmlCreatePushParserCtxt=no
31890fi
31891rm -f core conftest.err conftest.$ac_objext \
31892 conftest$ac_exeext conftest.$ac_ext
31893LIBS=$ac_check_lib_save_LIBS
31894fi
31895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&5
31896$as_echo "$ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&6; }
31897if test "x$ac_cv_lib_xml2_xmlCreatePushParserCtxt" = xyes; then :
31898 passed=`expr $passed + 1`
31899else
31900 failed=`expr $failed + 1`
31901fi
31902
31903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5
31904$as_echo_n "checking if XML package is complete... " >&6; }
31905 if test $passed -gt 0; then
31906 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000031907 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
31908$as_echo "$as_me: no -- some components failed test" >&6;}
cristy81beccd2011-10-03 18:17:24 +000031909 have_xml='no (failed tests)'
31910 LDFLAGS="$PERSIST_LDFLAGS"
31911 CPPFLAGS="$PERSIST_CPPFLAGS"
31912 else
31913 XML_LIBS='-lxml2'
31914 LIBS="$XML_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000031915
cristy8b350f62009-11-15 23:12:43 +000031916$as_echo "#define XML_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031917
cristy09b53e12011-10-14 12:47:22 +000031918 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
31919$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000031920 have_xml='yes'
31921 fi
31922 else
cristy09b53e12011-10-14 12:47:22 +000031923 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
31924$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000031925 fi
31926fi
cristy73bd4a52010-10-05 11:24:23 +000031927 if test "$have_xml" = 'yes'; then
31928 XML_DELEGATE_TRUE=
31929 XML_DELEGATE_FALSE='#'
31930else
31931 XML_DELEGATE_TRUE='#'
31932 XML_DELEGATE_FALSE=
31933fi
31934
cristy3ed852e2009-09-05 21:47:34 +000031935
31936
31937
31938# Substitute compiler name to build/link PerlMagick
31939#
31940
31941
31942#
31943# Configure install Paths
31944#
cristy7def36a2011-10-28 19:04:41 +000031945
cristy2a11bef2011-10-28 18:33:11 +000031946# Path to ImageMagick header files
31947INCLUDE_RELATIVE_PATH="ImageMagick"
cristy670aa3c2011-11-03 00:54:00 +000031948INCLUDE_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}"
31949DEFINE_INCLUDE_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}/"
cristy2a11bef2011-10-28 18:33:11 +000031950case "${build_os}" in
31951 mingw* )
31952 DEFINE_INCLUDE_PATH=`$WinPathScript "$DEFINE_INCLUDE_PATH" 1`
31953 ;;
31954esac
31955
31956cat >>confdefs.h <<_ACEOF
31957#define INCLUDE_PATH "$DEFINE_INCLUDE_PATH"
31958_ACEOF
31959
31960
cristy3ed852e2009-09-05 21:47:34 +000031961
31962# Subdirectory under lib to place ImageMagick lib files
31963LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
31964
31965cat >>confdefs.h <<_ACEOF
31966#define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
31967_ACEOF
31968
31969
31970# Path to ImageMagick bin directory
31971EXECUTABLE_PATH="${BIN_DIR}"
31972DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
31973case "${build_os}" in
31974 mingw* )
31975 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
31976 ;;
31977esac
31978
31979cat >>confdefs.h <<_ACEOF
31980#define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
31981_ACEOF
31982
31983
31984
31985# Path to ImageMagick lib
31986LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
31987DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
31988case "${build_os}" in
31989 mingw* )
31990 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
31991 ;;
31992esac
31993
31994cat >>confdefs.h <<_ACEOF
31995#define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
31996_ACEOF
31997
31998
31999
cristy3ed852e2009-09-05 21:47:34 +000032000#
cristy01ff9f32012-12-01 18:15:29 +000032001# path to modules lib
32002if test "x$MODULES_BASEDIRNAME" = "x"; then
32003 MODULES_BASEDIRNAME="modules"
32004fi
cristy3ed852e2009-09-05 21:47:34 +000032005
32006cat >>confdefs.h <<_ACEOF
cristy01ff9f32012-12-01 18:15:29 +000032007#define MODULES_BASEDIRNAME "$MODULES_BASEDIRNAME"
cristy3ed852e2009-09-05 21:47:34 +000032008_ACEOF
32009
cristy01ff9f32012-12-01 18:15:29 +000032010
32011
32012if test "x$MODULES_DIRNAME" = "x"; then
32013 MODULES_DIRNAME=${MODULES_BASEDIRNAME}-${MAGICK_ABISUFFIX}
32014else
32015 # not defined by default
cristy3ed852e2009-09-05 21:47:34 +000032016
32017cat >>confdefs.h <<_ACEOF
cristy01ff9f32012-12-01 18:15:29 +000032018#define MODULES_DIRNAME "$MODULES_DIRNAME"
cristy3ed852e2009-09-05 21:47:34 +000032019_ACEOF
32020
cristy01ff9f32012-12-01 18:15:29 +000032021fi
32022
32023
cristy371d4812012-12-01 19:48:10 +000032024MODULES_RELATIVE_PATH="${MODULES_DIRNAME}"
cristy01ff9f32012-12-01 18:15:29 +000032025
32026MODULES_PATH="${LIBRARY_PATH}/${MODULES_RELATIVE_PATH}"
32027
32028
32029#
32030# path to coders lib
32031if test "x$CODER_DIRNAME" = "x"; then
32032 CODER_DIRNAME="coders"
32033fi
32034
32035cat >>confdefs.h <<_ACEOF
32036#define CODER_DIRNAME "$CODER_DIRNAME"
32037_ACEOF
32038
32039
32040
cristy371d4812012-12-01 19:48:10 +000032041CODER_RELATIVE_PATH="${CODER_DIRNAME}"
cristy01ff9f32012-12-01 18:15:29 +000032042CODER_PATH="${MODULES_PATH}/${CODER_DIRNAME}"
cristy3ed852e2009-09-05 21:47:34 +000032043
32044
32045#
32046# Subdirectory under lib to place ImageMagick filter module files
cristy01ff9f32012-12-01 18:15:29 +000032047#
32048# path to coders lib
32049if test "x$FILTER_DIRNAME" = "x"; then
32050 FILTER_DIRNAME="filters"
32051fi
cristy3ed852e2009-09-05 21:47:34 +000032052
32053cat >>confdefs.h <<_ACEOF
cristy01ff9f32012-12-01 18:15:29 +000032054#define FILTER_DIRNAME "$FILTER_DIRNAME"
cristy3ed852e2009-09-05 21:47:34 +000032055_ACEOF
32056
cristy3ed852e2009-09-05 21:47:34 +000032057
cristy3ed852e2009-09-05 21:47:34 +000032058
cristy371d4812012-12-01 19:48:10 +000032059FILTER_RELATIVE_PATH="${FILTER_DIRNAME}"
cristy01ff9f32012-12-01 18:15:29 +000032060FILTER_PATH="${MODULES_PATH}/${FILTER_DIRNAME}"
cristy3ed852e2009-09-05 21:47:34 +000032061
32062
32063#
32064# Path to ImageMagick documentation files
cristy4e65ec22012-04-08 01:33:27 +000032065DOCUMENTATION_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
cristyd55889c2011-03-27 00:50:24 +000032066DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}"
32067DEFINE_DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000032068case "${build_os}" in
32069 mingw* )
32070 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
32071 ;;
32072esac
32073
32074cat >>confdefs.h <<_ACEOF
32075#define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
32076_ACEOF
32077
32078
32079
cristy2a11bef2011-10-28 18:33:11 +000032080# Subdirectory to place architecture-dependent configuration files
cristyba0f1972011-03-28 12:42:52 +000032081CONFIGURE_RELATIVE_PATH="${PACKAGE_NAME}"
cristy45dbd322011-03-27 16:40:38 +000032082
32083cat >>confdefs.h <<_ACEOF
32084#define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
32085_ACEOF
32086
cristy7def36a2011-10-28 19:04:41 +000032087CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
cristy45dbd322011-03-27 16:40:38 +000032088DEFINE_CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
32089case "${build_os}" in
32090 mingw* )
32091 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
32092 ;;
32093esac
32094
32095cat >>confdefs.h <<_ACEOF
32096#define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
32097_ACEOF
32098
32099
32100
cristy2a11bef2011-10-28 18:33:11 +000032101# Subdirectory to place architecture-independent configuration files
cristy4f820712011-04-01 12:35:43 +000032102SHARE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}"
cristy3ed852e2009-09-05 21:47:34 +000032103
32104cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000032105#define SHARE_RELATIVE_PATH "$SHARE_RELATIVE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000032106_ACEOF
32107
cristy670aa3c2011-11-03 00:54:00 +000032108SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
cristy4f820712011-04-01 12:35:43 +000032109DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000032110case "${build_os}" in
32111 mingw* )
cristy4f820712011-04-01 12:35:43 +000032112 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
cristy3ed852e2009-09-05 21:47:34 +000032113 ;;
32114esac
32115
32116cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000032117#define SHARE_PATH "$DEFINE_SHARE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000032118_ACEOF
32119
32120
32121
cristy408ebcd2011-11-14 01:36:57 +000032122# Subdirectory to place architecture-dependent configuration files
32123SHAREARCH_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
cristy670aa3c2011-11-03 00:54:00 +000032124
32125cat >>confdefs.h <<_ACEOF
32126#define SHAREARCH_RELATIVE_PATH "$SHAREARCH_RELATIVE_PATH"
32127_ACEOF
32128
cristy408ebcd2011-11-14 01:36:57 +000032129SHAREARCH_PATH="${SHAREARCH_DIR}/${SHAREARCH_RELATIVE_PATH}"
32130DEFINE_SHAREARCH_PATH="${SHAREARCH_DIR}/${SHAREARCH_RELATIVE_PATH}/"
cristy670aa3c2011-11-03 00:54:00 +000032131case "${build_os}" in
32132 mingw* )
32133 DEFINE_SHAREARCH_PATH=`$WinPathScript "$DEFINE_SHAREARCH_PATH" 1`
32134 ;;
32135esac
32136
32137cat >>confdefs.h <<_ACEOF
32138#define SHAREARCH_PATH "$DEFINE_SHAREARCH_PATH"
32139_ACEOF
32140
32141
32142
cristy3ed852e2009-09-05 21:47:34 +000032143#
32144# program_transform_name is formed for use in a Makefile, so create a
32145# modified version for use in a shell script.
32146configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
32147
32148# Default delegate definitions
cristy09b53e12011-10-14 12:47:22 +000032149{ $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
32150$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000032151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000032152$as_echo_n "checking for ImageMagick delegate programs... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000032153{ $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
32154$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000032155AutotraceDecodeDelegateDefault='autotrace'
cristy3d7f8062009-09-24 20:45:35 +000032156BlenderDecodeDelegateDefault='blender'
cristy3ed852e2009-09-05 21:47:34 +000032157BZIPDelegateDefault='bzip2'
32158BrowseDelegateDefault='xdg-open'
32159CGMDecodeDelegateDefault='ralcgm'
32160CatDelegateDefault='cat'
32161DNGDecodeDelegateDefault='ufraw-batch'
32162GVCDecodeDelegateDefault='dot'
32163DVIDecodeDelegateDefault='dvips'
32164EchoDelegateDefault='echo'
32165EditorDelegateDefault='xterm'
32166FIGDecodeDelegateDefault='fig2dev'
32167ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
32168DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
32169MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
32170GnuplotDecodeDelegateDefault='gnuplot'
cristy3ed852e2009-09-05 21:47:34 +000032171HPGLDecodeDelegateDefault='hp2xx'
32172HTMLDecodeDelegateDefault='html2ps'
32173ILBMDecodeDelegateDefault='ilbmtoppm'
32174ILBMEncodeDelegateDefault='ppmtoilbm'
32175LPDelegateDefault='lp'
32176LPRDelegateDefault='lpr'
cristy3ed852e2009-09-05 21:47:34 +000032177LaunchDelegateDefault='gimp'
32178MANDelegateDefault='groff'
32179MPEGDecodeDelegateDefault='ffmpeg'
32180MPEGEncodeDelegateDefault='ffmpeg'
cristy935c86e2010-06-05 23:50:07 +000032181MrSIDDecodeDelegateDefault='mrsidgeodecode'
cristy3ed852e2009-09-05 21:47:34 +000032182MVDelegateDefault='mv'
32183PCLDelegateDefault='pcl6'
32184PGPDecodeDelegateDefault='pgpv'
32185POVDelegateDefault='povray'
32186if test "$native_win32_build" = 'yes'; then
32187 PSDelegateDefault='gswin32c'
cristyb7931f12009-09-25 10:22:21 +000032188elif test "$gslib_framework" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000032189 PSDelegateDefault='gsc'
32190else
32191 PSDelegateDefault='gs'
32192fi
32193RLEEncodeDelegateDefault='rawtorle'
32194RMDelegateDefault='rm'
cristy5281e322012-02-09 21:12:45 +000032195RSVGDecodeDelegateDefault='rsvg-convert'
cristy3ed852e2009-09-05 21:47:34 +000032196SCANDecodeDelegateDefault='scanimage'
cristyec6934f2012-08-14 18:38:40 +000032197SVGDecodeDelegateDefault='inkscape'
cristy3ed852e2009-09-05 21:47:34 +000032198TXTDelegateDefault='enscript'
cristy16db5ed2010-07-29 13:32:02 +000032199UniconvertorDelegateDefault='uniconvertor'
cristy3ed852e2009-09-05 21:47:34 +000032200WMFDecodeDelegateDefault='wmf2eps'
32201WWWDecodeDelegateDefault='curl'
32202XPSDelegateDefault='gxps'
32203ZipDelegateDefault='gzip'
32204
32205# Search for delegates
32206# Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
32207set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032209$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032210if ${ac_cv_path_AutotraceDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032211 $as_echo_n "(cached) " >&6
32212else
32213 case $AutotraceDecodeDelegate in
32214 [\\/]* | ?:[\\/]*)
32215 ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
32216 ;;
32217 *)
32218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32219for as_dir in $PATH
32220do
32221 IFS=$as_save_IFS
32222 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032223 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032224 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032225 ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032227 break 2
32228 fi
32229done
cristy8b350f62009-11-15 23:12:43 +000032230 done
cristy3ed852e2009-09-05 21:47:34 +000032231IFS=$as_save_IFS
32232
32233 test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
32234 ;;
32235esac
32236fi
32237AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
32238if test -n "$AutotraceDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032240$as_echo "$AutotraceDecodeDelegate" >&6; }
32241else
cristy8b350f62009-11-15 23:12:43 +000032242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032243$as_echo "no" >&6; }
32244fi
32245
32246
cristy3ed852e2009-09-05 21:47:34 +000032247# Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
32248set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032250$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032251if ${ac_cv_path_BlenderDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032252 $as_echo_n "(cached) " >&6
32253else
32254 case $BlenderDecodeDelegate in
32255 [\\/]* | ?:[\\/]*)
32256 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
32257 ;;
32258 *)
32259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32260for as_dir in $PATH
32261do
32262 IFS=$as_save_IFS
32263 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032264 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032265 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032266 ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032268 break 2
32269 fi
32270done
cristy8b350f62009-11-15 23:12:43 +000032271 done
cristy3ed852e2009-09-05 21:47:34 +000032272IFS=$as_save_IFS
32273
32274 test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
32275 ;;
32276esac
32277fi
32278BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
32279if test -n "$BlenderDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032281$as_echo "$BlenderDecodeDelegate" >&6; }
32282else
cristy8b350f62009-11-15 23:12:43 +000032283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032284$as_echo "no" >&6; }
32285fi
32286
32287
32288# Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
32289set dummy "$BZIPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032291$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032292if ${ac_cv_path_BZIPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032293 $as_echo_n "(cached) " >&6
32294else
32295 case $BZIPDelegate in
32296 [\\/]* | ?:[\\/]*)
32297 ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
32298 ;;
32299 *)
32300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32301for as_dir in $PATH
32302do
32303 IFS=$as_save_IFS
32304 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032305 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032306 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032307 ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032309 break 2
32310 fi
32311done
cristy8b350f62009-11-15 23:12:43 +000032312 done
cristy3ed852e2009-09-05 21:47:34 +000032313IFS=$as_save_IFS
32314
32315 test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
32316 ;;
32317esac
32318fi
32319BZIPDelegate=$ac_cv_path_BZIPDelegate
32320if test -n "$BZIPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032322$as_echo "$BZIPDelegate" >&6; }
32323else
cristy8b350f62009-11-15 23:12:43 +000032324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032325$as_echo "no" >&6; }
32326fi
32327
32328
cristyc59f0e72012-08-27 12:59:33 +000032329for ac_prog in "$BrowseDelegateDefault" google-chrome firefox konqueror mozilla lynx
32330do
32331 # Extract the first word of "$ac_prog", so it can be a program name with args.
32332set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032334$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032335if ${ac_cv_path_BrowseDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032336 $as_echo_n "(cached) " >&6
32337else
32338 case $BrowseDelegate in
32339 [\\/]* | ?:[\\/]*)
32340 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
32341 ;;
32342 *)
32343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32344for as_dir in $PATH
32345do
32346 IFS=$as_save_IFS
32347 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032348 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032349 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032350 ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032352 break 2
32353 fi
32354done
cristy8b350f62009-11-15 23:12:43 +000032355 done
cristy3ed852e2009-09-05 21:47:34 +000032356IFS=$as_save_IFS
32357
cristy3ed852e2009-09-05 21:47:34 +000032358 ;;
32359esac
32360fi
32361BrowseDelegate=$ac_cv_path_BrowseDelegate
32362if test -n "$BrowseDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032364$as_echo "$BrowseDelegate" >&6; }
32365else
cristy8b350f62009-11-15 23:12:43 +000032366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032367$as_echo "no" >&6; }
32368fi
32369
32370
cristyc59f0e72012-08-27 12:59:33 +000032371 test -n "$BrowseDelegate" && break
32372done
32373test -n "$BrowseDelegate" || BrowseDelegate=""$BrowseDelegateDefault""
32374
cristy3ed852e2009-09-05 21:47:34 +000032375# Extract the first word of ""$CGMDecodeDelegateDefault"", so it can be a program name with args.
32376set dummy "$CGMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032378$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032379if ${ac_cv_path_CGMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032380 $as_echo_n "(cached) " >&6
32381else
32382 case $CGMDecodeDelegate in
32383 [\\/]* | ?:[\\/]*)
32384 ac_cv_path_CGMDecodeDelegate="$CGMDecodeDelegate" # Let the user override the test with a path.
32385 ;;
32386 *)
32387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32388for as_dir in $PATH
32389do
32390 IFS=$as_save_IFS
32391 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032392 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032393 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032394 ac_cv_path_CGMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032396 break 2
32397 fi
32398done
cristy8b350f62009-11-15 23:12:43 +000032399 done
cristy3ed852e2009-09-05 21:47:34 +000032400IFS=$as_save_IFS
32401
32402 test -z "$ac_cv_path_CGMDecodeDelegate" && ac_cv_path_CGMDecodeDelegate=""$CGMDecodeDelegateDefault""
32403 ;;
32404esac
32405fi
32406CGMDecodeDelegate=$ac_cv_path_CGMDecodeDelegate
32407if test -n "$CGMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CGMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032409$as_echo "$CGMDecodeDelegate" >&6; }
32410else
cristy8b350f62009-11-15 23:12:43 +000032411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032412$as_echo "no" >&6; }
32413fi
32414
32415
32416# Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
32417set dummy "$CatDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032419$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032420if ${ac_cv_path_CatDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032421 $as_echo_n "(cached) " >&6
32422else
32423 case $CatDelegate in
32424 [\\/]* | ?:[\\/]*)
32425 ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
32426 ;;
32427 *)
32428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32429for as_dir in $PATH
32430do
32431 IFS=$as_save_IFS
32432 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032433 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032434 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032435 ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032437 break 2
32438 fi
32439done
cristy8b350f62009-11-15 23:12:43 +000032440 done
cristy3ed852e2009-09-05 21:47:34 +000032441IFS=$as_save_IFS
32442
32443 test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
32444 ;;
32445esac
32446fi
32447CatDelegate=$ac_cv_path_CatDelegate
32448if test -n "$CatDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032450$as_echo "$CatDelegate" >&6; }
32451else
cristy8b350f62009-11-15 23:12:43 +000032452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032453$as_echo "no" >&6; }
32454fi
32455
32456
32457# Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
32458set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032460$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032461if ${ac_cv_path_DNGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032462 $as_echo_n "(cached) " >&6
32463else
32464 case $DNGDecodeDelegate in
32465 [\\/]* | ?:[\\/]*)
32466 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
32467 ;;
32468 *)
32469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32470for as_dir in $PATH
32471do
32472 IFS=$as_save_IFS
32473 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032474 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032475 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032476 ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032478 break 2
32479 fi
32480done
cristy8b350f62009-11-15 23:12:43 +000032481 done
cristy3ed852e2009-09-05 21:47:34 +000032482IFS=$as_save_IFS
32483
32484 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
32485 ;;
32486esac
32487fi
32488DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
32489if test -n "$DNGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032491$as_echo "$DNGDecodeDelegate" >&6; }
32492else
cristy8b350f62009-11-15 23:12:43 +000032493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032494$as_echo "no" >&6; }
32495fi
32496
32497
32498# Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
32499set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032501$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032502if ${ac_cv_path_GVCDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032503 $as_echo_n "(cached) " >&6
32504else
32505 case $GVCDecodeDelegate in
32506 [\\/]* | ?:[\\/]*)
32507 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
32508 ;;
32509 *)
32510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32511for as_dir in $PATH
32512do
32513 IFS=$as_save_IFS
32514 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032515 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032516 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032517 ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032519 break 2
32520 fi
32521done
cristy8b350f62009-11-15 23:12:43 +000032522 done
cristy3ed852e2009-09-05 21:47:34 +000032523IFS=$as_save_IFS
32524
32525 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
32526 ;;
32527esac
32528fi
32529GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
32530if test -n "$GVCDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032532$as_echo "$GVCDecodeDelegate" >&6; }
32533else
cristy8b350f62009-11-15 23:12:43 +000032534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032535$as_echo "no" >&6; }
32536fi
32537
32538
32539# Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
32540set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032542$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032543if ${ac_cv_path_DVIDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032544 $as_echo_n "(cached) " >&6
32545else
32546 case $DVIDecodeDelegate in
32547 [\\/]* | ?:[\\/]*)
32548 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
32549 ;;
32550 *)
32551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32552for as_dir in $PATH
32553do
32554 IFS=$as_save_IFS
32555 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032556 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032557 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032558 ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032560 break 2
32561 fi
32562done
cristy8b350f62009-11-15 23:12:43 +000032563 done
cristy3ed852e2009-09-05 21:47:34 +000032564IFS=$as_save_IFS
32565
32566 test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
32567 ;;
32568esac
32569fi
32570DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
32571if test -n "$DVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032573$as_echo "$DVIDecodeDelegate" >&6; }
32574else
cristy8b350f62009-11-15 23:12:43 +000032575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032576$as_echo "no" >&6; }
32577fi
32578
32579
32580# Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
32581set dummy "$EchoDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032583$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032584if ${ac_cv_path_EchoDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032585 $as_echo_n "(cached) " >&6
32586else
32587 case $EchoDelegate in
32588 [\\/]* | ?:[\\/]*)
32589 ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
32590 ;;
32591 *)
32592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32593for as_dir in $PATH
32594do
32595 IFS=$as_save_IFS
32596 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032597 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032598 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032599 ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032601 break 2
32602 fi
32603done
cristy8b350f62009-11-15 23:12:43 +000032604 done
cristy3ed852e2009-09-05 21:47:34 +000032605IFS=$as_save_IFS
32606
32607 test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
32608 ;;
32609esac
32610fi
32611EchoDelegate=$ac_cv_path_EchoDelegate
32612if test -n "$EchoDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032614$as_echo "$EchoDelegate" >&6; }
32615else
cristy8b350f62009-11-15 23:12:43 +000032616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032617$as_echo "no" >&6; }
32618fi
32619
32620
32621# Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
32622set dummy "$EditorDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032624$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032625if ${ac_cv_path_EditorDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032626 $as_echo_n "(cached) " >&6
32627else
32628 case $EditorDelegate in
32629 [\\/]* | ?:[\\/]*)
32630 ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
32631 ;;
32632 *)
32633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32634for as_dir in $PATH
32635do
32636 IFS=$as_save_IFS
32637 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032638 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032639 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032640 ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032642 break 2
32643 fi
32644done
cristy8b350f62009-11-15 23:12:43 +000032645 done
cristy3ed852e2009-09-05 21:47:34 +000032646IFS=$as_save_IFS
32647
32648 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
32649 ;;
32650esac
32651fi
32652EditorDelegate=$ac_cv_path_EditorDelegate
32653if test -n "$EditorDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032655$as_echo "$EditorDelegate" >&6; }
32656else
cristy8b350f62009-11-15 23:12:43 +000032657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032658$as_echo "no" >&6; }
32659fi
32660
32661
32662# Extract the first word of ""$FIGDecodeDelegateDefault"", so it can be a program name with args.
32663set dummy "$FIGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032665$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032666if ${ac_cv_path_FIGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032667 $as_echo_n "(cached) " >&6
32668else
32669 case $FIGDecodeDelegate in
32670 [\\/]* | ?:[\\/]*)
32671 ac_cv_path_FIGDecodeDelegate="$FIGDecodeDelegate" # Let the user override the test with a path.
32672 ;;
32673 *)
32674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32675for as_dir in $PATH
32676do
32677 IFS=$as_save_IFS
32678 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032679 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032680 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032681 ac_cv_path_FIGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032683 break 2
32684 fi
32685done
cristy8b350f62009-11-15 23:12:43 +000032686 done
cristy3ed852e2009-09-05 21:47:34 +000032687IFS=$as_save_IFS
32688
32689 test -z "$ac_cv_path_FIGDecodeDelegate" && ac_cv_path_FIGDecodeDelegate=""$FIGDecodeDelegateDefault""
32690 ;;
32691esac
32692fi
32693FIGDecodeDelegate=$ac_cv_path_FIGDecodeDelegate
32694if test -n "$FIGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032696$as_echo "$FIGDecodeDelegate" >&6; }
32697else
cristy8b350f62009-11-15 23:12:43 +000032698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032699$as_echo "no" >&6; }
32700fi
32701
32702
32703# Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
32704set dummy "$ConvertDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032706$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032707if ${ac_cv_path_ConvertDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032708 $as_echo_n "(cached) " >&6
32709else
32710 case $ConvertDelegate in
32711 [\\/]* | ?:[\\/]*)
32712 ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
32713 ;;
32714 *)
32715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32716for as_dir in $PATH
32717do
32718 IFS=$as_save_IFS
32719 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032720 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032721 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032722 ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032724 break 2
32725 fi
32726done
cristy8b350f62009-11-15 23:12:43 +000032727 done
cristy3ed852e2009-09-05 21:47:34 +000032728IFS=$as_save_IFS
32729
32730 test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
32731 ;;
32732esac
32733fi
32734ConvertDelegate=$ac_cv_path_ConvertDelegate
32735if test -n "$ConvertDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032737$as_echo "$ConvertDelegate" >&6; }
32738else
cristy8b350f62009-11-15 23:12:43 +000032739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032740$as_echo "no" >&6; }
32741fi
32742
32743
32744# Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
32745set dummy "$DisplayDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032747$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032748if ${ac_cv_path_DisplayDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032749 $as_echo_n "(cached) " >&6
32750else
32751 case $DisplayDelegate in
32752 [\\/]* | ?:[\\/]*)
32753 ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
32754 ;;
32755 *)
32756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32757for as_dir in $PATH
32758do
32759 IFS=$as_save_IFS
32760 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032761 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032762 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032763 ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032765 break 2
32766 fi
32767done
cristy8b350f62009-11-15 23:12:43 +000032768 done
cristy3ed852e2009-09-05 21:47:34 +000032769IFS=$as_save_IFS
32770
32771 test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
32772 ;;
32773esac
32774fi
32775DisplayDelegate=$ac_cv_path_DisplayDelegate
32776if test -n "$DisplayDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032778$as_echo "$DisplayDelegate" >&6; }
32779else
cristy8b350f62009-11-15 23:12:43 +000032780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032781$as_echo "no" >&6; }
32782fi
32783
32784
32785# Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
32786set dummy "$MogrifyDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032788$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032789if ${ac_cv_path_MogrifyDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032790 $as_echo_n "(cached) " >&6
32791else
32792 case $MogrifyDelegate in
32793 [\\/]* | ?:[\\/]*)
32794 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
32795 ;;
32796 *)
32797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32798for as_dir in $PATH
32799do
32800 IFS=$as_save_IFS
32801 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032802 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032803 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032804 ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032806 break 2
32807 fi
32808done
cristy8b350f62009-11-15 23:12:43 +000032809 done
cristy3ed852e2009-09-05 21:47:34 +000032810IFS=$as_save_IFS
32811
32812 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
32813 ;;
32814esac
32815fi
32816MogrifyDelegate=$ac_cv_path_MogrifyDelegate
32817if test -n "$MogrifyDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032819$as_echo "$MogrifyDelegate" >&6; }
32820else
cristy8b350f62009-11-15 23:12:43 +000032821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032822$as_echo "no" >&6; }
32823fi
32824
32825
32826# Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
32827set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032829$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032830if ${ac_cv_path_GnuplotDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032831 $as_echo_n "(cached) " >&6
32832else
32833 case $GnuplotDecodeDelegate in
32834 [\\/]* | ?:[\\/]*)
32835 ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
32836 ;;
32837 *)
32838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32839for as_dir in $PATH
32840do
32841 IFS=$as_save_IFS
32842 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032843 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032844 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032845 ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032847 break 2
32848 fi
32849done
cristy8b350f62009-11-15 23:12:43 +000032850 done
cristy3ed852e2009-09-05 21:47:34 +000032851IFS=$as_save_IFS
32852
32853 test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
32854 ;;
32855esac
32856fi
32857GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
32858if test -n "$GnuplotDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032860$as_echo "$GnuplotDecodeDelegate" >&6; }
32861else
cristy8b350f62009-11-15 23:12:43 +000032862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032863$as_echo "no" >&6; }
32864fi
32865
32866
cristy3ed852e2009-09-05 21:47:34 +000032867# Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
32868set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032870$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032871if ${ac_cv_path_HPGLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032872 $as_echo_n "(cached) " >&6
32873else
32874 case $HPGLDecodeDelegate in
32875 [\\/]* | ?:[\\/]*)
32876 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
32877 ;;
32878 *)
32879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32880for as_dir in $PATH
32881do
32882 IFS=$as_save_IFS
32883 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032884 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032885 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032886 ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032888 break 2
32889 fi
32890done
cristy8b350f62009-11-15 23:12:43 +000032891 done
cristy3ed852e2009-09-05 21:47:34 +000032892IFS=$as_save_IFS
32893
32894 test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
32895 ;;
32896esac
32897fi
32898HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
32899if test -n "$HPGLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032901$as_echo "$HPGLDecodeDelegate" >&6; }
32902else
cristy8b350f62009-11-15 23:12:43 +000032903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032904$as_echo "no" >&6; }
32905fi
32906
32907
32908# Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
32909set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032911$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032912if ${ac_cv_path_HTMLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032913 $as_echo_n "(cached) " >&6
32914else
32915 case $HTMLDecodeDelegate in
32916 [\\/]* | ?:[\\/]*)
32917 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
32918 ;;
32919 *)
32920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32921for as_dir in $PATH
32922do
32923 IFS=$as_save_IFS
32924 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032925 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032926 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032927 ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032929 break 2
32930 fi
32931done
cristy8b350f62009-11-15 23:12:43 +000032932 done
cristy3ed852e2009-09-05 21:47:34 +000032933IFS=$as_save_IFS
32934
32935 test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
32936 ;;
32937esac
32938fi
32939HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
32940if test -n "$HTMLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032942$as_echo "$HTMLDecodeDelegate" >&6; }
32943else
cristy8b350f62009-11-15 23:12:43 +000032944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032945$as_echo "no" >&6; }
32946fi
32947
32948
32949# Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
32950set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032952$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032953if ${ac_cv_path_ILBMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032954 $as_echo_n "(cached) " >&6
32955else
32956 case $ILBMDecodeDelegate in
32957 [\\/]* | ?:[\\/]*)
32958 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
32959 ;;
32960 *)
32961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32962for as_dir in $PATH
32963do
32964 IFS=$as_save_IFS
32965 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032966 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032967 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032968 ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032970 break 2
32971 fi
32972done
cristy8b350f62009-11-15 23:12:43 +000032973 done
cristy3ed852e2009-09-05 21:47:34 +000032974IFS=$as_save_IFS
32975
32976 test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
32977 ;;
32978esac
32979fi
32980ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
32981if test -n "$ILBMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032983$as_echo "$ILBMDecodeDelegate" >&6; }
32984else
cristy8b350f62009-11-15 23:12:43 +000032985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032986$as_echo "no" >&6; }
32987fi
32988
32989
32990# Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
32991set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032993$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032994if ${ac_cv_path_ILBMEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032995 $as_echo_n "(cached) " >&6
32996else
32997 case $ILBMEncodeDelegate in
32998 [\\/]* | ?:[\\/]*)
32999 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
33000 ;;
33001 *)
33002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33003for as_dir in $PATH
33004do
33005 IFS=$as_save_IFS
33006 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033007 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033008 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033009 ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033011 break 2
33012 fi
33013done
cristy8b350f62009-11-15 23:12:43 +000033014 done
cristy3ed852e2009-09-05 21:47:34 +000033015IFS=$as_save_IFS
33016
33017 test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
33018 ;;
33019esac
33020fi
33021ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
33022if test -n "$ILBMEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033024$as_echo "$ILBMEncodeDelegate" >&6; }
33025else
cristy8b350f62009-11-15 23:12:43 +000033026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033027$as_echo "no" >&6; }
33028fi
33029
33030
33031# Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
33032set dummy "$LPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033034$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033035if ${ac_cv_path_LPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033036 $as_echo_n "(cached) " >&6
33037else
33038 case $LPDelegate in
33039 [\\/]* | ?:[\\/]*)
33040 ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
33041 ;;
33042 *)
33043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33044for as_dir in $PATH
33045do
33046 IFS=$as_save_IFS
33047 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033048 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033049 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033050 ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033052 break 2
33053 fi
33054done
cristy8b350f62009-11-15 23:12:43 +000033055 done
cristy3ed852e2009-09-05 21:47:34 +000033056IFS=$as_save_IFS
33057
33058 test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
33059 ;;
33060esac
33061fi
33062LPDelegate=$ac_cv_path_LPDelegate
33063if test -n "$LPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033065$as_echo "$LPDelegate" >&6; }
33066else
cristy8b350f62009-11-15 23:12:43 +000033067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033068$as_echo "no" >&6; }
33069fi
33070
33071
33072# Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
33073set dummy "$LPRDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033075$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033076if ${ac_cv_path_LPRDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033077 $as_echo_n "(cached) " >&6
33078else
33079 case $LPRDelegate in
33080 [\\/]* | ?:[\\/]*)
33081 ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
33082 ;;
33083 *)
33084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33085for as_dir in $PATH
33086do
33087 IFS=$as_save_IFS
33088 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033089 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033090 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033091 ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033093 break 2
33094 fi
33095done
cristy8b350f62009-11-15 23:12:43 +000033096 done
cristy3ed852e2009-09-05 21:47:34 +000033097IFS=$as_save_IFS
33098
33099 test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
33100 ;;
33101esac
33102fi
33103LPRDelegate=$ac_cv_path_LPRDelegate
33104if test -n "$LPRDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033106$as_echo "$LPRDelegate" >&6; }
33107else
cristy8b350f62009-11-15 23:12:43 +000033108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033109$as_echo "no" >&6; }
33110fi
33111
33112
cristy3ed852e2009-09-05 21:47:34 +000033113# Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
33114set dummy "$LaunchDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033116$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033117if ${ac_cv_path_LaunchDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033118 $as_echo_n "(cached) " >&6
33119else
33120 case $LaunchDelegate in
33121 [\\/]* | ?:[\\/]*)
33122 ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
33123 ;;
33124 *)
33125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33126for as_dir in $PATH
33127do
33128 IFS=$as_save_IFS
33129 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033130 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033131 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033132 ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033134 break 2
33135 fi
33136done
cristy8b350f62009-11-15 23:12:43 +000033137 done
cristy3ed852e2009-09-05 21:47:34 +000033138IFS=$as_save_IFS
33139
33140 test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
33141 ;;
33142esac
33143fi
33144LaunchDelegate=$ac_cv_path_LaunchDelegate
33145if test -n "$LaunchDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033147$as_echo "$LaunchDelegate" >&6; }
33148else
cristy8b350f62009-11-15 23:12:43 +000033149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033150$as_echo "no" >&6; }
33151fi
33152
33153
33154# Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
33155set dummy "$MANDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033157$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033158if ${ac_cv_path_MANDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033159 $as_echo_n "(cached) " >&6
33160else
33161 case $MANDelegate in
33162 [\\/]* | ?:[\\/]*)
33163 ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
33164 ;;
33165 *)
33166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33167for as_dir in $PATH
33168do
33169 IFS=$as_save_IFS
33170 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033171 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033172 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033173 ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033175 break 2
33176 fi
33177done
cristy8b350f62009-11-15 23:12:43 +000033178 done
cristy3ed852e2009-09-05 21:47:34 +000033179IFS=$as_save_IFS
33180
33181 test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
33182 ;;
33183esac
33184fi
33185MANDelegate=$ac_cv_path_MANDelegate
33186if test -n "$MANDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033188$as_echo "$MANDelegate" >&6; }
33189else
cristy8b350f62009-11-15 23:12:43 +000033190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033191$as_echo "no" >&6; }
33192fi
33193
33194
33195# Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
33196set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033198$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033199if ${ac_cv_path_MPEGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033200 $as_echo_n "(cached) " >&6
33201else
33202 case $MPEGDecodeDelegate in
33203 [\\/]* | ?:[\\/]*)
33204 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
33205 ;;
33206 *)
33207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33208for as_dir in $PATH
33209do
33210 IFS=$as_save_IFS
33211 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033212 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033213 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033214 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033216 break 2
33217 fi
33218done
cristy8b350f62009-11-15 23:12:43 +000033219 done
cristy3ed852e2009-09-05 21:47:34 +000033220IFS=$as_save_IFS
33221
33222 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
33223 ;;
33224esac
33225fi
33226MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
33227if test -n "$MPEGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033229$as_echo "$MPEGDecodeDelegate" >&6; }
33230else
cristy8b350f62009-11-15 23:12:43 +000033231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033232$as_echo "no" >&6; }
33233fi
33234
33235
33236# Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
33237set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033239$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033240if ${ac_cv_path_MPEGEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033241 $as_echo_n "(cached) " >&6
33242else
33243 case $MPEGEncodeDelegate in
33244 [\\/]* | ?:[\\/]*)
33245 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
33246 ;;
33247 *)
33248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33249for as_dir in $PATH
33250do
33251 IFS=$as_save_IFS
33252 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033253 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033254 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033255 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033257 break 2
33258 fi
33259done
cristy8b350f62009-11-15 23:12:43 +000033260 done
cristy3ed852e2009-09-05 21:47:34 +000033261IFS=$as_save_IFS
33262
33263 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
33264 ;;
33265esac
33266fi
33267MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
33268if test -n "$MPEGEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033270$as_echo "$MPEGEncodeDelegate" >&6; }
33271else
cristy8b350f62009-11-15 23:12:43 +000033272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033273$as_echo "no" >&6; }
33274fi
33275
33276
cristy935c86e2010-06-05 23:50:07 +000033277# Extract the first word of ""$MrSIDDecodeDelegateDefault"", so it can be a program name with args.
33278set dummy "$MrSIDDecodeDelegateDefault"; ac_word=$2
33279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33280$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033281if ${ac_cv_path_MrSIDDecodeDelegate+:} false; then :
cristy935c86e2010-06-05 23:50:07 +000033282 $as_echo_n "(cached) " >&6
33283else
33284 case $MrSIDDecodeDelegate in
33285 [\\/]* | ?:[\\/]*)
33286 ac_cv_path_MrSIDDecodeDelegate="$MrSIDDecodeDelegate" # Let the user override the test with a path.
33287 ;;
33288 *)
33289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33290for as_dir in $PATH
33291do
33292 IFS=$as_save_IFS
33293 test -z "$as_dir" && as_dir=.
33294 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033295 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy935c86e2010-06-05 23:50:07 +000033296 ac_cv_path_MrSIDDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33298 break 2
33299 fi
33300done
33301 done
33302IFS=$as_save_IFS
33303
33304 test -z "$ac_cv_path_MrSIDDecodeDelegate" && ac_cv_path_MrSIDDecodeDelegate=""$MrSIDDecodeDelegateDefault""
33305 ;;
33306esac
33307fi
33308MrSIDDecodeDelegate=$ac_cv_path_MrSIDDecodeDelegate
33309if test -n "$MrSIDDecodeDelegate"; then
33310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MrSIDDecodeDelegate" >&5
33311$as_echo "$MrSIDDecodeDelegate" >&6; }
33312else
33313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33314$as_echo "no" >&6; }
33315fi
33316
33317
cristy3ed852e2009-09-05 21:47:34 +000033318# Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
33319set dummy "$MVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033321$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033322if ${ac_cv_path_MVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033323 $as_echo_n "(cached) " >&6
33324else
33325 case $MVDelegate in
33326 [\\/]* | ?:[\\/]*)
33327 ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
33328 ;;
33329 *)
33330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33331for as_dir in $PATH
33332do
33333 IFS=$as_save_IFS
33334 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033335 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033336 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033337 ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033339 break 2
33340 fi
33341done
cristy8b350f62009-11-15 23:12:43 +000033342 done
cristy3ed852e2009-09-05 21:47:34 +000033343IFS=$as_save_IFS
33344
33345 test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
33346 ;;
33347esac
33348fi
33349MVDelegate=$ac_cv_path_MVDelegate
33350if test -n "$MVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033352$as_echo "$MVDelegate" >&6; }
33353else
cristy8b350f62009-11-15 23:12:43 +000033354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033355$as_echo "no" >&6; }
33356fi
33357
33358
33359# Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
33360set dummy "$PCLDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033362$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033363if ${ac_cv_path_PCLDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033364 $as_echo_n "(cached) " >&6
33365else
33366 case $PCLDelegate in
33367 [\\/]* | ?:[\\/]*)
33368 ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
33369 ;;
33370 *)
33371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33372for as_dir in $PATH
33373do
33374 IFS=$as_save_IFS
33375 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033376 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033377 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033378 ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033380 break 2
33381 fi
33382done
cristy8b350f62009-11-15 23:12:43 +000033383 done
cristy3ed852e2009-09-05 21:47:34 +000033384IFS=$as_save_IFS
33385
33386 test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
33387 ;;
33388esac
33389fi
33390PCLDelegate=$ac_cv_path_PCLDelegate
33391if test -n "$PCLDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033393$as_echo "$PCLDelegate" >&6; }
33394else
cristy8b350f62009-11-15 23:12:43 +000033395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033396$as_echo "no" >&6; }
33397fi
33398
33399
33400# Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
33401set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033403$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033404if ${ac_cv_path_PGPDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033405 $as_echo_n "(cached) " >&6
33406else
33407 case $PGPDecodeDelegate in
33408 [\\/]* | ?:[\\/]*)
33409 ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
33410 ;;
33411 *)
33412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33413for as_dir in $PATH
33414do
33415 IFS=$as_save_IFS
33416 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033417 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033418 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033419 ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033421 break 2
33422 fi
33423done
cristy8b350f62009-11-15 23:12:43 +000033424 done
cristy3ed852e2009-09-05 21:47:34 +000033425IFS=$as_save_IFS
33426
33427 test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
33428 ;;
33429esac
33430fi
33431PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
33432if test -n "$PGPDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033434$as_echo "$PGPDecodeDelegate" >&6; }
33435else
cristy8b350f62009-11-15 23:12:43 +000033436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033437$as_echo "no" >&6; }
33438fi
33439
33440
33441# Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
33442set dummy "$POVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033444$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033445if ${ac_cv_path_POVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033446 $as_echo_n "(cached) " >&6
33447else
33448 case $POVDelegate in
33449 [\\/]* | ?:[\\/]*)
33450 ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
33451 ;;
33452 *)
33453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33454for as_dir in $PATH
33455do
33456 IFS=$as_save_IFS
33457 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033458 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033459 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033460 ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033462 break 2
33463 fi
33464done
cristy8b350f62009-11-15 23:12:43 +000033465 done
cristy3ed852e2009-09-05 21:47:34 +000033466IFS=$as_save_IFS
33467
33468 test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
33469 ;;
33470esac
33471fi
33472POVDelegate=$ac_cv_path_POVDelegate
33473if test -n "$POVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033475$as_echo "$POVDelegate" >&6; }
33476else
cristy8b350f62009-11-15 23:12:43 +000033477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033478$as_echo "no" >&6; }
33479fi
33480
33481
33482for ac_prog in gsx gsc "$PSDelegateDefault"
33483do
33484 # Extract the first word of "$ac_prog", so it can be a program name with args.
33485set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033487$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033488if ${ac_cv_path_PSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033489 $as_echo_n "(cached) " >&6
33490else
33491 case $PSDelegate in
33492 [\\/]* | ?:[\\/]*)
33493 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
33494 ;;
33495 *)
33496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33497for as_dir in $PATH
33498do
33499 IFS=$as_save_IFS
33500 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033501 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033502 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033503 ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033505 break 2
33506 fi
33507done
cristy8b350f62009-11-15 23:12:43 +000033508 done
cristy3ed852e2009-09-05 21:47:34 +000033509IFS=$as_save_IFS
33510
33511 ;;
33512esac
33513fi
33514PSDelegate=$ac_cv_path_PSDelegate
33515if test -n "$PSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033517$as_echo "$PSDelegate" >&6; }
33518else
cristy8b350f62009-11-15 23:12:43 +000033519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033520$as_echo "no" >&6; }
33521fi
33522
33523
33524 test -n "$PSDelegate" && break
33525done
33526test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
33527
33528# Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
33529set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033531$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033532if ${ac_cv_path_RLEEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033533 $as_echo_n "(cached) " >&6
33534else
33535 case $RLEEncodeDelegate in
33536 [\\/]* | ?:[\\/]*)
33537 ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
33538 ;;
33539 *)
33540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33541for as_dir in $PATH
33542do
33543 IFS=$as_save_IFS
33544 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033545 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033546 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033547 ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033549 break 2
33550 fi
33551done
cristy8b350f62009-11-15 23:12:43 +000033552 done
cristy3ed852e2009-09-05 21:47:34 +000033553IFS=$as_save_IFS
33554
33555 test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
33556 ;;
33557esac
33558fi
33559RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
33560if test -n "$RLEEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033562$as_echo "$RLEEncodeDelegate" >&6; }
33563else
cristy8b350f62009-11-15 23:12:43 +000033564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033565$as_echo "no" >&6; }
33566fi
33567
33568
33569# Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
33570set dummy "$RMDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033572$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033573if ${ac_cv_path_RMDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033574 $as_echo_n "(cached) " >&6
33575else
33576 case $RMDelegate in
33577 [\\/]* | ?:[\\/]*)
33578 ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
33579 ;;
33580 *)
33581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33582for as_dir in $PATH
33583do
33584 IFS=$as_save_IFS
33585 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033586 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033587 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033588 ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033590 break 2
33591 fi
33592done
cristy8b350f62009-11-15 23:12:43 +000033593 done
cristy3ed852e2009-09-05 21:47:34 +000033594IFS=$as_save_IFS
33595
33596 test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
33597 ;;
33598esac
33599fi
33600RMDelegate=$ac_cv_path_RMDelegate
33601if test -n "$RMDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033603$as_echo "$RMDelegate" >&6; }
33604else
cristy8b350f62009-11-15 23:12:43 +000033605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033606$as_echo "no" >&6; }
33607fi
33608
33609
cristy4689cf02010-02-17 21:15:45 +000033610# Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args.
33611set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2
33612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33613$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033614if ${ac_cv_path_RSVGDecodeDelegate+:} false; then :
cristy4689cf02010-02-17 21:15:45 +000033615 $as_echo_n "(cached) " >&6
33616else
33617 case $RSVGDecodeDelegate in
33618 [\\/]* | ?:[\\/]*)
33619 ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path.
33620 ;;
33621 *)
33622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33623for as_dir in $PATH
33624do
33625 IFS=$as_save_IFS
33626 test -z "$as_dir" && as_dir=.
33627 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033628 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy4689cf02010-02-17 21:15:45 +000033629 ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33631 break 2
33632 fi
33633done
33634 done
33635IFS=$as_save_IFS
33636
33637 test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault""
33638 ;;
33639esac
33640fi
33641RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate
33642if test -n "$RSVGDecodeDelegate"; then
33643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5
33644$as_echo "$RSVGDecodeDelegate" >&6; }
33645else
33646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33647$as_echo "no" >&6; }
33648fi
33649
33650
cristy3ed852e2009-09-05 21:47:34 +000033651# Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
33652set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033654$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033655if ${ac_cv_path_SCANDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033656 $as_echo_n "(cached) " >&6
33657else
33658 case $SCANDecodeDelegate in
33659 [\\/]* | ?:[\\/]*)
33660 ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
33661 ;;
33662 *)
33663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33664for as_dir in $PATH
33665do
33666 IFS=$as_save_IFS
33667 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033668 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033669 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033670 ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033672 break 2
33673 fi
33674done
cristy8b350f62009-11-15 23:12:43 +000033675 done
cristy3ed852e2009-09-05 21:47:34 +000033676IFS=$as_save_IFS
33677
33678 test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
33679 ;;
33680esac
33681fi
33682SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
33683if test -n "$SCANDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033685$as_echo "$SCANDecodeDelegate" >&6; }
33686else
cristy8b350f62009-11-15 23:12:43 +000033687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033688$as_echo "no" >&6; }
33689fi
33690
33691
cristyec6934f2012-08-14 18:38:40 +000033692# Extract the first word of ""$SVGDecodeDelegateDefault"", so it can be a program name with args.
33693set dummy "$SVGDecodeDelegateDefault"; ac_word=$2
33694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33695$as_echo_n "checking for $ac_word... " >&6; }
33696if ${ac_cv_path_SVGDecodeDelegate+:} false; then :
33697 $as_echo_n "(cached) " >&6
33698else
33699 case $SVGDecodeDelegate in
33700 [\\/]* | ?:[\\/]*)
33701 ac_cv_path_SVGDecodeDelegate="$SVGDecodeDelegate" # Let the user override the test with a path.
33702 ;;
33703 *)
33704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33705for as_dir in $PATH
33706do
33707 IFS=$as_save_IFS
33708 test -z "$as_dir" && as_dir=.
33709 for ac_exec_ext in '' $ac_executable_extensions; do
33710 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33711 ac_cv_path_SVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33713 break 2
33714 fi
33715done
33716 done
33717IFS=$as_save_IFS
33718
33719 test -z "$ac_cv_path_SVGDecodeDelegate" && ac_cv_path_SVGDecodeDelegate=""$SVGDecodeDelegateDefault""
33720 ;;
33721esac
33722fi
33723SVGDecodeDelegate=$ac_cv_path_SVGDecodeDelegate
33724if test -n "$SVGDecodeDelegate"; then
33725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SVGDecodeDelegate" >&5
33726$as_echo "$SVGDecodeDelegate" >&6; }
33727else
33728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33729$as_echo "no" >&6; }
33730fi
33731
33732
cristy3ed852e2009-09-05 21:47:34 +000033733# Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
33734set dummy "$TXTDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033736$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033737if ${ac_cv_path_TXTDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033738 $as_echo_n "(cached) " >&6
33739else
33740 case $TXTDelegate in
33741 [\\/]* | ?:[\\/]*)
33742 ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
33743 ;;
33744 *)
33745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33746for as_dir in $PATH
33747do
33748 IFS=$as_save_IFS
33749 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033750 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033751 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033752 ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033754 break 2
33755 fi
33756done
cristy8b350f62009-11-15 23:12:43 +000033757 done
cristy3ed852e2009-09-05 21:47:34 +000033758IFS=$as_save_IFS
33759
33760 test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
33761 ;;
33762esac
33763fi
33764TXTDelegate=$ac_cv_path_TXTDelegate
33765if test -n "$TXTDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033767$as_echo "$TXTDelegate" >&6; }
33768else
cristy8b350f62009-11-15 23:12:43 +000033769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033770$as_echo "no" >&6; }
33771fi
33772
33773
cristy5ac9ac82010-07-29 13:24:24 +000033774# Extract the first word of ""$UniconvertorDelegateDefault"", so it can be a program name with args.
33775set dummy "$UniconvertorDelegateDefault"; ac_word=$2
33776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33777$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033778if ${ac_cv_path_UniconvertorDelegate+:} false; then :
cristy5ac9ac82010-07-29 13:24:24 +000033779 $as_echo_n "(cached) " >&6
33780else
33781 case $UniconvertorDelegate in
33782 [\\/]* | ?:[\\/]*)
33783 ac_cv_path_UniconvertorDelegate="$UniconvertorDelegate" # Let the user override the test with a path.
33784 ;;
33785 *)
33786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33787for as_dir in $PATH
33788do
33789 IFS=$as_save_IFS
33790 test -z "$as_dir" && as_dir=.
33791 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033792 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy5ac9ac82010-07-29 13:24:24 +000033793 ac_cv_path_UniconvertorDelegate="$as_dir/$ac_word$ac_exec_ext"
33794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33795 break 2
33796 fi
33797done
33798 done
33799IFS=$as_save_IFS
33800
33801 test -z "$ac_cv_path_UniconvertorDelegate" && ac_cv_path_UniconvertorDelegate=""$UniconvertorDelegateDefault""
33802 ;;
33803esac
33804fi
33805UniconvertorDelegate=$ac_cv_path_UniconvertorDelegate
33806if test -n "$UniconvertorDelegate"; then
33807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UniconvertorDelegate" >&5
33808$as_echo "$UniconvertorDelegate" >&6; }
33809else
33810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33811$as_echo "no" >&6; }
33812fi
33813
33814
cristy3ed852e2009-09-05 21:47:34 +000033815# Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
33816set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033818$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033819if ${ac_cv_path_WMFDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033820 $as_echo_n "(cached) " >&6
33821else
33822 case $WMFDecodeDelegate in
33823 [\\/]* | ?:[\\/]*)
33824 ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
33825 ;;
33826 *)
33827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33828for as_dir in $PATH
33829do
33830 IFS=$as_save_IFS
33831 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033832 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033833 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033834 ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033836 break 2
33837 fi
33838done
cristy8b350f62009-11-15 23:12:43 +000033839 done
cristy3ed852e2009-09-05 21:47:34 +000033840IFS=$as_save_IFS
33841
33842 test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
33843 ;;
33844esac
33845fi
33846WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
33847if test -n "$WMFDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033849$as_echo "$WMFDecodeDelegate" >&6; }
33850else
cristy8b350f62009-11-15 23:12:43 +000033851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033852$as_echo "no" >&6; }
33853fi
33854
33855
33856# Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
33857set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033859$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033860if ${ac_cv_path_WWWDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033861 $as_echo_n "(cached) " >&6
33862else
33863 case $WWWDecodeDelegate in
33864 [\\/]* | ?:[\\/]*)
33865 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
33866 ;;
33867 *)
33868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33869for as_dir in $PATH
33870do
33871 IFS=$as_save_IFS
33872 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033873 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033874 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033875 ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033877 break 2
33878 fi
33879done
cristy8b350f62009-11-15 23:12:43 +000033880 done
cristy3ed852e2009-09-05 21:47:34 +000033881IFS=$as_save_IFS
33882
33883 test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
33884 ;;
33885esac
33886fi
33887WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
33888if test -n "$WWWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033890$as_echo "$WWWDecodeDelegate" >&6; }
33891else
cristy8b350f62009-11-15 23:12:43 +000033892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033893$as_echo "no" >&6; }
33894fi
33895
33896
33897# Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
33898set dummy "$XPSDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033900$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033901if ${ac_cv_path_XPSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033902 $as_echo_n "(cached) " >&6
33903else
33904 case $XPSDelegate in
33905 [\\/]* | ?:[\\/]*)
33906 ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
33907 ;;
33908 *)
33909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33910for as_dir in $PATH
33911do
33912 IFS=$as_save_IFS
33913 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033914 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033915 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033916 ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033918 break 2
33919 fi
33920done
cristy8b350f62009-11-15 23:12:43 +000033921 done
cristy3ed852e2009-09-05 21:47:34 +000033922IFS=$as_save_IFS
33923
33924 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
33925 ;;
33926esac
33927fi
33928XPSDelegate=$ac_cv_path_XPSDelegate
33929if test -n "$XPSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033931$as_echo "$XPSDelegate" >&6; }
33932else
cristy8b350f62009-11-15 23:12:43 +000033933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033934$as_echo "no" >&6; }
33935fi
33936
33937
33938# Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
33939set dummy "$ZipDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033941$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033942if ${ac_cv_path_ZipDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033943 $as_echo_n "(cached) " >&6
33944else
33945 case $ZipDelegate in
33946 [\\/]* | ?:[\\/]*)
33947 ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
33948 ;;
33949 *)
33950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33951for as_dir in $PATH
33952do
33953 IFS=$as_save_IFS
33954 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033955 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033956 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033957 ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033959 break 2
33960 fi
33961done
cristy8b350f62009-11-15 23:12:43 +000033962 done
cristy3ed852e2009-09-05 21:47:34 +000033963IFS=$as_save_IFS
33964
33965 test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
33966 ;;
33967esac
33968fi
33969ZipDelegate=$ac_cv_path_ZipDelegate
33970if test -n "$ZipDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033972$as_echo "$ZipDelegate" >&6; }
33973else
cristy8b350f62009-11-15 23:12:43 +000033974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033975$as_echo "no" >&6; }
33976fi
33977
33978
33979
33980# Prefer lpr to lp; lp needs options tacked on.
33981if test "$LPRDelegate" != no; then
33982 PrintDelegate="$LPRDelegate"
33983else
33984 PrintDelegate="$LPDelegate -c -s"
33985fi
33986
33987
33988# Installed ImageMagick utiltity paths
33989ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
33990DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
33991MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
33992
33993# Set delegate booleans
33994have_ffmpeg='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_ffmpeg='yes'; fi
33995have_fig2dev='no' ; if test "$FIGDecodeDelegate" != "$FIGDecodeDelegateDefault" ; then have_fig2dev='yes'; fi
33996have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
33997have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
33998have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
cristy935c86e2010-06-05 23:50:07 +000033999have_mrsid='no'; if test "$MrSIDDecodeDelegate" != "$MrSIDDecodeDelegateDefault" ; then have_mrsid='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000034000have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
34001have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000034002have_ralcgm='no' ; if test "$CGMDecodeDelegate" != "$CGMDecodeDelegateDefault" ; then have_ralcgm='yes'; fi
34003have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
34004
34005#
34006# Test for font directories
34007#
34008type_include_files=''
34009
cristy430a7312010-01-21 20:44:04 +000034010# Dejavu fonts.
34011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5
34012$as_echo_n "checking for Dejavu fonts directory... " >&6; }
34013dejavu_font_dir=''
34014if test "${with_dejavu_font_dir}" != 'default'; then
34015 dejavu_font_dir="${with_dejavu_font_dir}/"
34016else
34017 for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do
34018 if test -f "${font_dir}DejaVuSerif.ttf"; then
34019 dejavu_font_dir="${font_dir}"
34020 break 1
34021 fi
34022 done
34023fi
34024if test "${dejavu_font_dir}x" != 'x'; then
34025 type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />'
cristy09b53e12011-10-14 12:47:22 +000034026 { $as_echo "$as_me:${as_lineno-$LINENO}: $dejavu_font_dir" >&5
34027$as_echo "$as_me: $dejavu_font_dir" >&6;}
cristy430a7312010-01-21 20:44:04 +000034028else
cristy09b53e12011-10-14 12:47:22 +000034029 { $as_echo "$as_me:${as_lineno-$LINENO}: not found!" >&5
34030$as_echo "$as_me: not found!" >&6;};
cristy430a7312010-01-21 20:44:04 +000034031fi
34032
34033
cristy3ed852e2009-09-05 21:47:34 +000034034# Windows
34035windows_font_dir=''
34036if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then
34037 windows_font_dir="${with_windows_font_dir}/"
34038fi
cristy430a7312010-01-21 20:44:04 +000034039if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000034040 if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then
34041 windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/'
34042 fi
34043 if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then
34044 windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/'
34045 fi
34046 if test -f '/usr/share/fonts/msttcore/arial.ttf'; then
34047 windows_font_dir='/usr/share/fonts/msttcore/truetype/'
34048 fi
34049fi
cristy430a7312010-01-21 20:44:04 +000034050if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000034051 type_include_files="$type_include_files "'<include file="type-windows.xml" />'
34052fi
34053
34054
34055# Ghostscript
cristy8b350f62009-11-15 23:12:43 +000034056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
cristy3ed852e2009-09-05 21:47:34 +000034057$as_echo_n "checking for Ghostscript fonts directory... " >&6; }
34058ghostscript_font_dir=''
34059if test "${with_gs_font_dir}" != 'default'; then
34060 ghostscript_font_dir="${with_gs_font_dir}/"
34061else
34062 if test "${native_win32_build}" = 'yes'; then
34063 # Native Windows Build
34064 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
34065 if test -f "${font_dir}a010013l.pfb"; then
34066 ghostscript_font_dir="$font_dir"
34067 break 1
34068 fi
34069 done
34070 if test "${PSDelegate}" != 'gswin32c'; then
34071 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
34072 fi
34073 else
34074 # Linux / Mac OS X / Unix Build
34075 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
34076 if test -f "${font_dir}a010013l.pfb"; then
34077 ghostscript_font_dir="${font_dir}"
34078 break 1
34079 fi
34080 done
34081 if test "${ghostscript_font_dir}x" = 'x'; then
34082 if test "$PSDelegate" != 'gs'; then
34083 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
34084 fi
34085 fi
34086 fi
34087fi
34088if test "${ghostscript_font_dir}x" != 'x'; then
34089 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
cristy09b53e12011-10-14 12:47:22 +000034090 { $as_echo "$as_me:${as_lineno-$LINENO}: $ghostscript_font_dir" >&5
34091$as_echo "$as_me: $ghostscript_font_dir" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034092else
cristy09b53e12011-10-14 12:47:22 +000034093 { $as_echo "$as_me:${as_lineno-$LINENO}: not found!" >&5
34094$as_echo "$as_me: not found!" >&6;};
cristy3ed852e2009-09-05 21:47:34 +000034095fi
34096
34097case "${build_os}" in
34098 mingw* )
34099 PSDelegate=`$WinPathScript "$PSDelegate" 1`
34100 ;;
34101esac
34102
34103
34104
34105#
34106# Handle case where user doesn't want frozen paths
34107#
34108if test "$with_frozenpaths" != 'yes'; then
34109 # Re-set delegate definitions to default (no paths)
34110 AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034111 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
34112 BZIPDelegate="$BZIPDelegateDefault"
34113 BrowseDelegate="$BrowseDelegateDefault"
34114 CGMDecodeDelegate="$CGMDecodeDelegateDefault"
34115 CatDelegate="$CatDelegateDefault"
34116 ConvertDelegate="$ConvertDelegateDefault"
34117 GVCDecodeDelegate="$GVCDecodeDelegateDefault"
34118 DVIDecodeDelegate="$DVIDecodeDelegateDefault"
34119 EchoDelegate="$EchoDelegateDefault"
34120 EditorDelegate="$EditorDelegateDefault"
34121 FIGDecodeDelegate="$FIGDecodeDelegateDefault"
34122 GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
34123 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
34124 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
34125 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
34126 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
34127 LPDelegate="$LPDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034128 LaunchDelegate="$LaunchDelegateDefault"
34129 MANDelegate="$MANDelegateDefault"
34130 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
34131 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034132 MogrifyDelegate="$MogrifyDelegateDefault"
cristy935c86e2010-06-05 23:50:07 +000034133 MrSIDDecodeDelegate="$MrSIDDecodeDelegateDefault"
34134 MVDelegate="$MVDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034135 PCLDelegate="$PCLDelegateDefault"
34136 PGPDecodeDelegate="$PGPDecodeDelegateDefault"
34137 POVDelegate="$POVDelegateDefault"
34138 PSDelegate="$PSDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034139 RLEEncodeDelegate="$RLEEncodeDelegateDefault"
34140 RMDelegate="$RMDelegateDefault"
cristy4689cf02010-02-17 21:15:45 +000034141 RSVGDecodeDelegate="$RSVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034142 SCANDecodeDelegate="$SCANDecodeDelegateDefault"
cristyec6934f2012-08-14 18:38:40 +000034143 SVGDecodeDelegate="$SVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034144 ShowImageDelegate="$ShowImageDelegateDefault"
34145 TXTDelegate="$TXTDelegateDefault"
cristy5ac9ac82010-07-29 13:24:24 +000034146 UniconvertorDelegate="$UniconvertorDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034147 WMFDecodeDelegate="$WMFDecodeDelegateDefault"
34148 WWWDecodeDelegate="$WWWDecodeDelegateDefault"
34149 XPSDelegate="$XPSDelegateDefault"
34150 ZipDelegate="$ZipDelegateDefault"
34151fi
34152
34153# Delegate substitutions
34154
34155
34156
34157
34158
34159
34160
34161
34162
34163
34164
34165
34166
34167
34168
34169
34170
34171
34172
34173
34174
34175
34176
34177
34178
34179
34180
34181
34182
34183
34184
34185
34186
34187
34188
34189
34190
34191
34192
34193
cristy3ed852e2009-09-05 21:47:34 +000034194#
34195# RPM support.
34196#
34197RPM=''
34198for ac_prog in gnutar gtar tar
34199do
34200 # Extract the first word of "$ac_prog", so it can be a program name with args.
34201set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034203$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034204if ${ac_cv_prog_TAR+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034205 $as_echo_n "(cached) " >&6
34206else
34207 if test -n "$TAR"; then
34208 ac_cv_prog_TAR="$TAR" # Let the user override the test.
34209else
34210as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34211for as_dir in $PATH
34212do
34213 IFS=$as_save_IFS
34214 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034215 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034216 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034217 ac_cv_prog_TAR="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034219 break 2
34220 fi
34221done
cristy8b350f62009-11-15 23:12:43 +000034222 done
cristy3ed852e2009-09-05 21:47:34 +000034223IFS=$as_save_IFS
34224
34225fi
34226fi
34227TAR=$ac_cv_prog_TAR
34228if test -n "$TAR"; then
cristy8b350f62009-11-15 23:12:43 +000034229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
cristy3ed852e2009-09-05 21:47:34 +000034230$as_echo "$TAR" >&6; }
34231else
cristy8b350f62009-11-15 23:12:43 +000034232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034233$as_echo "no" >&6; }
34234fi
34235
34236
34237 test -n "$TAR" && break
34238done
34239
34240for ac_prog in perl
34241do
34242 # Extract the first word of "$ac_prog", so it can be a program name with args.
34243set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034245$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034246if ${ac_cv_prog_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034247 $as_echo_n "(cached) " >&6
34248else
34249 if test -n "$PERL"; then
34250 ac_cv_prog_PERL="$PERL" # Let the user override the test.
34251else
34252as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34253for as_dir in $PATH
34254do
34255 IFS=$as_save_IFS
34256 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034257 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034258 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034259 ac_cv_prog_PERL="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034261 break 2
34262 fi
34263done
cristy8b350f62009-11-15 23:12:43 +000034264 done
cristy3ed852e2009-09-05 21:47:34 +000034265IFS=$as_save_IFS
34266
34267fi
34268fi
34269PERL=$ac_cv_prog_PERL
34270if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000034271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000034272$as_echo "$PERL" >&6; }
34273else
cristy8b350f62009-11-15 23:12:43 +000034274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034275$as_echo "no" >&6; }
34276fi
34277
34278
34279 test -n "$PERL" && break
34280done
34281
34282for ac_prog in rpmbuild rpm
34283do
34284 # Extract the first word of "$ac_prog", so it can be a program name with args.
34285set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034287$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034288if ${ac_cv_prog_RPM+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034289 $as_echo_n "(cached) " >&6
34290else
34291 if test -n "$RPM"; then
34292 ac_cv_prog_RPM="$RPM" # Let the user override the test.
34293else
34294as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34295for as_dir in $PATH
34296do
34297 IFS=$as_save_IFS
34298 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034299 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034300 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034301 ac_cv_prog_RPM="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034303 break 2
34304 fi
34305done
cristy8b350f62009-11-15 23:12:43 +000034306 done
cristy3ed852e2009-09-05 21:47:34 +000034307IFS=$as_save_IFS
34308
34309fi
34310fi
34311RPM=$ac_cv_prog_RPM
34312if test -n "$RPM"; then
cristy8b350f62009-11-15 23:12:43 +000034313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
cristy3ed852e2009-09-05 21:47:34 +000034314$as_echo "$RPM" >&6; }
34315else
cristy8b350f62009-11-15 23:12:43 +000034316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034317$as_echo "no" >&6; }
34318fi
34319
34320
34321 test -n "$RPM" && break
34322done
34323
34324
cristy73bd4a52010-10-05 11:24:23 +000034325ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
34326
34327
34328AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
34329
34330
34331AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
34332
34333
34334AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
34335
34336
34337 if test "x$RPM" != "x" ; then
34338 RPM_DELEGATE_TRUE=
34339 RPM_DELEGATE_FALSE='#'
34340else
34341 RPM_DELEGATE_TRUE='#'
34342 RPM_DELEGATE_FALSE=
34343fi
34344
cristy3ed852e2009-09-05 21:47:34 +000034345
34346#
34347# 7ZIP support (http://p7zip.sourceforge.net/)
34348#
34349P7ZIP=''
34350for ac_prog in 7za
34351do
34352 # Extract the first word of "$ac_prog", so it can be a program name with args.
34353set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034355$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034356if ${ac_cv_prog_P7ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034357 $as_echo_n "(cached) " >&6
34358else
34359 if test -n "$P7ZIP"; then
34360 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
34361else
34362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34363for as_dir in $PATH
34364do
34365 IFS=$as_save_IFS
34366 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034367 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034368 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034369 ac_cv_prog_P7ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034371 break 2
34372 fi
34373done
cristy8b350f62009-11-15 23:12:43 +000034374 done
cristy3ed852e2009-09-05 21:47:34 +000034375IFS=$as_save_IFS
34376
34377fi
34378fi
34379P7ZIP=$ac_cv_prog_P7ZIP
34380if test -n "$P7ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000034381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000034382$as_echo "$P7ZIP" >&6; }
34383else
cristy8b350f62009-11-15 23:12:43 +000034384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034385$as_echo "no" >&6; }
34386fi
34387
34388
34389 test -n "$P7ZIP" && break
34390done
34391
34392
cristy73bd4a52010-10-05 11:24:23 +000034393 if test "x$P7ZIP" != "x" ; then
34394 P7ZIP_DELEGATE_TRUE=
34395 P7ZIP_DELEGATE_FALSE='#'
34396else
34397 P7ZIP_DELEGATE_TRUE='#'
34398 P7ZIP_DELEGATE_FALSE=
34399fi
34400
cristy3ed852e2009-09-05 21:47:34 +000034401
34402#
34403# ZIP support (http://www.info-zip.org/Zip.html)
34404#
34405ZIP=''
34406for ac_prog in zip
34407do
34408 # Extract the first word of "$ac_prog", so it can be a program name with args.
34409set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034411$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034412if ${ac_cv_prog_ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034413 $as_echo_n "(cached) " >&6
34414else
34415 if test -n "$ZIP"; then
34416 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
34417else
34418as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34419for as_dir in $PATH
34420do
34421 IFS=$as_save_IFS
34422 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034423 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034424 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034425 ac_cv_prog_ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034427 break 2
34428 fi
34429done
cristy8b350f62009-11-15 23:12:43 +000034430 done
cristy3ed852e2009-09-05 21:47:34 +000034431IFS=$as_save_IFS
34432
34433fi
34434fi
34435ZIP=$ac_cv_prog_ZIP
34436if test -n "$ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000034437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000034438$as_echo "$ZIP" >&6; }
34439else
cristy8b350f62009-11-15 23:12:43 +000034440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034441$as_echo "no" >&6; }
34442fi
34443
34444
34445 test -n "$ZIP" && break
34446done
34447
34448
cristy73bd4a52010-10-05 11:24:23 +000034449 if test "x$ZIP" != "x" ; then
34450 ZIP_DELEGATE_TRUE=
34451 ZIP_DELEGATE_FALSE='#'
34452else
34453 ZIP_DELEGATE_TRUE='#'
34454 ZIP_DELEGATE_FALSE=
34455fi
34456
cristy3ed852e2009-09-05 21:47:34 +000034457
34458#
34459# GhostPCL related configuration.
34460#
34461PCLColorDevice=ppmraw
cristy8bc84082011-09-07 13:57:00 +000034462PCLCMYKDevice=pamcmyk32
cristy3ed852e2009-09-05 21:47:34 +000034463PCLMonoDevice=pbmraw
34464if test -z "$PCLVersion"; then
34465 PCLVersion='unknown'
34466fi
34467if test $have_pcl = 'yes'; then
cristy09b53e12011-10-14 12:47:22 +000034468 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
34469$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000034470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000034471$as_echo_n "checking for PCL... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000034472 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
34473$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034474 # PCLColorDevice
cristy8b350f62009-11-15 23:12:43 +000034475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034476$as_echo_n "checking for pcl color device... " >&6; }
34477 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34478 :
34479 else
34480 PCLColorDevice=ppmraw
34481 fi
cristy09b53e12011-10-14 12:47:22 +000034482 { $as_echo "$as_me:${as_lineno-$LINENO}: $PCLColorDevice" >&5
34483$as_echo "$as_me: $PCLColorDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034484
34485 # PCLCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000034486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034487$as_echo_n "checking for pcl CMYK device... " >&6; }
34488 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34489 :
34490 else
34491 PCLCMYKDevice=$PCLColorDevice
34492 fi
cristy09b53e12011-10-14 12:47:22 +000034493 { $as_echo "$as_me:${as_lineno-$LINENO}: $PCLCMYKDevice" >&5
34494$as_echo "$as_me: $PCLCMYKDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034495
34496 # PCLMonoDevice
cristy8b350f62009-11-15 23:12:43 +000034497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034498$as_echo_n "checking for pcl mono device... " >&6; }
34499 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34500 :
34501 else
34502 PCLMonoDevice=$PCLColorDevice
34503 fi
cristy09b53e12011-10-14 12:47:22 +000034504 { $as_echo "$as_me:${as_lineno-$LINENO}: $PCLMonoDevice" >&5
34505$as_echo "$as_me: $PCLMonoDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034506fi
34507
34508
34509
34510
34511
34512
34513#
34514# GhostXPS related configuration.
34515#
34516XPSColorDevice=ppmraw
34517XPSCMYKDevice=bmpsep8
34518XPSMonoDevice=pbmraw
34519if test -z "$XPSVersion"; then
34520 XPSVersion='unknown'
34521fi
34522if test $have_xps = 'yes'; then
cristy09b53e12011-10-14 12:47:22 +000034523 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
34524$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000034525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000034526$as_echo_n "checking for XPS... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000034527 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
34528$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034529 # XPSColorDevice
cristy8b350f62009-11-15 23:12:43 +000034530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034531$as_echo_n "checking for xps color device... " >&6; }
34532 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34533 :
34534 else
34535 XPSColorDevice=ppmraw
34536 fi
cristy09b53e12011-10-14 12:47:22 +000034537 { $as_echo "$as_me:${as_lineno-$LINENO}: $XPSColorDevice" >&5
34538$as_echo "$as_me: $XPSColorDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034539
34540 # XPSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000034541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034542$as_echo_n "checking for xps CMYK device... " >&6; }
34543 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34544 :
34545 else
34546 XPSCMYKDevice=$XPSColorDevice
34547 fi
cristy09b53e12011-10-14 12:47:22 +000034548 { $as_echo "$as_me:${as_lineno-$LINENO}: $XPSCMYKDevice" >&5
34549$as_echo "$as_me: $XPSCMYKDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034550
34551 # XPSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000034552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034553$as_echo_n "checking for xps mono device... " >&6; }
34554 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34555 :
34556 else
34557 XPSMonoDevice=$XPSColorDevice
34558 fi
cristy09b53e12011-10-14 12:47:22 +000034559 { $as_echo "$as_me:${as_lineno-$LINENO}: $XPSMonoDevice" >&5
34560$as_echo "$as_me: $XPSMonoDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034561fi
34562
34563
34564
34565
34566
34567
34568#
34569# Ghostscript related configuration.
34570#
cristya97426c2011-02-04 01:41:27 +000034571GSAlphaDevice=pngalpha
cristy3ed852e2009-09-05 21:47:34 +000034572GSColorDevice=pnmraw
34573GSCMYKDevice=pam
34574GSMonoDevice=pbmraw
34575GSPDFDevice=pdfwrite
34576GSPSDevice=pswrite
34577GSEPSDevice=epswrite
34578GSVersion='unknown'
34579if test $have_gs = 'yes'; then
cristy09b53e12011-10-14 12:47:22 +000034580 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
34581$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000034582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000034583$as_echo_n "checking for Ghostscript... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000034584 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
34585$as_echo "$as_me: " >&6;}
cristy8b350f62009-11-15 23:12:43 +000034586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
cristy3ed852e2009-09-05 21:47:34 +000034587$as_echo_n "checking for Ghostscript version... " >&6; }
34588 if GSVersion=`$PSDelegate --version`; then
34589 :
34590 else
34591 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
34592 fi
cristy09b53e12011-10-14 12:47:22 +000034593 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSVersion" >&5
34594$as_echo "$as_me: $GSVersion" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034595
34596 # GSAlphaDevice
cristy8b350f62009-11-15 23:12:43 +000034597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034598$as_echo_n "checking for gs alpha device... " >&6; }
34599 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34600 :
34601 else
34602 GSAlphaDevice=pnmraw
34603 fi
cristy09b53e12011-10-14 12:47:22 +000034604 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSAlphaDevice" >&5
34605$as_echo "$as_me: $GSAlphaDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034606
34607 # GSColorDevice
cristy8b350f62009-11-15 23:12:43 +000034608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034609$as_echo_n "checking for gs color device... " >&6; }
34610 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34611 :
34612 else
34613 GSColorDevice=pnmraw
34614 fi
cristy09b53e12011-10-14 12:47:22 +000034615 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSColorDevice" >&5
34616$as_echo "$as_me: $GSColorDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034617
34618 # GSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000034619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034620$as_echo_n "checking for gs CMYK device... " >&6; }
34621 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34622 :
34623 else
34624 GSCMYKDevice=bmpsep8
34625 fi
cristy09b53e12011-10-14 12:47:22 +000034626 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSCMYKDevice" >&5
34627$as_echo "$as_me: $GSCMYKDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034628
34629 # GSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000034630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034631$as_echo_n "checking for gs mono device... " >&6; }
34632 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34633 :
34634 else
34635 GSMonoDevice=$GSColorDevice
34636 fi
cristy09b53e12011-10-14 12:47:22 +000034637 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSMonoDevice" >&5
34638$as_echo "$as_me: $GSMonoDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034639
34640 # GSPDFDevice
cristy8b350f62009-11-15 23:12:43 +000034641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034642$as_echo_n "checking for gs PDF writing device... " >&6; }
34643 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34644 :
34645 else
34646 GSPDFDevice=nodevice
34647 fi
cristy09b53e12011-10-14 12:47:22 +000034648 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSPDFDevice" >&5
34649$as_echo "$as_me: $GSPDFDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034650
34651 # GSPSDevice
cristy8b350f62009-11-15 23:12:43 +000034652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034653$as_echo_n "checking for gs PS writing device... " >&6; }
34654 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34655 :
34656 else
34657 GSPSDevice=nodevice
34658 fi
cristy09b53e12011-10-14 12:47:22 +000034659 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSPSDevice" >&5
34660$as_echo "$as_me: $GSPSDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034661
34662 # GSEPSDevice
cristy8b350f62009-11-15 23:12:43 +000034663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034664$as_echo_n "checking for gs EPS writing device... " >&6; }
34665 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34666 :
34667 else
34668 GSEPSDevice=nodevice
34669 fi
cristy09b53e12011-10-14 12:47:22 +000034670 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSEPSDevice" >&5
34671$as_echo "$as_me: $GSEPSDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034672fi
34673
34674
34675
34676
34677
34678
34679
34680
34681
34682
34683#
34684# PerlMagick-related configuration
34685#
34686
34687# Look for PERL if PerlMagick requested
34688# If name/path of desired PERL interpreter is specified, look for that one first
34689have_perl='no'
34690if test "$with_perl" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000034691 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
34692$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000034693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000034694$as_echo_n "checking for Perl... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000034695 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
34696$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034697 if test "$with_perl" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000034698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000034699$as_echo_n "checking for perl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034700if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034701 $as_echo_n "(cached) " >&6
34702else
34703 ac_cv_path_PERL="$with_perl"
34704fi
cristy8b350f62009-11-15 23:12:43 +000034705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000034706$as_echo "$ac_cv_path_PERL" >&6; };
34707 PERL=$ac_cv_path_PERL
34708 have_perl="$ac_cv_path_PERL"
34709 else
34710 for ac_prog in perl perl5
34711do
34712 # Extract the first word of "$ac_prog", so it can be a program name with args.
34713set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034715$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034716if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034717 $as_echo_n "(cached) " >&6
34718else
34719 case $PERL in
34720 [\\/]* | ?:[\\/]*)
34721 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
34722 ;;
34723 *)
34724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34725for as_dir in $PATH
34726do
34727 IFS=$as_save_IFS
34728 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034729 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034730 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034731 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034733 break 2
34734 fi
34735done
cristy8b350f62009-11-15 23:12:43 +000034736 done
cristy3ed852e2009-09-05 21:47:34 +000034737IFS=$as_save_IFS
34738
34739 ;;
34740esac
34741fi
34742PERL=$ac_cv_path_PERL
34743if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000034744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000034745$as_echo "$PERL" >&6; }
34746else
cristy8b350f62009-11-15 23:12:43 +000034747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034748$as_echo "no" >&6; }
34749fi
34750
34751
34752 test -n "$PERL" && break
34753done
34754 if test "$ac_cv_path_PERL"; then
34755 have_perl="$ac_cv_path_PERL"
34756 fi
34757 fi
34758fi
34759
cristy949301e2010-01-06 01:38:40 +000034760if test "$with_perl" != 'yes' ; then
34761 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
34762fi
34763
34764PERL_SUPPORTS_DESTDIR='no'
34765
cristy3ed852e2009-09-05 21:47:34 +000034766with_perl_static='no'
34767with_perl_dynamic='no'
34768if test "$have_perl" != 'no'; then
34769 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
34770 with_perl_static='yes'
34771 fi
34772 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
34773 with_perl_dynamic='yes'
34774 fi
34775 # Is PERL's MakeMaker new enough to support DESTDIR?
cristy73bd4a52010-10-05 11:24:23 +000034776
34777
34778
34779
34780 if test -n "$PERL"; then :
34781
34782 ax_perl_version="5.8.1"
34783
34784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5
34785$as_echo_n "checking for perl version... " >&6; }
34786
34787 perl_version=`$PERL --version 2>&1 | $GREP "This is perl" | $SED -e 's/.* v\([0-9]*\.[0-9]*\.[0-9]*\) .*/\1/'`
34788
34789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5
34790$as_echo "$perl_version" >&6; }
34791
34792 PERL_VERSION=$perl_version
34793
34794
34795
34796
34797
34798 # Used to indicate true or false condition
34799 ax_compare_version=false
34800
34801 # Convert the two version strings to be compared into a format that
34802 # allows a simple string comparison. The end result is that a version
34803 # string of the form 1.12.5-r617 will be converted to the form
34804 # 0001001200050617. In other words, each number is zero padded to four
34805 # digits, and non digits are removed.
34806
34807 ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
34808 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
34809 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
34810 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
34811 -e 's/[^0-9]//g'`
34812
34813
34814 ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
34815 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
34816 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
34817 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
34818 -e 's/[^0-9]//g'`
34819
34820
34821 ax_compare_version=`echo "x$ax_compare_version_A
34822x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
34823
34824
34825
34826 if test "$ax_compare_version" = "true" ; then
34827
34828 :
34829 PERL_SUPPORTS_DESTDIR='yes'
34830
34831 else
34832 :
34833 PERL_SUPPORTS_DESTDIR='no'
34834
34835 fi
34836
34837
34838else
34839
34840 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5
34841$as_echo "$as_me: WARNING: could not find the perl interpreter" >&2;}
34842 PERL_SUPPORTS_DESTDIR='no'
34843
cristy3ed852e2009-09-05 21:47:34 +000034844fi
cristy73bd4a52010-10-05 11:24:23 +000034845
34846fi
34847 if test "$have_perl" != 'no'; then
34848 WITH_PERL_TRUE=
34849 WITH_PERL_FALSE='#'
34850else
34851 WITH_PERL_TRUE='#'
34852 WITH_PERL_FALSE=
34853fi
34854
34855 if test $with_perl_static = 'yes'; then
34856 WITH_PERL_STATIC_TRUE=
34857 WITH_PERL_STATIC_FALSE='#'
34858else
34859 WITH_PERL_STATIC_TRUE='#'
34860 WITH_PERL_STATIC_FALSE=
34861fi
34862
34863 if test $with_perl_dynamic = 'yes'; then
34864 WITH_PERL_DYNAMIC_TRUE=
34865 WITH_PERL_DYNAMIC_FALSE='#'
34866else
34867 WITH_PERL_DYNAMIC_TRUE='#'
34868 WITH_PERL_DYNAMIC_FALSE=
34869fi
34870
cristy3ed852e2009-09-05 21:47:34 +000034871
34872
34873# Determine path to pick up MagickCore library from for use with building PerlMagick
34874MAGICKCORE_PATH="${LIB_DIR}"
34875if test $with_perl_static = 'yes'; then
34876 # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
34877 libtool_objdir=$objdir
34878
34879 # Linker search path to library, followed by -lMagickCore
cristy4c08aed2011-07-01 19:47:50 +000034880 MAGICKCORE_PATH="${builddir}/MagickCore/${libtool_objdir}"
cristy3ed852e2009-09-05 21:47:34 +000034881fi
34882
34883
34884# Create a simple string containing format names for all delegate libraries
34885DELEGATES=''
34886if test "$have_autotrace" = 'yes'; then DELEGATES="$DELEGATES autotrace"; fi
34887if test "$have_bzlib" = 'yes'; then DELEGATES="$DELEGATES bzlib"; fi
34888if test "$have_djvu" = 'yes'; then DELEGATES="$DELEGATES djvu"; fi
34889if test "$have_dps" = 'yes'; then DELEGATES="$DELEGATES dps"; fi
34890if test "$have_fftw" = 'yes'; then DELEGATES="$DELEGATES fftw"; fi
34891if test "$have_fpx" = 'yes'; then DELEGATES="$DELEGATES fpx"; fi
34892if test "$have_fontconfig" = 'yes'; then DELEGATES="$DELEGATES fontconfig"; fi
34893if test "$have_freetype" = 'yes'; then DELEGATES="$DELEGATES freetype"; fi
34894if test "$have_gslib" = 'yes'; then DELEGATES="$DELEGATES gs"; fi
34895if test "$have_gvc" = 'yes'; then DELEGATES="$DELEGATES gvc"; fi
34896if test "$have_jbig" = 'yes'; then DELEGATES="$DELEGATES jbig"; fi
34897if test "$have_jpeg" = 'yes'; then
34898 DELEGATES="$DELEGATES jpeg";
34899 if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES jng"; fi
34900fi
34901if test "$have_jp2" = 'yes'; then DELEGATES="$DELEGATES jp2"; fi
cristy71203402010-06-18 13:12:03 +000034902if test "$have_lcms2" = 'yes'; then DELEGATES="$DELEGATES lcms2"; fi
cristy3ed852e2009-09-05 21:47:34 +000034903if test "$have_lcms" = 'yes'; then DELEGATES="$DELEGATES lcms"; fi
34904if test "$have_lqr" = 'yes'; then DELEGATES="$DELEGATES lqr"; fi
cristyfbb0ef02010-12-19 02:32:11 +000034905if test "$have_lzma" = 'yes'; then DELEGATES="$DELEGATES lzma"; fi
cristy3ed852e2009-09-05 21:47:34 +000034906if test "$have_ffmpeg" = 'yes'; then DELEGATES="$DELEGATES mpeg"; fi
34907if test "$have_openexr" = 'yes'; then DELEGATES="$DELEGATES openexr"; fi
cristy29d54c72012-04-09 12:08:27 +000034908if test "$have_pango" = 'yes'; then DELEGATES="$DELEGATES pango"; fi
cristy3ed852e2009-09-05 21:47:34 +000034909if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES png"; fi
34910if test "$have_rsvg" = 'yes'; then DELEGATES="$DELEGATES rsvg"; fi
34911if test "$have_tiff" = 'yes'; then DELEGATES="$DELEGATES tiff"; fi
34912if test "$have_x" = 'yes'; then DELEGATES="$DELEGATES x11"; fi
34913if test "$have_xml" = 'yes'; then DELEGATES="$DELEGATES xml"; fi
34914if test "$have_wmf" = 'yes'; then DELEGATES="$DELEGATES wmf"; fi
34915if test "$have_zlib" = 'yes'; then DELEGATES="$DELEGATES zlib"; fi
34916
34917
34918
34919#
34920# Handle special compiler flags
34921#
34922
34923# Add '-p' if prof source profiling support enabled
34924if test "$enable_prof" = 'yes'; then
34925 CFLAGS="-p $CFLAGS"
34926 CXXFLAGS="-p $CXXFLAGS"
34927 LDFLAGS="-p $LDFLAGS"
34928fi
34929
34930# Add '-pg' if gprof source profiling support enabled
34931if test "$enable_gprof" = 'yes'; then
34932 CFLAGS="-pg $CFLAGS"
34933 CXXFLAGS="-pg $CXXFLAGS"
34934 LDFLAGS="-pg $LDFLAGS"
34935fi
34936
34937# Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
34938# This is a gcc-specific feature
34939if test "$enable_gcov" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000034940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000034941$as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034942if ${ac_cv_lib_gcov__gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034943 $as_echo_n "(cached) " >&6
34944else
34945 ac_check_lib_save_LIBS=$LIBS
34946LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000034947cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000034948/* end confdefs.h. */
34949
34950/* Override any GCC internal prototype to avoid an error.
34951 Use char because int might match the return type of a GCC
34952 builtin and then its argument prototype would still apply. */
34953#ifdef __cplusplus
34954extern "C"
34955#endif
34956char _gcov_init ();
34957int
34958main ()
34959{
34960return _gcov_init ();
34961 ;
34962 return 0;
34963}
34964_ACEOF
cristy8b350f62009-11-15 23:12:43 +000034965if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000034966 ac_cv_lib_gcov__gcov_init=yes
34967else
cristy8b350f62009-11-15 23:12:43 +000034968 ac_cv_lib_gcov__gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000034969fi
cristy8b350f62009-11-15 23:12:43 +000034970rm -f core conftest.err conftest.$ac_objext \
34971 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000034972LIBS=$ac_check_lib_save_LIBS
34973fi
cristy8b350f62009-11-15 23:12:43 +000034974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000034975$as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000034976if test "x$ac_cv_lib_gcov__gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000034977 cat >>confdefs.h <<_ACEOF
34978#define HAVE_LIBGCOV 1
34979_ACEOF
34980
34981 LIBS="-lgcov $LIBS"
34982
34983fi
34984
cristy8b350f62009-11-15 23:12:43 +000034985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000034986$as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034987if ${ac_cv_lib_gcov___gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034988 $as_echo_n "(cached) " >&6
34989else
34990 ac_check_lib_save_LIBS=$LIBS
34991LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000034992cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000034993/* end confdefs.h. */
34994
34995/* Override any GCC internal prototype to avoid an error.
34996 Use char because int might match the return type of a GCC
34997 builtin and then its argument prototype would still apply. */
34998#ifdef __cplusplus
34999extern "C"
35000#endif
35001char __gcov_init ();
35002int
35003main ()
35004{
35005return __gcov_init ();
35006 ;
35007 return 0;
35008}
35009_ACEOF
cristy8b350f62009-11-15 23:12:43 +000035010if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000035011 ac_cv_lib_gcov___gcov_init=yes
35012else
cristy8b350f62009-11-15 23:12:43 +000035013 ac_cv_lib_gcov___gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000035014fi
cristy8b350f62009-11-15 23:12:43 +000035015rm -f core conftest.err conftest.$ac_objext \
35016 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035017LIBS=$ac_check_lib_save_LIBS
35018fi
cristy8b350f62009-11-15 23:12:43 +000035019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000035020$as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000035021if test "x$ac_cv_lib_gcov___gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000035022 cat >>confdefs.h <<_ACEOF
35023#define HAVE_LIBGCOV 1
35024_ACEOF
35025
35026 LIBS="-lgcov $LIBS"
35027
35028fi
35029
35030 case "$target_os" in
35031 darwin*)
35032 OSX_GCOV_LDFLAG="-Wl,-single_module"
35033 ;;
35034 *)
35035 OSX_GCOV_LDFLAG=""
35036 ;;
35037 esac
35038
35039 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
35040 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
35041 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
35042fi
35043
35044#
35045# Build library dependency list for libMagickCore
35046#
35047
cristyc6722092012-10-14 00:19:31 +000035048if test "$build_modules" != 'no'; then
cristy5eef09f2012-10-16 12:08:28 +000035049 MAGICK_DEP_LIBS="$LCMS_LIBS $FREETYPE_LIBS $LQR_LIBS $FFTW_LIBS $FONTCONFIG_LIBS $XEXT_LIBS $IPC_LIBS $X11_LIBS $XT_LIBS $LZMA_LIBS $BZLIB_LIBS $ZLIB_LIBS $LTDL_LIBS $GDI32_LIBS $MATH_LIBS $GOMP_LIBS $CL_LIBS $UMEM_LIBS $THREAD_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000035050else
cristy3a75f062012-09-08 23:29:40 +000035051 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 $GOMP_LIBS $CL_LIBS $UMEM_LIBS $THREAD_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000035052fi
35053
35054
35055#
35056# Remove extraneous spaces from output variables (asthetic)
35057#
35058X_CFLAGS=`echo $X_CFLAGS | sed -e 's/ */ /g'`
35059X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/ */ /g'`
35060X_LIBS=`echo $X_LIBS | sed -e 's/ */ /g'`
35061X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/ */ /g'`
35062
35063CC=`echo $CC | sed -e 's/ */ /g'`
35064CFLAGS=`echo $CFLAGS | sed -e 's/ */ /g'`
35065CPPFLAGS=`echo $CPPFLAGS | sed -e 's/ */ /g'`
35066CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ */ /g'`
35067DELEGATES=`echo $DELEGATES | sed -e 's/^ //g'`
35068DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/ */ /g'`
35069LDFLAGS=`echo $LDFLAGS | sed -e 's/ */ /g'`
35070TESTED_LIBS=`echo $LIBS | sed -e 's/ */ /g'`
35071MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'`
35072#LIBS=`echo $LIBS | sed -e 's/ */ /g'`
35073
35074# Pass only user-provided LIBS as "global" libraries
35075LIBS=$USER_LIBS
35076
35077#AC_SUBST(CPPFLAGS)
35078
35079#AC_SUBST(LDFLAGS)
35080#AC_SUBST(X_PRE_LIBS)
35081#AC_SUBST(X_LIBS)
35082#AC_SUBST(X_EXTRA_LIBS)
35083
35084MAGICK_CFLAGS=$CFLAGS
35085MAGICK_CXXFLAGS="$CXXFLAGS"
35086MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'`
35087MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'`
35088MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
cristyc6722092012-10-14 00:19:31 +000035089MAGICK_LIBS="-lMagickCore $MAGICK_DEP_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000035090
35091
35092
35093
35094
35095
35096
35097
cristyfd9dcd42010-08-08 18:07:02 +000035098
cristy3ed852e2009-09-05 21:47:34 +000035099# Set configured scripts to executable.
35100ac_config_commands="$ac_config_commands default"
35101
cristy2bd4b6e2012-07-22 15:29:11 +000035102ac_config_commands="$ac_config_commands magick.sh.in"
35103
cristy3ed852e2009-09-05 21:47:34 +000035104ac_config_commands="$ac_config_commands MagickCore-config.in"
35105
cristy3ed852e2009-09-05 21:47:34 +000035106ac_config_commands="$ac_config_commands MagickWand-config.in"
35107
cristy3ed852e2009-09-05 21:47:34 +000035108ac_config_commands="$ac_config_commands Magick++-config.in"
35109
35110ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
35111
35112
cristy09b53e12011-10-14 12:47:22 +000035113{ $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
35114$as_echo "$as_me: -------------------------------------------------------------" >&6;}
35115{ $as_echo "$as_me:${as_lineno-$LINENO}: Update ImageMagick configuration" >&5
35116$as_echo "$as_me: Update ImageMagick configuration" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035117cat >confcache <<\_ACEOF
35118# This file is a shell script that caches the results of configure
35119# tests run on this system so they can be shared between configure
35120# scripts and configure runs, see configure's option --config-cache.
35121# It is not useful on other systems. If it contains results you don't
35122# want to keep, you may remove or edit it.
35123#
35124# config.status only pays attention to the cache file if you give it
35125# the --recheck option to rerun configure.
35126#
35127# `ac_cv_env_foo' variables (set or unset) will be overridden when
35128# loading this file, other *unset* `ac_cv_foo' will be assigned the
35129# following values.
35130
35131_ACEOF
35132
35133# The following way of writing the cache mishandles newlines in values,
35134# but we know of no workaround that is simple, portable, and efficient.
35135# So, we kill variables containing newlines.
35136# Ultrix sh set writes to stderr and can't be redirected directly,
35137# and sets the high bit in the cache file unless we assign to the vars.
35138(
35139 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
35140 eval ac_val=\$$ac_var
35141 case $ac_val in #(
35142 *${as_nl}*)
35143 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +000035144 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +000035145$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
35146 esac
35147 case $ac_var in #(
35148 _ | IFS | as_nl) ;; #(
35149 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +000035150 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +000035151 esac ;;
35152 esac
35153 done
35154
35155 (set) 2>&1 |
35156 case $as_nl`(ac_space=' '; set) 2>&1` in #(
35157 *${as_nl}ac_space=\ *)
cristy8b350f62009-11-15 23:12:43 +000035158 # `set' does not quote correctly, so add quotes: double-quote
35159 # substitution turns \\\\ into \\, and sed turns \\ into \.
cristy3ed852e2009-09-05 21:47:34 +000035160 sed -n \
35161 "s/'/'\\\\''/g;
35162 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
35163 ;; #(
35164 *)
35165 # `set' quotes correctly as required by POSIX, so do not add quotes.
35166 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
35167 ;;
35168 esac |
35169 sort
35170) |
35171 sed '
35172 /^ac_cv_env_/b end
35173 t clear
35174 :clear
35175 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
35176 t end
35177 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
35178 :end' >>confcache
35179if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
35180 if test -w "$cache_file"; then
cristyda16f162011-02-19 23:52:17 +000035181 if test "x$cache_file" != "x/dev/null"; then
cristy8b350f62009-11-15 23:12:43 +000035182 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000035183$as_echo "$as_me: updating cache $cache_file" >&6;}
cristyda16f162011-02-19 23:52:17 +000035184 if test ! -f "$cache_file" || test -h "$cache_file"; then
35185 cat confcache >"$cache_file"
35186 else
35187 case $cache_file in #(
35188 */* | ?:*)
35189 mv -f confcache "$cache_file"$$ &&
35190 mv -f "$cache_file"$$ "$cache_file" ;; #(
35191 *)
35192 mv -f confcache "$cache_file" ;;
35193 esac
35194 fi
35195 fi
cristy3ed852e2009-09-05 21:47:34 +000035196 else
cristy8b350f62009-11-15 23:12:43 +000035197 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000035198$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
35199 fi
35200fi
35201rm -f confcache
35202
35203test "x$prefix" = xNONE && prefix=$ac_default_prefix
35204# Let make expand exec_prefix.
35205test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
35206
35207DEFS=-DHAVE_CONFIG_H
35208
35209ac_libobjs=
35210ac_ltlibobjs=
cristy98dddb52010-11-04 00:30:15 +000035211U=
cristy3ed852e2009-09-05 21:47:34 +000035212for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
35213 # 1. Remove the extension, and $U if already installed.
35214 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
35215 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
35216 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
35217 # will be set to the directory where LIBOBJS objects are built.
cristy8b350f62009-11-15 23:12:43 +000035218 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
35219 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
cristy3ed852e2009-09-05 21:47:34 +000035220done
35221LIBOBJS=$ac_libobjs
35222
35223LTLIBOBJS=$ac_ltlibobjs
35224
35225
cristyc0890a62012-07-19 00:18:20 +000035226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
35227$as_echo_n "checking that generated files are newer than configure... " >&6; }
35228 if test -n "$am_sleep_pid"; then
35229 # Hide warnings about reused PIDs.
35230 wait $am_sleep_pid 2>/dev/null
35231 fi
35232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
35233$as_echo "done" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000035234 if test -n "$EXEEXT"; then
35235 am__EXEEXT_TRUE=
35236 am__EXEEXT_FALSE='#'
35237else
35238 am__EXEEXT_TRUE='#'
35239 am__EXEEXT_FALSE=
35240fi
cristy3ed852e2009-09-05 21:47:34 +000035241
cristy73bd4a52010-10-05 11:24:23 +000035242if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035243 as_fn_error $? "conditional \"AMDEP\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035244Usually this means the macro was only invoked conditionally." "$LINENO" 5
35245fi
35246if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035247 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035248Usually this means the macro was only invoked conditionally." "$LINENO" 5
35249fi
35250if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035251 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035252Usually this means the macro was only invoked conditionally." "$LINENO" 5
35253fi
35254if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035255 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035256Usually this means the macro was only invoked conditionally." "$LINENO" 5
35257fi
cristy9b86f202012-11-28 21:55:35 +000035258if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
35259 as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
35260Usually this means the macro was only invoked conditionally." "$LINENO" 5
35261fi
cristy73bd4a52010-10-05 11:24:23 +000035262if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035263 as_fn_error $? "conditional \"WINGDI32_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035264Usually this means the macro was only invoked conditionally." "$LINENO" 5
35265fi
35266if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035267 as_fn_error $? "conditional \"WIN32_NATIVE_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035268Usually this means the macro was only invoked conditionally." "$LINENO" 5
35269fi
35270if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035271 as_fn_error $? "conditional \"CYGWIN_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035272Usually this means the macro was only invoked conditionally." "$LINENO" 5
35273fi
35274if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035275 as_fn_error $? "conditional \"USING_CL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035276Usually this means the macro was only invoked conditionally." "$LINENO" 5
35277fi
cristy73bd4a52010-10-05 11:24:23 +000035278if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035279 as_fn_error $? "conditional \"WITH_SHARED_LIBS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035280Usually this means the macro was only invoked conditionally." "$LINENO" 5
35281fi
35282if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035283 as_fn_error $? "conditional \"WITH_MODULES\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035284Usually this means the macro was only invoked conditionally." "$LINENO" 5
35285fi
cristy73bd4a52010-10-05 11:24:23 +000035286if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035287 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035288Usually this means the macro was only invoked conditionally." "$LINENO" 5
35289fi
cristy71d8c202012-03-20 17:05:01 +000035290if test -z "${LEGACY_SUPPORT_TRUE}" && test -z "${LEGACY_SUPPORT_FALSE}"; then
35291 as_fn_error $? "conditional \"LEGACY_SUPPORT\" was never defined.
35292Usually this means the macro was only invoked conditionally." "$LINENO" 5
35293fi
cristy73bd4a52010-10-05 11:24:23 +000035294
35295if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035296 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035297Usually this means the macro was only invoked conditionally." "$LINENO" 5
35298fi
35299if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035300 as_fn_error $? "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035301Usually this means the macro was only invoked conditionally." "$LINENO" 5
35302fi
35303if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035304 as_fn_error $? "conditional \"HasUMEM\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035305Usually this means the macro was only invoked conditionally." "$LINENO" 5
35306fi
35307if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035308 as_fn_error $? "conditional \"BZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035309Usually this means the macro was only invoked conditionally." "$LINENO" 5
35310fi
35311if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035312 as_fn_error $? "conditional \"X11_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035313Usually this means the macro was only invoked conditionally." "$LINENO" 5
35314fi
35315if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035316 as_fn_error $? "conditional \"ZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035317Usually this means the macro was only invoked conditionally." "$LINENO" 5
35318fi
cristy5eef09f2012-10-16 12:08:28 +000035319if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
35320 as_fn_error $? "conditional \"WITH_LTDL\" was never defined.
35321Usually this means the macro was only invoked conditionally." "$LINENO" 5
35322fi
cristy73bd4a52010-10-05 11:24:23 +000035323if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035324 as_fn_error $? "conditional \"AUTOTRACE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035325Usually this means the macro was only invoked conditionally." "$LINENO" 5
35326fi
35327if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035328 as_fn_error $? "conditional \"DPS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035329Usually this means the macro was only invoked conditionally." "$LINENO" 5
35330fi
35331if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035332 as_fn_error $? "conditional \"DJVU_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035333Usually this means the macro was only invoked conditionally." "$LINENO" 5
35334fi
35335if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035336 as_fn_error $? "conditional \"FFTW_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035337Usually this means the macro was only invoked conditionally." "$LINENO" 5
35338fi
35339if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035340 as_fn_error $? "conditional \"FPX_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035341Usually this means the macro was only invoked conditionally." "$LINENO" 5
35342fi
35343if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035344 as_fn_error $? "conditional \"FONTCONFIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035345Usually this means the macro was only invoked conditionally." "$LINENO" 5
35346fi
35347if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035348 as_fn_error $? "conditional \"FREETYPE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035349Usually this means the macro was only invoked conditionally." "$LINENO" 5
35350fi
35351if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035352 as_fn_error $? "conditional \"GS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035353Usually this means the macro was only invoked conditionally." "$LINENO" 5
35354fi
35355if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035356 as_fn_error $? "conditional \"GVC_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035357Usually this means the macro was only invoked conditionally." "$LINENO" 5
35358fi
35359if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035360 as_fn_error $? "conditional \"JBIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035361Usually this means the macro was only invoked conditionally." "$LINENO" 5
35362fi
35363if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035364 as_fn_error $? "conditional \"JPEG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035365Usually this means the macro was only invoked conditionally." "$LINENO" 5
35366fi
35367if test -z "${JP2_DELEGATE_TRUE}" && test -z "${JP2_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035368 as_fn_error $? "conditional \"JP2_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035369Usually this means the macro was only invoked conditionally." "$LINENO" 5
35370fi
35371if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035372 as_fn_error $? "conditional \"LCMS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035373Usually this means the macro was only invoked conditionally." "$LINENO" 5
35374fi
35375if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035376 as_fn_error $? "conditional \"LQR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035377Usually this means the macro was only invoked conditionally." "$LINENO" 5
35378fi
cristyfbb0ef02010-12-19 02:32:11 +000035379if test -z "${LZMA_DELEGATE_TRUE}" && test -z "${LZMA_DELEGATE_FALSE}"; then
35380 as_fn_error $? "conditional \"LZMA_DELEGATE\" was never defined.
35381Usually this means the macro was only invoked conditionally." "$LINENO" 5
35382fi
cristy73bd4a52010-10-05 11:24:23 +000035383if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035384 as_fn_error $? "conditional \"OPENEXR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035385Usually this means the macro was only invoked conditionally." "$LINENO" 5
35386fi
cristy41cbe8a2011-10-27 01:35:18 +000035387if test -z "${PANGO_DELEGATE_TRUE}" && test -z "${PANGO_DELEGATE_FALSE}"; then
35388 as_fn_error $? "conditional \"PANGO_DELEGATE\" was never defined.
35389Usually this means the macro was only invoked conditionally." "$LINENO" 5
35390fi
cristya054b762012-03-26 23:16:00 +000035391if test -z "${PANGOCAIRO_DELEGATE_TRUE}" && test -z "${PANGOCAIRO_DELEGATE_FALSE}"; then
35392 as_fn_error $? "conditional \"PANGOCAIRO_DELEGATE\" was never defined.
cristy41cbe8a2011-10-27 01:35:18 +000035393Usually this means the macro was only invoked conditionally." "$LINENO" 5
35394fi
cristy73bd4a52010-10-05 11:24:23 +000035395if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035396 as_fn_error $? "conditional \"PNG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035397Usually this means the macro was only invoked conditionally." "$LINENO" 5
35398fi
35399if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035400 as_fn_error $? "conditional \"RSVG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035401Usually this means the macro was only invoked conditionally." "$LINENO" 5
35402fi
35403if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035404 as_fn_error $? "conditional \"CAIRO_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035405Usually this means the macro was only invoked conditionally." "$LINENO" 5
35406fi
35407if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035408 as_fn_error $? "conditional \"TIFF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035409Usually this means the macro was only invoked conditionally." "$LINENO" 5
35410fi
cristyb1860752011-03-14 00:27:46 +000035411if test -z "${WEBP_DELEGATE_TRUE}" && test -z "${WEBP_DELEGATE_FALSE}"; then
35412 as_fn_error $? "conditional \"WEBP_DELEGATE\" was never defined.
35413Usually this means the macro was only invoked conditionally." "$LINENO" 5
35414fi
cristy73bd4a52010-10-05 11:24:23 +000035415if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035416 as_fn_error $? "conditional \"WMF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035417Usually this means the macro was only invoked conditionally." "$LINENO" 5
35418fi
35419if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035420 as_fn_error $? "conditional \"XML_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035421Usually this means the macro was only invoked conditionally." "$LINENO" 5
35422fi
35423if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035424 as_fn_error $? "conditional \"RPM_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035425Usually this means the macro was only invoked conditionally." "$LINENO" 5
35426fi
35427if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035428 as_fn_error $? "conditional \"P7ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035429Usually this means the macro was only invoked conditionally." "$LINENO" 5
35430fi
35431if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035432 as_fn_error $? "conditional \"ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035433Usually this means the macro was only invoked conditionally." "$LINENO" 5
35434fi
35435if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035436 as_fn_error $? "conditional \"WITH_PERL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035437Usually this means the macro was only invoked conditionally." "$LINENO" 5
35438fi
35439if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035440 as_fn_error $? "conditional \"WITH_PERL_STATIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035441Usually this means the macro was only invoked conditionally." "$LINENO" 5
35442fi
35443if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035444 as_fn_error $? "conditional \"WITH_PERL_DYNAMIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035445Usually this means the macro was only invoked conditionally." "$LINENO" 5
35446fi
cristy3ed852e2009-09-05 21:47:34 +000035447
cristyda16f162011-02-19 23:52:17 +000035448: "${CONFIG_STATUS=./config.status}"
cristy3ed852e2009-09-05 21:47:34 +000035449ac_write_fail=0
35450ac_clean_files_save=$ac_clean_files
35451ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cristy8b350f62009-11-15 23:12:43 +000035452{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
cristy3ed852e2009-09-05 21:47:34 +000035453$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
cristy8b350f62009-11-15 23:12:43 +000035454as_write_fail=0
35455cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000035456#! $SHELL
35457# Generated by $as_me.
35458# Run this file to recreate the current configuration.
35459# Compiler output produced by configure, useful for debugging
35460# configure, is in config.log if it exists.
35461
35462debug=false
35463ac_cs_recheck=false
35464ac_cs_silent=false
cristy3ed852e2009-09-05 21:47:34 +000035465
cristy8b350f62009-11-15 23:12:43 +000035466SHELL=\${CONFIG_SHELL-$SHELL}
35467export SHELL
35468_ASEOF
35469cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
35470## -------------------- ##
35471## M4sh Initialization. ##
35472## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000035473
35474# Be more Bourne compatible
35475DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000035476if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000035477 emulate sh
35478 NULLCMD=:
35479 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
35480 # is contrary to our usage. Disable this feature.
35481 alias -g '${1+"$@"}'='"$@"'
35482 setopt NO_GLOB_SUBST
35483else
cristy8b350f62009-11-15 23:12:43 +000035484 case `(set -o) 2>/dev/null` in #(
35485 *posix*) :
35486 set -o posix ;; #(
35487 *) :
35488 ;;
cristy3ed852e2009-09-05 21:47:34 +000035489esac
cristy3ed852e2009-09-05 21:47:34 +000035490fi
35491
35492
cristy3ed852e2009-09-05 21:47:34 +000035493as_nl='
35494'
35495export as_nl
35496# Printing a long string crashes Solaris 7 /usr/bin/printf.
35497as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
35498as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
35499as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000035500# Prefer a ksh shell builtin over an external printf program on Solaris,
35501# but without wasting forks for bash or zsh.
35502if test -z "$BASH_VERSION$ZSH_VERSION" \
35503 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
35504 as_echo='print -r --'
35505 as_echo_n='print -rn --'
35506elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000035507 as_echo='printf %s\n'
35508 as_echo_n='printf %s'
35509else
35510 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
35511 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
35512 as_echo_n='/usr/ucb/echo -n'
35513 else
35514 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
35515 as_echo_n_body='eval
35516 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000035517 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000035518 *"$as_nl"*)
35519 expr "X$arg" : "X\\(.*\\)$as_nl";
35520 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
35521 esac;
35522 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
35523 '
35524 export as_echo_n_body
35525 as_echo_n='sh -c $as_echo_n_body as_echo'
35526 fi
35527 export as_echo_body
35528 as_echo='sh -c $as_echo_body as_echo'
35529fi
35530
35531# The user is always right.
35532if test "${PATH_SEPARATOR+set}" != set; then
35533 PATH_SEPARATOR=:
35534 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
35535 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
35536 PATH_SEPARATOR=';'
35537 }
35538fi
35539
cristy3ed852e2009-09-05 21:47:34 +000035540
35541# IFS
35542# We need space, tab and new line, in precisely that order. Quoting is
35543# there to prevent editors from complaining about space-tab.
35544# (If _AS_PATH_WALK were called with IFS unset, it would disable word
35545# splitting by setting IFS to empty value.)
35546IFS=" "" $as_nl"
35547
35548# Find who we are. Look in the path if we contain no directory separator.
cristyda16f162011-02-19 23:52:17 +000035549as_myself=
cristy8b350f62009-11-15 23:12:43 +000035550case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000035551 *[\\/]* ) as_myself=$0 ;;
35552 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35553for as_dir in $PATH
35554do
35555 IFS=$as_save_IFS
35556 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035557 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
35558 done
cristy3ed852e2009-09-05 21:47:34 +000035559IFS=$as_save_IFS
35560
35561 ;;
35562esac
35563# We did not find ourselves, most probably we were run as `sh COMMAND'
35564# in which case we are not to be found in the path.
35565if test "x$as_myself" = x; then
35566 as_myself=$0
35567fi
35568if test ! -f "$as_myself"; then
35569 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +000035570 exit 1
cristy3ed852e2009-09-05 21:47:34 +000035571fi
35572
cristy8b350f62009-11-15 23:12:43 +000035573# Unset variables that we do not need and which cause bugs (e.g. in
35574# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
35575# suppresses any "Segmentation fault" message there. '((' could
35576# trigger a bug in pdksh 5.2.14.
35577for as_var in BASH_ENV ENV MAIL MAILPATH
35578do eval test x\${$as_var+set} = xset \
35579 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +000035580done
35581PS1='$ '
35582PS2='> '
35583PS4='+ '
35584
35585# NLS nuisances.
35586LC_ALL=C
35587export LC_ALL
35588LANGUAGE=C
35589export LANGUAGE
35590
cristy8b350f62009-11-15 23:12:43 +000035591# CDPATH.
35592(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
35593
35594
cristy98dddb52010-11-04 00:30:15 +000035595# as_fn_error STATUS ERROR [LINENO LOG_FD]
35596# ----------------------------------------
cristy8b350f62009-11-15 23:12:43 +000035597# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
35598# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cristy98dddb52010-11-04 00:30:15 +000035599# script with STATUS, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +000035600as_fn_error ()
35601{
cristy98dddb52010-11-04 00:30:15 +000035602 as_status=$1; test $as_status -eq 0 && as_status=1
35603 if test "$4"; then
35604 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
35605 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cristy8b350f62009-11-15 23:12:43 +000035606 fi
cristy98dddb52010-11-04 00:30:15 +000035607 $as_echo "$as_me: error: $2" >&2
cristy8b350f62009-11-15 23:12:43 +000035608 as_fn_exit $as_status
35609} # as_fn_error
35610
35611
35612# as_fn_set_status STATUS
35613# -----------------------
35614# Set $? to STATUS, without forking.
35615as_fn_set_status ()
35616{
35617 return $1
35618} # as_fn_set_status
35619
35620# as_fn_exit STATUS
35621# -----------------
35622# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
35623as_fn_exit ()
35624{
35625 set +e
35626 as_fn_set_status $1
35627 exit $1
35628} # as_fn_exit
35629
35630# as_fn_unset VAR
35631# ---------------
35632# Portably unset VAR.
35633as_fn_unset ()
35634{
35635 { eval $1=; unset $1;}
35636}
35637as_unset=as_fn_unset
35638# as_fn_append VAR VALUE
35639# ----------------------
35640# Append the text in VALUE to the end of the definition contained in VAR. Take
35641# advantage of any shell optimizations that allow amortized linear growth over
35642# repeated appends, instead of the typical quadratic growth present in naive
35643# implementations.
35644if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
35645 eval 'as_fn_append ()
35646 {
35647 eval $1+=\$2
35648 }'
35649else
35650 as_fn_append ()
35651 {
35652 eval $1=\$$1\$2
35653 }
35654fi # as_fn_append
35655
35656# as_fn_arith ARG...
35657# ------------------
35658# Perform arithmetic evaluation on the ARGs, and store the result in the
35659# global $as_val. Take advantage of shells that can avoid forks. The arguments
35660# must be portable across $(()) and expr.
35661if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
35662 eval 'as_fn_arith ()
35663 {
35664 as_val=$(( $* ))
35665 }'
35666else
35667 as_fn_arith ()
35668 {
35669 as_val=`expr "$@" || test $? -eq 1`
35670 }
35671fi # as_fn_arith
35672
35673
cristy3ed852e2009-09-05 21:47:34 +000035674if expr a : '\(a\)' >/dev/null 2>&1 &&
35675 test "X`expr 00001 : '.*\(...\)'`" = X001; then
35676 as_expr=expr
35677else
35678 as_expr=false
35679fi
35680
35681if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
35682 as_basename=basename
35683else
35684 as_basename=false
35685fi
35686
cristy8b350f62009-11-15 23:12:43 +000035687if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
35688 as_dirname=dirname
35689else
35690 as_dirname=false
35691fi
cristy3ed852e2009-09-05 21:47:34 +000035692
cristy3ed852e2009-09-05 21:47:34 +000035693as_me=`$as_basename -- "$0" ||
35694$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
35695 X"$0" : 'X\(//\)$' \| \
35696 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
35697$as_echo X/"$0" |
35698 sed '/^.*\/\([^/][^/]*\)\/*$/{
35699 s//\1/
35700 q
35701 }
35702 /^X\/\(\/\/\)$/{
35703 s//\1/
35704 q
35705 }
35706 /^X\/\(\/\).*/{
35707 s//\1/
35708 q
35709 }
35710 s/.*/./; q'`
35711
cristy8b350f62009-11-15 23:12:43 +000035712# Avoid depending upon Character Ranges.
35713as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35714as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35715as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35716as_cr_digits='0123456789'
35717as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +000035718
35719ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +000035720case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +000035721-n*)
cristy8b350f62009-11-15 23:12:43 +000035722 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +000035723 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +000035724 xy) ECHO_C='\c';;
35725 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
35726 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +000035727 esac;;
35728*)
35729 ECHO_N='-n';;
35730esac
cristy3ed852e2009-09-05 21:47:34 +000035731
35732rm -f conf$$ conf$$.exe conf$$.file
35733if test -d conf$$.dir; then
35734 rm -f conf$$.dir/conf$$.file
35735else
35736 rm -f conf$$.dir
35737 mkdir conf$$.dir 2>/dev/null
35738fi
35739if (echo >conf$$.file) 2>/dev/null; then
35740 if ln -s conf$$.file conf$$ 2>/dev/null; then
35741 as_ln_s='ln -s'
35742 # ... but there are two gotchas:
35743 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
35744 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
cristy14fefe52012-05-21 00:59:18 +000035745 # In both cases, we have to default to `cp -pR'.
cristy3ed852e2009-09-05 21:47:34 +000035746 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
cristy14fefe52012-05-21 00:59:18 +000035747 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000035748 elif ln conf$$.file conf$$ 2>/dev/null; then
35749 as_ln_s=ln
35750 else
cristy14fefe52012-05-21 00:59:18 +000035751 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000035752 fi
35753else
cristy14fefe52012-05-21 00:59:18 +000035754 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000035755fi
35756rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
35757rmdir conf$$.dir 2>/dev/null
35758
cristy8b350f62009-11-15 23:12:43 +000035759
35760# as_fn_mkdir_p
35761# -------------
35762# Create "$as_dir" as a directory, including parents if necessary.
35763as_fn_mkdir_p ()
35764{
35765
35766 case $as_dir in #(
35767 -*) as_dir=./$as_dir;;
35768 esac
35769 test -d "$as_dir" || eval $as_mkdir_p || {
35770 as_dirs=
35771 while :; do
35772 case $as_dir in #(
35773 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
35774 *) as_qdir=$as_dir;;
35775 esac
35776 as_dirs="'$as_qdir' $as_dirs"
35777 as_dir=`$as_dirname -- "$as_dir" ||
35778$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35779 X"$as_dir" : 'X\(//\)[^/]' \| \
35780 X"$as_dir" : 'X\(//\)$' \| \
35781 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35782$as_echo X"$as_dir" |
35783 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35784 s//\1/
35785 q
35786 }
35787 /^X\(\/\/\)[^/].*/{
35788 s//\1/
35789 q
35790 }
35791 /^X\(\/\/\)$/{
35792 s//\1/
35793 q
35794 }
35795 /^X\(\/\).*/{
35796 s//\1/
35797 q
35798 }
35799 s/.*/./; q'`
35800 test -d "$as_dir" && break
35801 done
35802 test -z "$as_dirs" || eval "mkdir $as_dirs"
cristy98dddb52010-11-04 00:30:15 +000035803 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cristy8b350f62009-11-15 23:12:43 +000035804
35805
35806} # as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000035807if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000035808 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +000035809else
35810 test -d ./-p && rmdir ./-p
35811 as_mkdir_p=false
35812fi
35813
cristy14fefe52012-05-21 00:59:18 +000035814
35815# as_fn_executable_p FILE
35816# -----------------------
35817# Test if FILE is an executable regular file.
35818as_fn_executable_p ()
35819{
35820 test -f "$1" && test -x "$1"
35821} # as_fn_executable_p
35822as_test_x='test -x'
35823as_executable_p=as_fn_executable_p
cristy3ed852e2009-09-05 21:47:34 +000035824
35825# Sed expression to map a string onto a valid CPP name.
35826as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
35827
35828# Sed expression to map a string onto a valid variable name.
35829as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
35830
35831
35832exec 6>&1
cristy8b350f62009-11-15 23:12:43 +000035833## ----------------------------------- ##
35834## Main body of $CONFIG_STATUS script. ##
35835## ----------------------------------- ##
35836_ASEOF
35837test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000035838
cristy8b350f62009-11-15 23:12:43 +000035839cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35840# Save the log message, to keep $0 and so on meaningful, and to
cristy3ed852e2009-09-05 21:47:34 +000035841# report actual input values of CONFIG_FILES etc. instead of their
35842# values after options handling.
35843ac_log="
cristy29eb34e2011-10-16 00:46:08 +000035844This file was extended by ImageMagick $as_me 7.0.0-0, which was
cristy14fefe52012-05-21 00:59:18 +000035845generated by GNU Autoconf 2.69. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +000035846
35847 CONFIG_FILES = $CONFIG_FILES
35848 CONFIG_HEADERS = $CONFIG_HEADERS
35849 CONFIG_LINKS = $CONFIG_LINKS
35850 CONFIG_COMMANDS = $CONFIG_COMMANDS
35851 $ $0 $@
35852
35853on `(hostname || uname -n) 2>/dev/null | sed 1q`
35854"
35855
35856_ACEOF
35857
35858case $ac_config_files in *"
35859"*) set x $ac_config_files; shift; ac_config_files=$*;;
35860esac
35861
35862case $ac_config_headers in *"
35863"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
35864esac
35865
35866
35867cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35868# Files that config.status was made for.
35869config_files="$ac_config_files"
35870config_headers="$ac_config_headers"
35871config_commands="$ac_config_commands"
35872
35873_ACEOF
35874
35875cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35876ac_cs_usage="\
cristy8b350f62009-11-15 23:12:43 +000035877\`$as_me' instantiates files and other configuration actions
35878from templates according to the current configuration. Unless the files
35879and actions are specified as TAGs, all are instantiated by default.
cristy3ed852e2009-09-05 21:47:34 +000035880
cristy8b350f62009-11-15 23:12:43 +000035881Usage: $0 [OPTION]... [TAG]...
cristy3ed852e2009-09-05 21:47:34 +000035882
35883 -h, --help print this help, then exit
35884 -V, --version print version number and configuration settings, then exit
cristycd4c5312009-11-22 01:19:08 +000035885 --config print configuration, then exit
cristy3ed852e2009-09-05 21:47:34 +000035886 -q, --quiet, --silent
35887 do not print progress messages
35888 -d, --debug don't remove temporary files
35889 --recheck update $as_me by reconfiguring in the same conditions
35890 --file=FILE[:TEMPLATE]
35891 instantiate the configuration file FILE
35892 --header=FILE[:TEMPLATE]
35893 instantiate the configuration header FILE
35894
35895Configuration files:
35896$config_files
35897
35898Configuration headers:
35899$config_headers
35900
35901Configuration commands:
35902$config_commands
35903
cristy8b350f62009-11-15 23:12:43 +000035904Report bugs to <http://www.imagemagick.org>."
cristy3ed852e2009-09-05 21:47:34 +000035905
35906_ACEOF
35907cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristycd4c5312009-11-22 01:19:08 +000035908ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
cristy3ed852e2009-09-05 21:47:34 +000035909ac_cs_version="\\
cristy29eb34e2011-10-16 00:46:08 +000035910ImageMagick config.status 7.0.0-0
cristy14fefe52012-05-21 00:59:18 +000035911configured by $0, generated by GNU Autoconf 2.69,
cristycd4c5312009-11-22 01:19:08 +000035912 with options \\"\$ac_cs_config\\"
cristy3ed852e2009-09-05 21:47:34 +000035913
cristy14fefe52012-05-21 00:59:18 +000035914Copyright (C) 2012 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +000035915This config.status script is free software; the Free Software Foundation
35916gives unlimited permission to copy, distribute and modify it."
35917
35918ac_pwd='$ac_pwd'
35919srcdir='$srcdir'
35920INSTALL='$INSTALL'
cristy73bd4a52010-10-05 11:24:23 +000035921MKDIR_P='$MKDIR_P'
35922AWK='$AWK'
cristy3ed852e2009-09-05 21:47:34 +000035923test -n "\$AWK" || AWK=awk
35924_ACEOF
35925
35926cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35927# The default lists apply if the user does not specify any file.
35928ac_need_defaults=:
35929while test $# != 0
35930do
35931 case $1 in
cristyda16f162011-02-19 23:52:17 +000035932 --*=?*)
cristy3ed852e2009-09-05 21:47:34 +000035933 ac_option=`expr "X$1" : 'X\([^=]*\)='`
35934 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
35935 ac_shift=:
35936 ;;
cristyda16f162011-02-19 23:52:17 +000035937 --*=)
35938 ac_option=`expr "X$1" : 'X\([^=]*\)='`
35939 ac_optarg=
35940 ac_shift=:
35941 ;;
cristy3ed852e2009-09-05 21:47:34 +000035942 *)
35943 ac_option=$1
35944 ac_optarg=$2
35945 ac_shift=shift
35946 ;;
35947 esac
35948
35949 case $ac_option in
35950 # Handling of the options.
35951 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
35952 ac_cs_recheck=: ;;
35953 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
35954 $as_echo "$ac_cs_version"; exit ;;
cristycd4c5312009-11-22 01:19:08 +000035955 --config | --confi | --conf | --con | --co | --c )
35956 $as_echo "$ac_cs_config"; exit ;;
cristy3ed852e2009-09-05 21:47:34 +000035957 --debug | --debu | --deb | --de | --d | -d )
35958 debug=: ;;
35959 --file | --fil | --fi | --f )
35960 $ac_shift
35961 case $ac_optarg in
35962 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
cristyda16f162011-02-19 23:52:17 +000035963 '') as_fn_error $? "missing file argument" ;;
cristy3ed852e2009-09-05 21:47:34 +000035964 esac
cristy8b350f62009-11-15 23:12:43 +000035965 as_fn_append CONFIG_FILES " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000035966 ac_need_defaults=false;;
35967 --header | --heade | --head | --hea )
35968 $ac_shift
35969 case $ac_optarg in
35970 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
35971 esac
cristy8b350f62009-11-15 23:12:43 +000035972 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000035973 ac_need_defaults=false;;
35974 --he | --h)
35975 # Conflict between --help and --header
cristy98dddb52010-11-04 00:30:15 +000035976 as_fn_error $? "ambiguous option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000035977Try \`$0 --help' for more information.";;
cristy3ed852e2009-09-05 21:47:34 +000035978 --help | --hel | -h )
35979 $as_echo "$ac_cs_usage"; exit ;;
35980 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
35981 | -silent | --silent | --silen | --sile | --sil | --si | --s)
35982 ac_cs_silent=: ;;
35983
35984 # This is an error.
cristy98dddb52010-11-04 00:30:15 +000035985 -*) as_fn_error $? "unrecognized option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000035986Try \`$0 --help' for more information." ;;
cristy3ed852e2009-09-05 21:47:34 +000035987
cristy8b350f62009-11-15 23:12:43 +000035988 *) as_fn_append ac_config_targets " $1"
cristy3ed852e2009-09-05 21:47:34 +000035989 ac_need_defaults=false ;;
35990
35991 esac
35992 shift
35993done
35994
35995ac_configure_extra_args=
35996
35997if $ac_cs_silent; then
35998 exec 6>/dev/null
35999 ac_configure_extra_args="$ac_configure_extra_args --silent"
36000fi
36001
36002_ACEOF
36003cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36004if \$ac_cs_recheck; then
cristy14fefe52012-05-21 00:59:18 +000036005 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
cristy3ed852e2009-09-05 21:47:34 +000036006 shift
36007 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
36008 CONFIG_SHELL='$SHELL'
36009 export CONFIG_SHELL
36010 exec "\$@"
36011fi
36012
36013_ACEOF
36014cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36015exec 5>>config.log
36016{
36017 echo
36018 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
36019## Running $as_me. ##
36020_ASBOX
36021 $as_echo "$ac_log"
36022} >&5
36023
36024_ACEOF
36025cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristy73bd4a52010-10-05 11:24:23 +000036026#
36027# INIT-COMMANDS
36028#
36029PACKAGE="$PACKAGE"
36030AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
36031
36032
36033# The HP-UX ksh and POSIX shell print the target directory to stdout
36034# if CDPATH is set.
36035(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
36036
36037sed_quote_subst='$sed_quote_subst'
36038double_quote_subst='$double_quote_subst'
36039delay_variable_subst='$delay_variable_subst'
cristy0c60a692010-11-04 01:09:47 +000036040SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
36041Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
36042GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
36043EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
36044FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
36045SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
36046ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
36047LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
36048macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
36049macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
36050AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
36051DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
36052OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
36053enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
36054enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
36055pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
36056enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
cristy99bd5232011-12-07 14:38:20 +000036057PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036058host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
36059host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
36060host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
36061build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
36062build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
36063build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
36064NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
36065LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
36066max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
36067ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
36068exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
36069lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
36070lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
36071lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036072lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
36073lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036074reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
36075reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
36076deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
36077file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036078file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
36079want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
36080sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036081AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
36082AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036083archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036084STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
36085RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
36086old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
36087old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
36088old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
36089lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
36090CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
36091CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
36092compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
36093GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
36094lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
36095lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
36096lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
36097lt_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 +000036098nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
36099lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036100objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
36101MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
36102lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036103lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036104lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036105lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
36106lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
36107need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036108MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036109DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
36110NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
36111LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
36112OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
36113OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
36114libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
36115shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
36116extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
36117archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
36118enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
36119export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
36120whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
36121compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
36122old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
36123old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
36124archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
36125archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
36126module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
36127module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
36128with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
36129allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
36130no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
36131hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036132hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
36133hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
36134hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
36135hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
36136hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
36137hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
36138inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
36139link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036140always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
36141export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
36142exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
36143include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
36144prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036145postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036146file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
36147variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
36148need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
36149need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
36150version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
36151runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
36152shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
36153shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
36154libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
36155library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
36156soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
36157install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
36158postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
36159postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
36160finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
36161finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
36162hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
36163sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
36164sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
36165hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
36166enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
36167enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
36168enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
36169old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
36170striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
36171compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
36172predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
36173postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
36174predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
36175postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
36176compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
36177LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
36178reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
36179reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36180old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36181compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
36182GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
36183lt_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 +000036184lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036185lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036186lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
36187lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
36188archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
36189enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
36190export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
36191whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
36192compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
36193old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36194old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36195archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36196archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36197module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36198module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36199with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
36200allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
36201no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
36202hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036203hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
36204hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
36205hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
36206hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
36207hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
36208hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
36209inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
36210link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036211always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
36212export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36213exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
36214include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
36215prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036216postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036217file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
36218hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
36219compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
36220predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
36221postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
36222predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
36223postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
36224compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
cristy73bd4a52010-10-05 11:24:23 +000036225
36226LTCC='$LTCC'
36227LTCFLAGS='$LTCFLAGS'
36228compiler='$compiler_DEFAULT'
36229
cristy0c60a692010-11-04 01:09:47 +000036230# A function that is used when there is no print builtin or printf.
36231func_fallback_echo ()
36232{
36233 eval 'cat <<_LTECHO_EOF
36234\$1
36235_LTECHO_EOF'
36236}
36237
cristy73bd4a52010-10-05 11:24:23 +000036238# Quote evaled strings.
36239for var in SED \
36240GREP \
36241EGREP \
36242FGREP \
cristy0c60a692010-11-04 01:09:47 +000036243SHELL \
36244ECHO \
cristy73bd4a52010-10-05 11:24:23 +000036245LD \
cristy0c60a692010-11-04 01:09:47 +000036246AS \
36247DLLTOOL \
36248OBJDUMP \
cristy99bd5232011-12-07 14:38:20 +000036249PATH_SEPARATOR \
cristy73bd4a52010-10-05 11:24:23 +000036250NM \
36251LN_S \
36252lt_SP2NL \
36253lt_NL2SP \
36254reload_flag \
36255deplibs_check_method \
36256file_magic_cmd \
cristyda16f162011-02-19 23:52:17 +000036257file_magic_glob \
36258want_nocaseglob \
36259sharedlib_from_linklib_cmd \
cristy73bd4a52010-10-05 11:24:23 +000036260AR \
36261AR_FLAGS \
cristyda16f162011-02-19 23:52:17 +000036262archiver_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000036263STRIP \
36264RANLIB \
36265CC \
36266CFLAGS \
36267compiler \
36268lt_cv_sys_global_symbol_pipe \
36269lt_cv_sys_global_symbol_to_cdecl \
36270lt_cv_sys_global_symbol_to_c_name_address \
36271lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
cristyda16f162011-02-19 23:52:17 +000036272nm_file_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000036273lt_prog_compiler_no_builtin_flag \
cristy73bd4a52010-10-05 11:24:23 +000036274lt_prog_compiler_pic \
cristyda16f162011-02-19 23:52:17 +000036275lt_prog_compiler_wl \
cristy73bd4a52010-10-05 11:24:23 +000036276lt_prog_compiler_static \
36277lt_cv_prog_compiler_c_o \
36278need_locks \
cristyda16f162011-02-19 23:52:17 +000036279MANIFEST_TOOL \
cristy73bd4a52010-10-05 11:24:23 +000036280DSYMUTIL \
36281NMEDIT \
36282LIPO \
36283OTOOL \
36284OTOOL64 \
36285shrext_cmds \
36286export_dynamic_flag_spec \
36287whole_archive_flag_spec \
36288compiler_needs_object \
36289with_gnu_ld \
36290allow_undefined_flag \
36291no_undefined_flag \
36292hardcode_libdir_flag_spec \
cristy73bd4a52010-10-05 11:24:23 +000036293hardcode_libdir_separator \
cristy73bd4a52010-10-05 11:24:23 +000036294exclude_expsyms \
36295include_expsyms \
36296file_list_spec \
36297variables_saved_for_relink \
36298libname_spec \
36299library_names_spec \
36300soname_spec \
cristy0c60a692010-11-04 01:09:47 +000036301install_override_mode \
cristy73bd4a52010-10-05 11:24:23 +000036302finish_eval \
36303old_striplib \
36304striplib \
36305compiler_lib_search_dirs \
36306predep_objects \
36307postdep_objects \
36308predeps \
36309postdeps \
36310compiler_lib_search_path \
36311LD_CXX \
cristy0c60a692010-11-04 01:09:47 +000036312reload_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036313compiler_CXX \
36314lt_prog_compiler_no_builtin_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036315lt_prog_compiler_pic_CXX \
cristyda16f162011-02-19 23:52:17 +000036316lt_prog_compiler_wl_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036317lt_prog_compiler_static_CXX \
36318lt_cv_prog_compiler_c_o_CXX \
36319export_dynamic_flag_spec_CXX \
36320whole_archive_flag_spec_CXX \
36321compiler_needs_object_CXX \
36322with_gnu_ld_CXX \
36323allow_undefined_flag_CXX \
36324no_undefined_flag_CXX \
36325hardcode_libdir_flag_spec_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036326hardcode_libdir_separator_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036327exclude_expsyms_CXX \
36328include_expsyms_CXX \
36329file_list_spec_CXX \
36330compiler_lib_search_dirs_CXX \
36331predep_objects_CXX \
36332postdep_objects_CXX \
36333predeps_CXX \
36334postdeps_CXX \
36335compiler_lib_search_path_CXX; do
cristy0c60a692010-11-04 01:09:47 +000036336 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000036337 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000036338 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000036339 ;;
36340 *)
36341 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
36342 ;;
36343 esac
36344done
36345
36346# Double-quote double-evaled strings.
36347for var in reload_cmds \
36348old_postinstall_cmds \
36349old_postuninstall_cmds \
36350old_archive_cmds \
36351extract_expsyms_cmds \
36352old_archive_from_new_cmds \
36353old_archive_from_expsyms_cmds \
36354archive_cmds \
36355archive_expsym_cmds \
36356module_cmds \
36357module_expsym_cmds \
36358export_symbols_cmds \
36359prelink_cmds \
cristyda16f162011-02-19 23:52:17 +000036360postlink_cmds \
cristy73bd4a52010-10-05 11:24:23 +000036361postinstall_cmds \
36362postuninstall_cmds \
36363finish_cmds \
36364sys_lib_search_path_spec \
36365sys_lib_dlsearch_path_spec \
cristy0c60a692010-11-04 01:09:47 +000036366reload_cmds_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036367old_archive_cmds_CXX \
36368old_archive_from_new_cmds_CXX \
36369old_archive_from_expsyms_cmds_CXX \
36370archive_cmds_CXX \
36371archive_expsym_cmds_CXX \
36372module_cmds_CXX \
36373module_expsym_cmds_CXX \
36374export_symbols_cmds_CXX \
cristyda16f162011-02-19 23:52:17 +000036375prelink_cmds_CXX \
36376postlink_cmds_CXX; do
cristy0c60a692010-11-04 01:09:47 +000036377 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000036378 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000036379 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000036380 ;;
36381 *)
36382 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
36383 ;;
36384 esac
36385done
36386
cristy73bd4a52010-10-05 11:24:23 +000036387ac_aux_dir='$ac_aux_dir'
36388xsi_shell='$xsi_shell'
36389lt_shell_append='$lt_shell_append'
36390
36391# See if we are running on zsh, and set the options which allow our
36392# commands through without removal of \ escapes INIT.
36393if test -n "\${ZSH_VERSION+set}" ; then
36394 setopt NO_GLOB_SUBST
36395fi
36396
36397
36398 PACKAGE='$PACKAGE'
36399 VERSION='$VERSION'
36400 TIMESTAMP='$TIMESTAMP'
36401 RM='$RM'
36402 ofile='$ofile'
36403
36404
36405
36406
36407
36408
cristy3ed852e2009-09-05 21:47:34 +000036409_ACEOF
36410
36411cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36412
36413# Handling of arguments.
36414for ac_config_target in $ac_config_targets
36415do
36416 case $ac_config_target in
36417 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
cristy01ff9f32012-12-01 18:15:29 +000036418 "MagickCore/magick-baseconfig.h") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore/magick-baseconfig.h" ;;
cristy305c5dd2012-09-13 00:30:13 +000036419 "common.shi") CONFIG_FILES="$CONFIG_FILES common.shi" ;;
cristy3ed852e2009-09-05 21:47:34 +000036420 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
36421 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
36422 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
36423 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
36424 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
cristy2df32802012-09-17 01:15:28 +000036425 "config/Magick++.dox") CONFIG_FILES="$CONFIG_FILES config/Magick++.dox" ;;
cristy430a7312010-01-21 20:44:04 +000036426 "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;;
cristy3ed852e2009-09-05 21:47:34 +000036427 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
36428 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
36429 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
36430 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
36431 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
cristy4c08aed2011-07-01 19:47:50 +000036432 "MagickCore/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/ImageMagick.pc" ;;
cristy3ed852e2009-09-05 21:47:34 +000036433 "Magick++/lib/ImageMagick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/ImageMagick++.pc" ;;
36434 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
cristy4c08aed2011-07-01 19:47:50 +000036435 "MagickCore/MagickCore-config") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore-config" ;;
36436 "MagickCore/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore.pc" ;;
36437 "MagickCore/version.h") CONFIG_FILES="$CONFIG_FILES MagickCore/version.h" ;;
cristy3ed852e2009-09-05 21:47:34 +000036438 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
36439 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
36440 "PerlMagick/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/Magick.pm" ;;
36441 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
36442 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
36443 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
36444 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
36445 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
36446 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
36447 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
36448 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
36449 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
36450 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
36451 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
36452 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
36453 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
36454 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
cristy4c08aed2011-07-01 19:47:50 +000036455 "MagickWand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand-config" ;;
36456 "MagickWand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand.pc" ;;
cristy73bd4a52010-10-05 11:24:23 +000036457 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
36458 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
cristy3ed852e2009-09-05 21:47:34 +000036459 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
cristy2bd4b6e2012-07-22 15:29:11 +000036460 "magick.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS magick.sh.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000036461 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000036462 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000036463 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
36464 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
36465
cristy98dddb52010-11-04 00:30:15 +000036466 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000036467 esac
36468done
36469
36470
36471# If the user did not use the arguments to specify the items to instantiate,
36472# then the envvar interface is used. Set only those that are not.
36473# We use the long form for the default assignment because of an extremely
36474# bizarre bug on SunOS 4.1.3.
36475if $ac_need_defaults; then
36476 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
36477 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
36478 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
36479fi
36480
36481# Have a temporary directory for convenience. Make it in the build tree
36482# simply because there is no reason against having it here, and in addition,
36483# creating and moving files from /tmp can sometimes cause problems.
36484# Hook for its removal unless debugging.
36485# Note that there is a small window in which the directory will not be cleaned:
36486# after its creation but before its name has been assigned to `$tmp'.
36487$debug ||
36488{
cristyda16f162011-02-19 23:52:17 +000036489 tmp= ac_tmp=
cristy3ed852e2009-09-05 21:47:34 +000036490 trap 'exit_status=$?
cristyda16f162011-02-19 23:52:17 +000036491 : "${ac_tmp:=$tmp}"
36492 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
cristy3ed852e2009-09-05 21:47:34 +000036493' 0
cristy8b350f62009-11-15 23:12:43 +000036494 trap 'as_fn_exit 1' 1 2 13 15
cristy3ed852e2009-09-05 21:47:34 +000036495}
36496# Create a (secure) tmp directory for tmp files.
36497
36498{
36499 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
cristyda16f162011-02-19 23:52:17 +000036500 test -d "$tmp"
cristy3ed852e2009-09-05 21:47:34 +000036501} ||
36502{
36503 tmp=./conf$$-$RANDOM
36504 (umask 077 && mkdir "$tmp")
cristy98dddb52010-11-04 00:30:15 +000036505} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000036506ac_tmp=$tmp
cristy3ed852e2009-09-05 21:47:34 +000036507
36508# Set up the scripts for CONFIG_FILES section.
36509# No need to generate them if there are no CONFIG_FILES.
36510# This happens for instance with `./config.status config.h'.
36511if test -n "$CONFIG_FILES"; then
36512
36513
cristy8b350f62009-11-15 23:12:43 +000036514ac_cr=`echo X | tr X '\015'`
36515# On cygwin, bash can eat \r inside `` if the user requested igncr.
36516# But we know of no other shell where ac_cr would be empty at this
36517# point, so we can use a bashism as a fallback.
36518if test "x$ac_cr" = x; then
36519 eval ac_cr=\$\'\\r\'
36520fi
cristy3ed852e2009-09-05 21:47:34 +000036521ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
36522if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
cristy98dddb52010-11-04 00:30:15 +000036523 ac_cs_awk_cr='\\r'
cristy3ed852e2009-09-05 21:47:34 +000036524else
36525 ac_cs_awk_cr=$ac_cr
36526fi
36527
cristyda16f162011-02-19 23:52:17 +000036528echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
cristy3ed852e2009-09-05 21:47:34 +000036529_ACEOF
36530
36531
36532{
36533 echo "cat >conf$$subs.awk <<_ACEOF" &&
36534 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
36535 echo "_ACEOF"
36536} >conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000036537 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
36538ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
cristy3ed852e2009-09-05 21:47:34 +000036539ac_delim='%!_!# '
36540for ac_last_try in false false false false false :; do
36541 . ./conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000036542 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036543
36544 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
36545 if test $ac_delim_n = $ac_delim_num; then
36546 break
36547 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000036548 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036549 else
36550 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36551 fi
36552done
36553rm -f conf$$subs.sh
36554
36555cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristyda16f162011-02-19 23:52:17 +000036556cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000036557_ACEOF
36558sed -n '
36559h
36560s/^/S["/; s/!.*/"]=/
36561p
36562g
36563s/^[^!]*!//
36564:repl
36565t repl
36566s/'"$ac_delim"'$//
36567t delim
36568:nl
36569h
cristycd4c5312009-11-22 01:19:08 +000036570s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000036571t more1
36572s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
36573p
36574n
36575b repl
36576:more1
36577s/["\\]/\\&/g; s/^/"/; s/$/"\\/
36578p
36579g
36580s/.\{148\}//
36581t nl
36582:delim
36583h
cristycd4c5312009-11-22 01:19:08 +000036584s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000036585t more2
36586s/["\\]/\\&/g; s/^/"/; s/$/"/
36587p
36588b
36589:more2
36590s/["\\]/\\&/g; s/^/"/; s/$/"\\/
36591p
36592g
36593s/.\{148\}//
36594t delim
36595' <conf$$subs.awk | sed '
36596/^[^""]/{
36597 N
36598 s/\n//
36599}
36600' >>$CONFIG_STATUS || ac_write_fail=1
36601rm -f conf$$subs.awk
36602cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36603_ACAWK
cristyda16f162011-02-19 23:52:17 +000036604cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000036605 for (key in S) S_is_set[key] = 1
36606 FS = ""
36607
36608}
36609{
36610 line = $ 0
36611 nfields = split(line, field, "@")
36612 substed = 0
36613 len = length(field[1])
36614 for (i = 2; i < nfields; i++) {
36615 key = field[i]
36616 keylen = length(key)
36617 if (S_is_set[key]) {
36618 value = S[key]
36619 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
36620 len += length(value) + length(field[++i])
36621 substed = 1
36622 } else
36623 len += 1 + keylen
36624 }
36625
36626 print line
36627}
36628
36629_ACAWK
36630_ACEOF
36631cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36632if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
36633 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
36634else
36635 cat
cristyda16f162011-02-19 23:52:17 +000036636fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
cristy98dddb52010-11-04 00:30:15 +000036637 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036638_ACEOF
36639
cristy98dddb52010-11-04 00:30:15 +000036640# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
36641# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
cristy3ed852e2009-09-05 21:47:34 +000036642# trailing colons and then remove the whole line if VPATH becomes empty
36643# (actually we leave an empty line to preserve line numbers).
36644if test "x$srcdir" = x.; then
cristy98dddb52010-11-04 00:30:15 +000036645 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
36646h
36647s///
36648s/^/:/
36649s/[ ]*$/:/
36650s/:\$(srcdir):/:/g
36651s/:\${srcdir}:/:/g
36652s/:@srcdir@:/:/g
36653s/^:*//
cristy3ed852e2009-09-05 21:47:34 +000036654s/:*$//
cristy98dddb52010-11-04 00:30:15 +000036655x
36656s/\(=[ ]*\).*/\1/
36657G
36658s/\n//
cristy3ed852e2009-09-05 21:47:34 +000036659s/^[^=]*=[ ]*$//
36660}'
36661fi
36662
36663cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36664fi # test -n "$CONFIG_FILES"
36665
36666# Set up the scripts for CONFIG_HEADERS section.
36667# No need to generate them if there are no CONFIG_HEADERS.
36668# This happens for instance with `./config.status Makefile'.
36669if test -n "$CONFIG_HEADERS"; then
cristyda16f162011-02-19 23:52:17 +000036670cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
cristy3ed852e2009-09-05 21:47:34 +000036671BEGIN {
36672_ACEOF
36673
36674# Transform confdefs.h into an awk script `defines.awk', embedded as
36675# here-document in config.status, that substitutes the proper values into
36676# config.h.in to produce config.h.
36677
36678# Create a delimiter string that does not exist in confdefs.h, to ease
36679# handling of long lines.
36680ac_delim='%!_!# '
36681for ac_last_try in false false :; do
cristyda16f162011-02-19 23:52:17 +000036682 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
36683 if test -z "$ac_tt"; then
cristy3ed852e2009-09-05 21:47:34 +000036684 break
36685 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000036686 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036687 else
36688 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36689 fi
36690done
36691
36692# For the awk script, D is an array of macro values keyed by name,
36693# likewise P contains macro parameters if any. Preserve backslash
36694# newline sequences.
36695
36696ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
36697sed -n '
36698s/.\{148\}/&'"$ac_delim"'/g
36699t rset
36700:rset
36701s/^[ ]*#[ ]*define[ ][ ]*/ /
36702t def
36703d
36704:def
36705s/\\$//
36706t bsnl
36707s/["\\]/\\&/g
36708s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
36709D["\1"]=" \3"/p
36710s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
36711d
36712:bsnl
36713s/["\\]/\\&/g
36714s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
36715D["\1"]=" \3\\\\\\n"\\/p
36716t cont
36717s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
36718t cont
36719d
36720:cont
36721n
36722s/.\{148\}/&'"$ac_delim"'/g
36723t clear
36724:clear
36725s/\\$//
36726t bsnlc
36727s/["\\]/\\&/g; s/^/"/; s/$/"/p
36728d
36729:bsnlc
36730s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
36731b cont
36732' <confdefs.h | sed '
36733s/'"$ac_delim"'/"\\\
36734"/g' >>$CONFIG_STATUS || ac_write_fail=1
36735
36736cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36737 for (key in D) D_is_set[key] = 1
36738 FS = ""
36739}
36740/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
36741 line = \$ 0
36742 split(line, arg, " ")
36743 if (arg[1] == "#") {
36744 defundef = arg[2]
36745 mac1 = arg[3]
36746 } else {
36747 defundef = substr(arg[1], 2)
36748 mac1 = arg[2]
36749 }
36750 split(mac1, mac2, "(") #)
36751 macro = mac2[1]
36752 prefix = substr(line, 1, index(line, defundef) - 1)
36753 if (D_is_set[macro]) {
36754 # Preserve the white space surrounding the "#".
36755 print prefix "define", macro P[macro] D[macro]
36756 next
36757 } else {
36758 # Replace #undef with comments. This is necessary, for example,
36759 # in the case of _POSIX_SOURCE, which is predefined and required
36760 # on some systems where configure will not decide to define it.
36761 if (defundef == "undef") {
36762 print "/*", prefix defundef, macro, "*/"
36763 next
36764 }
36765 }
36766}
36767{ print }
36768_ACAWK
36769_ACEOF
36770cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cristy98dddb52010-11-04 00:30:15 +000036771 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036772fi # test -n "$CONFIG_HEADERS"
36773
36774
36775eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
36776shift
36777for ac_tag
36778do
36779 case $ac_tag in
36780 :[FHLC]) ac_mode=$ac_tag; continue;;
36781 esac
36782 case $ac_mode$ac_tag in
36783 :[FHL]*:*);;
cristy98dddb52010-11-04 00:30:15 +000036784 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000036785 :[FH]-) ac_tag=-:-;;
36786 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
36787 esac
36788 ac_save_IFS=$IFS
36789 IFS=:
36790 set x $ac_tag
36791 IFS=$ac_save_IFS
36792 shift
36793 ac_file=$1
36794 shift
36795
36796 case $ac_mode in
36797 :L) ac_source=$1;;
36798 :[FH])
36799 ac_file_inputs=
36800 for ac_f
36801 do
36802 case $ac_f in
cristyda16f162011-02-19 23:52:17 +000036803 -) ac_f="$ac_tmp/stdin";;
cristy3ed852e2009-09-05 21:47:34 +000036804 *) # Look for the file first in the build tree, then in the source tree
36805 # (if the path is not absolute). The absolute path cannot be DOS-style,
36806 # because $ac_f cannot contain `:'.
36807 test -f "$ac_f" ||
36808 case $ac_f in
36809 [\\/$]*) false;;
36810 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
36811 esac ||
cristy98dddb52010-11-04 00:30:15 +000036812 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000036813 esac
36814 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
cristy8b350f62009-11-15 23:12:43 +000036815 as_fn_append ac_file_inputs " '$ac_f'"
cristy3ed852e2009-09-05 21:47:34 +000036816 done
36817
36818 # Let's still pretend it is `configure' which instantiates (i.e., don't
36819 # use $as_me), people would be surprised to read:
36820 # /* config.h. Generated by config.status. */
36821 configure_input='Generated from '`
36822 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
36823 `' by configure.'
36824 if test x"$ac_file" != x-; then
36825 configure_input="$ac_file. $configure_input"
cristy8b350f62009-11-15 23:12:43 +000036826 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000036827$as_echo "$as_me: creating $ac_file" >&6;}
36828 fi
36829 # Neutralize special characters interpreted by sed in replacement strings.
36830 case $configure_input in #(
36831 *\&* | *\|* | *\\* )
36832 ac_sed_conf_input=`$as_echo "$configure_input" |
36833 sed 's/[\\\\&|]/\\\\&/g'`;; #(
36834 *) ac_sed_conf_input=$configure_input;;
36835 esac
36836
36837 case $ac_tag in
cristyda16f162011-02-19 23:52:17 +000036838 *:-:* | *:-) cat >"$ac_tmp/stdin" \
cristy98dddb52010-11-04 00:30:15 +000036839 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000036840 esac
36841 ;;
36842 esac
36843
36844 ac_dir=`$as_dirname -- "$ac_file" ||
36845$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36846 X"$ac_file" : 'X\(//\)[^/]' \| \
36847 X"$ac_file" : 'X\(//\)$' \| \
36848 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
36849$as_echo X"$ac_file" |
36850 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36851 s//\1/
36852 q
36853 }
36854 /^X\(\/\/\)[^/].*/{
36855 s//\1/
36856 q
36857 }
36858 /^X\(\/\/\)$/{
36859 s//\1/
36860 q
36861 }
36862 /^X\(\/\).*/{
36863 s//\1/
36864 q
36865 }
36866 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000036867 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000036868 ac_builddir=.
36869
36870case "$ac_dir" in
36871.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36872*)
36873 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
36874 # A ".." for each directory in $ac_dir_suffix.
36875 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
36876 case $ac_top_builddir_sub in
36877 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36878 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36879 esac ;;
36880esac
36881ac_abs_top_builddir=$ac_pwd
36882ac_abs_builddir=$ac_pwd$ac_dir_suffix
36883# for backward compatibility:
36884ac_top_builddir=$ac_top_build_prefix
36885
36886case $srcdir in
36887 .) # We are building in place.
36888 ac_srcdir=.
36889 ac_top_srcdir=$ac_top_builddir_sub
36890 ac_abs_top_srcdir=$ac_pwd ;;
36891 [\\/]* | ?:[\\/]* ) # Absolute name.
36892 ac_srcdir=$srcdir$ac_dir_suffix;
36893 ac_top_srcdir=$srcdir
36894 ac_abs_top_srcdir=$srcdir ;;
36895 *) # Relative name.
36896 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36897 ac_top_srcdir=$ac_top_build_prefix$srcdir
36898 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
36899esac
36900ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
36901
36902
36903 case $ac_mode in
36904 :F)
36905 #
36906 # CONFIG_FILE
36907 #
36908
36909 case $INSTALL in
36910 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
36911 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
36912 esac
cristy73bd4a52010-10-05 11:24:23 +000036913 ac_MKDIR_P=$MKDIR_P
36914 case $MKDIR_P in
36915 [\\/$]* | ?:[\\/]* ) ;;
36916 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
36917 esac
cristy3ed852e2009-09-05 21:47:34 +000036918_ACEOF
36919
36920cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36921# If the template does not know about datarootdir, expand it.
36922# FIXME: This hack should be removed a few years after 2.60.
36923ac_datarootdir_hack=; ac_datarootdir_seen=
cristy3ed852e2009-09-05 21:47:34 +000036924ac_sed_dataroot='
36925/datarootdir/ {
36926 p
36927 q
36928}
36929/@datadir@/p
36930/@docdir@/p
36931/@infodir@/p
36932/@localedir@/p
cristy8b350f62009-11-15 23:12:43 +000036933/@mandir@/p'
cristy3ed852e2009-09-05 21:47:34 +000036934case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
36935*datarootdir*) ac_datarootdir_seen=yes;;
36936*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
cristy8b350f62009-11-15 23:12:43 +000036937 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
cristy3ed852e2009-09-05 21:47:34 +000036938$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
36939_ACEOF
36940cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36941 ac_datarootdir_hack='
36942 s&@datadir@&$datadir&g
36943 s&@docdir@&$docdir&g
36944 s&@infodir@&$infodir&g
36945 s&@localedir@&$localedir&g
36946 s&@mandir@&$mandir&g
cristy8b350f62009-11-15 23:12:43 +000036947 s&\\\${datarootdir}&$datarootdir&g' ;;
cristy3ed852e2009-09-05 21:47:34 +000036948esac
36949_ACEOF
36950
36951# Neutralize VPATH when `$srcdir' = `.'.
36952# Shell code in configure.ac might set extrasub.
36953# FIXME: do we really want to maintain this feature?
36954cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36955ac_sed_extra="$ac_vpsub
36956$extrasub
36957_ACEOF
36958cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36959:t
36960/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36961s|@configure_input@|$ac_sed_conf_input|;t t
36962s&@top_builddir@&$ac_top_builddir_sub&;t t
36963s&@top_build_prefix@&$ac_top_build_prefix&;t t
36964s&@srcdir@&$ac_srcdir&;t t
36965s&@abs_srcdir@&$ac_abs_srcdir&;t t
36966s&@top_srcdir@&$ac_top_srcdir&;t t
36967s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
36968s&@builddir@&$ac_builddir&;t t
36969s&@abs_builddir@&$ac_abs_builddir&;t t
36970s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
36971s&@INSTALL@&$ac_INSTALL&;t t
cristy73bd4a52010-10-05 11:24:23 +000036972s&@MKDIR_P@&$ac_MKDIR_P&;t t
cristy3ed852e2009-09-05 21:47:34 +000036973$ac_datarootdir_hack
36974"
cristyda16f162011-02-19 23:52:17 +000036975eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
36976 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036977
36978test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
cristyda16f162011-02-19 23:52:17 +000036979 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
36980 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
36981 "$ac_tmp/out"`; test -z "$ac_out"; } &&
cristy8b350f62009-11-15 23:12:43 +000036982 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000036983which seems to be undefined. Please make sure it is defined" >&5
cristy3ed852e2009-09-05 21:47:34 +000036984$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000036985which seems to be undefined. Please make sure it is defined" >&2;}
cristy3ed852e2009-09-05 21:47:34 +000036986
cristyda16f162011-02-19 23:52:17 +000036987 rm -f "$ac_tmp/stdin"
cristy3ed852e2009-09-05 21:47:34 +000036988 case $ac_file in
cristyda16f162011-02-19 23:52:17 +000036989 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
36990 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
cristy3ed852e2009-09-05 21:47:34 +000036991 esac \
cristy98dddb52010-11-04 00:30:15 +000036992 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036993 ;;
36994 :H)
36995 #
36996 # CONFIG_HEADER
36997 #
36998 if test x"$ac_file" != x-; then
36999 {
37000 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000037001 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
37002 } >"$ac_tmp/config.h" \
cristy98dddb52010-11-04 00:30:15 +000037003 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000037004 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
cristy8b350f62009-11-15 23:12:43 +000037005 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000037006$as_echo "$as_me: $ac_file is unchanged" >&6;}
37007 else
37008 rm -f "$ac_file"
cristyda16f162011-02-19 23:52:17 +000037009 mv "$ac_tmp/config.h" "$ac_file" \
cristy98dddb52010-11-04 00:30:15 +000037010 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037011 fi
37012 else
37013 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000037014 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
cristy98dddb52010-11-04 00:30:15 +000037015 || as_fn_error $? "could not create -" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037016 fi
cristy73bd4a52010-10-05 11:24:23 +000037017# Compute "$ac_file"'s index in $config_headers.
37018_am_arg="$ac_file"
37019_am_stamp_count=1
37020for _am_header in $config_headers :; do
37021 case $_am_header in
37022 $_am_arg | $_am_arg:* )
37023 break ;;
37024 * )
37025 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
37026 esac
37027done
37028echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
37029$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37030 X"$_am_arg" : 'X\(//\)[^/]' \| \
37031 X"$_am_arg" : 'X\(//\)$' \| \
37032 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
37033$as_echo X"$_am_arg" |
37034 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37035 s//\1/
37036 q
37037 }
37038 /^X\(\/\/\)[^/].*/{
37039 s//\1/
37040 q
37041 }
37042 /^X\(\/\/\)$/{
37043 s//\1/
37044 q
37045 }
37046 /^X\(\/\).*/{
37047 s//\1/
37048 q
37049 }
37050 s/.*/./; q'`/stamp-h$_am_stamp_count
cristy3ed852e2009-09-05 21:47:34 +000037051 ;;
37052
cristy8b350f62009-11-15 23:12:43 +000037053 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
cristy3ed852e2009-09-05 21:47:34 +000037054$as_echo "$as_me: executing $ac_file commands" >&6;}
37055 ;;
37056 esac
37057
37058
37059 case $ac_file$ac_mode in
cristy01ff9f32012-12-01 18:15:29 +000037060 "MagickCore/magick-baseconfig.h":C) ac_prefix_conf_OUT=`echo MagickCore/magick-baseconfig.h`
cristy73bd4a52010-10-05 11:24:23 +000037061ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
37062ac_prefix_conf_PKG=`echo MagickCore`
37063ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
37064ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
37065ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
37066if test ".$ac_prefix_conf_INP" = "."; then
37067 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
37068 case "$ac_file" in
37069 *.h) ac_prefix_conf_INP=$ac_file ;;
37070 *)
37071 esac
37072 test ".$ac_prefix_conf_INP" != "." && break
37073 done
37074fi
37075if test ".$ac_prefix_conf_INP" = "."; then
37076 case "$ac_prefix_conf_OUT" in
37077 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
37078 ;;
37079 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
37080 ;;
37081 *) ac_prefix_conf_INP=config.h
37082 ;;
37083 esac
37084fi
37085if test -z "$ac_prefix_conf_PKG" ; then
cristy98dddb52010-11-04 00:30:15 +000037086 as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000037087else
37088 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
37089 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
37090 fi fi
37091 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
37092$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
37093 if test -f $ac_prefix_conf_INP ; then
cristy24fc1fe2010-10-23 21:13:01 +000037094 $as_echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
37095 $as_echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
37096 $as_echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix
37097 $as_echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix
37098 $as_echo "#endif/" >> conftest.prefix
37099 $as_echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix
37100 $as_echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix
37101 $as_echo "#endif/" >> conftest.prefix
cristy73bd4a52010-10-05 11:24:23 +000037102 # now executing _script on _DEF input to create _OUT output file
37103 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
37104 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
37105 echo ' ' >>$tmp/pconfig.h
37106 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
37107
37108 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
37109 echo ' ' >>$tmp/pconfig.h
37110 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
37111 echo "#endif" >>$tmp/pconfig.h
37112 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
37113 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
37114$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
37115 else
37116 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
37117$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37118 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
37119 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
37120 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
37121$as_echo X"$ac_prefix_conf_OUT" |
37122 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37123 s//\1/
37124 q
37125 }
37126 /^X\(\/\/\)[^/].*/{
37127 s//\1/
37128 q
37129 }
37130 /^X\(\/\/\)$/{
37131 s//\1/
37132 q
37133 }
37134 /^X\(\/\).*/{
37135 s//\1/
37136 q
37137 }
37138 s/.*/./; q'`
37139 as_dir="$ac_dir"; as_fn_mkdir_p
37140 rm -f "$ac_prefix_conf_OUT"
37141 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
37142 fi
37143 cp conftest.prefix _configs.sed
37144 else
cristy98dddb52010-11-04 00:30:15 +000037145 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 +000037146 fi
37147 rm -f conftest.*
37148fi
37149 ;;
37150 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
37151 # Autoconf 2.62 quotes --file arguments for eval, but not when files
37152 # are listed without --file. Let's play safe and only enable the eval
37153 # if we detect the quoting.
37154 case $CONFIG_FILES in
37155 *\'*) eval set x "$CONFIG_FILES" ;;
37156 *) set x $CONFIG_FILES ;;
37157 esac
37158 shift
37159 for mf
37160 do
37161 # Strip MF so we end up with the name of the file.
37162 mf=`echo "$mf" | sed -e 's/:.*$//'`
37163 # Check whether this is an Automake generated Makefile or not.
cristyc0890a62012-07-19 00:18:20 +000037164 # We used to match only the files named 'Makefile.in', but
cristy73bd4a52010-10-05 11:24:23 +000037165 # some people rename them; so instead we look at the file content.
37166 # Grep'ing the first line is not enough: some people post-process
37167 # each Makefile.in and add a new line on top of each file to say so.
37168 # Grep'ing the whole file is not good either: AIX grep has a line
37169 # limit of 2048, but all sed's we know have understand at least 4000.
37170 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
37171 dirpart=`$as_dirname -- "$mf" ||
37172$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37173 X"$mf" : 'X\(//\)[^/]' \| \
37174 X"$mf" : 'X\(//\)$' \| \
37175 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
37176$as_echo X"$mf" |
37177 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37178 s//\1/
37179 q
37180 }
37181 /^X\(\/\/\)[^/].*/{
37182 s//\1/
37183 q
37184 }
37185 /^X\(\/\/\)$/{
37186 s//\1/
37187 q
37188 }
37189 /^X\(\/\).*/{
37190 s//\1/
37191 q
37192 }
37193 s/.*/./; q'`
37194 else
37195 continue
37196 fi
37197 # Extract the definition of DEPDIR, am__include, and am__quote
cristyc0890a62012-07-19 00:18:20 +000037198 # from the Makefile without running 'make'.
cristy73bd4a52010-10-05 11:24:23 +000037199 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
37200 test -z "$DEPDIR" && continue
37201 am__include=`sed -n 's/^am__include = //p' < "$mf"`
37202 test -z "am__include" && continue
37203 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
cristy73bd4a52010-10-05 11:24:23 +000037204 # Find all dependency output files, they are included files with
37205 # $(DEPDIR) in their names. We invoke sed twice because it is the
37206 # simplest approach to changing $(DEPDIR) to its actual value in the
37207 # expansion.
37208 for file in `sed -n "
37209 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
cristyc0890a62012-07-19 00:18:20 +000037210 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
cristy73bd4a52010-10-05 11:24:23 +000037211 # Make sure the directory exists.
37212 test -f "$dirpart/$file" && continue
37213 fdir=`$as_dirname -- "$file" ||
37214$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37215 X"$file" : 'X\(//\)[^/]' \| \
37216 X"$file" : 'X\(//\)$' \| \
37217 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
37218$as_echo X"$file" |
37219 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37220 s//\1/
37221 q
37222 }
37223 /^X\(\/\/\)[^/].*/{
37224 s//\1/
37225 q
37226 }
37227 /^X\(\/\/\)$/{
37228 s//\1/
37229 q
37230 }
37231 /^X\(\/\).*/{
37232 s//\1/
37233 q
37234 }
37235 s/.*/./; q'`
37236 as_dir=$dirpart/$fdir; as_fn_mkdir_p
37237 # echo "creating $dirpart/$file"
37238 echo '# dummy' > "$dirpart/$file"
37239 done
37240 done
37241}
37242 ;;
37243 "libtool":C)
37244
37245 # See if we are running on zsh, and set the options which allow our
37246 # commands through without removal of \ escapes.
37247 if test -n "${ZSH_VERSION+set}" ; then
37248 setopt NO_GLOB_SUBST
37249 fi
37250
37251 cfgfile="${ofile}T"
37252 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
37253 $RM "$cfgfile"
37254
37255 cat <<_LT_EOF >> "$cfgfile"
37256#! $SHELL
37257
37258# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
37259# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
37260# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
37261# NOTE: Changes made to this file will be lost: look at ltmain.sh.
37262#
37263# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
cristy99bd5232011-12-07 14:38:20 +000037264# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
37265# Foundation, Inc.
cristy73bd4a52010-10-05 11:24:23 +000037266# Written by Gordon Matzigkeit, 1996
37267#
37268# This file is part of GNU Libtool.
37269#
37270# GNU Libtool is free software; you can redistribute it and/or
37271# modify it under the terms of the GNU General Public License as
37272# published by the Free Software Foundation; either version 2 of
37273# the License, or (at your option) any later version.
37274#
37275# As a special exception to the GNU General Public License,
37276# if you distribute this file as part of a program or library that
37277# is built using GNU Libtool, you may include this file under the
37278# same distribution terms that you use for the rest of that program.
37279#
37280# GNU Libtool is distributed in the hope that it will be useful,
37281# but WITHOUT ANY WARRANTY; without even the implied warranty of
37282# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
37283# GNU General Public License for more details.
37284#
37285# You should have received a copy of the GNU General Public License
37286# along with GNU Libtool; see the file COPYING. If not, a copy
37287# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
37288# obtained by writing to the Free Software Foundation, Inc.,
37289# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
37290
37291
37292# The names of the tagged configurations supported by this script.
37293available_tags="CXX "
37294
37295# ### BEGIN LIBTOOL CONFIG
37296
37297# A sed program that does not truncate output.
37298SED=$lt_SED
37299
37300# Sed that helps us avoid accidentally triggering echo(1) options like -n.
37301Xsed="\$SED -e 1s/^X//"
37302
37303# A grep program that handles long lines.
37304GREP=$lt_GREP
37305
37306# An ERE matcher.
37307EGREP=$lt_EGREP
37308
37309# A literal string matcher.
37310FGREP=$lt_FGREP
37311
cristy0c60a692010-11-04 01:09:47 +000037312# Shell to use when invoking shell scripts.
37313SHELL=$lt_SHELL
37314
37315# An echo program that protects backslashes.
37316ECHO=$lt_ECHO
37317
cristy73bd4a52010-10-05 11:24:23 +000037318# Which release of libtool.m4 was used?
37319macro_version=$macro_version
37320macro_revision=$macro_revision
37321
37322# Assembler program.
cristy0c60a692010-11-04 01:09:47 +000037323AS=$lt_AS
cristy73bd4a52010-10-05 11:24:23 +000037324
37325# DLL creation program.
cristy0c60a692010-11-04 01:09:47 +000037326DLLTOOL=$lt_DLLTOOL
cristy73bd4a52010-10-05 11:24:23 +000037327
37328# Object dumper program.
cristy0c60a692010-11-04 01:09:47 +000037329OBJDUMP=$lt_OBJDUMP
cristy73bd4a52010-10-05 11:24:23 +000037330
37331# Whether or not to build shared libraries.
37332build_libtool_libs=$enable_shared
37333
37334# Whether or not to build static libraries.
37335build_old_libs=$enable_static
37336
37337# What type of objects to build.
37338pic_mode=$pic_mode
37339
37340# Whether or not to optimize for fast installation.
37341fast_install=$enable_fast_install
37342
cristy99bd5232011-12-07 14:38:20 +000037343# The PATH separator for the build system.
37344PATH_SEPARATOR=$lt_PATH_SEPARATOR
37345
cristy73bd4a52010-10-05 11:24:23 +000037346# The host system.
37347host_alias=$host_alias
37348host=$host
37349host_os=$host_os
37350
37351# The build system.
37352build_alias=$build_alias
37353build=$build
37354build_os=$build_os
37355
37356# A BSD- or MS-compatible name lister.
37357NM=$lt_NM
37358
37359# Whether we need soft or hard links.
37360LN_S=$lt_LN_S
37361
37362# What is the maximum length of a command?
37363max_cmd_len=$max_cmd_len
37364
37365# Object file suffix (normally "o").
37366objext=$ac_objext
37367
37368# Executable file suffix (normally "").
37369exeext=$exeext
37370
37371# whether the shell understands "unset".
37372lt_unset=$lt_unset
37373
37374# turn spaces into newlines.
37375SP2NL=$lt_lt_SP2NL
37376
37377# turn newlines into spaces.
37378NL2SP=$lt_lt_NL2SP
37379
cristyda16f162011-02-19 23:52:17 +000037380# convert \$build file names to \$host format.
37381to_host_file_cmd=$lt_cv_to_host_file_cmd
37382
37383# convert \$build files to toolchain format.
37384to_tool_file_cmd=$lt_cv_to_tool_file_cmd
37385
cristy73bd4a52010-10-05 11:24:23 +000037386# Method to check whether dependent libraries are shared objects.
37387deplibs_check_method=$lt_deplibs_check_method
37388
cristyda16f162011-02-19 23:52:17 +000037389# Command to use when deplibs_check_method = "file_magic".
cristy73bd4a52010-10-05 11:24:23 +000037390file_magic_cmd=$lt_file_magic_cmd
37391
cristyda16f162011-02-19 23:52:17 +000037392# How to find potential files when deplibs_check_method = "file_magic".
37393file_magic_glob=$lt_file_magic_glob
37394
37395# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
37396want_nocaseglob=$lt_want_nocaseglob
37397
37398# Command to associate shared and link libraries.
37399sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
37400
cristy73bd4a52010-10-05 11:24:23 +000037401# The archiver.
37402AR=$lt_AR
cristyda16f162011-02-19 23:52:17 +000037403
37404# Flags to create an archive.
cristy73bd4a52010-10-05 11:24:23 +000037405AR_FLAGS=$lt_AR_FLAGS
37406
cristyda16f162011-02-19 23:52:17 +000037407# How to feed a file listing to the archiver.
37408archiver_list_spec=$lt_archiver_list_spec
37409
cristy73bd4a52010-10-05 11:24:23 +000037410# A symbol stripping program.
37411STRIP=$lt_STRIP
37412
37413# Commands used to install an old-style archive.
37414RANLIB=$lt_RANLIB
37415old_postinstall_cmds=$lt_old_postinstall_cmds
37416old_postuninstall_cmds=$lt_old_postuninstall_cmds
37417
cristy0c60a692010-11-04 01:09:47 +000037418# Whether to use a lock for old archive extraction.
37419lock_old_archive_extraction=$lock_old_archive_extraction
37420
cristy73bd4a52010-10-05 11:24:23 +000037421# A C compiler.
37422LTCC=$lt_CC
37423
37424# LTCC compiler flags.
37425LTCFLAGS=$lt_CFLAGS
37426
37427# Take the output of nm and produce a listing of raw symbols and C names.
37428global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
37429
37430# Transform the output of nm in a proper C declaration.
37431global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
37432
37433# Transform the output of nm in a C name address pair.
37434global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
37435
37436# Transform the output of nm in a C name address pair when lib prefix is needed.
37437global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
37438
cristyda16f162011-02-19 23:52:17 +000037439# Specify filename containing input files for \$NM.
37440nm_file_list_spec=$lt_nm_file_list_spec
37441
37442# The root where to search for dependent libraries,and in which our libraries should be installed.
37443lt_sysroot=$lt_sysroot
37444
cristy73bd4a52010-10-05 11:24:23 +000037445# The name of the directory that contains temporary libtool files.
37446objdir=$objdir
37447
cristy73bd4a52010-10-05 11:24:23 +000037448# Used to examine libraries when file_magic_cmd begins with "file".
37449MAGIC_CMD=$MAGIC_CMD
37450
37451# Must we lock files when doing compilation?
37452need_locks=$lt_need_locks
37453
cristyda16f162011-02-19 23:52:17 +000037454# Manifest tool.
37455MANIFEST_TOOL=$lt_MANIFEST_TOOL
37456
cristy73bd4a52010-10-05 11:24:23 +000037457# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
37458DSYMUTIL=$lt_DSYMUTIL
37459
37460# Tool to change global to local symbols on Mac OS X.
37461NMEDIT=$lt_NMEDIT
37462
37463# Tool to manipulate fat objects and archives on Mac OS X.
37464LIPO=$lt_LIPO
37465
37466# ldd/readelf like tool for Mach-O binaries on Mac OS X.
37467OTOOL=$lt_OTOOL
37468
37469# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
37470OTOOL64=$lt_OTOOL64
37471
37472# Old archive suffix (normally "a").
37473libext=$libext
37474
37475# Shared library suffix (normally ".so").
37476shrext_cmds=$lt_shrext_cmds
37477
37478# The commands to extract the exported symbol list from a shared archive.
37479extract_expsyms_cmds=$lt_extract_expsyms_cmds
37480
37481# Variables whose values should be saved in libtool wrapper scripts and
37482# restored at link time.
37483variables_saved_for_relink=$lt_variables_saved_for_relink
37484
37485# Do we need the "lib" prefix for modules?
37486need_lib_prefix=$need_lib_prefix
37487
37488# Do we need a version for libraries?
37489need_version=$need_version
37490
37491# Library versioning type.
37492version_type=$version_type
37493
37494# Shared library runtime path variable.
37495runpath_var=$runpath_var
37496
37497# Shared library path variable.
37498shlibpath_var=$shlibpath_var
37499
37500# Is shlibpath searched before the hard-coded library search path?
37501shlibpath_overrides_runpath=$shlibpath_overrides_runpath
37502
37503# Format of library name prefix.
37504libname_spec=$lt_libname_spec
37505
37506# List of archive names. First name is the real one, the rest are links.
37507# The last name is the one that the linker finds with -lNAME
37508library_names_spec=$lt_library_names_spec
37509
37510# The coded name of the library, if different from the real name.
37511soname_spec=$lt_soname_spec
37512
cristy0c60a692010-11-04 01:09:47 +000037513# Permission mode override for installation of shared libraries.
37514install_override_mode=$lt_install_override_mode
37515
cristy73bd4a52010-10-05 11:24:23 +000037516# Command to use after installation of a shared archive.
37517postinstall_cmds=$lt_postinstall_cmds
37518
37519# Command to use after uninstallation of a shared archive.
37520postuninstall_cmds=$lt_postuninstall_cmds
37521
37522# Commands used to finish a libtool library installation in a directory.
37523finish_cmds=$lt_finish_cmds
37524
37525# As "finish_cmds", except a single script fragment to be evaled but
37526# not shown.
37527finish_eval=$lt_finish_eval
37528
37529# Whether we should hardcode library paths into libraries.
37530hardcode_into_libs=$hardcode_into_libs
37531
37532# Compile-time system search path for libraries.
37533sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
37534
37535# Run-time system search path for libraries.
37536sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
37537
37538# Whether dlopen is supported.
37539dlopen_support=$enable_dlopen
37540
37541# Whether dlopen of programs is supported.
37542dlopen_self=$enable_dlopen_self
37543
37544# Whether dlopen of statically linked programs is supported.
37545dlopen_self_static=$enable_dlopen_self_static
37546
37547# Commands to strip libraries.
37548old_striplib=$lt_old_striplib
37549striplib=$lt_striplib
37550
37551
37552# The linker used to build libraries.
37553LD=$lt_LD
37554
cristy0c60a692010-11-04 01:09:47 +000037555# How to create reloadable object files.
37556reload_flag=$lt_reload_flag
37557reload_cmds=$lt_reload_cmds
37558
cristy73bd4a52010-10-05 11:24:23 +000037559# Commands used to build an old-style archive.
37560old_archive_cmds=$lt_old_archive_cmds
37561
37562# A language specific compiler.
37563CC=$lt_compiler
37564
37565# Is the compiler the GNU compiler?
37566with_gcc=$GCC
37567
37568# Compiler flag to turn off builtin functions.
37569no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
37570
cristy73bd4a52010-10-05 11:24:23 +000037571# Additional compiler flags for building library objects.
37572pic_flag=$lt_lt_prog_compiler_pic
37573
cristyda16f162011-02-19 23:52:17 +000037574# How to pass a linker flag through the compiler.
37575wl=$lt_lt_prog_compiler_wl
37576
cristy73bd4a52010-10-05 11:24:23 +000037577# Compiler flag to prevent dynamic linking.
37578link_static_flag=$lt_lt_prog_compiler_static
37579
37580# Does compiler simultaneously support -c and -o options?
37581compiler_c_o=$lt_lt_cv_prog_compiler_c_o
37582
37583# Whether or not to add -lc for building shared libraries.
37584build_libtool_need_lc=$archive_cmds_need_lc
37585
37586# Whether or not to disallow shared libs when runtime libs are static.
37587allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
37588
37589# Compiler flag to allow reflexive dlopens.
37590export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
37591
37592# Compiler flag to generate shared objects directly from archives.
37593whole_archive_flag_spec=$lt_whole_archive_flag_spec
37594
37595# Whether the compiler copes with passing no objects directly.
37596compiler_needs_object=$lt_compiler_needs_object
37597
37598# Create an old-style archive from a shared archive.
37599old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
37600
37601# Create a temporary old-style archive to link instead of a shared archive.
37602old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
37603
37604# Commands used to build a shared archive.
37605archive_cmds=$lt_archive_cmds
37606archive_expsym_cmds=$lt_archive_expsym_cmds
37607
37608# Commands used to build a loadable module if different from building
37609# a shared archive.
37610module_cmds=$lt_module_cmds
37611module_expsym_cmds=$lt_module_expsym_cmds
37612
37613# Whether we are building with GNU ld or not.
37614with_gnu_ld=$lt_with_gnu_ld
37615
37616# Flag that allows shared libraries with undefined symbols to be built.
37617allow_undefined_flag=$lt_allow_undefined_flag
37618
37619# Flag that enforces no undefined symbols.
37620no_undefined_flag=$lt_no_undefined_flag
37621
37622# Flag to hardcode \$libdir into a binary during linking.
37623# This must work even if \$libdir does not exist
37624hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
37625
cristy73bd4a52010-10-05 11:24:23 +000037626# Whether we need a single "-rpath" flag with a separated argument.
37627hardcode_libdir_separator=$lt_hardcode_libdir_separator
37628
37629# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
37630# DIR into the resulting binary.
37631hardcode_direct=$hardcode_direct
37632
37633# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
37634# DIR into the resulting binary and the resulting library dependency is
37635# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
37636# library is relocated.
37637hardcode_direct_absolute=$hardcode_direct_absolute
37638
37639# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
37640# into the resulting binary.
37641hardcode_minus_L=$hardcode_minus_L
37642
37643# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
37644# into the resulting binary.
37645hardcode_shlibpath_var=$hardcode_shlibpath_var
37646
37647# Set to "yes" if building a shared library automatically hardcodes DIR
37648# into the library and all subsequent libraries and executables linked
37649# against it.
37650hardcode_automatic=$hardcode_automatic
37651
37652# Set to yes if linker adds runtime paths of dependent libraries
37653# to runtime path list.
37654inherit_rpath=$inherit_rpath
37655
37656# Whether libtool must link a program against all its dependency libraries.
37657link_all_deplibs=$link_all_deplibs
37658
cristy73bd4a52010-10-05 11:24:23 +000037659# Set to "yes" if exported symbols are required.
37660always_export_symbols=$always_export_symbols
37661
37662# The commands to list exported symbols.
37663export_symbols_cmds=$lt_export_symbols_cmds
37664
37665# Symbols that should not be listed in the preloaded symbols.
37666exclude_expsyms=$lt_exclude_expsyms
37667
37668# Symbols that must always be exported.
37669include_expsyms=$lt_include_expsyms
37670
37671# Commands necessary for linking programs (against libraries) with templates.
37672prelink_cmds=$lt_prelink_cmds
37673
cristyda16f162011-02-19 23:52:17 +000037674# Commands necessary for finishing linking programs.
37675postlink_cmds=$lt_postlink_cmds
37676
cristy73bd4a52010-10-05 11:24:23 +000037677# Specify filename containing input files.
37678file_list_spec=$lt_file_list_spec
37679
37680# How to hardcode a shared library path into an executable.
37681hardcode_action=$hardcode_action
37682
37683# The directories searched by this compiler when creating a shared library.
37684compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
37685
37686# Dependencies to place before and after the objects being linked to
37687# create a shared library.
37688predep_objects=$lt_predep_objects
37689postdep_objects=$lt_postdep_objects
37690predeps=$lt_predeps
37691postdeps=$lt_postdeps
37692
37693# The library search path used internally by the compiler when linking
37694# a shared library.
37695compiler_lib_search_path=$lt_compiler_lib_search_path
37696
37697# ### END LIBTOOL CONFIG
37698
37699_LT_EOF
37700
37701 case $host_os in
37702 aix3*)
37703 cat <<\_LT_EOF >> "$cfgfile"
37704# AIX sometimes has problems with the GCC collect2 program. For some
37705# reason, if we set the COLLECT_NAMES environment variable, the problems
37706# vanish in a puff of smoke.
37707if test "X${COLLECT_NAMES+set}" != Xset; then
37708 COLLECT_NAMES=
37709 export COLLECT_NAMES
37710fi
37711_LT_EOF
37712 ;;
37713 esac
37714
37715
37716ltmain="$ac_aux_dir/ltmain.sh"
37717
37718
37719 # We use sed instead of cat because bash on DJGPP gets confused if
37720 # if finds mixed CR/LF and LF-only lines. Since sed operates in
37721 # text mode, it properly converts lines to CR/LF. This bash problem
37722 # is reportedly fixed, but why not run on old versions too?
cristyda16f162011-02-19 23:52:17 +000037723 sed '$q' "$ltmain" >> "$cfgfile" \
37724 || (rm -f "$cfgfile"; exit 1)
cristy73bd4a52010-10-05 11:24:23 +000037725
cristyda16f162011-02-19 23:52:17 +000037726 if test x"$xsi_shell" = xyes; then
37727 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
37728func_dirname ()\
37729{\
37730\ case ${1} in\
37731\ */*) func_dirname_result="${1%/*}${2}" ;;\
37732\ * ) func_dirname_result="${3}" ;;\
37733\ esac\
37734} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
37735 && mv -f "$cfgfile.tmp" "$cfgfile" \
37736 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37737test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000037738
37739
cristyda16f162011-02-19 23:52:17 +000037740 sed -e '/^func_basename ()$/,/^} # func_basename /c\
37741func_basename ()\
37742{\
37743\ func_basename_result="${1##*/}"\
37744} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
37745 && mv -f "$cfgfile.tmp" "$cfgfile" \
37746 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37747test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000037748
37749
cristyda16f162011-02-19 23:52:17 +000037750 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
37751func_dirname_and_basename ()\
37752{\
37753\ case ${1} in\
37754\ */*) func_dirname_result="${1%/*}${2}" ;;\
37755\ * ) func_dirname_result="${3}" ;;\
37756\ esac\
37757\ func_basename_result="${1##*/}"\
37758} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
37759 && mv -f "$cfgfile.tmp" "$cfgfile" \
37760 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37761test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000037762
cristyda16f162011-02-19 23:52:17 +000037763
37764 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
37765func_stripname ()\
37766{\
37767\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
37768\ # positional parameters, so assign one to ordinary parameter first.\
37769\ func_stripname_result=${3}\
37770\ func_stripname_result=${func_stripname_result#"${1}"}\
37771\ func_stripname_result=${func_stripname_result%"${2}"}\
37772} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
37773 && mv -f "$cfgfile.tmp" "$cfgfile" \
37774 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37775test 0 -eq $? || _lt_function_replace_fail=:
37776
37777
37778 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
37779func_split_long_opt ()\
37780{\
37781\ func_split_long_opt_name=${1%%=*}\
37782\ func_split_long_opt_arg=${1#*=}\
37783} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
37784 && mv -f "$cfgfile.tmp" "$cfgfile" \
37785 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37786test 0 -eq $? || _lt_function_replace_fail=:
37787
37788
37789 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
37790func_split_short_opt ()\
37791{\
37792\ func_split_short_opt_arg=${1#??}\
37793\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
37794} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
37795 && mv -f "$cfgfile.tmp" "$cfgfile" \
37796 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37797test 0 -eq $? || _lt_function_replace_fail=:
37798
37799
37800 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
37801func_lo2o ()\
37802{\
37803\ case ${1} in\
37804\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
37805\ *) func_lo2o_result=${1} ;;\
37806\ esac\
37807} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
37808 && mv -f "$cfgfile.tmp" "$cfgfile" \
37809 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37810test 0 -eq $? || _lt_function_replace_fail=:
37811
37812
37813 sed -e '/^func_xform ()$/,/^} # func_xform /c\
37814func_xform ()\
37815{\
37816 func_xform_result=${1%.*}.lo\
37817} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
37818 && mv -f "$cfgfile.tmp" "$cfgfile" \
37819 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37820test 0 -eq $? || _lt_function_replace_fail=:
37821
37822
37823 sed -e '/^func_arith ()$/,/^} # func_arith /c\
37824func_arith ()\
37825{\
37826 func_arith_result=$(( $* ))\
37827} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
37828 && mv -f "$cfgfile.tmp" "$cfgfile" \
37829 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37830test 0 -eq $? || _lt_function_replace_fail=:
37831
37832
37833 sed -e '/^func_len ()$/,/^} # func_len /c\
37834func_len ()\
37835{\
37836 func_len_result=${#1}\
37837} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
37838 && mv -f "$cfgfile.tmp" "$cfgfile" \
37839 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37840test 0 -eq $? || _lt_function_replace_fail=:
37841
37842fi
37843
37844if test x"$lt_shell_append" = xyes; then
37845 sed -e '/^func_append ()$/,/^} # func_append /c\
37846func_append ()\
37847{\
37848 eval "${1}+=\\${2}"\
37849} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
37850 && mv -f "$cfgfile.tmp" "$cfgfile" \
37851 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37852test 0 -eq $? || _lt_function_replace_fail=:
37853
37854
37855 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
37856func_append_quoted ()\
37857{\
37858\ func_quote_for_eval "${2}"\
37859\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
37860} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
37861 && mv -f "$cfgfile.tmp" "$cfgfile" \
37862 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37863test 0 -eq $? || _lt_function_replace_fail=:
37864
37865
37866 # Save a `func_append' function call where possible by direct use of '+='
37867 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
37868 && mv -f "$cfgfile.tmp" "$cfgfile" \
37869 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37870 test 0 -eq $? || _lt_function_replace_fail=:
37871else
37872 # Save a `func_append' function call even when '+=' is not available
37873 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
37874 && mv -f "$cfgfile.tmp" "$cfgfile" \
37875 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37876 test 0 -eq $? || _lt_function_replace_fail=:
37877fi
37878
37879if test x"$_lt_function_replace_fail" = x":"; then
37880 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
37881$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
37882fi
37883
37884
37885 mv -f "$cfgfile" "$ofile" ||
cristy73bd4a52010-10-05 11:24:23 +000037886 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
37887 chmod +x "$ofile"
37888
37889
37890 cat <<_LT_EOF >> "$ofile"
37891
37892# ### BEGIN LIBTOOL TAG CONFIG: CXX
37893
37894# The linker used to build libraries.
37895LD=$lt_LD_CXX
37896
cristy0c60a692010-11-04 01:09:47 +000037897# How to create reloadable object files.
37898reload_flag=$lt_reload_flag_CXX
37899reload_cmds=$lt_reload_cmds_CXX
37900
cristy73bd4a52010-10-05 11:24:23 +000037901# Commands used to build an old-style archive.
37902old_archive_cmds=$lt_old_archive_cmds_CXX
37903
37904# A language specific compiler.
37905CC=$lt_compiler_CXX
37906
37907# Is the compiler the GNU compiler?
37908with_gcc=$GCC_CXX
37909
37910# Compiler flag to turn off builtin functions.
37911no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
37912
cristy73bd4a52010-10-05 11:24:23 +000037913# Additional compiler flags for building library objects.
37914pic_flag=$lt_lt_prog_compiler_pic_CXX
37915
cristyda16f162011-02-19 23:52:17 +000037916# How to pass a linker flag through the compiler.
37917wl=$lt_lt_prog_compiler_wl_CXX
37918
cristy73bd4a52010-10-05 11:24:23 +000037919# Compiler flag to prevent dynamic linking.
37920link_static_flag=$lt_lt_prog_compiler_static_CXX
37921
37922# Does compiler simultaneously support -c and -o options?
37923compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
37924
37925# Whether or not to add -lc for building shared libraries.
37926build_libtool_need_lc=$archive_cmds_need_lc_CXX
37927
37928# Whether or not to disallow shared libs when runtime libs are static.
37929allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
37930
37931# Compiler flag to allow reflexive dlopens.
37932export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
37933
37934# Compiler flag to generate shared objects directly from archives.
37935whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
37936
37937# Whether the compiler copes with passing no objects directly.
37938compiler_needs_object=$lt_compiler_needs_object_CXX
37939
37940# Create an old-style archive from a shared archive.
37941old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
37942
37943# Create a temporary old-style archive to link instead of a shared archive.
37944old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
37945
37946# Commands used to build a shared archive.
37947archive_cmds=$lt_archive_cmds_CXX
37948archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
37949
37950# Commands used to build a loadable module if different from building
37951# a shared archive.
37952module_cmds=$lt_module_cmds_CXX
37953module_expsym_cmds=$lt_module_expsym_cmds_CXX
37954
37955# Whether we are building with GNU ld or not.
37956with_gnu_ld=$lt_with_gnu_ld_CXX
37957
37958# Flag that allows shared libraries with undefined symbols to be built.
37959allow_undefined_flag=$lt_allow_undefined_flag_CXX
37960
37961# Flag that enforces no undefined symbols.
37962no_undefined_flag=$lt_no_undefined_flag_CXX
37963
37964# Flag to hardcode \$libdir into a binary during linking.
37965# This must work even if \$libdir does not exist
37966hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
37967
cristy73bd4a52010-10-05 11:24:23 +000037968# Whether we need a single "-rpath" flag with a separated argument.
37969hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
37970
37971# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
37972# DIR into the resulting binary.
37973hardcode_direct=$hardcode_direct_CXX
37974
37975# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
37976# DIR into the resulting binary and the resulting library dependency is
37977# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
37978# library is relocated.
37979hardcode_direct_absolute=$hardcode_direct_absolute_CXX
37980
37981# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
37982# into the resulting binary.
37983hardcode_minus_L=$hardcode_minus_L_CXX
37984
37985# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
37986# into the resulting binary.
37987hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
37988
37989# Set to "yes" if building a shared library automatically hardcodes DIR
37990# into the library and all subsequent libraries and executables linked
37991# against it.
37992hardcode_automatic=$hardcode_automatic_CXX
37993
37994# Set to yes if linker adds runtime paths of dependent libraries
37995# to runtime path list.
37996inherit_rpath=$inherit_rpath_CXX
37997
37998# Whether libtool must link a program against all its dependency libraries.
37999link_all_deplibs=$link_all_deplibs_CXX
38000
cristy73bd4a52010-10-05 11:24:23 +000038001# Set to "yes" if exported symbols are required.
38002always_export_symbols=$always_export_symbols_CXX
38003
38004# The commands to list exported symbols.
38005export_symbols_cmds=$lt_export_symbols_cmds_CXX
38006
38007# Symbols that should not be listed in the preloaded symbols.
38008exclude_expsyms=$lt_exclude_expsyms_CXX
38009
38010# Symbols that must always be exported.
38011include_expsyms=$lt_include_expsyms_CXX
38012
38013# Commands necessary for linking programs (against libraries) with templates.
38014prelink_cmds=$lt_prelink_cmds_CXX
38015
cristyda16f162011-02-19 23:52:17 +000038016# Commands necessary for finishing linking programs.
38017postlink_cmds=$lt_postlink_cmds_CXX
38018
cristy73bd4a52010-10-05 11:24:23 +000038019# Specify filename containing input files.
38020file_list_spec=$lt_file_list_spec_CXX
38021
38022# How to hardcode a shared library path into an executable.
38023hardcode_action=$hardcode_action_CXX
38024
38025# The directories searched by this compiler when creating a shared library.
38026compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
38027
38028# Dependencies to place before and after the objects being linked to
38029# create a shared library.
38030predep_objects=$lt_predep_objects_CXX
38031postdep_objects=$lt_postdep_objects_CXX
38032predeps=$lt_predeps_CXX
38033postdeps=$lt_postdeps_CXX
38034
38035# The library search path used internally by the compiler when linking
38036# a shared library.
38037compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
38038
38039# ### END LIBTOOL TAG CONFIG: CXX
38040_LT_EOF
38041
38042 ;;
cristy2bd4b6e2012-07-22 15:29:11 +000038043 "magick.sh.in":C) chmod +x magick.sh ;;
cristy4c08aed2011-07-01 19:47:50 +000038044 "MagickCore-config.in":C) chmod +x MagickCore/MagickCore-config ;;
cristy4c08aed2011-07-01 19:47:50 +000038045 "MagickWand-config.in":C) chmod +x MagickWand/MagickWand-config ;;
cristy3ed852e2009-09-05 21:47:34 +000038046 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
38047 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
38048
38049 esac
38050done # for ac_tag
38051
38052
cristy8b350f62009-11-15 23:12:43 +000038053as_fn_exit 0
cristy3ed852e2009-09-05 21:47:34 +000038054_ACEOF
cristy3ed852e2009-09-05 21:47:34 +000038055ac_clean_files=$ac_clean_files_save
38056
38057test $ac_write_fail = 0 ||
cristy98dddb52010-11-04 00:30:15 +000038058 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000038059
38060
38061# configure is writing to config.log, and then calls config.status.
38062# config.status does its own redirection, appending to config.log.
38063# Unfortunately, on DOS this fails, as config.log is still kept open
38064# by configure, so config.status won't be able to write to it; its
38065# output is simply discarded. So we exec the FD to /dev/null,
38066# effectively closing config.log, so it can be properly (re)opened and
38067# appended to by config.status. When coming back to configure, we
38068# need to make the FD available again.
38069if test "$no_create" != yes; then
38070 ac_cs_success=:
38071 ac_config_status_args=
38072 test "$silent" = yes &&
38073 ac_config_status_args="$ac_config_status_args --quiet"
38074 exec 5>/dev/null
38075 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
38076 exec 5>>config.log
38077 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
38078 # would make configure fail if this is the last instruction.
cristy98dddb52010-11-04 00:30:15 +000038079 $ac_cs_success || as_fn_exit 1
cristy3ed852e2009-09-05 21:47:34 +000038080fi
38081if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
cristy8b350f62009-11-15 23:12:43 +000038082 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
cristy3ed852e2009-09-05 21:47:34 +000038083$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
38084fi
38085
38086
38087rm -f magick-version
38088
cristy430a7312010-01-21 20:44:04 +000038089result_dejavu_font_dir='none'
38090if test "${dejavu_font_dir}x" != 'x'; then
38091 result_dejavu_font_dir=$dejavu_font_dir
38092fi
38093
cristy3ed852e2009-09-05 21:47:34 +000038094result_ghostscript_font_dir='none'
38095if test "${ghostscript_font_dir}x" != 'x'; then
38096 result_ghostscript_font_dir=$ghostscript_font_dir
38097fi
38098
38099result_windows_font_dir='none'
38100if test "${windows_font_dir}x" != 'x'; then
38101 result_windows_font_dir=${windows_font_dir}
38102fi
38103
cristy09b53e12011-10-14 12:47:22 +000038104{ $as_echo "$as_me:${as_lineno-$LINENO}:
cristy3ed852e2009-09-05 21:47:34 +000038105ImageMagick is configured as follows. Please verify that this configuration
38106matches your expectations.
38107
38108Host system type: $host
38109Build system type: $build
38110
38111 Option Value
38112-------------------------------------------------------------------------------
38113Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
38114Static libraries --enable-static=$enable_static $libtool_build_static_libs
cristyc6722092012-10-14 00:19:31 +000038115Module support --with-modules=$build_modules $build_modules
cristy3ed852e2009-09-05 21:47:34 +000038116GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
38117Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
38118High Dynamic Range Imagery
38119 --enable-hdri=$enable_hdri $enable_hdri
38120
38121Delegate Configuration:
38122BZLIB --with-bzlib=$with_bzlib $have_bzlib
38123Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000038124Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000038125DJVU --with-djvu=$with_djvu $have_djvu
38126DPS --with-dps=$with_dps $have_dps
38127FFTW --with-fftw=$with_fftw $have_fftw
38128FlashPIX --with-fpx=$with_fpx $have_fpx
38129FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
38130FreeType --with-freetype=$with_freetype $have_freetype
38131GhostPCL None $PCLDelegate ($PCLVersion)
38132GhostXPS None $XPSDelegate ($XPSVersion)
38133Ghostscript None $PSDelegate ($GSVersion)
38134Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
38135Ghostscript lib --with-gslib=$with_gslib $have_gslib
38136Graphviz --with-gvc=$with_gvc $have_gvc
38137JBIG --with-jbig=$with_jbig $have_jbig
38138JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
38139JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000038140LCMS v1 --with-lcms=$with_lcms $have_lcms
38141LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000038142LQR --with-lqr=$with_lqr $have_lqr
cristy5eef09f2012-10-16 12:08:28 +000038143LTDL --with-ltdl=$with_ltdl $have_ltdl
cristyfbb0ef02010-12-19 02:32:11 +000038144LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000038145Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
38146OpenEXR --with-openexr=$with_openexr $have_openexr
cristy41cbe8a2011-10-27 01:35:18 +000038147PANGO --with-pango=$with_pango $have_pango
cristy3ed852e2009-09-05 21:47:34 +000038148PERL --with-perl=$with_perl $have_perl
38149PNG --with-png=$with_png $have_png
38150RSVG --with-rsvg=$with_rsvg $have_rsvg
38151TIFF --with-tiff=$with_tiff $have_tiff
cristyb1860752011-03-14 00:27:46 +000038152WEBP --with-webp=$with_webp $have_webp
cristy3ed852e2009-09-05 21:47:34 +000038153Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
cristy01ff9f32012-12-01 18:15:29 +000038154WMF --with-wmf=$with_wmf $have_wmf
cristy3ed852e2009-09-05 21:47:34 +000038155X11 --with-x=$with_x $have_x
38156XML --with-xml=$with_xml $have_xml
38157ZLIB --with-zlib=$with_zlib $have_zlib
38158
38159X11 Configuration:
38160 X_CFLAGS = $X_CFLAGS
38161 X_PRE_LIBS = $X_PRE_LIBS
38162 X_LIBS = $X_LIBS
38163 X_EXTRA_LIBS = $X_EXTRA_LIBS
38164
38165Options used to compile and link:
38166 PREFIX = $PREFIX_DIR
38167 EXEC-PREFIX = $EXEC_PREFIX_DIR
38168 VERSION = $PACKAGE_VERSION
38169 CC = $CC
38170 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000038171 CPPFLAGS = $MAGICK_CPPFLAGS
38172 PCFLAGS = $MAGICK_PCFLAGS
38173 DEFS = $DEFS
38174 LDFLAGS = $LDFLAGS
38175 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
38176 LIBS = $MAGICK_LIBS
38177 CXX = $CXX
38178 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000038179 FEATURES = $MAGICK_FEATURES
cristy3ed852e2009-09-05 21:47:34 +000038180" >&5
cristy09b53e12011-10-14 12:47:22 +000038181$as_echo "$as_me:
cristy3ed852e2009-09-05 21:47:34 +000038182ImageMagick is configured as follows. Please verify that this configuration
38183matches your expectations.
38184
38185Host system type: $host
38186Build system type: $build
38187
38188 Option Value
38189-------------------------------------------------------------------------------
38190Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
38191Static libraries --enable-static=$enable_static $libtool_build_static_libs
cristyc6722092012-10-14 00:19:31 +000038192Module support --with-modules=$build_modules $build_modules
cristy3ed852e2009-09-05 21:47:34 +000038193GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
38194Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
38195High Dynamic Range Imagery
38196 --enable-hdri=$enable_hdri $enable_hdri
38197
38198Delegate Configuration:
38199BZLIB --with-bzlib=$with_bzlib $have_bzlib
38200Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000038201Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000038202DJVU --with-djvu=$with_djvu $have_djvu
38203DPS --with-dps=$with_dps $have_dps
38204FFTW --with-fftw=$with_fftw $have_fftw
38205FlashPIX --with-fpx=$with_fpx $have_fpx
38206FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
38207FreeType --with-freetype=$with_freetype $have_freetype
38208GhostPCL None $PCLDelegate ($PCLVersion)
38209GhostXPS None $XPSDelegate ($XPSVersion)
38210Ghostscript None $PSDelegate ($GSVersion)
38211Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
38212Ghostscript lib --with-gslib=$with_gslib $have_gslib
38213Graphviz --with-gvc=$with_gvc $have_gvc
38214JBIG --with-jbig=$with_jbig $have_jbig
38215JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
38216JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000038217LCMS v1 --with-lcms=$with_lcms $have_lcms
38218LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000038219LQR --with-lqr=$with_lqr $have_lqr
cristy5eef09f2012-10-16 12:08:28 +000038220LTDL --with-ltdl=$with_ltdl $have_ltdl
cristyfbb0ef02010-12-19 02:32:11 +000038221LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000038222Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
38223OpenEXR --with-openexr=$with_openexr $have_openexr
cristy41cbe8a2011-10-27 01:35:18 +000038224PANGO --with-pango=$with_pango $have_pango
cristy3ed852e2009-09-05 21:47:34 +000038225PERL --with-perl=$with_perl $have_perl
38226PNG --with-png=$with_png $have_png
38227RSVG --with-rsvg=$with_rsvg $have_rsvg
38228TIFF --with-tiff=$with_tiff $have_tiff
cristyb1860752011-03-14 00:27:46 +000038229WEBP --with-webp=$with_webp $have_webp
cristy3ed852e2009-09-05 21:47:34 +000038230Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
cristy01ff9f32012-12-01 18:15:29 +000038231WMF --with-wmf=$with_wmf $have_wmf
cristy3ed852e2009-09-05 21:47:34 +000038232X11 --with-x=$with_x $have_x
38233XML --with-xml=$with_xml $have_xml
38234ZLIB --with-zlib=$with_zlib $have_zlib
38235
38236X11 Configuration:
38237 X_CFLAGS = $X_CFLAGS
38238 X_PRE_LIBS = $X_PRE_LIBS
38239 X_LIBS = $X_LIBS
38240 X_EXTRA_LIBS = $X_EXTRA_LIBS
38241
38242Options used to compile and link:
38243 PREFIX = $PREFIX_DIR
38244 EXEC-PREFIX = $EXEC_PREFIX_DIR
38245 VERSION = $PACKAGE_VERSION
38246 CC = $CC
38247 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000038248 CPPFLAGS = $MAGICK_CPPFLAGS
38249 PCFLAGS = $MAGICK_PCFLAGS
38250 DEFS = $DEFS
38251 LDFLAGS = $LDFLAGS
38252 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
38253 LIBS = $MAGICK_LIBS
38254 CXX = $CXX
38255 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000038256 FEATURES = $MAGICK_FEATURES
cristy09b53e12011-10-14 12:47:22 +000038257" >&6;}